Version Description
Download this release
Release Info
Developer | tareq1988 |
Plugin | Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy |
Version | 3.0.9 |
Comparing to | |
See all releases |
Code changes from version 3.0.8 to 3.0.9
- assets/js/dokan.js +36 -0
- assets/js/vue-admin.js +10 -10
- assets/js/vue-admin.min.js +1 -1
- dokan.php +4 -4
- includes/Admin/Hooks.php +1 -1
- includes/Ajax.php +39 -0
- includes/Assets.php +1 -0
- includes/Dashboard/Templates/Orders.php +6 -2
- includes/Dashboard/Templates/Withdraw.php +6 -0
- includes/REST/Manager.php +1 -0
- includes/REST/ProductController.php +6 -1
- includes/REST/StoreController.php +22 -16
- includes/REST/StoreSettingController.php +90 -0
- includes/REST/WithdrawController.php +20 -4
- includes/wc-template.php +1 -1
- languages/dokan-lite.pot +239 -235
- package.json +1 -1
- readme.txt +10 -2
- templates/maps/mapbox-with-search.php +2 -2
- templates/products/new-product-single.php +13 -18
- templates/products/new-product.php +8 -19
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -4
assets/js/dokan.js
CHANGED
@@ -1498,6 +1498,42 @@ jQuery(function($) {
|
|
1498 |
|
1499 |
});
|
1500 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1501 |
})(jQuery);
|
1502 |
|
1503 |
jQuery(function($) {
|
1498 |
|
1499 |
});
|
1500 |
|
1501 |
+
$(document).ready(function () {
|
1502 |
+
// Ajax search products tags
|
1503 |
+
$("#product_tag_search").select2({
|
1504 |
+
allowClear: false,
|
1505 |
+
ajax: {
|
1506 |
+
url: dokan.ajaxurl,
|
1507 |
+
dataType: 'json',
|
1508 |
+
delay: 250,
|
1509 |
+
data: function (params) {
|
1510 |
+
return {
|
1511 |
+
q: params.term,
|
1512 |
+
action: 'dokan_json_search_products_tags',
|
1513 |
+
security: dokan.search_products_tags_nonce,
|
1514 |
+
page: params.page || 1
|
1515 |
+
};
|
1516 |
+
},
|
1517 |
+
processResults: function( data ) {
|
1518 |
+
var options = [];
|
1519 |
+
if ( data ) {
|
1520 |
+
$.each( data, function( index, text ) {
|
1521 |
+
options.push( { id: text[0], text: text[1] } );
|
1522 |
+
});
|
1523 |
+
}
|
1524 |
+
|
1525 |
+
return {
|
1526 |
+
results: options,
|
1527 |
+
pagination: {
|
1528 |
+
more: options.length == 0 ? false : true
|
1529 |
+
}
|
1530 |
+
};
|
1531 |
+
},
|
1532 |
+
cache: true
|
1533 |
+
}
|
1534 |
+
});
|
1535 |
+
});
|
1536 |
+
|
1537 |
})(jQuery);
|
1538 |
|
1539 |
jQuery(function($) {
|
assets/js/vue-admin.js
CHANGED
@@ -6534,7 +6534,7 @@ if (false) {
|
|
6534 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_admin_pages_Premium_vue__ = __webpack_require__(112);
|
6535 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_admin_pages_Help_vue__ = __webpack_require__(121);
|
6536 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_admin_pages_Settings_vue__ = __webpack_require__(124);
|
6537 |
-
/* harmony import */ var
|
6538 |
|
6539 |
|
6540 |
|
@@ -6553,7 +6553,7 @@ dokan_add_route(__WEBPACK_IMPORTED_MODULE_4_admin_pages_Help_vue__["a" /* defaul
|
|
6553 |
dokan_add_route(__WEBPACK_IMPORTED_MODULE_5_admin_pages_Settings_vue__["a" /* default */]); // if dokan pro not installed or dokan pro is greater than 2.9.14 register the `vendors` route.
|
6554 |
|
6555 |
if (!dokan.hasPro || VersionCompare(dokan.proVersion, '2.9.14', '>')) {
|
6556 |
-
dokan_add_route(
|
6557 |
}
|
6558 |
/**
|
6559 |
* Parse the route array and bind required components
|
@@ -10254,9 +10254,9 @@ if (false) {
|
|
10254 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10255 |
|
10256 |
"use strict";
|
10257 |
-
/* harmony import */ var
|
10258 |
/* unused harmony namespace reexport */
|
10259 |
-
/* harmony import */ var
|
10260 |
var disposed = false
|
10261 |
function injectStyle (ssrContext) {
|
10262 |
if (disposed) return
|
@@ -10277,14 +10277,14 @@ var __vue_scopeId__ = null
|
|
10277 |
/* moduleIdentifier (server only) */
|
10278 |
var __vue_module_identifier__ = null
|
10279 |
var Component = normalizeComponent(
|
10280 |
-
|
10281 |
-
|
10282 |
__vue_template_functional__,
|
10283 |
__vue_styles__,
|
10284 |
__vue_scopeId__,
|
10285 |
__vue_module_identifier__
|
10286 |
)
|
10287 |
-
Component.options.__file = "src/admin/pages/
|
10288 |
|
10289 |
/* hot reload */
|
10290 |
if (false) {(function () {
|
@@ -10293,9 +10293,9 @@ if (false) {(function () {
|
|
10293 |
if (!hotAPI.compatible) return
|
10294 |
module.hot.accept()
|
10295 |
if (!module.hot.data) {
|
10296 |
-
hotAPI.createRecord("data-v-
|
10297 |
} else {
|
10298 |
-
hotAPI.reload("data-v-
|
10299 |
}
|
10300 |
module.hot.dispose(function (data) {
|
10301 |
disposed = true
|
@@ -10830,7 +10830,7 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
10830 |
if (false) {
|
10831 |
module.hot.accept()
|
10832 |
if (module.hot.data) {
|
10833 |
-
require("vue-hot-reload-api") .rerender("data-v-
|
10834 |
}
|
10835 |
}
|
10836 |
|
6534 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_admin_pages_Premium_vue__ = __webpack_require__(112);
|
6535 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_admin_pages_Help_vue__ = __webpack_require__(121);
|
6536 |
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_admin_pages_Settings_vue__ = __webpack_require__(124);
|
6537 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_admin_pages_Vendors_vue__ = __webpack_require__(154);
|
6538 |
|
6539 |
|
6540 |
|
6553 |
dokan_add_route(__WEBPACK_IMPORTED_MODULE_5_admin_pages_Settings_vue__["a" /* default */]); // if dokan pro not installed or dokan pro is greater than 2.9.14 register the `vendors` route.
|
6554 |
|
6555 |
if (!dokan.hasPro || VersionCompare(dokan.proVersion, '2.9.14', '>')) {
|
6556 |
+
dokan_add_route(__WEBPACK_IMPORTED_MODULE_6_admin_pages_Vendors_vue__["a" /* default */]);
|
6557 |
}
|
6558 |
/**
|
6559 |
* Parse the route array and bind required components
|
10254 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10255 |
|
10256 |
"use strict";
|
10257 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Vendors_vue__ = __webpack_require__(60);
|
10258 |
/* unused harmony namespace reexport */
|
10259 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_f81b8092_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Vendors_vue__ = __webpack_require__(159);
|
10260 |
var disposed = false
|
10261 |
function injectStyle (ssrContext) {
|
10262 |
if (disposed) return
|
10277 |
/* moduleIdentifier (server only) */
|
10278 |
var __vue_module_identifier__ = null
|
10279 |
var Component = normalizeComponent(
|
10280 |
+
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Vendors_vue__["a" /* default */],
|
10281 |
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_f81b8092_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Vendors_vue__["a" /* default */],
|
10282 |
__vue_template_functional__,
|
10283 |
__vue_styles__,
|
10284 |
__vue_scopeId__,
|
10285 |
__vue_module_identifier__
|
10286 |
)
|
10287 |
+
Component.options.__file = "src/admin/pages/Vendors.vue"
|
10288 |
|
10289 |
/* hot reload */
|
10290 |
if (false) {(function () {
|
10293 |
if (!hotAPI.compatible) return
|
10294 |
module.hot.accept()
|
10295 |
if (!module.hot.data) {
|
10296 |
+
hotAPI.createRecord("data-v-f81b8092", Component.options)
|
10297 |
} else {
|
10298 |
+
hotAPI.reload("data-v-f81b8092", Component.options)
|
10299 |
}
|
10300 |
module.hot.dispose(function (data) {
|
10301 |
disposed = true
|
10830 |
if (false) {
|
10831 |
module.hot.accept()
|
10832 |
if (module.hot.data) {
|
10833 |
+
require("vue-hot-reload-api") .rerender("data-v-f81b8092", esExports)
|
10834 |
}
|
10835 |
}
|
10836 |
|
assets/js/vue-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
dokanWebpack([1],[,,,function(e,t,a){"use strict";var s=a(9),n=a(27),i=!1;var o=function(e){i||a(26)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,function(e,t,a){"use strict";var s=a(14);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",s=t.datasets[e.datasetIndex].tooltipLabel||"",n=t.datasets[e.datasetIndex].tooltipPrefix||"",i=s?s+": ":a+": ";return i+=n+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},function(e,t,a){"use strict";var s=a(51);t.a={components:{Sketch:s.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var s=a(2),n=(a.n(s),a(3)),i=a(16),o=a(17);t.a={name:"VendorAccountFields",components:{Switches:n.a,UploadImage:i.a,PasswordGenerator:o.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-"),this.vendorInfo.user_nicename=e.split(" ").join("-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(s.debounce)(this.checkStore,this.delay),this.checkUsername=Object(s.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(s.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},s={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,s,n,i){return(!0!==e||!0!==t)&&((!0!==e||s!==i)&&((!0!==t||a!==n)&&((a!==n||s!==i)&&!(n<=a))))}},n=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:s})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=n,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,s,n,i,o,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);o=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,o,i)),(s=o)/(n=i)>(a=l/d)?l=(d=n)*a:d=(l=s)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var s=a(4);a.n(s);t.a={name:"VendorAddressFields",components:{Multiselect:s.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],s=a&&a[e];return void 0!==s?s:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var s in a)if(s===e&&!(a[s]&&a[s].length<1))for(var n in a[s])t.push({name:a[s][n],code:n});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var s=a(3),n=a(4);a.n(n);t.a={name:"VendorPaymentFields",components:{Switches:s.a,Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,s=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=s}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t){e.exports=jQuery},function(e,t,a){"use strict";var s=a(10),n=a(29),i=!1;var o=function(e){i||a(28)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(11),n=a(30),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var s=a(6),n=a(0)(s.a,null,!1,null,null,null);n.options.__file="src/admin/components/Chart.vue",t.a=n.exports},,function(e,t,a){"use strict";var s=a(7),n=a(24),i=!1;var o=function(e){i||a(23)},r=a(0)(s.a,n.a,!1,o,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(8),n=a(31),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){t.preventDefault(),e.generatePassword(t)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){t.preventDefault(),e.regenratePassword(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(12),n=a(33),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=i.exports},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(13),n=a(36),i=!1;var o=function(e){i||a(35)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,,,function(e,t,a){"use strict";t.a={name:"App"}},function(e,t,a){"use strict";var s=a(20),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading"),o=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:n,Loading:i,Chart:s.a,Currency:o},data:function(){return{overview:null,feed:null,report:null,subscribe:{success:!1,loading:!1,email:""},hasPro:!!dokan.hasPro}},created:function(){this.fetchOverview(),this.fetchFeed(),this.fetchReport()},methods:{fetchOverview:function(){var e=this;dokan.api.get("/admin/report/summary").done(function(t){e.overview=t})},fetchFeed:function(){var e=this;dokan.api.get("/admin/dashboard/feed").done(function(t){e.feed=t})},fetchReport:function(){var e=this;dokan.api.get("/admin/report/overview").done(function(t){e.report=t})},validEmail:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},emailSubscribe:function(){var e=this;this.validEmail(this.subscribe.email)&&(this.subscribe.loading=!0,jQuery.ajax({url:"https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?",data:{EMAIL:this.subscribe.email,"group[3555][8]":"1"},type:"GET",dataType:"json",cache:!1,contentType:"application/json; charset=utf-8"}).always(function(t){e.subscribe.success=!0,e.subscribe.loading=!1}))}}}},function(e,t,a){"use strict";var s=dokan_get_lib("ListTable"),n=dokan_get_lib("Modal"),i=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:s,Modal:n,Currency:i},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,counts:{pending:0,approved:0,cancelled:0},notFound:this.__("No requests found.","dokan-lite"),massPayment:this.__("Paypal Mass Payment File is Generated.","dokan-lite"),showCb:!0,loading:!1,columns:{seller:{label:this.__("Vendor","dokan-lite")},amount:{label:this.__("Amount","dokan-lite")},status:{label:this.__("Status","dokan-lite")},method_title:{label:this.__("Method","dokan-lite")},method_details:{label:this.__("Details","dokan-lite")},note:{label:this.__("Note","dokan-lite")},created:{label:this.__("Date","dokan-lite")},actions:{label:this.__("Actions","dokan-lite")}},requests:[],actionColumn:"seller"}},watch:{"$route.query.status":function(){this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()}},computed:{currentStatus:function(){return this.$route.query.status||"pending"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},actions:function(){return"pending"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"cancel",label:this.__("Cancel","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"pending",label:this.__("Pending","dokan-lite")}]:[]},bulkActions:function(){return"pending"==this.currentStatus?[{key:"approved",label:this.__("Approve","dokan-lite")},{key:"cancelled",label:this.__("Cancel","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"pending",label:this.__("Pending","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:[{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]}},created:function(){this.fetchRequests()},methods:{updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Completed")),this.counts.cancelled=parseInt(e.getResponseHeader("X-Status-Cancelled"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},vendorUrl:function(e){return"1"===window.dokan.hasPro?dokan.urls.adminRoot+"admin.php?page=dokan#/vendors/"+e:dokan.urls.adminRoot+"user-edit.php?user_id="+e},fetchRequests:function(){var e=this;this.loading=!0,dokan.api.get("/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus).done(function(t,a,s){e.requests=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},goToPage:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,page:e}})},updateItem:function(e,t){var a=this.requests.findIndex(function(t){return t.id==e});this.$set(this.requests,a,t)},changeStatus:function(e,t){var a=this;this.loading=!0,dokan.api.put("/withdraw/"+t,{status:e}).done(function(e){a.loading=!1,a.fetchRequests()})},onActionClick:function(e,t){var a=this;"cancel"===e&&this.changeStatus("cancelled",t.id),"pending"===e&&this.changeStatus("pending",t.id),"trash"===e&&confirm(this.__("Are you sure?","dokan-lite"))&&(this.loading=!0,dokan.api.delete("/withdraw/"+t.id).done(function(e){a.loading=!1,a.fetchRequests()}))},getPaymentDetails:function(e,t){var a="—";return void 0!==t[e]&&("paypal"===e||"skrill"===e?a=t[e].email||"":"bank"===e&&(t.bank.hasOwnProperty("ac_name")&&(a=this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)),t.bank.hasOwnProperty("ac_number")&&(a+=this.sprintf(this.__(", Account Number: %s","dokan-lite"),t.bank.ac_number)),t.bank.hasOwnProperty("bank_name")&&(a+=this.sprintf(this.__(", Bank Name: %s","dokan-lite"),t.bank.bank_name)),t.bank.hasOwnProperty("routing_number")&&(a+=this.sprintf(this.__(", Routing Number: %s","dokan-lite"),t.bank.routing_number)))),dokan.hooks.applyFilters("dokan_get_payment_details",a,e,t)},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),onBulkAction:function(e,t){var a=this,s=this;if(_.contains(["delete","approved","cancelled","pending"],e)){var n={};n[e]=t,this.loading=!0,dokan.api.put("/withdraw/batch",n).done(function(e){a.loading=!1,a.fetchRequests()})}if("paypal"===e){var i=t.join(",");jQuery.post(ajaxurl,{dokan_withdraw_bulk:"paypal",id:i,action:"withdraw_ajax_submission",nonce:dokan.nonce},function(e,t,a){if("html/csv"===a.getResponseHeader("Content-type")){var n="",i=a.getResponseHeader("Content-Disposition");if(i&&-1!==i.indexOf("attachment")){var o=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i);null!=o&&o[1]&&(n=o[1].replace(/['"]/g,""))}var r=a.getResponseHeader("Content-Type"),l="function"==typeof File?new File([e],n,{type:r}):new Blob([e],{type:r});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(l,n);else{var d=window.URL||window.webkitURL,c=d.createObjectURL(l);if(n){var u=document.createElement("a");void 0===u.download?window.location=c:(u.href=c,u.download=n,document.body.appendChild(u),u.click())}else window.location=c;setTimeout(function(){d.revokeObjectURL(c)},100)}}e&&alert(s.massPayment)})}},openNoteModal:function(e,t){this.showModal=!0,this.editing={id:t,note:e}},updateNote:function(){var e=this;this.showModal=!1,this.loading=!0,dokan.api.put("/withdraw/"+this.editing.id,{note:this.editing.note}).done(function(t){e.loading=!1,e.updateItem(e.editing.id,t),e.editing={id:null,note:null}})}}}},function(e,t,a){"use strict";var s=a(114),n=(a.n(s),a(117));t.a={name:"Premium",components:{Slick:n.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,services:[{title:this.__("Premium modules to make everything easier & better","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-01@2x.png"},{title:this.__("Frontend dashboard for vendors with advanced controls","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-02@2x.png"},{title:this.__("Unlimited Product Variations and group product upload","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-03@2x.png"},{title:this.__("Zone wise shipping with multiple method for vendors","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-04@2x.png"},{title:this.__("Store support based on ticket system for your customers","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-05@2x.png"},{title:this.__("Vendors will be able to generate coupon codes","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-06@2x.png"},{title:this.__("Earning, Selling and Commission Reports & Statement","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-07@2x.png"},{title:this.__("24/7 super fast premium customer support for you","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-08@2x.png"},{title:this.__("Add Social profile to your vendor’s store and support for store SEO","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-09@2x.png"}],comparisons:[{title:this.__("Frontend order management","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Seller Statement Reports","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Making Announcements","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Customized Product Categories","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store SEO","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Back Ordering System","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store Contact Form","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Single Product Multiple Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Seller Verification","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Featured Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Multiple Commission Types","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Frontend Shipping Tracking","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Setup Wizard","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Google Maps","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Manage reviews","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Bookable Product","dokan-lite"),compare:{lite:"unavailable",pro:"available"}}],modules:[{title:"Domain",url:"https://wedevs.com/dokan/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"03"},business:{type:"numeric",value:"05"},enterprise:{type:"numeric",value:"20"}},{title:"Modules",url:"https://wedevs.com/dokan/modules/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"08"},business:{type:"numeric",value:"14"},enterprise:{type:"numeric",value:"14"}},{title:"Color Scheme",url:"https://wedevs.com/dokan/modules/color-scheme-customizer/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Review",url:"https://wedevs.com/dokan/modules/dokan-vendor-review/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Store Support",url:"https://wedevs.com/dokan/modules/store-support/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Auction",url:"https://wedevs.com/dokan/modules/dokan-simple-auctions/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Ajax Live Search",url:"https://wedevs.com/dokan/modules/ajax-live-search/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Stripe Connect",url:"https://wedevs.com/dokan/modules/stripe-connect/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Subscriptions",url:"https://wedevs.com/dokan/modules/subscription/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Single Product Multivendor",url:"https://wedevs.com/dokan/modules/single-product-multivendor/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Seller Verification",url:"https://wedevs.com/dokan/modules/seller-verification/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"WC Booking Integration",url:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Staff Manager",url:"https://wedevs.com/dokan/modules/vendor-staff-manager/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Export Import",url:"https://wedevs.com/dokan/modules/export-import/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Product Enquiry",url:"https://wedevs.com/dokan/modules/product-enquiry/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Vacation",url:"https://wedevs.com/dokan/modules/vendor-vacation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Return and Warranty Request",url:"https://wedevs.com/dokan/modules/rma/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Moip",url:"https://wedevs.com/dokan/modules/moip/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Follow Store",url:"https://wedevs.com/dokan/modules/follow-store/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Geolocation",url:"https://wedevs.com/dokan/modules/geolocation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Shipstation",url:"https://wedevs.com/dokan/modules/shipstation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Wholesale",url:"https://wedevs.com/dokan/modules/wholesale/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}}],payment:{thumbnail:dokan.urls.assetsUrl+"/images/premium/payment-options.png",guaranteeThumbnail:dokan.urls.assetsUrl+"/images/premium/gaurantee-thumb.png",viewIcon:dokan.urls.assetsUrl+"/images/premium/view-icon@2x.png",termsPolicyUrl:"https://wedevs.com/refund-policy/"},slickOptions:{slidesToShow:1,fade:!0,speed:500,cssEase:"linear",autoplay:!0,autoplaySpeed:2e3,infinite:!0,accessibility:!0,adaptiveHeight:!1,arrows:!1,dots:!0,draggable:!0,edgeFriction:.3,swipe:!0},testimonials:[{name:"Melissa McGovern",designation:"Director, Hawk And PeddleProjects",pic:dokan.urls.assetsUrl+"/images/premium/melissa.jpg",content:"We're still a new business and are continuing to build our platform. Dokan has halved the time it would take us to build our ecommerce platform by being feature rich and easy to install and configure."},{name:"Morten J. Christensen",designation:"Owner, Dincatering",pic:dokan.urls.assetsUrl+"/images/premium/Morten-J.-Christensen.jpg",content:"First and foremost it enables the possibility for actually creating the kind of marketplace i wanted. The plugin lets me create a local marketplace for local danish catering suppliers to showcase and sell their offers of the season."},{name:"Cédric Lefrancq",designation:"Webmaster, Unwebmaster.Be",pic:dokan.urls.assetsUrl+"/images/premium/cedric-lefrancq.jpeg",content:"The support is very good. The plugin is perfect. Bugs are fixed very quickly. That’s a very good plugin."},{name:"David Gaz",designation:"Founder, The Bureau Of Small Projects",pic:dokan.urls.assetsUrl+"/images/premium/david-gaz.jpeg",content:"It’s hands down an amazing plugin. But their support is even more amazing. They got back to me within hours on the weekend."}],cta:{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.buynowpro}}},methods:{next:function(){this.$refs.slick.next()},prev:function(){this.$refs.slick.prev()},reInit:function(){var e=this;this.$nextTick(function(){e.$refs.slick.reSlick()})}},computed:{buyNowProUrl:function(){return"/"===dokan.urls.buynowpro.substr(-1)?dokan.urls.buynowpro+"?":dokan.urls.buynowpro+"&"}}}},,function(e,t,a){"use strict";var s=dokan_get_lib("Postbox"),n=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:s,Loading:n},data:function(){return{docs:null}},created:function(){this.fetch()},methods:{fetch:function(){var e=this;dokan.api.get("/admin/help").done(function(t){e.docs=t})}}}},function(e,t,a){"use strict";var s=a(126),n=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:n},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[]}},computed:{refreshable_props:function(){var e,t={};for(e in this.settingFields){var a=this.settingFields[e],s=void 0;for(s in a)a[s].refresh_after_save&&(t["".concat(e,".").concat(s)]=!0)}return t}},methods:{changeTab:function(e){this.currentTab=e.id,this.requiredFields=[],"undefined"!=typeof localStorage&&localStorage.setItem("activetab",this.currentTab)},showSectionTitle:function(e){return!_.findWhere(e,{type:"sub_section"})},sectionTitle:function(e){return _.findWhere(this.settingSections,{id:e}).title},fetchSettingValues:function(){var e=this,t={action:"dokan_get_setting_values",nonce:dokan.nonce};e.showLoading=!0,jQuery.post(dokan.ajaxurl,t,function(t){t.success&&(Object.keys(e.settingFields).forEach(function(a,s){Object.keys(e.settingFields[a]).forEach(function(s,n){e.settingValues[a]||(e.settingValues[a]={}),void 0===t.data[a][s]?void 0===e.settingFields[a][s].default?e.settingValues[a][s]="":e.settingValues[a][s]=e.settingFields[a][s].default:e.settingValues[a][s]=t.data[a][s]})}),e.settingValues=jQuery.extend({},e.settingValues),e.showLoading=!1,e.isLoaded=!0)})},showMedia:function(e,t){var a=this,s=wp.media.frames.file_frame=wp.media({title:this.__("Choose your file","dokan-lite"),button:{text:this.__("Select","dokan-lite")},multiple:!1});s.on("select",function(){var t=s.state().get("selection").first().toJSON();a.settingValues[e.sectionId][e.name]=t.url}),s.open()},saveSettings:function(e,t){if(this.formIsValid(t)){var a=this,s={action:"dokan_save_settings",nonce:dokan.nonce,settingsData:e,section:t};a.showLoading=!0,jQuery.post(dokan.ajaxurl,s).done(function(s){var n,i=s.data.settings;for(n in a.isSaved=!0,a.isUpdated=!0,a.message=s.data.message,a.settingValues[i.name]=i.value,e){var o="".concat(t,".").concat(n);if(a.refreshable_props[o]){window.location.reload();break}}}).fail(function(e){var t=e.responseJSON.data.map(function(e){return e.message});alert(t.join(" "))}).always(function(){a.showLoading=!1})}},formIsValid:function(e){var t=this,a=Object.keys(this.settingFields),s=this.requiredFields;return!!a&&(a.forEach(function(a,n){if(e===a){var i=t.settingFields[a];Object.values(i).forEach(function(e){var t=e.fields;t&&Object.values(t).forEach(function(e){e&&e.required&&"yes"===e.required&&!s.includes(e.name)&&s.push(e.name)}),e&&e.required&&"yes"===e.required&&(s.includes(e.name)||s.push(e.name))})}}),this.errors=[],s.forEach(function(e){Object.values(t.settingValues).forEach(function(a){e in a&&a[e].length<1&&(t.errors.includes(e)||(t.errors.push(e),"flat"!==a.commission_type&&"percentage"!==a.commission_type||(t.errors=t.arrayRemove(t.errors,"admin_percentage"),t.errors=t.arrayRemove(t.errors,"additional_fee"))))})}),this.errors.length<1)},arrayRemove:function(e,t){return e.filter(function(e){return e!==t})},toggleLoadingState:function(){this.showLoading=!this.showLoading}},created:function(){this.fetchSettingValues(),this.currentTab="dokan_general","undefined"!=typeof localStorage&&(this.currentTab=localStorage.getItem("activetab")?localStorage.getItem("activetab"):"dokan_general"),this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields}}},function(e,t,a){"use strict";var s=a(128),n=a.n(s),i=a(129),o=a.n(i),r=a(22);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(a,!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c=dokan_get_lib("TextEditor"),u=dokan_get_lib("GoogleMaps"),p=dokan_get_lib("Mapbox"),m=dokan_get_lib("RefreshSettingOptions");t.a={name:"Fields",components:{colorPicker:r.a,TextEditor:c,GoogleMaps:u,Mapbox:p,RefreshSettingOptions:m},props:["id","fieldData","sectionId","fieldValue","allSettingsValues","errors","toggleLoadingState"],data:function(){return{repeatableItem:{},hideMap:!1}},computed:{shoudShow:function(){var e=!0;if(this.fieldData.show_if){var t=this.fieldData.show_if,a=Object.keys(t),s=0;for(s=0;s<a.length;s++){var n=a[s],i=n.split(".").reverse(),r=o()(i,2),l=r[0],d=r[1],c=void 0===d?this.sectionId:d,u=this.allSettingsValues[c][l],p=_.chain(t[n]).pairs().first().value(),m=o()(p,2),v=m[0],f=m[1];switch(v){case"greater_than":u>f||(e=!1);break;case"greater_than_equal":u>=f||(e=!1);break;case"less_than":u<f||(e=!1);break;case"less_than":u<=f||(e=!1);break;case"equal":default:u!=f&&(e=!1)}if(!e)break}}return e},mapApiSource:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.map_api_source},mapLocation:function(){var e=d({},{latitude:23.709921,longitude:90.40714300000002,address:"Dhaka",zoom:10},{},this.fieldValue[this.fieldData.name]);return e={latitude:parseFloat(e.latitude),longitude:parseFloat(e.longitude),address:"".concat(e.address),zoom:parseInt(e.zoom)}},googleMapApiKey:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.gmap_api_key},mapboxAccessToken:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.mapbox_access_token}},beforeMount:function(){"multicheck"!==this.fieldData.type||this.fieldValue[this.fieldData.name]||(this.fieldValue[this.fieldData.name]=this.fieldData.default)},methods:{containCommonFields:function(e){return _.contains([void 0,"text","email","url","phone","time"],e)},addItem:function(e,t){this.fieldValue[t]=this.fieldValue[t]||[],void 0!==this.repeatableItem[t]&&this.repeatableItem[t]&&(this.fieldValue[t].push({id:this.repeatableItem[t].trim().replace(/\s+/g,"_").toLowerCase(),value:this.repeatableItem[t]}),this.repeatableItem[t]="")},removeItem:function(e,t){this.fieldValue[t].splice(e,1)},haveCondition:function(e){return e.hasOwnProperty("condition")},checkConditionLogic:function(e,t){var a=e.condition.logic,s=!1;return _.each(a,function(e,a){_.contains(e,t[a])&&(s=!0)}),s},onHideMap:function(e){this.hideMap=e},onUpdateMap:function(e){this.fieldValue[this.fieldData.name]=d({},this.mapLocation,{},e)},hasError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},getError:function(e){return e+" "+this.__("is required.","dokan-lite")}}}},,,,,,,,,function(e,t,a){"use strict";var s=a(156),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Switches"),o=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:n,Switches:i,Search:o,AddVendor:s.a},data:function(){return{showCb:!0,hasPro:dokan.hasPro,counts:{pending:0,approved:0,all:0},vendorId:0,totalItems:0,perPage:20,totalPages:1,loading:!1,columns:{store_name:{label:this.__("Store","dokan-lite"),sortable:!0},email:{label:this.__("E-mail","dokan-lite")},phone:{label:this.__("Phone","dokan-lite")},registered:{label:this.__("Registered","dokan-lite"),sortable:!0},enabled:{label:this.__("Status","dokan-lite")}},actionColumn:"title",actions:[{key:"edit",label:this.__("Edit","dokan-lite")},{key:"products",label:this.__("Products","dokan-lite")},{key:"orders",label:this.__("Orders","dokan-lite")}],bulkActions:[{key:"approved",label:this.__("Approve Vendors","dokan-lite")},{key:"pending",label:this.__("Disable Selling","dokan-lite")}],vendors:[],loadAddVendor:!1,dokanVendorHeaderArea:dokan.hooks.applyFilters("getDokanVendorHeaderArea",[]),isVendorSwitchingEnabled:!1}},watch:{"$route.query.status":function(){this.fetchVendors()},"$route.query.page":function(){this.fetchVendors()},"$route.query.orderby":function(){this.fetchVendors()},"$route.query.order":function(){this.fetchVendors()}},computed:{currentStatus:function(){return this.$route.query.status||"all"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},sortBy:function(){return this.$route.query.orderby||"registered"},sortOrder:function(){return this.$route.query.order||"desc"},storeCategory:function(){return this.$route.query.store_category||null}},created:function(){var e=this;this.$root.$on("modalClosed",function(){e.loadAddVendor=!1,e.vendorId=0}),this.fetchVendors(),this.$root.$on("vendorAdded",function(t){e.vendors.unshift(t)}),this.$root.$on("addAnotherVendor",function(){e.loadAddVendor=!0}),this.$root.$on("categoryFetched",function(t){e.categories=t.categories,e.isCategoryMultiple=t.isCategoryMultiple,e.columns=t.columns}),this.isVendorSwitchingEnabled=!!dokan.is_vendor_switching_enabled,this.isVendorSwitchingEnabled&&this.actions.push({key:"switch_to",label:this.__("Switch To","dokan-lite")})},methods:{addNew:function(){this.loadAddVendor=!0},doSearch:function(e){var t=this,a=this;a.loading=!0,dokan.api.get("/stores?search=".concat(e),{page:this.currentPage,orderby:this.sortBy,order:this.sortOrder}).done(function(e,s,n){a.vendors=e,a.loading=!1,t.updatedCounts(n),t.updatePagination(n)})},updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Approved")),this.counts.all=parseInt(e.getResponseHeader("X-Status-All"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},fetchVendors:function(){var e=this;e.loading=!0;var t={per_page:e.perPage,page:e.currentPage,status:e.currentStatus,orderby:e.sortBy,order:e.sortOrder,store_category:e.storeCategory};dokan.api.get("/stores",t).done(function(t,a,s){e.vendors=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},onActionClick:function(e,t){"trash"===e&&confirm("Are you sure to delete?")&&alert("deleted: "+t.title)},onSwitch:function(e,t){var a=this,s=!1===e?this.__("The vendor has been disabled.","dokan-lite"):this.__("Selling has been enabled","dokan-lite");dokan.api.put("/stores/"+t+"/status",{status:!1===e?"inactive":"active"}).done(function(e){a.$notify({title:a.__("Success!","dokan-lite"),type:"success",text:s}),"all"!==a.currentStatus&&a.fetchVendors()})},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),goToPage:function(e){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:e}})},onBulkAction:function(e,t){var a=this,s={};s[e]=t,this.loading=!0,dokan.api.put("/stores/batch",s).done(function(e){a.loading=!1,a.fetchVendors()})},sortCallback:function(e,t){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:1,orderby:e,order:t}})},productUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=product&author="+e},ordersUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=shop_order&vendor_id="+e},editUrl:function(e){return dokan.urls.adminRoot+"user-edit.php?user_id="+e},switchToUrl:function(e){return e.switch_url}}}},function(e,t,a){"use strict";var s=a(25),n=a(32),i=a(34),o=dokan_get_lib("Modal"),r=dokan_get_lib("Loading");t.a={name:"AddVendor",props:["vendorId"],components:{Modal:o,Loading:r,VendorAccountFields:s.a,VendorAddressFields:n.a,VendorPaymentFields:i.a},data:function(){return{isLoading:!1,storeId:"",nextBtn:this.__("Next","dokan-lite"),title:this.__("Add New Vendor","dokan-lite"),tabs:{VendorAccountFields:{label:this.__("Account Info","dokan-lite"),name:"VendorAccountFields",icon:"dashicons dashicons-admin-users"},VendorAddressFields:{label:this.__("Address","dokan-lite"),name:"VendorAddressFields",icon:"dashicons dashicons-admin-home"},VendorPaymentFields:{label:this.__("Payment Options","dokan-lite"),name:"VendorPaymentFields",icon:"dashicons dashicons-money"}},currentTab:"VendorAccountFields",store:{store_name:"",user_pass:"",store_url:"",user_login:"",email:"",user_nicename:"",notify_vendor:!0,phone:"",banner:"",banner_id:"",gravatar:"",gravatar_id:"",social:{fb:"",gplus:"",youtube:"",twitter:"",linkedin:"",pinterest:"",instagram:""},payment:{bank:{ac_name:"",ac_number:"",bank_name:"",bank_addr:"",routing_number:"",iban:"",swift:""},paypal:{email:""}},address:{street_1:"",street_2:"",city:"",zip:"",state:"",country:""}},requiredFields:["store_name","user_login","email"],errors:[],storeAvailable:!1,userNameAvailable:!1,emailAvailable:!1,hasPro:dokan.hasPro}},created:function(){var e=this;this.$root.$on("vendorInfoChecked",function(t){e.storeAvailable=t.storeAvailable,e.userNameAvailable=t.userNameAvailable,e.emailAvailable=t.emailAvailable})},methods:{getId:function(){return this.$route.params.id},showAlert:function(e,t,a){this.$swal(e,t,a)},createVendor:function(){var e=this;this.formIsValid()&&("VendorPaymentFields"===this.currentTab&&(this.isLoading=!0,dokan.api.post("/stores/",this.store).done(function(t){e.$root.$emit("vendorAdded",t),e.$swal({type:"success",title:e.__("Vendor Created","dokan-lite"),text:e.__("A vendor has been created successfully!","dokan-lite"),showCloseButton:!0,showCancelButton:!0,confirmButtonText:e.__("Add Another","dokan-lite"),cancelButtonText:e.__("Edit Vendor","dokan-lite"),focusConfirm:!1}).then(function(a){a.value?e.$root.$emit("addAnotherVendor"):a.dismiss===e.$swal.DismissReason.cancel&&(e.hasPro?e.$router.push({path:"vendors/"+t.id,query:{edit:"true"}}):window.location.replace("".concat(dokan.urls.adminRoot,"user-edit.php?user_id=").concat(t.id)))})}).fail(function(t){e.showAlert(e.__(t.responseJSON.message,"dokan-lite"),"","error")}).always(function(){e.$root.$emit("modalClosed")})),this.currentTab="VendorPaymentFields"===this.currentTab?"VendorPaymentFields":this.nextTab(this.tabs,this.currentTab))},nextTab:function(e,t){var a=Object.keys(e),s=a[a.indexOf(t)+1];return s},closeModal:function(){this.$root.$emit("modalClosed")},formIsValid:function(){var e=this,t=this.requiredFields,a=this.store;return this.errors=[],t.forEach(function(t){t in a&&a[t].length<1&&e.errors.push(t)}),!!(this.errors.length<1&&this.storeAvailable&&this.userNameAvailable&&this.emailAvailable)||(this.currentTab="VendorAccountFields",!1)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(98),n=a(101),i=a(160);new(dokan_get_lib("Vue"))({el:"#dokan-vue-admin",router:n.a,render:function(e){return e(s.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"])}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(43),n=a(100),i=!1;var o=function(e){i||a(99)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/App.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"vue-backend-app"}},[t("router-view"),this._v(" "),t("notifications",{attrs:{position:"bottom right"}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(102),n=a.n(s),i=a(103),o=a(109),r=a(112),l=a(121),d=a(124),c=a(154),u=dokan_get_lib("Vue"),p=dokan_get_lib("Router"),m=dokan_get_lib("VersionCompare");u.use(p),dokan_add_route(i.a),dokan_add_route(o.a),dokan_add_route(r.a),dokan_add_route(l.a),dokan_add_route(d.a),dokan.hasPro&&!m(dokan.proVersion,"2.9.14",">")||dokan_add_route(c.a),function e(t){for(var a=0;a<t.length;a++)"object"===n()(t[a].children)?(e(t[a].children),void 0!==t[a].component&&(t[a].component=dokan.routeComponents[t[a].component])):t[a].component=dokan.routeComponents[t[a].component]}(dokan.routes),t.a=new p({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(104)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Dashboard.vue",t.a=r.exports},function(e,t){},,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-dashboard"},[a("h1",[e._v(e._s(e.__("Dashboard","dokan-lite")))]),e._v(" "),a("div",{staticClass:"widgets-wrapper"},[a("div",{staticClass:"left-side"},[a("postbox",{attrs:{title:e.__("At a Glance","dokan-lite"),extraClass:"dokan-status"}},[null!==e.overview?a("div",{staticClass:"dokan-status"},[a("ul",[a("li",{staticClass:"sale"},[a("div",{staticClass:"dashicons dashicons-chart-bar"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.sales.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("net sales this month","dokan-lite"))+" "),a("span",{class:e.overview.sales.class},[e._v(e._s(e.overview.sales.parcent))])])])],1),e._v(" "),a("li",{staticClass:"commission"},[a("div",{staticClass:"dashicons dashicons-chart-pie"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.earning.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("commission earned","dokan-lite"))+" "),a("span",{class:e.overview.earning.class},[e._v(e._s(e.overview.earning.parcent))])])])],1),e._v(" "),a("li",{staticClass:"vendor"},[a("div",{staticClass:"dashicons dashicons-id"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors"}:""}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Vendor","dokan-lite"),e.overview.vendors.this_month)))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("signup this month","dokan-lite"))+" "),a("span",{class:e.overview.vendors.class},[e._v(e._s(e.overview.vendors.parcent))])])])],1),e._v(" "),a("li",{staticClass:"approval"},[a("div",{staticClass:"dashicons dashicons-businessman"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors",query:{status:"pending"}}:""}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Vendor","dokan-lite"),e.overview.vendors.inactive)))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1),e._v(" "),a("li",{staticClass:"product"},[a("div",{staticClass:"dashicons dashicons-cart"}),e._v(" "),a("a",{attrs:{href:"#"}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Products","dokan-lite"),e.overview.products.this_month)))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("created this month","dokan-lite"))+" "),a("span",{class:e.overview.products.class},[e._v(e._s(e.overview.products.parcent))])])])]),e._v(" "),a("li",{staticClass:"withdraw"},[a("div",{staticClass:"dashicons dashicons-money"}),e._v(" "),a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Withdrawals","dokan-lite"),e.overview.withdraw.pending)))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1)])]):a("div",{staticClass:"loading"},[a("loading")],1)]),e._v(" "),a("postbox",{attrs:{title:e.__("Dokan News Updates","dokan-lite")}},[null!==e.feed?a("div",{staticClass:"rss-widget"},[a("ul",e._l(e.feed,function(t){return a("li",[a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_campaign=dokan-news",target:"_blank"}},[e._v(e._s(t.title))])])})),e._v(" "),a("div",{staticClass:"subscribe-box"},[e.subscribe.success?a("div",{staticClass:"thank-you"},[e._v(e._s(e.__("Thank you for subscribing!","dokan-lite")))]):[e.subscribe.loading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),a("h3",[e._v(e._s(e.__("Stay up-to-date","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("We're constantly developing new features, stay up-to-date by subscribing to our newsletter.","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"form-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.subscribe.email,expression:"subscribe.email"}],attrs:{type:"email",required:"",placeholder:"Your Email Address"},domProps:{value:e.subscribe.email},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;e.emailSubscribe()},input:function(t){t.target.composing||e.$set(e.subscribe,"email",t.target.value)}}}),e._v(" "),a("button",{staticClass:"button",on:{click:function(t){e.emailSubscribe()}}},[e._v(e._s(e.__("Subscribe","dokan-lite")))])])]],2)]):a("div",{staticClass:"loading"},[a("loading")],1)])],1),e._v(" "),a("div",{staticClass:"right-side"},[a("postbox",{staticClass:"overview-chart",attrs:{title:e.__("Overview","dokan-lite")}},[null!==e.report?a("chart",{attrs:{data:e.report}}):a("div",{staticClass:"loading"},[a("loading")],1)],1)],1)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(45),n=a(111),i=!1;var o=function(e){i||a(110)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Withdraw.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"withdraw-requests"},[a("h1",[e._v(e._s(e.__("Withdraw Requests","dokan-lite")))]),e._v(" "),e.showModal?a("modal",{attrs:{title:e.__("Update Note","dokan-lite")},on:{close:function(t){e.showModal=!1}}},[a("template",{slot:"body"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editing.note,expression:"editing.note"}],attrs:{rows:"3"},domProps:{value:e.editing.note},on:{input:function(t){t.target.composing||e.$set(e.editing,"note",t.target.value)}}})]),e._v(" "),a("template",{slot:"footer"},[a("button",{staticClass:"button button-primary button-large",on:{click:function(t){e.updateNote()}}},[e._v(e._s(e.__("Update Note","dokan-lite")))])])],2):e._e(),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Pending <span class='count'>(%s)</span>","dokan-lite"),e.counts.pending))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Approved <span class='count'>(%s)</span>","dokan-lite"),e.counts.approved))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Cancelled <span class='count'>(%s)</span>","dokan-lite"),e.counts.cancelled))}})],1)]),e._v(" "),a("list-table",{attrs:{columns:e.columns,rows:e.requests,loading:e.loading,"action-column":e.actionColumn,actions:e.actions,"show-cb":e.showCb,"bulk-actions":e.bulkActions,"not-found":e.notFound,"total-pages":e.totalPages,"total-items":e.totalItems,"per-page":e.perPage,"current-page":e.currentPage},on:{pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction},scopedSlots:e._u([{key:"seller",fn:function(t){return[a("img",{attrs:{src:t.row.user.gravatar,alt:t.row.user.store_name,width:"50"}}),e._v(" "),a("strong",[a("a",{attrs:{href:e.vendorUrl(t.row.user.id)}},[e._v(e._s(t.row.user.store_name?t.row.user.store_name:e.__("(no name)","dokan-lite")))])])]}},{key:"amount",fn:function(e){return[a("currency",{attrs:{amount:e.row.amount}})]}},{key:"status",fn:function(t){return[a("span",{class:t.row.status},[e._v(e._s(e._f("capitalize")(t.row.status)))])]}},{key:"created",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.created).format("MMM D, YYYY"))+"\n ")]}},{key:"method_details",fn:function(t){return[e._v("\n "+e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))+"\n ")]}},{key:"actions",fn:function(t){return["pending"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Approve Request","dokan-lite")},on:{click:function(a){a.preventDefault(),e.changeStatus("approved",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-yes"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:"approved"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Mark as Pending","dokan-lite")},on:{click:function(a){a.preventDefault(),e.changeStatus("pending",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-backup"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(46),n=a(120),i=!1;var o=function(e){i||a(113)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Premium.vue",t.a=r.exports},function(e,t){},,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-pro-features"},[a("div",{staticClass:"header-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/header-feature-thumb@2x.png",alt:e.__("Upgrade to Dokan Pro!","dokan-lite"),title:e.__("Upgrade to Dokan Pro!","dokan-lite")}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h1",[e._v(e._s(e.__("Upgrade to Dokan Pro!","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Seems To Be Convinced, You Need More Out Of Your Marketplace","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"service-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Why Upgrade","dokan-lite")))]),e._v(" "),a("div",{staticClass:"service-list"},e._l(e.services,function(t){return a("div",{staticClass:"service-box"},[a("div",{staticClass:"service-thumb"},[a("img",{attrs:{src:t.thumbnail,alt:t.title,title:t.title}})]),e._v(" "),a("div",{staticClass:"service-detail"},[a("h3",{staticClass:"title"},[e._v(e._s(t.title))])])])})),e._v(" "),a("a",{staticClass:"btn",attrs:{href:"https://wedevs.com/dokan/features/",target:"_blank"}},[e._v("\n "+e._s(e.__("And Many More","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])]),e._v(" "),a("div",{staticClass:"comparison-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Comparison With Dokan PRO","dokan-lite")))]),e._v(" "),a("div",{staticClass:"comparison-area"},[a("div",{staticClass:"compare-box dokan-lite"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-lite-logo@2x.png",alt:"Dokan Lite"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.lite},["available"===t.compare.lite?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}))]),e._v(" "),a("div",{staticClass:"compare-box dokan-pro"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-pro-logo@2x.png",alt:"Dokan Pro"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.pro},["available"===t.compare.pro?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}))])])]),e._v(" "),a("div",{staticClass:"pricing-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("The Packages We Provide","dokan-lite")))]),e._v(" "),a("div",{staticClass:"pricing-wrapper"},[e._m(0),e._v(" "),e._l(e.modules,function(t){return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"},[a("a",{staticClass:"module-name",attrs:{href:t.url,target:"_blank"}},[e._v(e._s(t.title))])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.starter.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.starter.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.starter.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col popular"},["numeric"===t.professional.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.professional.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.professional.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.business.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.business.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.business.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.enterprise.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.enterprise.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.enterprise.value,alt:""}})])])])}),e._v(" "),a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn starter",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15316&attribute_pa_license=starter",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("a",{staticClass:"buy-btn professional",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15314&attribute_pa_license=professional",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn business",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15315&attribute_pa_license=business",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn enterprise",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=103829&attribute_pa_license=enterprise",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])])])],2)]),e._v(" "),a("div",{staticClass:"payment-section"},[a("div",{staticClass:"guarantee-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.payment.guaranteeThumbnail,alt:"Dokan"}})]),e._v(" "),a("div",{staticClass:"guarantee-detail"},[a("h2",[e._v(e._s(e.__("14 Days Money Back Guarantee","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("After successful purchase, you will be eligible for conditional refund","dokan-lite")))]),e._v(" "),a("a",{attrs:{href:e.payment.termsPolicyUrl,target:"_blank"}},[a("img",{attrs:{src:e.payment.viewIcon,alt:"Dokan"}}),e._v(" "+e._s(e.__("Terms & Condition Applied","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"payment-area"},[a("h3",[e._v(e._s(e.__("Payment Options:","dokan-lite")))]),e._v(" "),a("div",{staticClass:"option"},[a("img",{attrs:{src:e.payment.thumbnail,alt:"Credit Card"}})])])]),e._v(" "),a("div",{staticClass:"testimonial-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("People We Have Helped","dokan-lite")))]),e._v(" "),a("div",{staticClass:"testimonial-wrapper"},[a("slick",{ref:"slick",attrs:{options:e.slickOptions}},e._l(e.testimonials,function(t){return a("div",{staticClass:"testimonial-box"},[a("div",{staticClass:"profile-pic"},[a("img",{attrs:{src:t.pic,alt:""}})]),e._v(" "),a("div",{staticClass:"content-detail",style:{"background-image":"url("+e.asstesUrl+"/images/premium/quote-icon.png)"}},[a("h4",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(t.designation))]),e._v(" "),a("p",[e._v(e._s(t.content))])])])}))],1),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.sprintf("%s <a href='%s' target='_blank'>%s</a> %s",e.__("We are proud to say the official","dokan-lite"),"https://themes.getbootstrap.com/","Bootstrap theme marketplace",e.__("is built using Dokan","dokan-lite")))}})]),e._v(" "),a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.cta.styles.bgPattern+"), linear-gradient( 45deg, rgb(255,125,144) 33%, rgb(255,173,111) 100%)"}},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.cta.thumbnail,alt:"Dokan Lite"}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h2",[e._v(e._s(e.__("Convinced?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("With all the advance features you get it’s hard to resist buying Dokan Pro.","dokan-lite")))]),e._v(" "),a("a",{staticClass:"btn",attrs:{href:e.cta.url}},[e._v("\n "+e._s(e.__("I Want To Buy Now","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])])])])};s._withStripped=!0;var n={render:s,staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name starter"},[e._v("Starter")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("149")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("div",{staticClass:"plan-name professional"},[e._v("Professional")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("249")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name business"},[e._v("Business")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("499")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name enterprise"},[e._v("Enterprise")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("999")]),e._v(" "),a("span",[e._v("/year")])])])])}]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(123),i=!1;var o=function(e){i||a(122)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Help.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-help-page"},[a("h1",[e._v(e._s(e.__("Help","dokan-lite")))]),e._v(" "),null!==e.docs?a("div",{staticClass:"section-wrapper"},e._l(e.docs,function(t,s){return a("postbox",{key:s,attrs:{title:t.title}},[a("ul",e._l(t.questions,function(t){return a("li",[a("span",{staticClass:"dashicons dashicons-media-text"}),e._v(" "),a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_medium=dokan-help-page",target:"_blank"}},[e._v(e._s(t.title))])])}))])})):a("div",{staticClass:"loading"},[a("loading")],1)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(49),n=a(153),i=!1;var o=function(e){i||a(125)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Settings.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(50),n=a(152),i=!1;var o=function(e){i||a(127)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Fields.vue",t.a=r.exports},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.shoudShow?a("tr",{class:[e.id,"dokan-settings-field-type-"+e.fieldData.type]},["sub_section"===e.fieldData.type?[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.fieldData.label))])])]:e._e(),e._v(" "),e.containCommonFields(e.fieldData.type)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",["checkbox"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:"checkbox"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e.fieldValue[e.fieldData.name]},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=!!s.checked;if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&(e.fieldValue[e.fieldData.name]=a.concat([null])):i>-1&&(e.fieldValue[e.fieldData.name]=a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.fieldValue,e.fieldData.name,n)}}}):"radio"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:"radio"},domProps:{checked:e._q(e.fieldValue[e.fieldData.name],null)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,null)}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:e.fieldData.type||"text"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"number"===e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"number",min:e.fieldData.min,max:e.fieldData.max,step:e.fieldData.step,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"price"==e.fieldData.type&&e.allSettingsValues.dokan_selling&&"combine"!==e.allSettingsValues.dokan_selling.commission_type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:{wc_input_decimal:"percentage"==e.allSettingsValues.dokan_selling.commission_type,wc_input_price:"flat"==e.allSettingsValues.dokan_selling.commission_type},attrs:{type:"text",min:e.fieldData.min,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"combine"==e.fieldData.type&&e.haveCondition(e.fieldData)&&"show"==e.fieldData.condition.type&&e.checkConditionLogic(e.fieldData,e.fieldValue)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"percent_fee"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.percent_fee.name],expression:"fieldValue[fieldData.fields.percent_fee.name]"}],staticClass:"wc_input_decimal regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][percent_fee]",name:e.sectionId+"["+e.fieldData.fields.percent_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.percent_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.percent_fee.name,t.target.value)}}}),e._v("\n "+e._s("%")+"\n ")]),e._v(" "),a("td",{staticClass:"fixed_fee"},[e._v("\n "+e._s("+")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.fixed_fee.name],expression:"fieldValue[fieldData.fields.fixed_fee.name]"}],staticClass:"wc_input_price regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][fixed_fee]",name:e.sectionId+"["+e.fieldData.fields.fixed_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.fixed_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.fixed_fee.name,t.target.value)}}})]),e._v(" "),e.hasError(e.fieldData.fields.percent_fee.name)&&e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.__("Both percentage and fixed fee is required.","dokan-lite"))+"\n ")]):e.hasError(e.fieldData.fields.percent_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.percent_fee.label))+"\n ")]):e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.fixed_fee.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})]:e._e(),e._v(" "),"textarea"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"textarea",rows:e.fieldData.rows,cols:e.fieldData.cols,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"checkbox"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]","true-value":"on","false-value":"off"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e._q(e.fieldValue[e.fieldData.name],"on")},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=s.checked?"on":"off";if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&(e.fieldValue[e.fieldData.name]=a.concat([null])):i>-1&&(e.fieldValue[e.fieldData.name]=a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.fieldValue,e.fieldData.name,n)}}}),e._v("\n "+e._s(e.fieldData.desc)+"\n ")])])])]:e._e(),e._v(" "),"multicheck"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[e._l(e.fieldData.options,function(t,s){return[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]["+s+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name][s],expression:"fieldValue[fieldData.name][optionKey]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]["+s+"]",name:e.sectionId+"["+e.fieldData.name+"]["+s+"]","true-value":s,"false-value":""},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name][s])?e._i(e.fieldValue[e.fieldData.name][s],null)>-1:e._q(e.fieldValue[e.fieldData.name][s],s)},on:{change:function(t){var a=e.fieldValue[e.fieldData.name][s],n=t.target,i=n.checked?s:"";if(Array.isArray(a)){var o=e._i(a,null);n.checked?o<0&&(e.fieldValue[e.fieldData.name][s]=a.concat([null])):o>-1&&(e.fieldValue[e.fieldData.name][s]=a.slice(0,o).concat(a.slice(o+1)))}else e.$set(e.fieldValue[e.fieldData.name],s,i)}}}),e._v("\n "+e._s(t)+"\n ")]),e._v(" "),a("br")]})],2)])]:e._e(),e._v(" "),"select"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.fieldData.grouped?a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t){return a("optgroup",{attrs:{label:t.group_label}},e._l(t.group_values,function(t){return a("option",{domProps:{value:t.value,innerHTML:e._s(t.label)}})}))})],2):a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t,s){return a("option",{domProps:{value:s,innerHTML:e._s(t)}})})],2),e._v(" "),e.fieldData.refresh_options?a("RefreshSettingOptions",{attrs:{section:e.sectionId,field:e.fieldData,"toggle-loading-state":e.toggleLoadingState}}):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"file"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text wpsa-url",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),a("input",{staticClass:"button wpsa-browse",attrs:{type:"button",value:"Choose File"},on:{click:function(t){t.preventDefault(),e.$emit("openMedia",{sectionId:e.sectionId,name:e.fieldData.name},t)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"color"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("color-picker",{model:{value:e.fieldValue[e.fieldData.name],callback:function(t){e.$set(e.fieldValue,e.fieldData.name,t)},expression:"fieldValue[fieldData.name]"}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"html"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"dokan-settings-field-type-radio"},[a("fieldset",[e._l(e.fieldData.options,function(t,s){return[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]["+s+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",id:e.sectionId+"["+e.fieldData.name+"]["+s+"]",name:s},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "+e._s(t)+"\n ")])]})],2),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"wpeditor"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{attrs:{width:"72%"}},[a("text-editor",{model:{value:e.fieldValue[e.fieldData.name],callback:function(t){e.$set(e.fieldValue,e.fieldData.name,t)},expression:"fieldValue[fieldData.name]"}}),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"repeatable"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{attrs:{width:"72%"}},[a("ul",{staticClass:"dokan-settings-repeatable-list"},e._l(e.fieldValue[e.fieldData.name],function(t,s){return e.fieldValue[e.fieldData.name]?a("li",[e._v("\n "+e._s(t.value)+" "),a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){t.preventDefault(),e.removeItem(s,e.fieldData.name)}}})]):e._e()})),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.repeatableItem[e.fieldData.name],expression:"repeatableItem[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"text"},domProps:{value:e.repeatableItem[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.repeatableItem,e.fieldData.name,t.target.value)}}}),e._v(" "),a("a",{staticClass:"button dokan-repetable-add-item-btn",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.addItem(e.fieldData.type,e.fieldData.name)}}},[e._v("+")]),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio_image"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("div",{staticClass:"radio-image-container"},[e._l(e.fieldData.options,function(t,s){return[a("label",{staticClass:"radio-image",class:{active:e.fieldValue[e.fieldData.name]===s,"not-active":e.fieldValue[e.fieldData.name]!==s}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",name:e.fieldData.name},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "),a("span",{staticClass:"current-option-indicator"},[a("span",{staticClass:"dashicons dashicons-yes"}),e._v(" "+e._s(e.__("Active","dokan-lite")))]),e._v(" "),a("img",{attrs:{src:t}}),e._v(" "),a("span",{staticClass:"active-option"},[a("button",{staticClass:"button button-primary button-hero",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.fieldValue[e.fieldData.name]=s}}},[e._v("\n "+e._s(e.__("Select","dokan-lite"))+"\n ")])])])]})],2)])]:e._e(),e._v(" "),"gmap"!=e.fieldData.type||e.hideMap?e._e():[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{attrs:{type:"hidden",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.mapLocation}}),e._v(" "),"mapbox"===e.mapApiSource?a("Mapbox",{attrs:{accessToken:e.mapboxAccessToken,location:e.mapLocation,width:"100%",height:"300px"},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}):a("GoogleMaps",{attrs:{apiKey:e.googleMapApiKey,location:e.mapLocation},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]],2):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-settings"},[a("h2",{staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.__("Settings","dokan-lite")))]),e._v(" "),e.isSaved?a("div",{staticClass:"settings-error notice is-dismissible",class:{updated:e.isUpdated,error:!e.isUpdated},attrs:{id:"setting-message_updated"}},[a("p",[a("strong",{domProps:{innerHTML:e._s(e.message)}})]),e._v(" "),a("button",{staticClass:"notice-dismiss",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.isSaved=!1}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Dismiss this notice.","dokan-lite")))])])]):e._e(),e._v(" "),a("div",{staticClass:"dokan-settings-wrap"},[a("h2",{staticClass:"nav-tab-wrapper"},[e._l(e.settingSections,function(t){return[a("a",{class:["nav-tab",e.currentTab===t.id?"nav-tab-active":""],attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.changeTab(t)}}},[a("span",{staticClass:"dashicons",class:t.icon}),e._v(" "+e._s(t.title)+"\n ")])]})],2),e._v(" "),a("div",{staticClass:"metabox-holder"},[e._l(e.settingFields,function(t,s){return e.isLoaded?[e.currentTab===s?a("div",{staticClass:"group",attrs:{id:s}},[a("form",{attrs:{method:"post",action:"options.php"}},[a("input",{attrs:{type:"hidden",name:"option_page"},domProps:{value:s}}),e._v(" "),a("input",{attrs:{type:"hidden",name:"action",value:"update"}}),e._v(" "),a("table",{staticClass:"form-table"},[e.showSectionTitle(t)?a("thead",[a("tr",{staticClass:"dokan-settings-field-type-sub_section"},[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.sectionTitle(s)))])])])]):e._e(),e._v(" "),a("tbody",e._l(t,function(t,n){return a("Fields",{key:n,attrs:{"section-id":s,id:n,"field-data":t,"field-value":e.settingValues[s],"all-settings-values":e.settingValues,errors:e.errors,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}))]),e._v(" "),a("p",{staticClass:"submit"},[a("input",{staticClass:"button button-primary",attrs:{type:"submit",name:"submit",id:"submit",value:"Save Changes"},on:{click:function(t){t.preventDefault(),e.saveSettings(e.settingValues[s],s)}}})])])]):e._e()]:e._e()})],2),e._v(" "),e.showLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e()])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(59),n=a(159),i=!1;var o=function(e){i||a(155)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/vendors.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(60),n=a(158),i=!1;var o=function(e){i||a(157)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/AddVendor.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-vendor-edit"},[a("modal",{attrs:{title:e.title,width:"800px"},on:{close:e.closeModal}},[a("div",{attrs:{slot:"body"},slot:"body"},[a("div",{staticClass:"tab-header"},[a("ul",{staticClass:"tab-list"},e._l(e.tabs,function(t,s){return a("li",{key:s,class:{"tab-title":!0,active:e.currentTab===t.name,last:"VendorPaymentFields"===t.name}},[a("div",{staticClass:"tab-link"},[a("a",{class:{first:"VendorAccountFields"===t.name},attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.currentTab=t.name}}},[a("span",{class:[t.icon]}),e._v("\n "+e._s(t.label)+"\n ")])])])}))]),e._v(" "),e.currentTab?a("div",{staticClass:"tab-contents"},[e.isLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),e.isLoading?e._e():a("transition",{attrs:{name:"component-fade",mode:"out-in"}},[a(e.currentTab,{tag:"component",attrs:{vendorInfo:e.store,errors:e.errors}})],1)],1):e._e()]),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("button",{staticClass:"button button-primary button-hero",on:{click:e.createVendor}},[e._v(e._s("VendorPaymentFields"===e.currentTab?e.__("Create Vendor","dokan-lite"):this.nextBtn))])])])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vendor-list"},[a("h1",{staticClass:"wp-heading-inline"},[e._v(e._s(e.__("Vendors","dokan-lite")))]),e._v(" "),a("button",{staticClass:"page-title-action",on:{click:function(t){e.addNew()}}},[e._v(e._s(e.__("Add New","dokan-lite")))]),e._v(" "),e._l(e.dokanVendorHeaderArea,function(e,t){return a(e,{key:t,tag:"component"})}),e._v(" "),a("hr",{staticClass:"wp-header-end"}),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"all"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("All <span class='count'>(%s)</span>","dokan-lite"),e.counts.all))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Approved <span class='count'>(%s)</span>","dokan-lite"),e.counts.approved))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Pending <span class='count'>(%s)</span>","dokan-lite"),e.counts.pending))}})],1)]),e._v(" "),a("search",{attrs:{title:"Search Vendors"},on:{searched:e.doSearch}}),e._v(" "),a("list-table",{attrs:{columns:e.columns,loading:e.loading,rows:e.vendors,actions:e.actions,actionColumn:"store_name","show-cb":e.showCb,"total-items":e.totalItems,"bulk-actions":e.bulkActions,"total-pages":e.totalPages,"per-page":e.perPage,"current-page":e.currentPage,"action-column":e.actionColumn,"not-found":"No vendors found.","sort-by":e.sortBy,"sort-order":e.sortOrder},on:{sort:e.sortCallback,pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction,searched:e.doSearch},scopedSlots:e._u([{key:"store_name",fn:function(t){return[a("img",{attrs:{src:t.row.gravatar,alt:t.row.store_name,width:"50"}}),e._v(" "),a("strong",[e.hasPro?a("router-link",{attrs:{to:"/vendors/"+t.row.id}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))])],1)]}},{key:"email",fn:function(t){return[a("a",{attrs:{href:"mailto:"+t.row.email}},[e._v(e._s(t.row.email))])]}},{key:"categories",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.categories.map(function(e){return e.name}).join(", "))+"\n ")]}},{key:"registered",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.registered).format("MMM D, YYYY"))+"\n ")]}},{key:"enabled",fn:function(t){return[a("switches",{attrs:{enabled:t.row.enabled,value:t.row.id},on:{input:e.onSwitch}})]}},{key:"row-actions",fn:function(t){return e._l(e.actions,function(s,n){return a("span",{class:s.key},[e.hasPro&&"edit"==s.key?a("router-link",{attrs:{to:{path:"vendors/"+t.row.id,query:{edit:"true"}}}},[e._v(e._s(s.label))]):e.hasPro||"edit"!=s.key?"products"==s.key?a("a",{attrs:{href:e.productUrl(t.row.id)}},[e._v(e._s(s.label))]):"orders"==s.key?a("a",{attrs:{href:e.ordersUrl(t.row.id)}},[e._v(e._s(s.label))]):"switch_to"==s.key?a("a",{attrs:{href:e.switchToUrl(t.row)}},[e._v(e._s(s.label))]):a("a",{attrs:{href:"#"}},[e._v(e._s(s.label))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(s.label))]),e._v(" "),n!==e.actions.length-1?[e._v(" | ")]:e._e()],2)})}}])}),e._v(" "),e.loadAddVendor?a("add-vendor",{attrs:{"vendor-id":e.vendorId}}):e._e()],2)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";t.a=function(e){var t=jQuery,a=t("#toplevel_page_"+e),s=window.location.href,n=s.substr(s.indexOf("admin.php"));a.on("click","a",function(){var e=t(this);t("ul.wp-submenu li",a).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",a).addClass("current"):e.parents("li").addClass("current")}),t("ul.wp-submenu a",a).each(function(e,a){t(a).attr("href")!==n||t(a).parent().addClass("current")})}}],[97]);
|
1 |
+
dokanWebpack([1],[,,,function(e,t,a){"use strict";var s=a(9),n=a(27),i=!1;var o=function(e){i||a(26)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,function(e,t,a){"use strict";var s=a(14);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",s=t.datasets[e.datasetIndex].tooltipLabel||"",n=t.datasets[e.datasetIndex].tooltipPrefix||"",i=s?s+": ":a+": ";return i+=n+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},function(e,t,a){"use strict";var s=a(51);t.a={components:{Sketch:s.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var s=a(2),n=(a.n(s),a(3)),i=a(16),o=a(17);t.a={name:"VendorAccountFields",components:{Switches:n.a,UploadImage:i.a,PasswordGenerator:o.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-"),this.vendorInfo.user_nicename=e.split(" ").join("-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(s.debounce)(this.checkStore,this.delay),this.checkUsername=Object(s.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(s.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},s={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,s,n,i){return(!0!==e||!0!==t)&&((!0!==e||s!==i)&&((!0!==t||a!==n)&&((a!==n||s!==i)&&!(n<=a))))}},n=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:s})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=n,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,s,n,i,o,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);o=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,o,i)),(s=o)/(n=i)>(a=l/d)?l=(d=n)*a:d=(l=s)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var s=a(4);a.n(s);t.a={name:"VendorAddressFields",components:{Multiselect:s.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],s=a&&a[e];return void 0!==s?s:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var s in a)if(s===e&&!(a[s]&&a[s].length<1))for(var n in a[s])t.push({name:a[s][n],code:n});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var s=a(3),n=a(4);a.n(n);t.a={name:"VendorPaymentFields",components:{Switches:s.a,Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,s=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=s}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t){e.exports=jQuery},function(e,t,a){"use strict";var s=a(10),n=a(29),i=!1;var o=function(e){i||a(28)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(11),n=a(30),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var s=a(6),n=a(0)(s.a,null,!1,null,null,null);n.options.__file="src/admin/components/Chart.vue",t.a=n.exports},,function(e,t,a){"use strict";var s=a(7),n=a(24),i=!1;var o=function(e){i||a(23)},r=a(0)(s.a,n.a,!1,o,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(8),n=a(31),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){t.preventDefault(),e.generatePassword(t)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){t.preventDefault(),e.regenratePassword(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(12),n=a(33),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=i.exports},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(13),n=a(36),i=!1;var o=function(e){i||a(35)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,,,function(e,t,a){"use strict";t.a={name:"App"}},function(e,t,a){"use strict";var s=a(20),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading"),o=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:n,Loading:i,Chart:s.a,Currency:o},data:function(){return{overview:null,feed:null,report:null,subscribe:{success:!1,loading:!1,email:""},hasPro:!!dokan.hasPro}},created:function(){this.fetchOverview(),this.fetchFeed(),this.fetchReport()},methods:{fetchOverview:function(){var e=this;dokan.api.get("/admin/report/summary").done(function(t){e.overview=t})},fetchFeed:function(){var e=this;dokan.api.get("/admin/dashboard/feed").done(function(t){e.feed=t})},fetchReport:function(){var e=this;dokan.api.get("/admin/report/overview").done(function(t){e.report=t})},validEmail:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},emailSubscribe:function(){var e=this;this.validEmail(this.subscribe.email)&&(this.subscribe.loading=!0,jQuery.ajax({url:"https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?",data:{EMAIL:this.subscribe.email,"group[3555][8]":"1"},type:"GET",dataType:"json",cache:!1,contentType:"application/json; charset=utf-8"}).always(function(t){e.subscribe.success=!0,e.subscribe.loading=!1}))}}}},function(e,t,a){"use strict";var s=dokan_get_lib("ListTable"),n=dokan_get_lib("Modal"),i=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:s,Modal:n,Currency:i},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,counts:{pending:0,approved:0,cancelled:0},notFound:this.__("No requests found.","dokan-lite"),massPayment:this.__("Paypal Mass Payment File is Generated.","dokan-lite"),showCb:!0,loading:!1,columns:{seller:{label:this.__("Vendor","dokan-lite")},amount:{label:this.__("Amount","dokan-lite")},status:{label:this.__("Status","dokan-lite")},method_title:{label:this.__("Method","dokan-lite")},method_details:{label:this.__("Details","dokan-lite")},note:{label:this.__("Note","dokan-lite")},created:{label:this.__("Date","dokan-lite")},actions:{label:this.__("Actions","dokan-lite")}},requests:[],actionColumn:"seller"}},watch:{"$route.query.status":function(){this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()}},computed:{currentStatus:function(){return this.$route.query.status||"pending"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},actions:function(){return"pending"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"cancel",label:this.__("Cancel","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"pending",label:this.__("Pending","dokan-lite")}]:[]},bulkActions:function(){return"pending"==this.currentStatus?[{key:"approved",label:this.__("Approve","dokan-lite")},{key:"cancelled",label:this.__("Cancel","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"pending",label:this.__("Pending","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:[{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]}},created:function(){this.fetchRequests()},methods:{updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Completed")),this.counts.cancelled=parseInt(e.getResponseHeader("X-Status-Cancelled"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},vendorUrl:function(e){return"1"===window.dokan.hasPro?dokan.urls.adminRoot+"admin.php?page=dokan#/vendors/"+e:dokan.urls.adminRoot+"user-edit.php?user_id="+e},fetchRequests:function(){var e=this;this.loading=!0,dokan.api.get("/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus).done(function(t,a,s){e.requests=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},goToPage:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,page:e}})},updateItem:function(e,t){var a=this.requests.findIndex(function(t){return t.id==e});this.$set(this.requests,a,t)},changeStatus:function(e,t){var a=this;this.loading=!0,dokan.api.put("/withdraw/"+t,{status:e}).done(function(e){a.loading=!1,a.fetchRequests()})},onActionClick:function(e,t){var a=this;"cancel"===e&&this.changeStatus("cancelled",t.id),"pending"===e&&this.changeStatus("pending",t.id),"trash"===e&&confirm(this.__("Are you sure?","dokan-lite"))&&(this.loading=!0,dokan.api.delete("/withdraw/"+t.id).done(function(e){a.loading=!1,a.fetchRequests()}))},getPaymentDetails:function(e,t){var a="—";return void 0!==t[e]&&("paypal"===e||"skrill"===e?a=t[e].email||"":"bank"===e&&(t.bank.hasOwnProperty("ac_name")&&(a=this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)),t.bank.hasOwnProperty("ac_number")&&(a+=this.sprintf(this.__(", Account Number: %s","dokan-lite"),t.bank.ac_number)),t.bank.hasOwnProperty("bank_name")&&(a+=this.sprintf(this.__(", Bank Name: %s","dokan-lite"),t.bank.bank_name)),t.bank.hasOwnProperty("routing_number")&&(a+=this.sprintf(this.__(", Routing Number: %s","dokan-lite"),t.bank.routing_number)))),dokan.hooks.applyFilters("dokan_get_payment_details",a,e,t)},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),onBulkAction:function(e,t){var a=this,s=this;if(_.contains(["delete","approved","cancelled","pending"],e)){var n={};n[e]=t,this.loading=!0,dokan.api.put("/withdraw/batch",n).done(function(e){a.loading=!1,a.fetchRequests()})}if("paypal"===e){var i=t.join(",");jQuery.post(ajaxurl,{dokan_withdraw_bulk:"paypal",id:i,action:"withdraw_ajax_submission",nonce:dokan.nonce},function(e,t,a){if("html/csv"===a.getResponseHeader("Content-type")){var n="",i=a.getResponseHeader("Content-Disposition");if(i&&-1!==i.indexOf("attachment")){var o=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i);null!=o&&o[1]&&(n=o[1].replace(/['"]/g,""))}var r=a.getResponseHeader("Content-Type"),l="function"==typeof File?new File([e],n,{type:r}):new Blob([e],{type:r});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(l,n);else{var d=window.URL||window.webkitURL,c=d.createObjectURL(l);if(n){var u=document.createElement("a");void 0===u.download?window.location=c:(u.href=c,u.download=n,document.body.appendChild(u),u.click())}else window.location=c;setTimeout(function(){d.revokeObjectURL(c)},100)}}e&&alert(s.massPayment)})}},openNoteModal:function(e,t){this.showModal=!0,this.editing={id:t,note:e}},updateNote:function(){var e=this;this.showModal=!1,this.loading=!0,dokan.api.put("/withdraw/"+this.editing.id,{note:this.editing.note}).done(function(t){e.loading=!1,e.updateItem(e.editing.id,t),e.editing={id:null,note:null}})}}}},function(e,t,a){"use strict";var s=a(114),n=(a.n(s),a(117));t.a={name:"Premium",components:{Slick:n.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,services:[{title:this.__("Premium modules to make everything easier & better","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-01@2x.png"},{title:this.__("Frontend dashboard for vendors with advanced controls","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-02@2x.png"},{title:this.__("Unlimited Product Variations and group product upload","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-03@2x.png"},{title:this.__("Zone wise shipping with multiple method for vendors","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-04@2x.png"},{title:this.__("Store support based on ticket system for your customers","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-05@2x.png"},{title:this.__("Vendors will be able to generate coupon codes","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-06@2x.png"},{title:this.__("Earning, Selling and Commission Reports & Statement","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-07@2x.png"},{title:this.__("24/7 super fast premium customer support for you","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-08@2x.png"},{title:this.__("Add Social profile to your vendor’s store and support for store SEO","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-09@2x.png"}],comparisons:[{title:this.__("Frontend order management","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Seller Statement Reports","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Making Announcements","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Customized Product Categories","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store SEO","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Back Ordering System","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store Contact Form","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Single Product Multiple Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Seller Verification","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Featured Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Multiple Commission Types","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Frontend Shipping Tracking","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Setup Wizard","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Google Maps","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Manage reviews","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Bookable Product","dokan-lite"),compare:{lite:"unavailable",pro:"available"}}],modules:[{title:"Domain",url:"https://wedevs.com/dokan/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"03"},business:{type:"numeric",value:"05"},enterprise:{type:"numeric",value:"20"}},{title:"Modules",url:"https://wedevs.com/dokan/modules/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"08"},business:{type:"numeric",value:"14"},enterprise:{type:"numeric",value:"14"}},{title:"Color Scheme",url:"https://wedevs.com/dokan/modules/color-scheme-customizer/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Review",url:"https://wedevs.com/dokan/modules/dokan-vendor-review/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Store Support",url:"https://wedevs.com/dokan/modules/store-support/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Auction",url:"https://wedevs.com/dokan/modules/dokan-simple-auctions/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Ajax Live Search",url:"https://wedevs.com/dokan/modules/ajax-live-search/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Stripe Connect",url:"https://wedevs.com/dokan/modules/stripe-connect/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Subscriptions",url:"https://wedevs.com/dokan/modules/subscription/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Single Product Multivendor",url:"https://wedevs.com/dokan/modules/single-product-multivendor/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Seller Verification",url:"https://wedevs.com/dokan/modules/seller-verification/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"WC Booking Integration",url:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Staff Manager",url:"https://wedevs.com/dokan/modules/vendor-staff-manager/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Export Import",url:"https://wedevs.com/dokan/modules/export-import/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Product Enquiry",url:"https://wedevs.com/dokan/modules/product-enquiry/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Vacation",url:"https://wedevs.com/dokan/modules/vendor-vacation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Return and Warranty Request",url:"https://wedevs.com/dokan/modules/rma/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Moip",url:"https://wedevs.com/dokan/modules/moip/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Follow Store",url:"https://wedevs.com/dokan/modules/follow-store/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Geolocation",url:"https://wedevs.com/dokan/modules/geolocation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Shipstation",url:"https://wedevs.com/dokan/modules/shipstation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Wholesale",url:"https://wedevs.com/dokan/modules/wholesale/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}}],payment:{thumbnail:dokan.urls.assetsUrl+"/images/premium/payment-options.png",guaranteeThumbnail:dokan.urls.assetsUrl+"/images/premium/gaurantee-thumb.png",viewIcon:dokan.urls.assetsUrl+"/images/premium/view-icon@2x.png",termsPolicyUrl:"https://wedevs.com/refund-policy/"},slickOptions:{slidesToShow:1,fade:!0,speed:500,cssEase:"linear",autoplay:!0,autoplaySpeed:2e3,infinite:!0,accessibility:!0,adaptiveHeight:!1,arrows:!1,dots:!0,draggable:!0,edgeFriction:.3,swipe:!0},testimonials:[{name:"Melissa McGovern",designation:"Director, Hawk And PeddleProjects",pic:dokan.urls.assetsUrl+"/images/premium/melissa.jpg",content:"We're still a new business and are continuing to build our platform. Dokan has halved the time it would take us to build our ecommerce platform by being feature rich and easy to install and configure."},{name:"Morten J. Christensen",designation:"Owner, Dincatering",pic:dokan.urls.assetsUrl+"/images/premium/Morten-J.-Christensen.jpg",content:"First and foremost it enables the possibility for actually creating the kind of marketplace i wanted. The plugin lets me create a local marketplace for local danish catering suppliers to showcase and sell their offers of the season."},{name:"Cédric Lefrancq",designation:"Webmaster, Unwebmaster.Be",pic:dokan.urls.assetsUrl+"/images/premium/cedric-lefrancq.jpeg",content:"The support is very good. The plugin is perfect. Bugs are fixed very quickly. That’s a very good plugin."},{name:"David Gaz",designation:"Founder, The Bureau Of Small Projects",pic:dokan.urls.assetsUrl+"/images/premium/david-gaz.jpeg",content:"It’s hands down an amazing plugin. But their support is even more amazing. They got back to me within hours on the weekend."}],cta:{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.buynowpro}}},methods:{next:function(){this.$refs.slick.next()},prev:function(){this.$refs.slick.prev()},reInit:function(){var e=this;this.$nextTick(function(){e.$refs.slick.reSlick()})}},computed:{buyNowProUrl:function(){return"/"===dokan.urls.buynowpro.substr(-1)?dokan.urls.buynowpro+"?":dokan.urls.buynowpro+"&"}}}},,function(e,t,a){"use strict";var s=dokan_get_lib("Postbox"),n=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:s,Loading:n},data:function(){return{docs:null}},created:function(){this.fetch()},methods:{fetch:function(){var e=this;dokan.api.get("/admin/help").done(function(t){e.docs=t})}}}},function(e,t,a){"use strict";var s=a(126),n=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:n},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[]}},computed:{refreshable_props:function(){var e,t={};for(e in this.settingFields){var a=this.settingFields[e],s=void 0;for(s in a)a[s].refresh_after_save&&(t["".concat(e,".").concat(s)]=!0)}return t}},methods:{changeTab:function(e){this.currentTab=e.id,this.requiredFields=[],"undefined"!=typeof localStorage&&localStorage.setItem("activetab",this.currentTab)},showSectionTitle:function(e){return!_.findWhere(e,{type:"sub_section"})},sectionTitle:function(e){return _.findWhere(this.settingSections,{id:e}).title},fetchSettingValues:function(){var e=this,t={action:"dokan_get_setting_values",nonce:dokan.nonce};e.showLoading=!0,jQuery.post(dokan.ajaxurl,t,function(t){t.success&&(Object.keys(e.settingFields).forEach(function(a,s){Object.keys(e.settingFields[a]).forEach(function(s,n){e.settingValues[a]||(e.settingValues[a]={}),void 0===t.data[a][s]?void 0===e.settingFields[a][s].default?e.settingValues[a][s]="":e.settingValues[a][s]=e.settingFields[a][s].default:e.settingValues[a][s]=t.data[a][s]})}),e.settingValues=jQuery.extend({},e.settingValues),e.showLoading=!1,e.isLoaded=!0)})},showMedia:function(e,t){var a=this,s=wp.media.frames.file_frame=wp.media({title:this.__("Choose your file","dokan-lite"),button:{text:this.__("Select","dokan-lite")},multiple:!1});s.on("select",function(){var t=s.state().get("selection").first().toJSON();a.settingValues[e.sectionId][e.name]=t.url}),s.open()},saveSettings:function(e,t){if(this.formIsValid(t)){var a=this,s={action:"dokan_save_settings",nonce:dokan.nonce,settingsData:e,section:t};a.showLoading=!0,jQuery.post(dokan.ajaxurl,s).done(function(s){var n,i=s.data.settings;for(n in a.isSaved=!0,a.isUpdated=!0,a.message=s.data.message,a.settingValues[i.name]=i.value,e){var o="".concat(t,".").concat(n);if(a.refreshable_props[o]){window.location.reload();break}}}).fail(function(e){var t=e.responseJSON.data.map(function(e){return e.message});alert(t.join(" "))}).always(function(){a.showLoading=!1})}},formIsValid:function(e){var t=this,a=Object.keys(this.settingFields),s=this.requiredFields;return!!a&&(a.forEach(function(a,n){if(e===a){var i=t.settingFields[a];Object.values(i).forEach(function(e){var t=e.fields;t&&Object.values(t).forEach(function(e){e&&e.required&&"yes"===e.required&&!s.includes(e.name)&&s.push(e.name)}),e&&e.required&&"yes"===e.required&&(s.includes(e.name)||s.push(e.name))})}}),this.errors=[],s.forEach(function(e){Object.values(t.settingValues).forEach(function(a){e in a&&a[e].length<1&&(t.errors.includes(e)||(t.errors.push(e),"flat"!==a.commission_type&&"percentage"!==a.commission_type||(t.errors=t.arrayRemove(t.errors,"admin_percentage"),t.errors=t.arrayRemove(t.errors,"additional_fee"))))})}),this.errors.length<1)},arrayRemove:function(e,t){return e.filter(function(e){return e!==t})},toggleLoadingState:function(){this.showLoading=!this.showLoading}},created:function(){this.fetchSettingValues(),this.currentTab="dokan_general","undefined"!=typeof localStorage&&(this.currentTab=localStorage.getItem("activetab")?localStorage.getItem("activetab"):"dokan_general"),this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields}}},function(e,t,a){"use strict";var s=a(128),n=a.n(s),i=a(129),o=a.n(i),r=a(22);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(a,!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c=dokan_get_lib("TextEditor"),u=dokan_get_lib("GoogleMaps"),p=dokan_get_lib("Mapbox"),m=dokan_get_lib("RefreshSettingOptions");t.a={name:"Fields",components:{colorPicker:r.a,TextEditor:c,GoogleMaps:u,Mapbox:p,RefreshSettingOptions:m},props:["id","fieldData","sectionId","fieldValue","allSettingsValues","errors","toggleLoadingState"],data:function(){return{repeatableItem:{},hideMap:!1}},computed:{shoudShow:function(){var e=!0;if(this.fieldData.show_if){var t=this.fieldData.show_if,a=Object.keys(t),s=0;for(s=0;s<a.length;s++){var n=a[s],i=n.split(".").reverse(),r=o()(i,2),l=r[0],d=r[1],c=void 0===d?this.sectionId:d,u=this.allSettingsValues[c][l],p=_.chain(t[n]).pairs().first().value(),m=o()(p,2),v=m[0],f=m[1];switch(v){case"greater_than":u>f||(e=!1);break;case"greater_than_equal":u>=f||(e=!1);break;case"less_than":u<f||(e=!1);break;case"less_than":u<=f||(e=!1);break;case"equal":default:u!=f&&(e=!1)}if(!e)break}}return e},mapApiSource:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.map_api_source},mapLocation:function(){var e=d({},{latitude:23.709921,longitude:90.40714300000002,address:"Dhaka",zoom:10},{},this.fieldValue[this.fieldData.name]);return e={latitude:parseFloat(e.latitude),longitude:parseFloat(e.longitude),address:"".concat(e.address),zoom:parseInt(e.zoom)}},googleMapApiKey:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.gmap_api_key},mapboxAccessToken:function(){var e,t;return null===(e=this.allSettingsValues)||void 0===e?void 0:null===(t=e.dokan_appearance)||void 0===t?void 0:t.mapbox_access_token}},beforeMount:function(){"multicheck"!==this.fieldData.type||this.fieldValue[this.fieldData.name]||(this.fieldValue[this.fieldData.name]=this.fieldData.default)},methods:{containCommonFields:function(e){return _.contains([void 0,"text","email","url","phone","time"],e)},addItem:function(e,t){this.fieldValue[t]=this.fieldValue[t]||[],void 0!==this.repeatableItem[t]&&this.repeatableItem[t]&&(this.fieldValue[t].push({id:this.repeatableItem[t].trim().replace(/\s+/g,"_").toLowerCase(),value:this.repeatableItem[t]}),this.repeatableItem[t]="")},removeItem:function(e,t){this.fieldValue[t].splice(e,1)},haveCondition:function(e){return e.hasOwnProperty("condition")},checkConditionLogic:function(e,t){var a=e.condition.logic,s=!1;return _.each(a,function(e,a){_.contains(e,t[a])&&(s=!0)}),s},onHideMap:function(e){this.hideMap=e},onUpdateMap:function(e){this.fieldValue[this.fieldData.name]=d({},this.mapLocation,{},e)},hasError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},getError:function(e){return e+" "+this.__("is required.","dokan-lite")}}}},,,,,,,,,function(e,t,a){"use strict";var s=a(156),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Switches"),o=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:n,Switches:i,Search:o,AddVendor:s.a},data:function(){return{showCb:!0,hasPro:dokan.hasPro,counts:{pending:0,approved:0,all:0},vendorId:0,totalItems:0,perPage:20,totalPages:1,loading:!1,columns:{store_name:{label:this.__("Store","dokan-lite"),sortable:!0},email:{label:this.__("E-mail","dokan-lite")},phone:{label:this.__("Phone","dokan-lite")},registered:{label:this.__("Registered","dokan-lite"),sortable:!0},enabled:{label:this.__("Status","dokan-lite")}},actionColumn:"title",actions:[{key:"edit",label:this.__("Edit","dokan-lite")},{key:"products",label:this.__("Products","dokan-lite")},{key:"orders",label:this.__("Orders","dokan-lite")}],bulkActions:[{key:"approved",label:this.__("Approve Vendors","dokan-lite")},{key:"pending",label:this.__("Disable Selling","dokan-lite")}],vendors:[],loadAddVendor:!1,dokanVendorHeaderArea:dokan.hooks.applyFilters("getDokanVendorHeaderArea",[]),isVendorSwitchingEnabled:!1}},watch:{"$route.query.status":function(){this.fetchVendors()},"$route.query.page":function(){this.fetchVendors()},"$route.query.orderby":function(){this.fetchVendors()},"$route.query.order":function(){this.fetchVendors()}},computed:{currentStatus:function(){return this.$route.query.status||"all"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},sortBy:function(){return this.$route.query.orderby||"registered"},sortOrder:function(){return this.$route.query.order||"desc"},storeCategory:function(){return this.$route.query.store_category||null}},created:function(){var e=this;this.$root.$on("modalClosed",function(){e.loadAddVendor=!1,e.vendorId=0}),this.fetchVendors(),this.$root.$on("vendorAdded",function(t){e.vendors.unshift(t)}),this.$root.$on("addAnotherVendor",function(){e.loadAddVendor=!0}),this.$root.$on("categoryFetched",function(t){e.categories=t.categories,e.isCategoryMultiple=t.isCategoryMultiple,e.columns=t.columns}),this.isVendorSwitchingEnabled=!!dokan.is_vendor_switching_enabled,this.isVendorSwitchingEnabled&&this.actions.push({key:"switch_to",label:this.__("Switch To","dokan-lite")})},methods:{addNew:function(){this.loadAddVendor=!0},doSearch:function(e){var t=this,a=this;a.loading=!0,dokan.api.get("/stores?search=".concat(e),{page:this.currentPage,orderby:this.sortBy,order:this.sortOrder}).done(function(e,s,n){a.vendors=e,a.loading=!1,t.updatedCounts(n),t.updatePagination(n)})},updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Approved")),this.counts.all=parseInt(e.getResponseHeader("X-Status-All"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},fetchVendors:function(){var e=this;e.loading=!0;var t={per_page:e.perPage,page:e.currentPage,status:e.currentStatus,orderby:e.sortBy,order:e.sortOrder,store_category:e.storeCategory};dokan.api.get("/stores",t).done(function(t,a,s){e.vendors=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},onActionClick:function(e,t){"trash"===e&&confirm("Are you sure to delete?")&&alert("deleted: "+t.title)},onSwitch:function(e,t){var a=this,s=!1===e?this.__("The vendor has been disabled.","dokan-lite"):this.__("Selling has been enabled","dokan-lite");dokan.api.put("/stores/"+t+"/status",{status:!1===e?"inactive":"active"}).done(function(e){a.$notify({title:a.__("Success!","dokan-lite"),type:"success",text:s}),"all"!==a.currentStatus&&a.fetchVendors()})},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),goToPage:function(e){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:e}})},onBulkAction:function(e,t){var a=this,s={};s[e]=t,this.loading=!0,dokan.api.put("/stores/batch",s).done(function(e){a.loading=!1,a.fetchVendors()})},sortCallback:function(e,t){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:1,orderby:e,order:t}})},productUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=product&author="+e},ordersUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=shop_order&vendor_id="+e},editUrl:function(e){return dokan.urls.adminRoot+"user-edit.php?user_id="+e},switchToUrl:function(e){return e.switch_url}}}},function(e,t,a){"use strict";var s=a(25),n=a(32),i=a(34),o=dokan_get_lib("Modal"),r=dokan_get_lib("Loading");t.a={name:"AddVendor",props:["vendorId"],components:{Modal:o,Loading:r,VendorAccountFields:s.a,VendorAddressFields:n.a,VendorPaymentFields:i.a},data:function(){return{isLoading:!1,storeId:"",nextBtn:this.__("Next","dokan-lite"),title:this.__("Add New Vendor","dokan-lite"),tabs:{VendorAccountFields:{label:this.__("Account Info","dokan-lite"),name:"VendorAccountFields",icon:"dashicons dashicons-admin-users"},VendorAddressFields:{label:this.__("Address","dokan-lite"),name:"VendorAddressFields",icon:"dashicons dashicons-admin-home"},VendorPaymentFields:{label:this.__("Payment Options","dokan-lite"),name:"VendorPaymentFields",icon:"dashicons dashicons-money"}},currentTab:"VendorAccountFields",store:{store_name:"",user_pass:"",store_url:"",user_login:"",email:"",user_nicename:"",notify_vendor:!0,phone:"",banner:"",banner_id:"",gravatar:"",gravatar_id:"",social:{fb:"",gplus:"",youtube:"",twitter:"",linkedin:"",pinterest:"",instagram:""},payment:{bank:{ac_name:"",ac_number:"",bank_name:"",bank_addr:"",routing_number:"",iban:"",swift:""},paypal:{email:""}},address:{street_1:"",street_2:"",city:"",zip:"",state:"",country:""}},requiredFields:["store_name","user_login","email"],errors:[],storeAvailable:!1,userNameAvailable:!1,emailAvailable:!1,hasPro:dokan.hasPro}},created:function(){var e=this;this.$root.$on("vendorInfoChecked",function(t){e.storeAvailable=t.storeAvailable,e.userNameAvailable=t.userNameAvailable,e.emailAvailable=t.emailAvailable})},methods:{getId:function(){return this.$route.params.id},showAlert:function(e,t,a){this.$swal(e,t,a)},createVendor:function(){var e=this;this.formIsValid()&&("VendorPaymentFields"===this.currentTab&&(this.isLoading=!0,dokan.api.post("/stores/",this.store).done(function(t){e.$root.$emit("vendorAdded",t),e.$swal({type:"success",title:e.__("Vendor Created","dokan-lite"),text:e.__("A vendor has been created successfully!","dokan-lite"),showCloseButton:!0,showCancelButton:!0,confirmButtonText:e.__("Add Another","dokan-lite"),cancelButtonText:e.__("Edit Vendor","dokan-lite"),focusConfirm:!1}).then(function(a){a.value?e.$root.$emit("addAnotherVendor"):a.dismiss===e.$swal.DismissReason.cancel&&(e.hasPro?e.$router.push({path:"vendors/"+t.id,query:{edit:"true"}}):window.location.replace("".concat(dokan.urls.adminRoot,"user-edit.php?user_id=").concat(t.id)))})}).fail(function(t){e.showAlert(e.__(t.responseJSON.message,"dokan-lite"),"","error")}).always(function(){e.$root.$emit("modalClosed")})),this.currentTab="VendorPaymentFields"===this.currentTab?"VendorPaymentFields":this.nextTab(this.tabs,this.currentTab))},nextTab:function(e,t){var a=Object.keys(e),s=a[a.indexOf(t)+1];return s},closeModal:function(){this.$root.$emit("modalClosed")},formIsValid:function(){var e=this,t=this.requiredFields,a=this.store;return this.errors=[],t.forEach(function(t){t in a&&a[t].length<1&&e.errors.push(t)}),!!(this.errors.length<1&&this.storeAvailable&&this.userNameAvailable&&this.emailAvailable)||(this.currentTab="VendorAccountFields",!1)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(98),n=a(101),i=a(160);new(dokan_get_lib("Vue"))({el:"#dokan-vue-admin",router:n.a,render:function(e){return e(s.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"])}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(43),n=a(100),i=!1;var o=function(e){i||a(99)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/App.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"vue-backend-app"}},[t("router-view"),this._v(" "),t("notifications",{attrs:{position:"bottom right"}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(102),n=a.n(s),i=a(103),o=a(109),r=a(112),l=a(121),d=a(124),c=a(154),u=dokan_get_lib("Vue"),p=dokan_get_lib("Router"),m=dokan_get_lib("VersionCompare");u.use(p),dokan_add_route(i.a),dokan_add_route(o.a),dokan_add_route(r.a),dokan_add_route(l.a),dokan_add_route(d.a),dokan.hasPro&&!m(dokan.proVersion,"2.9.14",">")||dokan_add_route(c.a),function e(t){for(var a=0;a<t.length;a++)"object"===n()(t[a].children)?(e(t[a].children),void 0!==t[a].component&&(t[a].component=dokan.routeComponents[t[a].component])):t[a].component=dokan.routeComponents[t[a].component]}(dokan.routes),t.a=new p({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(104)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Dashboard.vue",t.a=r.exports},function(e,t){},,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-dashboard"},[a("h1",[e._v(e._s(e.__("Dashboard","dokan-lite")))]),e._v(" "),a("div",{staticClass:"widgets-wrapper"},[a("div",{staticClass:"left-side"},[a("postbox",{attrs:{title:e.__("At a Glance","dokan-lite"),extraClass:"dokan-status"}},[null!==e.overview?a("div",{staticClass:"dokan-status"},[a("ul",[a("li",{staticClass:"sale"},[a("div",{staticClass:"dashicons dashicons-chart-bar"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.sales.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("net sales this month","dokan-lite"))+" "),a("span",{class:e.overview.sales.class},[e._v(e._s(e.overview.sales.parcent))])])])],1),e._v(" "),a("li",{staticClass:"commission"},[a("div",{staticClass:"dashicons dashicons-chart-pie"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.earning.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("commission earned","dokan-lite"))+" "),a("span",{class:e.overview.earning.class},[e._v(e._s(e.overview.earning.parcent))])])])],1),e._v(" "),a("li",{staticClass:"vendor"},[a("div",{staticClass:"dashicons dashicons-id"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors"}:""}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Vendor","dokan-lite"),e.overview.vendors.this_month)))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("signup this month","dokan-lite"))+" "),a("span",{class:e.overview.vendors.class},[e._v(e._s(e.overview.vendors.parcent))])])])],1),e._v(" "),a("li",{staticClass:"approval"},[a("div",{staticClass:"dashicons dashicons-businessman"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors",query:{status:"pending"}}:""}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Vendor","dokan-lite"),e.overview.vendors.inactive)))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1),e._v(" "),a("li",{staticClass:"product"},[a("div",{staticClass:"dashicons dashicons-cart"}),e._v(" "),a("a",{attrs:{href:"#"}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Products","dokan-lite"),e.overview.products.this_month)))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("created this month","dokan-lite"))+" "),a("span",{class:e.overview.products.class},[e._v(e._s(e.overview.products.parcent))])])])]),e._v(" "),a("li",{staticClass:"withdraw"},[a("div",{staticClass:"dashicons dashicons-money"}),e._v(" "),a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[a("strong",[e._v(e._s(e.sprintf(e.__("%s Withdrawals","dokan-lite"),e.overview.withdraw.pending)))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1)])]):a("div",{staticClass:"loading"},[a("loading")],1)]),e._v(" "),a("postbox",{attrs:{title:e.__("Dokan News Updates","dokan-lite")}},[null!==e.feed?a("div",{staticClass:"rss-widget"},[a("ul",e._l(e.feed,function(t){return a("li",[a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_campaign=dokan-news",target:"_blank"}},[e._v(e._s(t.title))])])})),e._v(" "),a("div",{staticClass:"subscribe-box"},[e.subscribe.success?a("div",{staticClass:"thank-you"},[e._v(e._s(e.__("Thank you for subscribing!","dokan-lite")))]):[e.subscribe.loading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),a("h3",[e._v(e._s(e.__("Stay up-to-date","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("We're constantly developing new features, stay up-to-date by subscribing to our newsletter.","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"form-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.subscribe.email,expression:"subscribe.email"}],attrs:{type:"email",required:"",placeholder:"Your Email Address"},domProps:{value:e.subscribe.email},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;e.emailSubscribe()},input:function(t){t.target.composing||e.$set(e.subscribe,"email",t.target.value)}}}),e._v(" "),a("button",{staticClass:"button",on:{click:function(t){e.emailSubscribe()}}},[e._v(e._s(e.__("Subscribe","dokan-lite")))])])]],2)]):a("div",{staticClass:"loading"},[a("loading")],1)])],1),e._v(" "),a("div",{staticClass:"right-side"},[a("postbox",{staticClass:"overview-chart",attrs:{title:e.__("Overview","dokan-lite")}},[null!==e.report?a("chart",{attrs:{data:e.report}}):a("div",{staticClass:"loading"},[a("loading")],1)],1)],1)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(45),n=a(111),i=!1;var o=function(e){i||a(110)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Withdraw.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"withdraw-requests"},[a("h1",[e._v(e._s(e.__("Withdraw Requests","dokan-lite")))]),e._v(" "),e.showModal?a("modal",{attrs:{title:e.__("Update Note","dokan-lite")},on:{close:function(t){e.showModal=!1}}},[a("template",{slot:"body"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editing.note,expression:"editing.note"}],attrs:{rows:"3"},domProps:{value:e.editing.note},on:{input:function(t){t.target.composing||e.$set(e.editing,"note",t.target.value)}}})]),e._v(" "),a("template",{slot:"footer"},[a("button",{staticClass:"button button-primary button-large",on:{click:function(t){e.updateNote()}}},[e._v(e._s(e.__("Update Note","dokan-lite")))])])],2):e._e(),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Pending <span class='count'>(%s)</span>","dokan-lite"),e.counts.pending))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Approved <span class='count'>(%s)</span>","dokan-lite"),e.counts.approved))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Cancelled <span class='count'>(%s)</span>","dokan-lite"),e.counts.cancelled))}})],1)]),e._v(" "),a("list-table",{attrs:{columns:e.columns,rows:e.requests,loading:e.loading,"action-column":e.actionColumn,actions:e.actions,"show-cb":e.showCb,"bulk-actions":e.bulkActions,"not-found":e.notFound,"total-pages":e.totalPages,"total-items":e.totalItems,"per-page":e.perPage,"current-page":e.currentPage},on:{pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction},scopedSlots:e._u([{key:"seller",fn:function(t){return[a("img",{attrs:{src:t.row.user.gravatar,alt:t.row.user.store_name,width:"50"}}),e._v(" "),a("strong",[a("a",{attrs:{href:e.vendorUrl(t.row.user.id)}},[e._v(e._s(t.row.user.store_name?t.row.user.store_name:e.__("(no name)","dokan-lite")))])])]}},{key:"amount",fn:function(e){return[a("currency",{attrs:{amount:e.row.amount}})]}},{key:"status",fn:function(t){return[a("span",{class:t.row.status},[e._v(e._s(e._f("capitalize")(t.row.status)))])]}},{key:"created",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.created).format("MMM D, YYYY"))+"\n ")]}},{key:"method_details",fn:function(t){return[e._v("\n "+e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))+"\n ")]}},{key:"actions",fn:function(t){return["pending"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Approve Request","dokan-lite")},on:{click:function(a){a.preventDefault(),e.changeStatus("approved",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-yes"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:"approved"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Mark as Pending","dokan-lite")},on:{click:function(a){a.preventDefault(),e.changeStatus("pending",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-backup"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(46),n=a(120),i=!1;var o=function(e){i||a(113)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Premium.vue",t.a=r.exports},function(e,t){},,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-pro-features"},[a("div",{staticClass:"header-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/header-feature-thumb@2x.png",alt:e.__("Upgrade to Dokan Pro!","dokan-lite"),title:e.__("Upgrade to Dokan Pro!","dokan-lite")}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h1",[e._v(e._s(e.__("Upgrade to Dokan Pro!","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Seems To Be Convinced, You Need More Out Of Your Marketplace","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"service-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Why Upgrade","dokan-lite")))]),e._v(" "),a("div",{staticClass:"service-list"},e._l(e.services,function(t){return a("div",{staticClass:"service-box"},[a("div",{staticClass:"service-thumb"},[a("img",{attrs:{src:t.thumbnail,alt:t.title,title:t.title}})]),e._v(" "),a("div",{staticClass:"service-detail"},[a("h3",{staticClass:"title"},[e._v(e._s(t.title))])])])})),e._v(" "),a("a",{staticClass:"btn",attrs:{href:"https://wedevs.com/dokan/features/",target:"_blank"}},[e._v("\n "+e._s(e.__("And Many More","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])]),e._v(" "),a("div",{staticClass:"comparison-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Comparison With Dokan PRO","dokan-lite")))]),e._v(" "),a("div",{staticClass:"comparison-area"},[a("div",{staticClass:"compare-box dokan-lite"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-lite-logo@2x.png",alt:"Dokan Lite"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.lite},["available"===t.compare.lite?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}))]),e._v(" "),a("div",{staticClass:"compare-box dokan-pro"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-pro-logo@2x.png",alt:"Dokan Pro"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.pro},["available"===t.compare.pro?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}))])])]),e._v(" "),a("div",{staticClass:"pricing-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("The Packages We Provide","dokan-lite")))]),e._v(" "),a("div",{staticClass:"pricing-wrapper"},[e._m(0),e._v(" "),e._l(e.modules,function(t){return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"},[a("a",{staticClass:"module-name",attrs:{href:t.url,target:"_blank"}},[e._v(e._s(t.title))])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.starter.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.starter.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.starter.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col popular"},["numeric"===t.professional.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.professional.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.professional.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.business.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.business.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.business.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.enterprise.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.enterprise.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.enterprise.value,alt:""}})])])])}),e._v(" "),a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn starter",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15316&attribute_pa_license=starter",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("a",{staticClass:"buy-btn professional",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15314&attribute_pa_license=professional",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn business",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=15315&attribute_pa_license=business",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn enterprise",attrs:{href:e.buyNowProUrl+"add-to-cart=15310&variation_id=103829&attribute_pa_license=enterprise",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])])])],2)]),e._v(" "),a("div",{staticClass:"payment-section"},[a("div",{staticClass:"guarantee-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.payment.guaranteeThumbnail,alt:"Dokan"}})]),e._v(" "),a("div",{staticClass:"guarantee-detail"},[a("h2",[e._v(e._s(e.__("14 Days Money Back Guarantee","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("After successful purchase, you will be eligible for conditional refund","dokan-lite")))]),e._v(" "),a("a",{attrs:{href:e.payment.termsPolicyUrl,target:"_blank"}},[a("img",{attrs:{src:e.payment.viewIcon,alt:"Dokan"}}),e._v(" "+e._s(e.__("Terms & Condition Applied","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"payment-area"},[a("h3",[e._v(e._s(e.__("Payment Options:","dokan-lite")))]),e._v(" "),a("div",{staticClass:"option"},[a("img",{attrs:{src:e.payment.thumbnail,alt:"Credit Card"}})])])]),e._v(" "),a("div",{staticClass:"testimonial-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("People We Have Helped","dokan-lite")))]),e._v(" "),a("div",{staticClass:"testimonial-wrapper"},[a("slick",{ref:"slick",attrs:{options:e.slickOptions}},e._l(e.testimonials,function(t){return a("div",{staticClass:"testimonial-box"},[a("div",{staticClass:"profile-pic"},[a("img",{attrs:{src:t.pic,alt:""}})]),e._v(" "),a("div",{staticClass:"content-detail",style:{"background-image":"url("+e.asstesUrl+"/images/premium/quote-icon.png)"}},[a("h4",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(t.designation))]),e._v(" "),a("p",[e._v(e._s(t.content))])])])}))],1),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.sprintf("%s <a href='%s' target='_blank'>%s</a> %s",e.__("We are proud to say the official","dokan-lite"),"https://themes.getbootstrap.com/","Bootstrap theme marketplace",e.__("is built using Dokan","dokan-lite")))}})]),e._v(" "),a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.cta.styles.bgPattern+"), linear-gradient( 45deg, rgb(255,125,144) 33%, rgb(255,173,111) 100%)"}},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.cta.thumbnail,alt:"Dokan Lite"}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h2",[e._v(e._s(e.__("Convinced?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("With all the advance features you get it’s hard to resist buying Dokan Pro.","dokan-lite")))]),e._v(" "),a("a",{staticClass:"btn",attrs:{href:e.cta.url}},[e._v("\n "+e._s(e.__("I Want To Buy Now","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])])])])};s._withStripped=!0;var n={render:s,staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name starter"},[e._v("Starter")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("149")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("div",{staticClass:"plan-name professional"},[e._v("Professional")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("249")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name business"},[e._v("Business")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("499")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name enterprise"},[e._v("Enterprise")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("999")]),e._v(" "),a("span",[e._v("/year")])])])])}]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(123),i=!1;var o=function(e){i||a(122)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Help.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-help-page"},[a("h1",[e._v(e._s(e.__("Help","dokan-lite")))]),e._v(" "),null!==e.docs?a("div",{staticClass:"section-wrapper"},e._l(e.docs,function(t,s){return a("postbox",{key:s,attrs:{title:t.title}},[a("ul",e._l(t.questions,function(t){return a("li",[a("span",{staticClass:"dashicons dashicons-media-text"}),e._v(" "),a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_medium=dokan-help-page",target:"_blank"}},[e._v(e._s(t.title))])])}))])})):a("div",{staticClass:"loading"},[a("loading")],1)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(49),n=a(153),i=!1;var o=function(e){i||a(125)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Settings.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(50),n=a(152),i=!1;var o=function(e){i||a(127)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Fields.vue",t.a=r.exports},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.shoudShow?a("tr",{class:[e.id,"dokan-settings-field-type-"+e.fieldData.type]},["sub_section"===e.fieldData.type?[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.fieldData.label))])])]:e._e(),e._v(" "),e.containCommonFields(e.fieldData.type)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",["checkbox"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:"checkbox"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e.fieldValue[e.fieldData.name]},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=!!s.checked;if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&(e.fieldValue[e.fieldData.name]=a.concat([null])):i>-1&&(e.fieldValue[e.fieldData.name]=a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.fieldValue,e.fieldData.name,n)}}}):"radio"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:"radio"},domProps:{checked:e._q(e.fieldValue[e.fieldData.name],null)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,null)}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:e.fieldData.type||"text"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"number"===e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"number",min:e.fieldData.min,max:e.fieldData.max,step:e.fieldData.step,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"price"==e.fieldData.type&&e.allSettingsValues.dokan_selling&&"combine"!==e.allSettingsValues.dokan_selling.commission_type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:{wc_input_decimal:"percentage"==e.allSettingsValues.dokan_selling.commission_type,wc_input_price:"flat"==e.allSettingsValues.dokan_selling.commission_type},attrs:{type:"text",min:e.fieldData.min,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"combine"==e.fieldData.type&&e.haveCondition(e.fieldData)&&"show"==e.fieldData.condition.type&&e.checkConditionLogic(e.fieldData,e.fieldValue)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"percent_fee"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.percent_fee.name],expression:"fieldValue[fieldData.fields.percent_fee.name]"}],staticClass:"wc_input_decimal regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][percent_fee]",name:e.sectionId+"["+e.fieldData.fields.percent_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.percent_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.percent_fee.name,t.target.value)}}}),e._v("\n "+e._s("%")+"\n ")]),e._v(" "),a("td",{staticClass:"fixed_fee"},[e._v("\n "+e._s("+")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.fixed_fee.name],expression:"fieldValue[fieldData.fields.fixed_fee.name]"}],staticClass:"wc_input_price regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][fixed_fee]",name:e.sectionId+"["+e.fieldData.fields.fixed_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.fixed_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.fixed_fee.name,t.target.value)}}})]),e._v(" "),e.hasError(e.fieldData.fields.percent_fee.name)&&e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.__("Both percentage and fixed fee is required.","dokan-lite"))+"\n ")]):e.hasError(e.fieldData.fields.percent_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.percent_fee.label))+"\n ")]):e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.fixed_fee.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})]:e._e(),e._v(" "),"textarea"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"textarea",rows:e.fieldData.rows,cols:e.fieldData.cols,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"checkbox"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]","true-value":"on","false-value":"off"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e._q(e.fieldValue[e.fieldData.name],"on")},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=s.checked?"on":"off";if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&(e.fieldValue[e.fieldData.name]=a.concat([null])):i>-1&&(e.fieldValue[e.fieldData.name]=a.slice(0,i).concat(a.slice(i+1)))}else e.$set(e.fieldValue,e.fieldData.name,n)}}}),e._v("\n "+e._s(e.fieldData.desc)+"\n ")])])])]:e._e(),e._v(" "),"multicheck"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[e._l(e.fieldData.options,function(t,s){return[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]["+s+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name][s],expression:"fieldValue[fieldData.name][optionKey]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]["+s+"]",name:e.sectionId+"["+e.fieldData.name+"]["+s+"]","true-value":s,"false-value":""},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name][s])?e._i(e.fieldValue[e.fieldData.name][s],null)>-1:e._q(e.fieldValue[e.fieldData.name][s],s)},on:{change:function(t){var a=e.fieldValue[e.fieldData.name][s],n=t.target,i=n.checked?s:"";if(Array.isArray(a)){var o=e._i(a,null);n.checked?o<0&&(e.fieldValue[e.fieldData.name][s]=a.concat([null])):o>-1&&(e.fieldValue[e.fieldData.name][s]=a.slice(0,o).concat(a.slice(o+1)))}else e.$set(e.fieldValue[e.fieldData.name],s,i)}}}),e._v("\n "+e._s(t)+"\n ")]),e._v(" "),a("br")]})],2)])]:e._e(),e._v(" "),"select"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.fieldData.grouped?a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t){return a("optgroup",{attrs:{label:t.group_label}},e._l(t.group_values,function(t){return a("option",{domProps:{value:t.value,innerHTML:e._s(t.label)}})}))})],2):a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t,s){return a("option",{domProps:{value:s,innerHTML:e._s(t)}})})],2),e._v(" "),e.fieldData.refresh_options?a("RefreshSettingOptions",{attrs:{section:e.sectionId,field:e.fieldData,"toggle-loading-state":e.toggleLoadingState}}):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"file"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text wpsa-url",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),a("input",{staticClass:"button wpsa-browse",attrs:{type:"button",value:"Choose File"},on:{click:function(t){t.preventDefault(),e.$emit("openMedia",{sectionId:e.sectionId,name:e.fieldData.name},t)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"color"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("color-picker",{model:{value:e.fieldValue[e.fieldData.name],callback:function(t){e.$set(e.fieldValue,e.fieldData.name,t)},expression:"fieldValue[fieldData.name]"}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"html"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"dokan-settings-field-type-radio"},[a("fieldset",[e._l(e.fieldData.options,function(t,s){return[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]["+s+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",id:e.sectionId+"["+e.fieldData.name+"]["+s+"]",name:s},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "+e._s(t)+"\n ")])]})],2),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"wpeditor"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{attrs:{width:"72%"}},[a("text-editor",{model:{value:e.fieldValue[e.fieldData.name],callback:function(t){e.$set(e.fieldValue,e.fieldData.name,t)},expression:"fieldValue[fieldData.name]"}}),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]:e._e(),e._v(" "),"repeatable"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{attrs:{width:"72%"}},[a("ul",{staticClass:"dokan-settings-repeatable-list"},e._l(e.fieldValue[e.fieldData.name],function(t,s){return e.fieldValue[e.fieldData.name]?a("li",[e._v("\n "+e._s(t.value)+" "),a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){t.preventDefault(),e.removeItem(s,e.fieldData.name)}}})]):e._e()})),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.repeatableItem[e.fieldData.name],expression:"repeatableItem[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"text"},domProps:{value:e.repeatableItem[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.repeatableItem,e.fieldData.name,t.target.value)}}}),e._v(" "),a("a",{staticClass:"button dokan-repetable-add-item-btn",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.addItem(e.fieldData.type,e.fieldData.name)}}},[e._v("+")]),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio_image"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("div",{staticClass:"radio-image-container"},[e._l(e.fieldData.options,function(t,s){return[a("label",{staticClass:"radio-image",class:{active:e.fieldValue[e.fieldData.name]===s,"not-active":e.fieldValue[e.fieldData.name]!==s}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",name:e.fieldData.name},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "),a("span",{staticClass:"current-option-indicator"},[a("span",{staticClass:"dashicons dashicons-yes"}),e._v(" "+e._s(e.__("Active","dokan-lite")))]),e._v(" "),a("img",{attrs:{src:t}}),e._v(" "),a("span",{staticClass:"active-option"},[a("button",{staticClass:"button button-primary button-hero",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.fieldValue[e.fieldData.name]=s}}},[e._v("\n "+e._s(e.__("Select","dokan-lite"))+"\n ")])])])]})],2)])]:e._e(),e._v(" "),"gmap"!=e.fieldData.type||e.hideMap?e._e():[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{attrs:{type:"hidden",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.mapLocation}}),e._v(" "),"mapbox"===e.mapApiSource?a("Mapbox",{attrs:{accessToken:e.mapboxAccessToken,location:e.mapLocation,width:"100%",height:"300px"},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}):a("GoogleMaps",{attrs:{apiKey:e.googleMapApiKey,location:e.mapLocation},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]],2):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-settings"},[a("h2",{staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.__("Settings","dokan-lite")))]),e._v(" "),e.isSaved?a("div",{staticClass:"settings-error notice is-dismissible",class:{updated:e.isUpdated,error:!e.isUpdated},attrs:{id:"setting-message_updated"}},[a("p",[a("strong",{domProps:{innerHTML:e._s(e.message)}})]),e._v(" "),a("button",{staticClass:"notice-dismiss",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.isSaved=!1}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Dismiss this notice.","dokan-lite")))])])]):e._e(),e._v(" "),a("div",{staticClass:"dokan-settings-wrap"},[a("h2",{staticClass:"nav-tab-wrapper"},[e._l(e.settingSections,function(t){return[a("a",{class:["nav-tab",e.currentTab===t.id?"nav-tab-active":""],attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.changeTab(t)}}},[a("span",{staticClass:"dashicons",class:t.icon}),e._v(" "+e._s(t.title)+"\n ")])]})],2),e._v(" "),a("div",{staticClass:"metabox-holder"},[e._l(e.settingFields,function(t,s){return e.isLoaded?[e.currentTab===s?a("div",{staticClass:"group",attrs:{id:s}},[a("form",{attrs:{method:"post",action:"options.php"}},[a("input",{attrs:{type:"hidden",name:"option_page"},domProps:{value:s}}),e._v(" "),a("input",{attrs:{type:"hidden",name:"action",value:"update"}}),e._v(" "),a("table",{staticClass:"form-table"},[e.showSectionTitle(t)?a("thead",[a("tr",{staticClass:"dokan-settings-field-type-sub_section"},[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.sectionTitle(s)))])])])]):e._e(),e._v(" "),a("tbody",e._l(t,function(t,n){return a("Fields",{key:n,attrs:{"section-id":s,id:n,"field-data":t,"field-value":e.settingValues[s],"all-settings-values":e.settingValues,errors:e.errors,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}))]),e._v(" "),a("p",{staticClass:"submit"},[a("input",{staticClass:"button button-primary",attrs:{type:"submit",name:"submit",id:"submit",value:"Save Changes"},on:{click:function(t){t.preventDefault(),e.saveSettings(e.settingValues[s],s)}}})])])]):e._e()]:e._e()})],2),e._v(" "),e.showLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e()])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(59),n=a(159),i=!1;var o=function(e){i||a(155)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Vendors.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(60),n=a(158),i=!1;var o=function(e){i||a(157)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/AddVendor.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-vendor-edit"},[a("modal",{attrs:{title:e.title,width:"800px"},on:{close:e.closeModal}},[a("div",{attrs:{slot:"body"},slot:"body"},[a("div",{staticClass:"tab-header"},[a("ul",{staticClass:"tab-list"},e._l(e.tabs,function(t,s){return a("li",{key:s,class:{"tab-title":!0,active:e.currentTab===t.name,last:"VendorPaymentFields"===t.name}},[a("div",{staticClass:"tab-link"},[a("a",{class:{first:"VendorAccountFields"===t.name},attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.currentTab=t.name}}},[a("span",{class:[t.icon]}),e._v("\n "+e._s(t.label)+"\n ")])])])}))]),e._v(" "),e.currentTab?a("div",{staticClass:"tab-contents"},[e.isLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),e.isLoading?e._e():a("transition",{attrs:{name:"component-fade",mode:"out-in"}},[a(e.currentTab,{tag:"component",attrs:{vendorInfo:e.store,errors:e.errors}})],1)],1):e._e()]),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("button",{staticClass:"button button-primary button-hero",on:{click:e.createVendor}},[e._v(e._s("VendorPaymentFields"===e.currentTab?e.__("Create Vendor","dokan-lite"):this.nextBtn))])])])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vendor-list"},[a("h1",{staticClass:"wp-heading-inline"},[e._v(e._s(e.__("Vendors","dokan-lite")))]),e._v(" "),a("button",{staticClass:"page-title-action",on:{click:function(t){e.addNew()}}},[e._v(e._s(e.__("Add New","dokan-lite")))]),e._v(" "),e._l(e.dokanVendorHeaderArea,function(e,t){return a(e,{key:t,tag:"component"})}),e._v(" "),a("hr",{staticClass:"wp-header-end"}),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"all"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("All <span class='count'>(%s)</span>","dokan-lite"),e.counts.all))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Approved <span class='count'>(%s)</span>","dokan-lite"),e.counts.approved))}}),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""},domProps:{innerHTML:e._s(e.sprintf(e.__("Pending <span class='count'>(%s)</span>","dokan-lite"),e.counts.pending))}})],1)]),e._v(" "),a("search",{attrs:{title:"Search Vendors"},on:{searched:e.doSearch}}),e._v(" "),a("list-table",{attrs:{columns:e.columns,loading:e.loading,rows:e.vendors,actions:e.actions,actionColumn:"store_name","show-cb":e.showCb,"total-items":e.totalItems,"bulk-actions":e.bulkActions,"total-pages":e.totalPages,"per-page":e.perPage,"current-page":e.currentPage,"action-column":e.actionColumn,"not-found":"No vendors found.","sort-by":e.sortBy,"sort-order":e.sortOrder},on:{sort:e.sortCallback,pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction,searched:e.doSearch},scopedSlots:e._u([{key:"store_name",fn:function(t){return[a("img",{attrs:{src:t.row.gravatar,alt:t.row.store_name,width:"50"}}),e._v(" "),a("strong",[e.hasPro?a("router-link",{attrs:{to:"/vendors/"+t.row.id}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))])],1)]}},{key:"email",fn:function(t){return[a("a",{attrs:{href:"mailto:"+t.row.email}},[e._v(e._s(t.row.email))])]}},{key:"categories",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.categories.map(function(e){return e.name}).join(", "))+"\n ")]}},{key:"registered",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.registered).format("MMM D, YYYY"))+"\n ")]}},{key:"enabled",fn:function(t){return[a("switches",{attrs:{enabled:t.row.enabled,value:t.row.id},on:{input:e.onSwitch}})]}},{key:"row-actions",fn:function(t){return e._l(e.actions,function(s,n){return a("span",{class:s.key},[e.hasPro&&"edit"==s.key?a("router-link",{attrs:{to:{path:"vendors/"+t.row.id,query:{edit:"true"}}}},[e._v(e._s(s.label))]):e.hasPro||"edit"!=s.key?"products"==s.key?a("a",{attrs:{href:e.productUrl(t.row.id)}},[e._v(e._s(s.label))]):"orders"==s.key?a("a",{attrs:{href:e.ordersUrl(t.row.id)}},[e._v(e._s(s.label))]):"switch_to"==s.key?a("a",{attrs:{href:e.switchToUrl(t.row)}},[e._v(e._s(s.label))]):a("a",{attrs:{href:"#"}},[e._v(e._s(s.label))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(s.label))]),e._v(" "),n!==e.actions.length-1?[e._v(" | ")]:e._e()],2)})}}])}),e._v(" "),e.loadAddVendor?a("add-vendor",{attrs:{"vendor-id":e.vendorId}}):e._e()],2)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";t.a=function(e){var t=jQuery,a=t("#toplevel_page_"+e),s=window.location.href,n=s.substr(s.indexOf("admin.php"));a.on("click","a",function(){var e=t(this);t("ul.wp-submenu li",a).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",a).addClass("current"):e.parents("li").addClass("current")}),t("ul.wp-submenu a",a).each(function(e,a){t(a).attr("href")!==n||t(a).parent().addClass("current")})}}],[97]);
|
dokan.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Dokan
|
4 |
Plugin URI: https://wordpress.org/plugins/dokan-lite/
|
5 |
Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
|
6 |
-
Version: 3.0.
|
7 |
Author: weDevs
|
8 |
Author URI: https://wedevs.com/
|
9 |
Text Domain: dokan-lite
|
10 |
WC requires at least: 3.0
|
11 |
-
WC tested up to: 4.
|
12 |
Domain Path: /languages/
|
13 |
License: GPL2
|
14 |
*/
|
@@ -54,7 +54,7 @@ final class WeDevs_Dokan {
|
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
-
public $version = '3.0.
|
58 |
|
59 |
/**
|
60 |
* Instance of self
|
@@ -545,7 +545,7 @@ final class WeDevs_Dokan {
|
|
545 |
/**
|
546 |
* Load Dokan Plugin when all plugins loaded
|
547 |
*
|
548 |
-
* @return
|
549 |
*/
|
550 |
function dokan() {
|
551 |
return WeDevs_Dokan::init();
|
3 |
Plugin Name: Dokan
|
4 |
Plugin URI: https://wordpress.org/plugins/dokan-lite/
|
5 |
Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
|
6 |
+
Version: 3.0.9
|
7 |
Author: weDevs
|
8 |
Author URI: https://wedevs.com/
|
9 |
Text Domain: dokan-lite
|
10 |
WC requires at least: 3.0
|
11 |
+
WC tested up to: 4.4.1
|
12 |
Domain Path: /languages/
|
13 |
License: GPL2
|
14 |
*/
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
+
public $version = '3.0.9';
|
58 |
|
59 |
/**
|
60 |
* Instance of self
|
545 |
/**
|
546 |
* Load Dokan Plugin when all plugins loaded
|
547 |
*
|
548 |
+
* @return WeDevs_Dokan
|
549 |
*/
|
550 |
function dokan() {
|
551 |
return WeDevs_Dokan::init();
|
includes/Admin/Hooks.php
CHANGED
@@ -388,7 +388,7 @@ class Hooks {
|
|
388 |
<?php else: ?>
|
389 |
<option value="<?php echo esc_attr( $user_ID ); ?>" <?php selected( $selected, $user_ID ); ?>><?php echo esc_html( $admin_user->display_name ); ?></option>
|
390 |
<?php foreach ( $vendors as $key => $vendor ): ?>
|
391 |
-
<option value="<?php echo esc_attr( $vendor->get_id() ) ?>" <?php selected( $selected, $vendor->get_id() ); ?>><?php echo ! empty( $vendor->get_shop_name() ) ? esc_html( $vendor->get_shop_name() ) : $vendor->get_name(); ?></option>
|
392 |
<?php endforeach ?>
|
393 |
<?php endif ?>
|
394 |
</select>
|
388 |
<?php else: ?>
|
389 |
<option value="<?php echo esc_attr( $user_ID ); ?>" <?php selected( $selected, $user_ID ); ?>><?php echo esc_html( $admin_user->display_name ); ?></option>
|
390 |
<?php foreach ( $vendors as $key => $vendor ): ?>
|
391 |
+
<option value="<?php echo esc_attr( $vendor->get_id() ) ?>" <?php selected( $selected, $vendor->get_id() ); ?>><?php echo ! empty( $vendor->get_shop_name() ) ? esc_html( $vendor->get_shop_name() ) : esc_html( $vendor->get_name() ); ?></option>
|
392 |
<?php endforeach ?>
|
393 |
<?php endif ?>
|
394 |
</select>
|
includes/Ajax.php
CHANGED
@@ -5,6 +5,7 @@ namespace WeDevs\Dokan;
|
|
5 |
use WC_Customer;
|
6 |
use WC_Data_Store;
|
7 |
use WC_Order;
|
|
|
8 |
|
9 |
/**
|
10 |
* Ajax handler for Dokan
|
@@ -48,6 +49,8 @@ class Ajax {
|
|
48 |
|
49 |
add_action( 'wp_ajax_custom-header-crop', array( $this, 'crop_store_banner' ) );
|
50 |
|
|
|
|
|
51 |
add_action( 'wp_ajax_dokan_json_search_products_and_variations', array( $this, 'json_search_product' ), 10 );
|
52 |
add_action( 'wp_ajax_nopriv_dokan_json_search_products_and_variations', array( $this, 'json_search_product' ), 10 );
|
53 |
add_action( 'wp_ajax_dokan_json_search_vendor_customers', array( $this, 'dokan_json_search_vendor_customers' ) );
|
@@ -660,6 +663,42 @@ class Ajax {
|
|
660 |
wp_send_json( apply_filters( 'dokan_json_search_found_products', $products ) );
|
661 |
}
|
662 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
663 |
/**
|
664 |
* Search customer
|
665 |
*
|
5 |
use WC_Customer;
|
6 |
use WC_Data_Store;
|
7 |
use WC_Order;
|
8 |
+
use WP_Query;
|
9 |
|
10 |
/**
|
11 |
* Ajax handler for Dokan
|
49 |
|
50 |
add_action( 'wp_ajax_custom-header-crop', array( $this, 'crop_store_banner' ) );
|
51 |
|
52 |
+
add_action( 'wp_ajax_dokan_json_search_products_tags', array( $this, 'dokan_json_search_products_tags' ) );
|
53 |
+
|
54 |
add_action( 'wp_ajax_dokan_json_search_products_and_variations', array( $this, 'json_search_product' ), 10 );
|
55 |
add_action( 'wp_ajax_nopriv_dokan_json_search_products_and_variations', array( $this, 'json_search_product' ), 10 );
|
56 |
add_action( 'wp_ajax_dokan_json_search_vendor_customers', array( $this, 'dokan_json_search_vendor_customers' ) );
|
663 |
wp_send_json( apply_filters( 'dokan_json_search_found_products', $products ) );
|
664 |
}
|
665 |
|
666 |
+
|
667 |
+
/**
|
668 |
+
* Search product tags
|
669 |
+
*
|
670 |
+
* @since 3.0.5
|
671 |
+
*
|
672 |
+
* @return array
|
673 |
+
*/
|
674 |
+
public function dokan_json_search_products_tags() {
|
675 |
+
check_ajax_referer( 'search-products-tags', 'security' );
|
676 |
+
|
677 |
+
$return = array();
|
678 |
+
$name = ! empty( $_GET['q'] ) ? sanitize_text_field( wp_unslash( $_GET['q'] ) ) : '';
|
679 |
+
$page = ! empty( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : 1;
|
680 |
+
$offset = ( $page-1 ) * 10;
|
681 |
+
|
682 |
+
$drop_down_tags = array(
|
683 |
+
'name__like' => $name,
|
684 |
+
'hide_empty' => 0,
|
685 |
+
'orderby' => 'name',
|
686 |
+
'order' => 'ASC',
|
687 |
+
'number' => 10,
|
688 |
+
'offset' => $offset
|
689 |
+
);
|
690 |
+
|
691 |
+
$product_tags = get_terms( 'product_tag', $drop_down_tags );
|
692 |
+
|
693 |
+
if ( $product_tags ) :
|
694 |
+
foreach ( $product_tags as $pro_term ) {
|
695 |
+
$return[] = array( $pro_term->term_id, $pro_term->name );
|
696 |
+
}
|
697 |
+
endif;
|
698 |
+
echo json_encode( $return );
|
699 |
+
die;
|
700 |
+
}
|
701 |
+
|
702 |
/**
|
703 |
* Search customer
|
704 |
*
|
includes/Assets.php
CHANGED
@@ -663,6 +663,7 @@ class Assets {
|
|
663 |
'product_title_required' => __( 'Product title is required', 'dokan-lite' ),
|
664 |
'product_category_required' => __( 'Product category is required', 'dokan-lite' ),
|
665 |
'search_products_nonce' => wp_create_nonce( 'search-products' ),
|
|
|
666 |
'search_customer_nonce' => wp_create_nonce( 'search-customer' ),
|
667 |
'i18n_matches_1' => __( 'One result is available, press enter to select it.', 'dokan-lite' ),
|
668 |
'i18n_matches_n' => __( '%qty% results are available, use up and down arrow keys to navigate.', 'dokan-lite' ),
|
663 |
'product_title_required' => __( 'Product title is required', 'dokan-lite' ),
|
664 |
'product_category_required' => __( 'Product category is required', 'dokan-lite' ),
|
665 |
'search_products_nonce' => wp_create_nonce( 'search-products' ),
|
666 |
+
'search_products_tags_nonce' => wp_create_nonce( 'search-products-tags' ),
|
667 |
'search_customer_nonce' => wp_create_nonce( 'search-customer' ),
|
668 |
'i18n_matches_1' => __( 'One result is available, press enter to select it.', 'dokan-lite' ),
|
669 |
'i18n_matches_n' => __( '%qty% results are available, use up and down arrow keys to navigate.', 'dokan-lite' ),
|
includes/Dashboard/Templates/Orders.php
CHANGED
@@ -70,7 +70,7 @@ class Orders {
|
|
70 |
} else {
|
71 |
dokan_get_template_part( 'global/dokan-error', '', array( 'deleted' => false, 'message' => __( 'You have no permission to view this order', 'dokan-lite' ) ) );
|
72 |
}
|
73 |
-
|
74 |
} else {
|
75 |
dokan_get_template_part( 'orders/date-export' );
|
76 |
dokan_get_template_part( 'orders/listing' );
|
@@ -95,7 +95,11 @@ class Orders {
|
|
95 |
|
96 |
$post_data = wp_unslash( $_POST );
|
97 |
|
98 |
-
if (
|
|
|
|
|
|
|
|
|
99 |
return;
|
100 |
}
|
101 |
|
70 |
} else {
|
71 |
dokan_get_template_part( 'global/dokan-error', '', array( 'deleted' => false, 'message' => __( 'You have no permission to view this order', 'dokan-lite' ) ) );
|
72 |
}
|
73 |
+
|
74 |
} else {
|
75 |
dokan_get_template_part( 'orders/date-export' );
|
76 |
dokan_get_template_part( 'orders/listing' );
|
95 |
|
96 |
$post_data = wp_unslash( $_POST );
|
97 |
|
98 |
+
if ( ! isset( $post_data['dokan_vendor_order_export_nonce'] ) ) {
|
99 |
+
return;
|
100 |
+
}
|
101 |
+
|
102 |
+
if ( ! wp_verify_nonce( sanitize_text_field( $post_data['dokan_vendor_order_export_nonce'] ), 'dokan_vendor_order_export_action' ) ) {
|
103 |
return;
|
104 |
}
|
105 |
|
includes/Dashboard/Templates/Withdraw.php
CHANGED
@@ -159,8 +159,14 @@ class Withdraw {
|
|
159 |
* @return void
|
160 |
*/
|
161 |
protected function handle_approval_request() {
|
|
|
|
|
162 |
$post_data = wp_unslash( $_POST );
|
163 |
|
|
|
|
|
|
|
|
|
164 |
if ( ! isset( $post_data['dokan_withdraw_nonce'] ) || ! wp_verify_nonce( sanitize_key( $post_data['dokan_withdraw_nonce'] ), 'dokan_withdraw' ) ) {
|
165 |
$this->add_error( esc_html__( 'Are you cheating?', 'dokan-lite' ) );
|
166 |
}
|
159 |
* @return void
|
160 |
*/
|
161 |
protected function handle_approval_request() {
|
162 |
+
global $current_user;
|
163 |
+
|
164 |
$post_data = wp_unslash( $_POST );
|
165 |
|
166 |
+
if ( dokan()->withdraw->has_pending_request( $current_user->ID ) ) {
|
167 |
+
return;
|
168 |
+
}
|
169 |
+
|
170 |
if ( ! isset( $post_data['dokan_withdraw_nonce'] ) || ! wp_verify_nonce( sanitize_key( $post_data['dokan_withdraw_nonce'] ), 'dokan_withdraw' ) ) {
|
171 |
$this->add_error( esc_html__( 'Are you cheating?', 'dokan-lite' ) );
|
172 |
}
|
includes/REST/Manager.php
CHANGED
@@ -32,6 +32,7 @@ class Manager {
|
|
32 |
DOKAN_DIR . '/includes/REST/ProductAttributeTermsController.php' => '\WeDevs\Dokan\REST\ProductAttributeTermsController',
|
33 |
DOKAN_DIR . '/includes/REST/OrderController.php' => '\WeDevs\Dokan\REST\OrderController',
|
34 |
DOKAN_DIR . '/includes/REST/WithdrawController.php' => '\WeDevs\Dokan\REST\WithdrawController',
|
|
|
35 |
) );
|
36 |
|
37 |
// Init REST API routes.
|
32 |
DOKAN_DIR . '/includes/REST/ProductAttributeTermsController.php' => '\WeDevs\Dokan\REST\ProductAttributeTermsController',
|
33 |
DOKAN_DIR . '/includes/REST/OrderController.php' => '\WeDevs\Dokan\REST\OrderController',
|
34 |
DOKAN_DIR . '/includes/REST/WithdrawController.php' => '\WeDevs\Dokan\REST\WithdrawController',
|
35 |
+
DOKAN_DIR . '/includes/REST/StoreSettingController.php' => '\WeDevs\Dokan\REST\StoreSettingController',
|
36 |
) );
|
37 |
|
38 |
// Init REST API routes.
|
includes/REST/ProductController.php
CHANGED
@@ -131,6 +131,7 @@ class ProductController extends DokanRESTController {
|
|
131 |
array(
|
132 |
'methods' => WP_REST_Server::READABLE,
|
133 |
'callback' => array( $this, 'get_related_product' ),
|
|
|
134 |
),
|
135 |
) );
|
136 |
|
@@ -154,6 +155,7 @@ class ProductController extends DokanRESTController {
|
|
154 |
array(
|
155 |
'methods' => WP_REST_Server::READABLE,
|
156 |
'callback' => array( $this, 'get_top_rated_product' ),
|
|
|
157 |
),
|
158 |
) );
|
159 |
|
@@ -177,6 +179,7 @@ class ProductController extends DokanRESTController {
|
|
177 |
array(
|
178 |
'methods' => WP_REST_Server::READABLE,
|
179 |
'callback' => array( $this, 'get_best_selling_product' ),
|
|
|
180 |
),
|
181 |
) );
|
182 |
|
@@ -200,6 +203,7 @@ class ProductController extends DokanRESTController {
|
|
200 |
array(
|
201 |
'methods' => WP_REST_Server::READABLE,
|
202 |
'callback' => array( $this, 'get_featured_product' ),
|
|
|
203 |
),
|
204 |
) );
|
205 |
|
@@ -223,6 +227,7 @@ class ProductController extends DokanRESTController {
|
|
223 |
array(
|
224 |
'methods' => WP_REST_Server::READABLE,
|
225 |
'callback' => array( $this, 'get_latest_product' ),
|
|
|
226 |
),
|
227 |
) );
|
228 |
}
|
@@ -232,7 +237,7 @@ class ProductController extends DokanRESTController {
|
|
232 |
*
|
233 |
* @since 2.8.0
|
234 |
*
|
235 |
-
* @return
|
236 |
*/
|
237 |
public function get_object( $id ) {
|
238 |
return wc_get_product( $id );
|
131 |
array(
|
132 |
'methods' => WP_REST_Server::READABLE,
|
133 |
'callback' => array( $this, 'get_related_product' ),
|
134 |
+
'permission_callback' => '__return_true',
|
135 |
),
|
136 |
) );
|
137 |
|
155 |
array(
|
156 |
'methods' => WP_REST_Server::READABLE,
|
157 |
'callback' => array( $this, 'get_top_rated_product' ),
|
158 |
+
'permission_callback' => '__return_true',
|
159 |
),
|
160 |
) );
|
161 |
|
179 |
array(
|
180 |
'methods' => WP_REST_Server::READABLE,
|
181 |
'callback' => array( $this, 'get_best_selling_product' ),
|
182 |
+
'permission_callback' => '__return_true',
|
183 |
),
|
184 |
) );
|
185 |
|
203 |
array(
|
204 |
'methods' => WP_REST_Server::READABLE,
|
205 |
'callback' => array( $this, 'get_featured_product' ),
|
206 |
+
'permission_callback' => '__return_true',
|
207 |
),
|
208 |
) );
|
209 |
|
227 |
array(
|
228 |
'methods' => WP_REST_Server::READABLE,
|
229 |
'callback' => array( $this, 'get_latest_product' ),
|
230 |
+
'permission_callback' => '__return_true',
|
231 |
),
|
232 |
) );
|
233 |
}
|
237 |
*
|
238 |
* @since 2.8.0
|
239 |
*
|
240 |
+
* @return WC_Product|null|false
|
241 |
*/
|
242 |
public function get_object( $id ) {
|
243 |
return wc_get_product( $id );
|
includes/REST/StoreController.php
CHANGED
@@ -40,9 +40,10 @@ class StoreController extends WP_REST_Controller {
|
|
40 |
public function register_routes() {
|
41 |
register_rest_route( $this->namespace, '/' . $this->base, array(
|
42 |
array(
|
43 |
-
'methods'
|
44 |
-
'callback'
|
45 |
-
'args'
|
|
|
46 |
),
|
47 |
array(
|
48 |
'methods' => WP_REST_Server::CREATABLE,
|
@@ -59,8 +60,9 @@ class StoreController extends WP_REST_Controller {
|
|
59 |
),
|
60 |
),
|
61 |
array(
|
62 |
-
'methods'
|
63 |
-
'callback'
|
|
|
64 |
),
|
65 |
array(
|
66 |
'methods' => WP_REST_Server::DELETABLE,
|
@@ -89,9 +91,10 @@ class StoreController extends WP_REST_Controller {
|
|
89 |
),
|
90 |
),
|
91 |
array(
|
92 |
-
'methods'
|
93 |
-
'callback'
|
94 |
-
'args'
|
|
|
95 |
),
|
96 |
) );
|
97 |
|
@@ -103,16 +106,18 @@ class StoreController extends WP_REST_Controller {
|
|
103 |
),
|
104 |
),
|
105 |
array(
|
106 |
-
'methods'
|
107 |
-
'callback'
|
108 |
-
'args'
|
|
|
109 |
),
|
110 |
) );
|
111 |
|
112 |
register_rest_route( $this->namespace, '/' . $this->base . '/check', [
|
113 |
[
|
114 |
-
'methods'
|
115 |
-
'callback'
|
|
|
116 |
]
|
117 |
] );
|
118 |
|
@@ -143,7 +148,8 @@ class StoreController extends WP_REST_Controller {
|
|
143 |
'description' => __( 'Your Message', 'dokan-lite' ),
|
144 |
'required' => true
|
145 |
]
|
146 |
-
]
|
|
|
147 |
],
|
148 |
) );
|
149 |
|
@@ -627,11 +633,11 @@ class StoreController extends WP_REST_Controller {
|
|
627 |
/**
|
628 |
* Check store availability
|
629 |
*
|
630 |
-
* @param
|
631 |
*
|
632 |
* @since 2.9.13
|
633 |
*
|
634 |
-
* @return
|
635 |
*/
|
636 |
public function check_store_availability( $request ) {
|
637 |
$params = $request->get_params();
|
40 |
public function register_routes() {
|
41 |
register_rest_route( $this->namespace, '/' . $this->base, array(
|
42 |
array(
|
43 |
+
'methods' => WP_REST_Server::READABLE,
|
44 |
+
'callback' => array( $this, 'get_stores' ),
|
45 |
+
'args' => $this->get_collection_params(),
|
46 |
+
'permission_callback' => '__return_true',
|
47 |
),
|
48 |
array(
|
49 |
'methods' => WP_REST_Server::CREATABLE,
|
60 |
),
|
61 |
),
|
62 |
array(
|
63 |
+
'methods' => WP_REST_Server::READABLE,
|
64 |
+
'callback' => array( $this, 'get_store' ),
|
65 |
+
'permission_callback' => '__return_true',
|
66 |
),
|
67 |
array(
|
68 |
'methods' => WP_REST_Server::DELETABLE,
|
91 |
),
|
92 |
),
|
93 |
array(
|
94 |
+
'methods' => WP_REST_Server::READABLE,
|
95 |
+
'callback' => array( $this, 'get_store_products' ),
|
96 |
+
'args' => $this->get_collection_params(),
|
97 |
+
'permission_callback' => '__return_true',
|
98 |
),
|
99 |
) );
|
100 |
|
106 |
),
|
107 |
),
|
108 |
array(
|
109 |
+
'methods' => WP_REST_Server::READABLE,
|
110 |
+
'callback' => array( $this, 'get_store_reviews' ),
|
111 |
+
'args' => $this->get_collection_params(),
|
112 |
+
'permission_callback' => '__return_true',
|
113 |
),
|
114 |
) );
|
115 |
|
116 |
register_rest_route( $this->namespace, '/' . $this->base . '/check', [
|
117 |
[
|
118 |
+
'methods' => WP_REST_Server::READABLE,
|
119 |
+
'callback' => [ $this, 'check_store_availability' ],
|
120 |
+
'permission_callback' => '__return_true',
|
121 |
]
|
122 |
] );
|
123 |
|
148 |
'description' => __( 'Your Message', 'dokan-lite' ),
|
149 |
'required' => true
|
150 |
]
|
151 |
+
],
|
152 |
+
'permission_callback' => '__return_true',
|
153 |
],
|
154 |
) );
|
155 |
|
633 |
/**
|
634 |
* Check store availability
|
635 |
*
|
636 |
+
* @param WP_REST_Request $request
|
637 |
*
|
638 |
* @since 2.9.13
|
639 |
*
|
640 |
+
* @return WP_REST_Response
|
641 |
*/
|
642 |
public function check_store_availability( $request ) {
|
643 |
$params = $request->get_params();
|
includes/REST/StoreSettingController.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WeDevs\Dokan\REST;
|
4 |
+
|
5 |
+
use WP_REST_Controller;
|
6 |
+
use WP_REST_Server;
|
7 |
+
use WP_Error;
|
8 |
+
|
9 |
+
/**
|
10 |
+
* StoreSettings API Controller
|
11 |
+
*
|
12 |
+
* @package dokan
|
13 |
+
*
|
14 |
+
* @author weDevs <info@wedevs.com>
|
15 |
+
*/
|
16 |
+
class StoreSettingController extends WP_REST_Controller {
|
17 |
+
/**
|
18 |
+
* Endpoint namespace
|
19 |
+
*
|
20 |
+
* @var string
|
21 |
+
*/
|
22 |
+
protected $namespace = 'dokan/v1';
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Route name
|
26 |
+
*
|
27 |
+
* @var string
|
28 |
+
*/
|
29 |
+
protected $rest_base = 'settings';
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Register all routes related to settings
|
33 |
+
*
|
34 |
+
* @return void
|
35 |
+
*/
|
36 |
+
public function register_routes() {
|
37 |
+
register_rest_route( $this->namespace, '/' . $this->rest_base, [
|
38 |
+
[
|
39 |
+
'methods' => WP_REST_Server::READABLE,
|
40 |
+
'callback' => [ $this, 'get_settings' ],
|
41 |
+
'permission_callback' => [ $this, 'get_settings_permission_callback' ],
|
42 |
+
]
|
43 |
+
] );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* @param $request
|
48 |
+
*
|
49 |
+
* @return mixed|WP_Error|\WP_HTTP_Response|\WP_REST_Response
|
50 |
+
*/
|
51 |
+
public function get_settings( $request ) {
|
52 |
+
$vendor = $this->get_vendor();
|
53 |
+
$response = dokan_get_store_info( $vendor->id );
|
54 |
+
|
55 |
+
return rest_ensure_response( $response );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Permission callback for vendor settings
|
60 |
+
*
|
61 |
+
* @return bool|WP_Error
|
62 |
+
*/
|
63 |
+
public function get_settings_permission_callback() {
|
64 |
+
$vendor = $this->get_vendor();
|
65 |
+
if ( is_wp_error( $vendor ) ) {
|
66 |
+
return $vendor;
|
67 |
+
}
|
68 |
+
|
69 |
+
return true;
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Get vendor
|
74 |
+
*
|
75 |
+
* @return WP_Error | $vendor
|
76 |
+
*/
|
77 |
+
protected function get_vendor() {
|
78 |
+
$current_user = dokan_get_current_user_id();
|
79 |
+
if ( $current_user ) {
|
80 |
+
$vendor = dokan()->vendor->get( $current_user );
|
81 |
+
}
|
82 |
+
|
83 |
+
if ( ! $current_user ) {
|
84 |
+
return new WP_Error( 'Unauthorized', __( 'You are not logged in' ), [ 'code' => 401 ] );
|
85 |
+
}
|
86 |
+
|
87 |
+
return $vendor;
|
88 |
+
}
|
89 |
+
|
90 |
+
}
|
includes/REST/WithdrawController.php
CHANGED
@@ -49,11 +49,13 @@ class WithdrawController extends WP_REST_Controller {
|
|
49 |
] ),
|
50 |
'permission_callback' => [ $this, 'get_items_permissions_check' ],
|
51 |
],
|
|
|
|
|
|
|
52 |
[
|
53 |
-
'methods' => WP_REST_Server::
|
54 |
-
'callback' => [ $this, '
|
55 |
-
'
|
56 |
-
'permission_callback' => [ $this, 'create_item_permissions_check' ],
|
57 |
],
|
58 |
] );
|
59 |
|
@@ -270,6 +272,20 @@ class WithdrawController extends WP_REST_Controller {
|
|
270 |
return $response;
|
271 |
}
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
/**
|
274 |
* Make a withdraw request
|
275 |
*
|
49 |
] ),
|
50 |
'permission_callback' => [ $this, 'get_items_permissions_check' ],
|
51 |
],
|
52 |
+
] );
|
53 |
+
|
54 |
+
register_rest_route( $this->namespace, '/' . $this->rest_base . '/balance', [
|
55 |
[
|
56 |
+
'methods' => WP_REST_Server::READABLE,
|
57 |
+
'callback' => [ $this, 'get_balance' ],
|
58 |
+
'permission_callback' => [ $this, 'get_items_permissions_check' ],
|
|
|
59 |
],
|
60 |
] );
|
61 |
|
272 |
return $response;
|
273 |
}
|
274 |
|
275 |
+
/**
|
276 |
+
* Get vendor balance
|
277 |
+
*
|
278 |
+
* @return \WP_REST_Response
|
279 |
+
*/
|
280 |
+
public function get_balance() {
|
281 |
+
$data = [];
|
282 |
+
|
283 |
+
$data ['current_balance'] = dokan_get_seller_balance( dokan_get_current_user_id(), false );
|
284 |
+
$data['withdraw_limit'] = dokan_get_option( 'withdraw_limit', 'dokan_withdraw', - 1 );
|
285 |
+
$data['withdraw_threshold'] = dokan_get_option( 'withdraw_date_limit', 'dokan_withdraw', - 1 );
|
286 |
+
|
287 |
+
return rest_ensure_response( $data );
|
288 |
+
}
|
289 |
/**
|
290 |
* Make a withdraw request
|
291 |
*
|
includes/wc-template.php
CHANGED
@@ -155,7 +155,7 @@ function dokan_author_field_quick_edit() {
|
|
155 |
<option value=""><?php esc_html( '— No change —', 'dokan-lite' ); ?></option>
|
156 |
<option value="<?php echo esc_attr( $admin_user->ID ); ?>"><?php echo esc_html( $admin_user->display_name ); ?></option>
|
157 |
<?php foreach ( $vendors as $key => $vendor): ?>
|
158 |
-
<option value="<?php echo esc_attr( $vendor->get_id() ); ?>"><?php echo ! empty( $vendor->get_shop_name() ) ? esc_html( $vendor->get_shop_name() ) : $vendor->get_name(); ?></option>
|
159 |
<?php endforeach ?>
|
160 |
<?php endif ?>
|
161 |
</select>
|
155 |
<option value=""><?php esc_html( '— No change —', 'dokan-lite' ); ?></option>
|
156 |
<option value="<?php echo esc_attr( $admin_user->ID ); ?>"><?php echo esc_html( $admin_user->display_name ); ?></option>
|
157 |
<?php foreach ( $vendors as $key => $vendor): ?>
|
158 |
+
<option value="<?php echo esc_attr( $vendor->get_id() ); ?>"><?php echo ! empty( $vendor->get_shop_name() ) ? esc_html( $vendor->get_shop_name() ) : esc_html( $vendor->get_name() ); ?></option>
|
159 |
<?php endforeach ?>
|
160 |
<?php endif ?>
|
161 |
</select>
|
languages/dokan-lite.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Dokan 3.0.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2020-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -90,7 +90,7 @@ msgid "Method '%s' not implemented. Must be overridden in subclass."
|
|
90 |
msgstr ""
|
91 |
|
92 |
#: includes/Abstracts/DokanRESTController.php:69
|
93 |
-
#: includes/REST/ProductController.php:
|
94 |
msgid ""
|
95 |
"To manipulate product variations you should use the "
|
96 |
"/products/<product_id>/variations/<id> endpoint."
|
@@ -98,8 +98,8 @@ msgstr ""
|
|
98 |
|
99 |
#: includes/Abstracts/DokanRESTController.php:71
|
100 |
#: includes/REST/OrderController.php:200
|
101 |
-
#: includes/REST/ProductController.php:
|
102 |
-
#: includes/REST/ProductController.php:
|
103 |
msgid "Invalid ID."
|
104 |
msgstr ""
|
105 |
|
@@ -909,7 +909,7 @@ msgstr ""
|
|
909 |
msgid "We'll use %1$s for product weight and %2$s for product dimensions."
|
910 |
msgstr ""
|
911 |
|
912 |
-
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:
|
913 |
#: includes/Assets.php:399 src/admin/pages/VendorAccountFields.vue:279
|
914 |
#: src/admin/pages/VendorAccountFields.vue:311
|
915 |
#: src/admin/pages/VendorAccountFields.vue:343
|
@@ -1098,17 +1098,17 @@ msgstr ""
|
|
1098 |
msgid "Commision: "
|
1099 |
msgstr ""
|
1100 |
|
1101 |
-
#: includes/Ajax.php:
|
1102 |
#: includes/Dashboard/Templates/Withdraw.php:110
|
1103 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1104 |
msgid "You have no permission to do this action"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
-
#: includes/Ajax.php:
|
1108 |
msgid "Something wrong, please try again later"
|
1109 |
msgstr ""
|
1110 |
|
1111 |
-
#: includes/Ajax.php:
|
1112 |
#: includes/Dashboard/Templates/Settings.php:225
|
1113 |
#: includes/Dashboard/Templates/Settings.php:237
|
1114 |
#: includes/Dashboard/Templates/Settings.php:249
|
@@ -1117,88 +1117,88 @@ msgstr ""
|
|
1117 |
#: includes/Dashboard/Templates/Settings.php:393
|
1118 |
#: includes/Dashboard/Templates/Settings.php:443
|
1119 |
#: includes/Dashboard/Templates/Withdraw.php:106
|
1120 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1121 |
msgid "Are you cheating?"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: includes/Ajax.php:
|
1125 |
msgid "You do not have sufficient permissions to access this page."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: includes/Ajax.php:
|
1129 |
msgid "You have taken too long. Please go back and retry."
|
1130 |
msgstr ""
|
1131 |
|
1132 |
-
#: includes/Ajax.php:
|
1133 |
msgid "You do not have permission to change this order"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: includes/Ajax.php:
|
1137 |
msgid "File %d"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: includes/Ajax.php:
|
1141 |
msgid "You have no permission to manage this order"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: includes/Ajax.php:
|
1145 |
msgid "Please provide your name."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
-
#: includes/Ajax.php:
|
1149 |
msgid "Something went wrong!"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: includes/Ajax.php:
|
1153 |
msgid "Email sent successfully!"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: includes/Ajax.php:
|
1157 |
msgid "Delete note"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: includes/Ajax.php:
|
1161 |
msgid "Shipping provider: "
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: includes/Ajax.php:
|
1165 |
msgid "Shipping number: "
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: includes/Ajax.php:
|
1169 |
msgid "Shipped date: "
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: includes/Ajax.php:
|
1173 |
msgid "Delete"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: includes/Ajax.php:
|
1177 |
msgid "Error: Nonce verification failed"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: includes/Ajax.php:
|
1181 |
msgid "Image could not be processed. Please go back and try again."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
-
#: includes/Ajax.php:
|
1185 |
#. translators: 1: user display name 2: user ID 3: user email
|
1186 |
msgid "%1$s (#%2$s – %3$s)"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
-
#: includes/Ajax.php:
|
1190 |
msgid "Invalid username or password."
|
1191 |
msgstr ""
|
1192 |
|
1193 |
-
#: includes/Ajax.php:
|
1194 |
msgid "Wrong username or password."
|
1195 |
msgstr ""
|
1196 |
|
1197 |
-
#: includes/Ajax.php:
|
1198 |
msgid "User logged in successfully."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
-
#: includes/Ajax.php:
|
1202 |
msgid "id param is required"
|
1203 |
msgstr ""
|
1204 |
|
@@ -1395,33 +1395,33 @@ msgstr ""
|
|
1395 |
msgid "Please insert value less than the regular price!"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
-
#: includes/Assets.php:650 includes/Assets.php:
|
1399 |
#. translators: %s: decimal
|
1400 |
msgid "Please enter with one decimal point (%s) without thousand separators."
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: includes/Assets.php:652 includes/Assets.php:
|
1404 |
#. translators: %s: price decimal separator
|
1405 |
msgid ""
|
1406 |
"Please enter with one monetary decimal point (%s) without thousand "
|
1407 |
"separators and currency symbols."
|
1408 |
msgstr ""
|
1409 |
|
1410 |
-
#: includes/Assets.php:653 includes/Assets.php:
|
1411 |
msgid "Please enter in country code with two capital letters."
|
1412 |
msgstr ""
|
1413 |
|
1414 |
-
#: includes/Assets.php:654 includes/Assets.php:
|
1415 |
msgid "Please enter in a value less than the regular price."
|
1416 |
msgstr ""
|
1417 |
|
1418 |
-
#: includes/Assets.php:655 includes/Assets.php:
|
1419 |
msgid ""
|
1420 |
"This product has produced sales and may be linked to existing orders. Are "
|
1421 |
"you sure you want to delete it?"
|
1422 |
msgstr ""
|
1423 |
|
1424 |
-
#: includes/Assets.php:656 includes/Assets.php:
|
1425 |
msgid ""
|
1426 |
"This action cannot be reversed. Are you sure you wish to erase personal "
|
1427 |
"data from the selected orders?"
|
@@ -1443,51 +1443,51 @@ msgstr ""
|
|
1443 |
msgid "Product category is required"
|
1444 |
msgstr ""
|
1445 |
|
1446 |
-
#: includes/Assets.php:
|
1447 |
msgid "One result is available, press enter to select it."
|
1448 |
msgstr ""
|
1449 |
|
1450 |
-
#: includes/Assets.php:
|
1451 |
msgid "%qty% results are available, use up and down arrow keys to navigate."
|
1452 |
msgstr ""
|
1453 |
|
1454 |
-
#: includes/Assets.php:
|
1455 |
msgid "No matches found"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
-
#: includes/Assets.php:
|
1459 |
msgid "Loading failed"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: includes/Assets.php:
|
1463 |
msgid "Please enter 1 or more characters"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
-
#: includes/Assets.php:
|
1467 |
msgid "Please enter %qty% or more characters"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
-
#: includes/Assets.php:
|
1471 |
msgid "Please delete 1 character"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
-
#: includes/Assets.php:
|
1475 |
msgid "Please delete %qty% characters"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
-
#: includes/Assets.php:
|
1479 |
msgid "You can only select 1 item"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
-
#: includes/Assets.php:
|
1483 |
msgid "You can only select %qty% items"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
-
#: includes/Assets.php:
|
1487 |
msgid "Loading more results…"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
-
#: includes/Assets.php:
|
1491 |
msgid "Searching…"
|
1492 |
msgstr ""
|
1493 |
|
@@ -1645,60 +1645,60 @@ msgstr ""
|
|
1645 |
msgid "Your account is not enabled for selling, please contact the admin"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1649 |
msgid "withdraw_amount is required"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1653 |
msgid "withdraw_method is required"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1657 |
msgid "Current Balance: %s "
|
1658 |
msgstr ""
|
1659 |
|
1660 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1661 |
msgid "<br>Minimum Withdraw amount: %s "
|
1662 |
msgstr ""
|
1663 |
|
1664 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1665 |
msgid "<br>Withdraw Threshold: %d days "
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1669 |
msgid "Your request has been cancelled successfully!"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1673 |
msgid "Your request has been received successfully and being reviewed!"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1677 |
msgid "Unknown error!"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1681 |
msgid ""
|
1682 |
"You have already withdrawn %s. This amount will be deducted from your "
|
1683 |
"balance."
|
1684 |
msgstr ""
|
1685 |
|
1686 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1687 |
msgid "You already have pending withdraw request(s)."
|
1688 |
msgstr ""
|
1689 |
|
1690 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1691 |
msgid ""
|
1692 |
"Please submit your request after approval or cancellation of your previous "
|
1693 |
"request."
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1697 |
msgid "You don't have sufficient balance for a withdraw request!"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1701 |
-
#: includes/Dashboard/Templates/Withdraw.php:
|
1702 |
msgid "Sorry, no transactions were found!"
|
1703 |
msgstr ""
|
1704 |
|
@@ -2735,11 +2735,11 @@ msgstr ""
|
|
2735 |
#: includes/REST/OrderController.php:82 includes/REST/OrderController.php:111
|
2736 |
#: includes/REST/OrderController.php:138 includes/REST/ProductController.php:58
|
2737 |
#: includes/REST/ProductController.php:80
|
2738 |
-
#: includes/REST/ProductController.php:121 includes/REST/StoreController.php:
|
2739 |
-
#: includes/REST/StoreController.php:
|
2740 |
-
#: includes/REST/StoreController.php:
|
2741 |
-
#: includes/REST/WithdrawController.php:
|
2742 |
-
#: includes/REST/WithdrawController.php:
|
2743 |
msgid "Unique identifier for the object."
|
2744 |
msgstr ""
|
2745 |
|
@@ -2752,14 +2752,14 @@ msgid "Unique identifier for the note object."
|
|
2752 |
msgstr ""
|
2753 |
|
2754 |
#: includes/REST/OrderController.php:194
|
2755 |
-
#: includes/REST/ProductController.php:
|
2756 |
-
#: includes/REST/ProductController.php:
|
2757 |
msgid "No seller found"
|
2758 |
msgstr ""
|
2759 |
|
2760 |
#: includes/REST/OrderController.php:206
|
2761 |
-
#: includes/REST/ProductController.php:
|
2762 |
-
#: includes/REST/ProductController.php:
|
2763 |
msgid "Sorry, you have no permission to do this. Since it's not your product."
|
2764 |
msgstr ""
|
2765 |
|
@@ -2790,7 +2790,7 @@ msgid "Invalid order ID."
|
|
2790 |
msgstr ""
|
2791 |
|
2792 |
#: includes/REST/OrderController.php:564
|
2793 |
-
#: includes/REST/ProductController.php:
|
2794 |
msgid "Cannot create existing %s."
|
2795 |
msgstr ""
|
2796 |
|
@@ -2807,7 +2807,7 @@ msgid "Invalid resource ID."
|
|
2807 |
msgstr ""
|
2808 |
|
2809 |
#: includes/REST/OrderController.php:843
|
2810 |
-
#: includes/REST/ProductController.php:
|
2811 |
msgid "Unique identifier for the resource."
|
2812 |
msgstr ""
|
2813 |
|
@@ -3007,7 +3007,7 @@ msgstr ""
|
|
3007 |
#: includes/REST/OrderController.php:1442
|
3008 |
#: includes/REST/OrderController.php:1540
|
3009 |
#: includes/REST/OrderController.php:1598
|
3010 |
-
#: includes/REST/ProductController.php:
|
3011 |
msgid "Meta data."
|
3012 |
msgstr ""
|
3013 |
|
@@ -3017,7 +3017,7 @@ msgstr ""
|
|
3017 |
#: includes/REST/OrderController.php:1449
|
3018 |
#: includes/REST/OrderController.php:1547
|
3019 |
#: includes/REST/OrderController.php:1605
|
3020 |
-
#: includes/REST/ProductController.php:
|
3021 |
msgid "Meta ID."
|
3022 |
msgstr ""
|
3023 |
|
@@ -3027,7 +3027,7 @@ msgstr ""
|
|
3027 |
#: includes/REST/OrderController.php:1455
|
3028 |
#: includes/REST/OrderController.php:1553
|
3029 |
#: includes/REST/OrderController.php:1611
|
3030 |
-
#: includes/REST/ProductController.php:
|
3031 |
msgid "Meta key."
|
3032 |
msgstr ""
|
3033 |
|
@@ -3037,7 +3037,7 @@ msgstr ""
|
|
3037 |
#: includes/REST/OrderController.php:1460
|
3038 |
#: includes/REST/OrderController.php:1558
|
3039 |
#: includes/REST/OrderController.php:1616
|
3040 |
-
#: includes/REST/ProductController.php:
|
3041 |
msgid "Meta value."
|
3042 |
msgstr ""
|
3043 |
|
@@ -3054,7 +3054,7 @@ msgid "Item ID."
|
|
3054 |
msgstr ""
|
3055 |
|
3056 |
#: includes/REST/OrderController.php:1192
|
3057 |
-
#: includes/REST/ProductController.php:
|
3058 |
msgid "Product name."
|
3059 |
msgstr ""
|
3060 |
|
@@ -3235,533 +3235,537 @@ msgid "Whether to bypass trash and force deletion."
|
|
3235 |
msgstr ""
|
3236 |
|
3237 |
#: includes/REST/ProductController.php:126
|
3238 |
-
#: includes/REST/ProductController.php:
|
3239 |
-
#: includes/REST/ProductController.php:
|
3240 |
-
#: includes/REST/ProductController.php:
|
3241 |
-
#: includes/REST/ProductController.php:
|
3242 |
msgid "Number of product you want to get top rated product"
|
3243 |
msgstr ""
|
3244 |
|
3245 |
-
#: includes/REST/ProductController.php:
|
3246 |
-
#: includes/REST/ProductController.php:
|
3247 |
-
#: includes/REST/ProductController.php:
|
3248 |
-
#: includes/REST/ProductController.php:
|
3249 |
msgid "Number of page number"
|
3250 |
msgstr ""
|
3251 |
|
3252 |
-
#: includes/REST/ProductController.php:
|
3253 |
-
#: includes/REST/ProductController.php:
|
3254 |
-
#: includes/REST/ProductController.php:
|
3255 |
-
#: includes/REST/ProductController.php:
|
3256 |
msgid "Top rated product for specific vendor"
|
3257 |
msgstr ""
|
3258 |
|
3259 |
-
#: includes/REST/ProductController.php:
|
3260 |
msgid "Product title must be required"
|
3261 |
msgstr ""
|
3262 |
|
3263 |
-
#: includes/REST/ProductController.php:
|
3264 |
msgid "Category must be required"
|
3265 |
msgstr ""
|
3266 |
|
3267 |
-
#: includes/REST/ProductController.php:
|
3268 |
msgid "You can not select more than category"
|
3269 |
msgstr ""
|
3270 |
|
3271 |
-
#: includes/REST/ProductController.php:
|
3272 |
-
#: includes/REST/ProductController.php:
|
3273 |
msgid "Placeholder"
|
3274 |
msgstr ""
|
3275 |
|
3276 |
-
#: includes/REST/ProductController.php:
|
3277 |
#. translators: %s: attachment id
|
3278 |
msgid "#%s is an invalid image ID."
|
3279 |
msgstr ""
|
3280 |
|
3281 |
-
#: includes/REST/ProductController.php:
|
3282 |
msgid "Product slug."
|
3283 |
msgstr ""
|
3284 |
|
3285 |
-
#: includes/REST/ProductController.php:
|
3286 |
msgid "Product URL."
|
3287 |
msgstr ""
|
3288 |
|
3289 |
-
#: includes/REST/ProductController.php:
|
3290 |
msgid "The date the product was created, in the site's timezone."
|
3291 |
msgstr ""
|
3292 |
|
3293 |
-
#: includes/REST/ProductController.php:
|
3294 |
msgid "The date the product was created, as GMT."
|
3295 |
msgstr ""
|
3296 |
|
3297 |
-
#: includes/REST/ProductController.php:
|
3298 |
msgid "The date the product was last modified, in the site's timezone."
|
3299 |
msgstr ""
|
3300 |
|
3301 |
-
#: includes/REST/ProductController.php:
|
3302 |
msgid "The date the product was last modified, as GMT."
|
3303 |
msgstr ""
|
3304 |
|
3305 |
-
#: includes/REST/ProductController.php:
|
3306 |
msgid "Product type."
|
3307 |
msgstr ""
|
3308 |
|
3309 |
-
#: includes/REST/ProductController.php:
|
3310 |
msgid "Product status (post status)."
|
3311 |
msgstr ""
|
3312 |
|
3313 |
-
#: includes/REST/ProductController.php:
|
3314 |
msgid "Featured product."
|
3315 |
msgstr ""
|
3316 |
|
3317 |
-
#: includes/REST/ProductController.php:
|
3318 |
msgid "Catalog visibility."
|
3319 |
msgstr ""
|
3320 |
|
3321 |
-
#: includes/REST/ProductController.php:
|
3322 |
msgid "Product description."
|
3323 |
msgstr ""
|
3324 |
|
3325 |
-
#: includes/REST/ProductController.php:
|
3326 |
msgid "Product short description."
|
3327 |
msgstr ""
|
3328 |
|
3329 |
-
#: includes/REST/ProductController.php:
|
3330 |
msgid "Unique identifier."
|
3331 |
msgstr ""
|
3332 |
|
3333 |
-
#: includes/REST/ProductController.php:
|
3334 |
msgid "Current product price."
|
3335 |
msgstr ""
|
3336 |
|
3337 |
-
#: includes/REST/ProductController.php:
|
3338 |
msgid "Product regular price."
|
3339 |
msgstr ""
|
3340 |
|
3341 |
-
#: includes/REST/ProductController.php:
|
3342 |
msgid "Product sale price."
|
3343 |
msgstr ""
|
3344 |
|
3345 |
-
#: includes/REST/ProductController.php:
|
3346 |
msgid "Start date of sale price, in the site's timezone."
|
3347 |
msgstr ""
|
3348 |
|
3349 |
-
#: includes/REST/ProductController.php:
|
3350 |
msgid "Start date of sale price, as GMT."
|
3351 |
msgstr ""
|
3352 |
|
3353 |
-
#: includes/REST/ProductController.php:
|
3354 |
msgid "End date of sale price, in the site's timezone."
|
3355 |
msgstr ""
|
3356 |
|
3357 |
-
#: includes/REST/ProductController.php:
|
3358 |
msgid "End date of sale price, as GMT."
|
3359 |
msgstr ""
|
3360 |
|
3361 |
-
#: includes/REST/ProductController.php:
|
3362 |
msgid "Price formatted in HTML."
|
3363 |
msgstr ""
|
3364 |
|
3365 |
-
#: includes/REST/ProductController.php:
|
3366 |
msgid "Shows if the product is on sale."
|
3367 |
msgstr ""
|
3368 |
|
3369 |
-
#: includes/REST/ProductController.php:
|
3370 |
msgid "Shows if the product can be bought."
|
3371 |
msgstr ""
|
3372 |
|
3373 |
-
#: includes/REST/ProductController.php:
|
3374 |
msgid "Amount of sales."
|
3375 |
msgstr ""
|
3376 |
|
3377 |
-
#: includes/REST/ProductController.php:
|
3378 |
msgid "If the product is virtual."
|
3379 |
msgstr ""
|
3380 |
|
3381 |
-
#: includes/REST/ProductController.php:
|
3382 |
msgid "If the product is downloadable."
|
3383 |
msgstr ""
|
3384 |
|
3385 |
-
#: includes/REST/ProductController.php:
|
3386 |
msgid "List of downloadable files."
|
3387 |
msgstr ""
|
3388 |
|
3389 |
-
#: includes/REST/ProductController.php:
|
3390 |
msgid "File MD5 hash."
|
3391 |
msgstr ""
|
3392 |
|
3393 |
-
#: includes/REST/ProductController.php:
|
3394 |
msgid "File name."
|
3395 |
msgstr ""
|
3396 |
|
3397 |
-
#: includes/REST/ProductController.php:
|
3398 |
msgid "File URL."
|
3399 |
msgstr ""
|
3400 |
|
3401 |
-
#: includes/REST/ProductController.php:
|
3402 |
msgid "Number of times downloadable files can be downloaded after purchase."
|
3403 |
msgstr ""
|
3404 |
|
3405 |
-
#: includes/REST/ProductController.php:
|
3406 |
msgid "Number of days until access to downloadable files expires."
|
3407 |
msgstr ""
|
3408 |
|
3409 |
-
#: includes/REST/ProductController.php:
|
3410 |
msgid "Product external URL. Only for external products."
|
3411 |
msgstr ""
|
3412 |
|
3413 |
-
#: includes/REST/ProductController.php:
|
3414 |
msgid "Product external button text. Only for external products."
|
3415 |
msgstr ""
|
3416 |
|
3417 |
-
#: includes/REST/ProductController.php:
|
3418 |
msgid "Tax status."
|
3419 |
msgstr ""
|
3420 |
|
3421 |
-
#: includes/REST/ProductController.php:
|
3422 |
msgid "Tax class."
|
3423 |
msgstr ""
|
3424 |
|
3425 |
-
#: includes/REST/ProductController.php:
|
3426 |
msgid "Stock management at product level."
|
3427 |
msgstr ""
|
3428 |
|
3429 |
-
#: includes/REST/ProductController.php:
|
3430 |
msgid "Stock quantity."
|
3431 |
msgstr ""
|
3432 |
|
3433 |
-
#: includes/REST/ProductController.php:
|
3434 |
msgid ""
|
3435 |
"Controls whether or not the product is listed as \"in stock\" or \"out of "
|
3436 |
"stock\" on the frontend."
|
3437 |
msgstr ""
|
3438 |
|
3439 |
-
#: includes/REST/ProductController.php:
|
3440 |
msgid "If managing stock, this controls if backorders are allowed."
|
3441 |
msgstr ""
|
3442 |
|
3443 |
-
#: includes/REST/ProductController.php:
|
3444 |
msgid "Shows if backorders are allowed."
|
3445 |
msgstr ""
|
3446 |
|
3447 |
-
#: includes/REST/ProductController.php:
|
3448 |
msgid "Shows if the product is on backordered."
|
3449 |
msgstr ""
|
3450 |
|
3451 |
-
#: includes/REST/ProductController.php:
|
3452 |
msgid "Allow one item to be bought in a single order."
|
3453 |
msgstr ""
|
3454 |
|
3455 |
-
#: includes/REST/ProductController.php:
|
3456 |
#. translators: %s: weight unit
|
3457 |
msgid "Product weight (%s)."
|
3458 |
msgstr ""
|
3459 |
|
3460 |
-
#: includes/REST/ProductController.php:
|
3461 |
msgid "Product dimensions."
|
3462 |
msgstr ""
|
3463 |
|
3464 |
-
#: includes/REST/ProductController.php:
|
3465 |
#. translators: %s: dimension unit
|
3466 |
msgid "Product length (%s)."
|
3467 |
msgstr ""
|
3468 |
|
3469 |
-
#: includes/REST/ProductController.php:
|
3470 |
#. translators: %s: dimension unit
|
3471 |
msgid "Product width (%s)."
|
3472 |
msgstr ""
|
3473 |
|
3474 |
-
#: includes/REST/ProductController.php:
|
3475 |
#. translators: %s: dimension unit
|
3476 |
msgid "Product height (%s)."
|
3477 |
msgstr ""
|
3478 |
|
3479 |
-
#: includes/REST/ProductController.php:
|
3480 |
msgid "Shows if the product need to be shipped."
|
3481 |
msgstr ""
|
3482 |
|
3483 |
-
#: includes/REST/ProductController.php:
|
3484 |
msgid "Shows whether or not the product shipping is taxable."
|
3485 |
msgstr ""
|
3486 |
|
3487 |
-
#: includes/REST/ProductController.php:
|
3488 |
msgid "Shipping class slug."
|
3489 |
msgstr ""
|
3490 |
|
3491 |
-
#: includes/REST/ProductController.php:
|
3492 |
msgid "Shipping class ID."
|
3493 |
msgstr ""
|
3494 |
|
3495 |
-
#: includes/REST/ProductController.php:
|
3496 |
msgid "Allow reviews."
|
3497 |
msgstr ""
|
3498 |
|
3499 |
-
#: includes/REST/ProductController.php:
|
3500 |
msgid "Reviews average rating."
|
3501 |
msgstr ""
|
3502 |
|
3503 |
-
#: includes/REST/ProductController.php:
|
3504 |
msgid "Amount of reviews that the product have."
|
3505 |
msgstr ""
|
3506 |
|
3507 |
-
#: includes/REST/ProductController.php:
|
3508 |
msgid "List of related products IDs."
|
3509 |
msgstr ""
|
3510 |
|
3511 |
-
#: includes/REST/ProductController.php:
|
3512 |
msgid "List of up-sell products IDs."
|
3513 |
msgstr ""
|
3514 |
|
3515 |
-
#: includes/REST/ProductController.php:
|
3516 |
msgid "List of cross-sell products IDs."
|
3517 |
msgstr ""
|
3518 |
|
3519 |
-
#: includes/REST/ProductController.php:
|
3520 |
msgid "Product parent ID."
|
3521 |
msgstr ""
|
3522 |
|
3523 |
-
#: includes/REST/ProductController.php:
|
3524 |
msgid "Optional note to send the customer after purchase."
|
3525 |
msgstr ""
|
3526 |
|
3527 |
-
#: includes/REST/ProductController.php:
|
3528 |
msgid "List of categories."
|
3529 |
msgstr ""
|
3530 |
|
3531 |
-
#: includes/REST/ProductController.php:
|
3532 |
msgid "Category ID."
|
3533 |
msgstr ""
|
3534 |
|
3535 |
-
#: includes/REST/ProductController.php:
|
3536 |
msgid "Category name."
|
3537 |
msgstr ""
|
3538 |
|
3539 |
-
#: includes/REST/ProductController.php:
|
3540 |
msgid "Category slug."
|
3541 |
msgstr ""
|
3542 |
|
3543 |
-
#: includes/REST/ProductController.php:
|
3544 |
msgid "List of tags."
|
3545 |
msgstr ""
|
3546 |
|
3547 |
-
#: includes/REST/ProductController.php:
|
3548 |
msgid "Tag ID."
|
3549 |
msgstr ""
|
3550 |
|
3551 |
-
#: includes/REST/ProductController.php:
|
3552 |
msgid "Tag name."
|
3553 |
msgstr ""
|
3554 |
|
3555 |
-
#: includes/REST/ProductController.php:
|
3556 |
msgid "Tag slug."
|
3557 |
msgstr ""
|
3558 |
|
3559 |
-
#: includes/REST/ProductController.php:
|
3560 |
msgid "List of images."
|
3561 |
msgstr ""
|
3562 |
|
3563 |
-
#: includes/REST/ProductController.php:
|
3564 |
msgid "Image ID."
|
3565 |
msgstr ""
|
3566 |
|
3567 |
-
#: includes/REST/ProductController.php:
|
3568 |
msgid "The date the image was created, in the site's timezone."
|
3569 |
msgstr ""
|
3570 |
|
3571 |
-
#: includes/REST/ProductController.php:
|
3572 |
msgid "The date the image was created, as GMT."
|
3573 |
msgstr ""
|
3574 |
|
3575 |
-
#: includes/REST/ProductController.php:
|
3576 |
msgid "The date the image was last modified, in the site's timezone."
|
3577 |
msgstr ""
|
3578 |
|
3579 |
-
#: includes/REST/ProductController.php:
|
3580 |
msgid "The date the image was last modified, as GMT."
|
3581 |
msgstr ""
|
3582 |
|
3583 |
-
#: includes/REST/ProductController.php:
|
3584 |
msgid "Image URL."
|
3585 |
msgstr ""
|
3586 |
|
3587 |
-
#: includes/REST/ProductController.php:
|
3588 |
msgid "Image name."
|
3589 |
msgstr ""
|
3590 |
|
3591 |
-
#: includes/REST/ProductController.php:
|
3592 |
msgid "Image alternative text."
|
3593 |
msgstr ""
|
3594 |
|
3595 |
-
#: includes/REST/ProductController.php:
|
3596 |
msgid "Image position. 0 means that the image is featured."
|
3597 |
msgstr ""
|
3598 |
|
3599 |
-
#: includes/REST/ProductController.php:
|
3600 |
msgid "List of attributes."
|
3601 |
msgstr ""
|
3602 |
|
3603 |
-
#: includes/REST/ProductController.php:
|
3604 |
-
#: includes/REST/ProductController.php:
|
3605 |
msgid "Attribute ID."
|
3606 |
msgstr ""
|
3607 |
|
3608 |
-
#: includes/REST/ProductController.php:
|
3609 |
-
#: includes/REST/ProductController.php:
|
3610 |
msgid "Attribute name."
|
3611 |
msgstr ""
|
3612 |
|
3613 |
-
#: includes/REST/ProductController.php:
|
3614 |
msgid "Attribute position."
|
3615 |
msgstr ""
|
3616 |
|
3617 |
-
#: includes/REST/ProductController.php:
|
3618 |
msgid ""
|
3619 |
"Define if the attribute is visible on the \"Additional information\" tab in "
|
3620 |
"the product's page."
|
3621 |
msgstr ""
|
3622 |
|
3623 |
-
#: includes/REST/ProductController.php:
|
3624 |
msgid "Define if the attribute can be used as variation."
|
3625 |
msgstr ""
|
3626 |
|
3627 |
-
#: includes/REST/ProductController.php:
|
3628 |
msgid "List of available term names of the attribute."
|
3629 |
msgstr ""
|
3630 |
|
3631 |
-
#: includes/REST/ProductController.php:
|
3632 |
msgid "Defaults variation attributes."
|
3633 |
msgstr ""
|
3634 |
|
3635 |
-
#: includes/REST/ProductController.php:
|
3636 |
msgid "Selected attribute term name."
|
3637 |
msgstr ""
|
3638 |
|
3639 |
-
#: includes/REST/ProductController.php:
|
3640 |
msgid "List of variations IDs."
|
3641 |
msgstr ""
|
3642 |
|
3643 |
-
#: includes/REST/ProductController.php:
|
3644 |
msgid "List of grouped products ID."
|
3645 |
msgstr ""
|
3646 |
|
3647 |
-
#: includes/REST/ProductController.php:
|
3648 |
msgid "Menu order, used to custom sort products."
|
3649 |
msgstr ""
|
3650 |
|
3651 |
-
#: includes/REST/StoreController.php:
|
3652 |
msgid "Reassign the deleted user's posts and links to this user ID."
|
3653 |
msgstr ""
|
3654 |
|
3655 |
-
#: includes/REST/StoreController.php:
|
3656 |
#: templates/widgets/store-contact-form.php:15
|
3657 |
msgid "Your Name"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
-
#: includes/REST/StoreController.php:
|
3661 |
msgid "Your email"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
-
#: includes/REST/StoreController.php:
|
3665 |
msgid "Your Message"
|
3666 |
msgstr ""
|
3667 |
|
3668 |
-
#: includes/REST/StoreController.php:
|
3669 |
msgid "Status for the store object."
|
3670 |
msgstr ""
|
3671 |
|
3672 |
-
#: includes/REST/StoreController.php:
|
3673 |
-
#: includes/REST/StoreController.php:
|
3674 |
msgid "No store found"
|
3675 |
msgstr ""
|
3676 |
|
3677 |
-
#: includes/REST/StoreController.php:
|
3678 |
msgid "No vendor found for updating status"
|
3679 |
msgstr ""
|
3680 |
|
3681 |
-
#: includes/REST/StoreController.php:
|
3682 |
msgid "Invalid user ID for reassignment."
|
3683 |
msgstr ""
|
3684 |
|
3685 |
-
#: includes/REST/StoreController.php:
|
3686 |
msgid "No reviews found"
|
3687 |
msgstr ""
|
3688 |
|
3689 |
-
#: includes/REST/StoreController.php:
|
3690 |
msgid "This email address is not valid"
|
3691 |
msgstr ""
|
3692 |
|
3693 |
-
#: includes/REST/StoreController.php:
|
3694 |
msgid "No vendor is found to be send an email."
|
3695 |
msgstr ""
|
3696 |
|
3697 |
-
#: includes/REST/StoreController.php:
|
3698 |
msgid "Status parameter must be active or inactive"
|
3699 |
msgstr ""
|
3700 |
|
3701 |
-
#: includes/REST/StoreController.php:
|
3702 |
msgid "No items found for bulk updating"
|
3703 |
msgstr ""
|
3704 |
|
|
|
|
|
|
|
|
|
3705 |
#: includes/REST/WithdrawController.php:42
|
3706 |
msgid "IDs of withdraws"
|
3707 |
msgstr ""
|
3708 |
|
3709 |
-
#: includes/REST/WithdrawController.php:
|
3710 |
msgid "Withdraw not found"
|
3711 |
msgstr ""
|
3712 |
|
3713 |
-
#: includes/REST/WithdrawController.php:
|
3714 |
-
#: includes/REST/WithdrawController.php:
|
3715 |
msgid "No vendor found"
|
3716 |
msgstr ""
|
3717 |
|
3718 |
-
#: includes/REST/WithdrawController.php:
|
3719 |
msgid "User does not have permission to withdraw"
|
3720 |
msgstr ""
|
3721 |
|
3722 |
-
#: includes/REST/WithdrawController.php:
|
3723 |
msgid "Requested User"
|
3724 |
msgstr ""
|
3725 |
|
3726 |
-
#: includes/REST/WithdrawController.php:
|
3727 |
msgid "Requested User ID"
|
3728 |
msgstr ""
|
3729 |
|
3730 |
-
#: includes/REST/WithdrawController.php:
|
3731 |
msgid ""
|
3732 |
"The amount of discount. Should always be numeric, even if setting a "
|
3733 |
"percentage."
|
3734 |
msgstr ""
|
3735 |
|
3736 |
-
#: includes/REST/WithdrawController.php:
|
3737 |
msgid "The date the withdraw request has beed created in the site's timezone."
|
3738 |
msgstr ""
|
3739 |
|
3740 |
-
#: includes/REST/WithdrawController.php:
|
3741 |
msgid "Withdraw status"
|
3742 |
msgstr ""
|
3743 |
|
3744 |
-
#: includes/REST/WithdrawController.php:
|
3745 |
msgid "Withdraw Method"
|
3746 |
msgstr ""
|
3747 |
|
3748 |
-
#: includes/REST/WithdrawController.php:
|
3749 |
msgid "Withdraw Notes"
|
3750 |
msgstr ""
|
3751 |
|
3752 |
-
#: includes/REST/WithdrawController.php:
|
3753 |
msgid "User IP"
|
3754 |
msgstr ""
|
3755 |
|
3756 |
-
#: includes/REST/WithdrawController.php:
|
3757 |
msgid "List of withdraw IDs to be approved"
|
3758 |
msgstr ""
|
3759 |
|
3760 |
-
#: includes/REST/WithdrawController.php:
|
3761 |
msgid "List of withdraw IDs to be cancelled"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
-
#: includes/REST/WithdrawController.php:
|
3765 |
msgid "List of withdraw IDs to be deleted"
|
3766 |
msgstr ""
|
3767 |
|
@@ -6274,42 +6278,37 @@ msgid "Select product category"
|
|
6274 |
msgstr ""
|
6275 |
|
6276 |
#: templates/products/new-product-single.php:313
|
|
|
6277 |
msgid "Tags"
|
6278 |
msgstr ""
|
6279 |
|
6280 |
-
#: templates/products/new-product-single.php:
|
6281 |
-
#: templates/products/new-product.php:270
|
6282 |
-
#: templates/products/tmpl-add-product-popup.php:160
|
6283 |
-
msgid "Select product tags"
|
6284 |
-
msgstr ""
|
6285 |
-
|
6286 |
-
#: templates/products/new-product-single.php:360
|
6287 |
#: templates/products/tmpl-add-product-popup.php:23
|
6288 |
msgid "Upload a product cover image"
|
6289 |
msgstr ""
|
6290 |
|
6291 |
-
#: templates/products/new-product-single.php:
|
6292 |
#: templates/products/new-product.php:131
|
6293 |
msgid "Delete image"
|
6294 |
msgstr ""
|
6295 |
|
6296 |
-
#: templates/products/new-product-single.php:
|
6297 |
#: templates/products/new-product.php:138
|
6298 |
#: templates/products/tmpl-add-product-popup.php:38
|
6299 |
msgid "Add gallery image"
|
6300 |
msgstr ""
|
6301 |
|
6302 |
-
#: templates/products/new-product-single.php:
|
6303 |
msgid "Short Description"
|
6304 |
msgstr ""
|
6305 |
|
6306 |
-
#: templates/products/new-product-single.php:
|
6307 |
-
#: templates/products/new-product.php:
|
6308 |
msgid "Description"
|
6309 |
msgstr ""
|
6310 |
|
6311 |
-
#: templates/products/new-product-single.php:
|
6312 |
-
#: templates/products/new-product-single.php:
|
6313 |
msgid "Save Product"
|
6314 |
msgstr ""
|
6315 |
|
@@ -6330,15 +6329,20 @@ msgstr ""
|
|
6330 |
msgid "Short description of the product..."
|
6331 |
msgstr ""
|
6332 |
|
6333 |
-
#: templates/products/new-product.php:
|
|
|
|
|
|
|
|
|
|
|
6334 |
msgid "Add your product description"
|
6335 |
msgstr ""
|
6336 |
|
6337 |
-
#: templates/products/new-product.php:
|
6338 |
msgid "Create & Add New"
|
6339 |
msgstr ""
|
6340 |
|
6341 |
-
#: templates/products/new-product.php:
|
6342 |
msgid "Create Product"
|
6343 |
msgstr ""
|
6344 |
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Dokan 3.0.9\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2020-08-25 07:51:52+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
90 |
msgstr ""
|
91 |
|
92 |
#: includes/Abstracts/DokanRESTController.php:69
|
93 |
+
#: includes/REST/ProductController.php:802
|
94 |
msgid ""
|
95 |
"To manipulate product variations you should use the "
|
96 |
"/products/<product_id>/variations/<id> endpoint."
|
98 |
|
99 |
#: includes/Abstracts/DokanRESTController.php:71
|
100 |
#: includes/REST/OrderController.php:200
|
101 |
+
#: includes/REST/ProductController.php:300
|
102 |
+
#: includes/REST/ProductController.php:325
|
103 |
msgid "Invalid ID."
|
104 |
msgstr ""
|
105 |
|
909 |
msgid "We'll use %1$s for product weight and %2$s for product dimensions."
|
910 |
msgstr ""
|
911 |
|
912 |
+
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:142
|
913 |
#: includes/Assets.php:399 src/admin/pages/VendorAccountFields.vue:279
|
914 |
#: src/admin/pages/VendorAccountFields.vue:311
|
915 |
#: src/admin/pages/VendorAccountFields.vue:343
|
1098 |
msgid "Commision: "
|
1099 |
msgstr ""
|
1100 |
|
1101 |
+
#: includes/Ajax.php:74 includes/Ajax.php:985
|
1102 |
#: includes/Dashboard/Templates/Withdraw.php:110
|
1103 |
+
#: includes/Dashboard/Templates/Withdraw.php:175
|
1104 |
msgid "You have no permission to do this action"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
+
#: includes/Ajax.php:96
|
1108 |
msgid "Something wrong, please try again later"
|
1109 |
msgstr ""
|
1110 |
|
1111 |
+
#: includes/Ajax.php:111 includes/Dashboard/Templates/Settings.php:211
|
1112 |
#: includes/Dashboard/Templates/Settings.php:225
|
1113 |
#: includes/Dashboard/Templates/Settings.php:237
|
1114 |
#: includes/Dashboard/Templates/Settings.php:249
|
1117 |
#: includes/Dashboard/Templates/Settings.php:393
|
1118 |
#: includes/Dashboard/Templates/Settings.php:443
|
1119 |
#: includes/Dashboard/Templates/Withdraw.php:106
|
1120 |
+
#: includes/Dashboard/Templates/Withdraw.php:171
|
1121 |
msgid "Are you cheating?"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
+
#: includes/Ajax.php:159 includes/Ajax.php:194
|
1125 |
msgid "You do not have sufficient permissions to access this page."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: includes/Ajax.php:163 includes/Ajax.php:198
|
1129 |
msgid "You have taken too long. Please go back and retry."
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: includes/Ajax.php:173 includes/Ajax.php:208
|
1133 |
msgid "You do not have permission to change this order"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: includes/Ajax.php:271
|
1137 |
msgid "File %d"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: includes/Ajax.php:293
|
1141 |
msgid "You have no permission to manage this order"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: includes/Ajax.php:328 includes/Ajax.php:333
|
1145 |
msgid "Please provide your name."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: includes/Ajax.php:340 includes/template-tags.php:140
|
1149 |
msgid "Something went wrong!"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: includes/Ajax.php:346 includes/REST/StoreController.php:765
|
1153 |
msgid "Email sent successfully!"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: includes/Ajax.php:405 templates/orders/details.php:288
|
1157 |
msgid "Delete note"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
+
#: includes/Ajax.php:435
|
1161 |
msgid "Shipping provider: "
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: includes/Ajax.php:435
|
1165 |
msgid "Shipping number: "
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: includes/Ajax.php:435
|
1169 |
msgid "Shipped date: "
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: includes/Ajax.php:472 includes/woo-views/html-product-download.php:14
|
1173 |
msgid "Delete"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: includes/Ajax.php:517 includes/Vendor/UserSwitch.php:122
|
1177 |
msgid "Error: Nonce verification failed"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: includes/Ajax.php:604
|
1181 |
msgid "Image could not be processed. Please go back and try again."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
+
#: includes/Ajax.php:761
|
1185 |
#. translators: 1: user display name 2: user ID 3: user email
|
1186 |
msgid "%1$s (#%2$s – %3$s)"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
+
#: includes/Ajax.php:906
|
1190 |
msgid "Invalid username or password."
|
1191 |
msgstr ""
|
1192 |
|
1193 |
+
#: includes/Ajax.php:915
|
1194 |
msgid "Wrong username or password."
|
1195 |
msgstr ""
|
1196 |
|
1197 |
+
#: includes/Ajax.php:942
|
1198 |
msgid "User logged in successfully."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
+
#: includes/Ajax.php:991
|
1202 |
msgid "id param is required"
|
1203 |
msgstr ""
|
1204 |
|
1395 |
msgid "Please insert value less than the regular price!"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
+
#: includes/Assets.php:650 includes/Assets.php:809
|
1399 |
#. translators: %s: decimal
|
1400 |
msgid "Please enter with one decimal point (%s) without thousand separators."
|
1401 |
msgstr ""
|
1402 |
|
1403 |
+
#: includes/Assets.php:652 includes/Assets.php:811
|
1404 |
#. translators: %s: price decimal separator
|
1405 |
msgid ""
|
1406 |
"Please enter with one monetary decimal point (%s) without thousand "
|
1407 |
"separators and currency symbols."
|
1408 |
msgstr ""
|
1409 |
|
1410 |
+
#: includes/Assets.php:653 includes/Assets.php:812
|
1411 |
msgid "Please enter in country code with two capital letters."
|
1412 |
msgstr ""
|
1413 |
|
1414 |
+
#: includes/Assets.php:654 includes/Assets.php:813
|
1415 |
msgid "Please enter in a value less than the regular price."
|
1416 |
msgstr ""
|
1417 |
|
1418 |
+
#: includes/Assets.php:655 includes/Assets.php:814
|
1419 |
msgid ""
|
1420 |
"This product has produced sales and may be linked to existing orders. Are "
|
1421 |
"you sure you want to delete it?"
|
1422 |
msgstr ""
|
1423 |
|
1424 |
+
#: includes/Assets.php:656 includes/Assets.php:815
|
1425 |
msgid ""
|
1426 |
"This action cannot be reversed. Are you sure you wish to erase personal "
|
1427 |
"data from the selected orders?"
|
1443 |
msgid "Product category is required"
|
1444 |
msgstr ""
|
1445 |
|
1446 |
+
#: includes/Assets.php:668
|
1447 |
msgid "One result is available, press enter to select it."
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: includes/Assets.php:669
|
1451 |
msgid "%qty% results are available, use up and down arrow keys to navigate."
|
1452 |
msgstr ""
|
1453 |
|
1454 |
+
#: includes/Assets.php:670
|
1455 |
msgid "No matches found"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
+
#: includes/Assets.php:671
|
1459 |
msgid "Loading failed"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
+
#: includes/Assets.php:672
|
1463 |
msgid "Please enter 1 or more characters"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
+
#: includes/Assets.php:673
|
1467 |
msgid "Please enter %qty% or more characters"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
+
#: includes/Assets.php:674
|
1471 |
msgid "Please delete 1 character"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: includes/Assets.php:675
|
1475 |
msgid "Please delete %qty% characters"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: includes/Assets.php:676
|
1479 |
msgid "You can only select 1 item"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: includes/Assets.php:677
|
1483 |
msgid "You can only select %qty% items"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
+
#: includes/Assets.php:678
|
1487 |
msgid "Loading more results…"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
+
#: includes/Assets.php:679
|
1491 |
msgid "Searching…"
|
1492 |
msgstr ""
|
1493 |
|
1645 |
msgid "Your account is not enabled for selling, please contact the admin"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
+
#: includes/Dashboard/Templates/Withdraw.php:179
|
1649 |
msgid "withdraw_amount is required"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
+
#: includes/Dashboard/Templates/Withdraw.php:183
|
1653 |
msgid "withdraw_method is required"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
+
#: includes/Dashboard/Templates/Withdraw.php:319
|
1657 |
msgid "Current Balance: %s "
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: includes/Dashboard/Templates/Withdraw.php:322
|
1661 |
msgid "<br>Minimum Withdraw amount: %s "
|
1662 |
msgstr ""
|
1663 |
|
1664 |
+
#: includes/Dashboard/Templates/Withdraw.php:326
|
1665 |
msgid "<br>Withdraw Threshold: %d days "
|
1666 |
msgstr ""
|
1667 |
|
1668 |
+
#: includes/Dashboard/Templates/Withdraw.php:383
|
1669 |
msgid "Your request has been cancelled successfully!"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: includes/Dashboard/Templates/Withdraw.php:387
|
1673 |
msgid "Your request has been received successfully and being reviewed!"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
+
#: includes/Dashboard/Templates/Withdraw.php:391
|
1677 |
msgid "Unknown error!"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
+
#: includes/Dashboard/Templates/Withdraw.php:427
|
1681 |
msgid ""
|
1682 |
"You have already withdrawn %s. This amount will be deducted from your "
|
1683 |
"balance."
|
1684 |
msgstr ""
|
1685 |
|
1686 |
+
#: includes/Dashboard/Templates/Withdraw.php:436
|
1687 |
msgid "You already have pending withdraw request(s)."
|
1688 |
msgstr ""
|
1689 |
|
1690 |
+
#: includes/Dashboard/Templates/Withdraw.php:436
|
1691 |
msgid ""
|
1692 |
"Please submit your request after approval or cancellation of your previous "
|
1693 |
"request."
|
1694 |
msgstr ""
|
1695 |
|
1696 |
+
#: includes/Dashboard/Templates/Withdraw.php:446
|
1697 |
msgid "You don't have sufficient balance for a withdraw request!"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
+
#: includes/Dashboard/Templates/Withdraw.php:506
|
1701 |
+
#: includes/Dashboard/Templates/Withdraw.php:532
|
1702 |
msgid "Sorry, no transactions were found!"
|
1703 |
msgstr ""
|
1704 |
|
2735 |
#: includes/REST/OrderController.php:82 includes/REST/OrderController.php:111
|
2736 |
#: includes/REST/OrderController.php:138 includes/REST/ProductController.php:58
|
2737 |
#: includes/REST/ProductController.php:80
|
2738 |
+
#: includes/REST/ProductController.php:121 includes/REST/StoreController.php:58
|
2739 |
+
#: includes/REST/StoreController.php:89 includes/REST/StoreController.php:104
|
2740 |
+
#: includes/REST/StoreController.php:127 includes/REST/StoreController.php:159
|
2741 |
+
#: includes/REST/WithdrawController.php:65
|
2742 |
+
#: includes/REST/WithdrawController.php:667
|
2743 |
msgid "Unique identifier for the object."
|
2744 |
msgstr ""
|
2745 |
|
2752 |
msgstr ""
|
2753 |
|
2754 |
#: includes/REST/OrderController.php:194
|
2755 |
+
#: includes/REST/ProductController.php:257
|
2756 |
+
#: includes/REST/ProductController.php:294
|
2757 |
msgid "No seller found"
|
2758 |
msgstr ""
|
2759 |
|
2760 |
#: includes/REST/OrderController.php:206
|
2761 |
+
#: includes/REST/ProductController.php:306
|
2762 |
+
#: includes/REST/ProductController.php:331
|
2763 |
msgid "Sorry, you have no permission to do this. Since it's not your product."
|
2764 |
msgstr ""
|
2765 |
|
2790 |
msgstr ""
|
2791 |
|
2792 |
#: includes/REST/OrderController.php:564
|
2793 |
+
#: includes/REST/ProductController.php:261
|
2794 |
msgid "Cannot create existing %s."
|
2795 |
msgstr ""
|
2796 |
|
2807 |
msgstr ""
|
2808 |
|
2809 |
#: includes/REST/OrderController.php:843
|
2810 |
+
#: includes/REST/ProductController.php:1697
|
2811 |
msgid "Unique identifier for the resource."
|
2812 |
msgstr ""
|
2813 |
|
3007 |
#: includes/REST/OrderController.php:1442
|
3008 |
#: includes/REST/OrderController.php:1540
|
3009 |
#: includes/REST/OrderController.php:1598
|
3010 |
+
#: includes/REST/ProductController.php:2274
|
3011 |
msgid "Meta data."
|
3012 |
msgstr ""
|
3013 |
|
3017 |
#: includes/REST/OrderController.php:1449
|
3018 |
#: includes/REST/OrderController.php:1547
|
3019 |
#: includes/REST/OrderController.php:1605
|
3020 |
+
#: includes/REST/ProductController.php:2281
|
3021 |
msgid "Meta ID."
|
3022 |
msgstr ""
|
3023 |
|
3027 |
#: includes/REST/OrderController.php:1455
|
3028 |
#: includes/REST/OrderController.php:1553
|
3029 |
#: includes/REST/OrderController.php:1611
|
3030 |
+
#: includes/REST/ProductController.php:2287
|
3031 |
msgid "Meta key."
|
3032 |
msgstr ""
|
3033 |
|
3037 |
#: includes/REST/OrderController.php:1460
|
3038 |
#: includes/REST/OrderController.php:1558
|
3039 |
#: includes/REST/OrderController.php:1616
|
3040 |
+
#: includes/REST/ProductController.php:2292
|
3041 |
msgid "Meta value."
|
3042 |
msgstr ""
|
3043 |
|
3054 |
msgstr ""
|
3055 |
|
3056 |
#: includes/REST/OrderController.php:1192
|
3057 |
+
#: includes/REST/ProductController.php:1703
|
3058 |
msgid "Product name."
|
3059 |
msgstr ""
|
3060 |
|
3235 |
msgstr ""
|
3236 |
|
3237 |
#: includes/REST/ProductController.php:126
|
3238 |
+
#: includes/REST/ProductController.php:141
|
3239 |
+
#: includes/REST/ProductController.php:165
|
3240 |
+
#: includes/REST/ProductController.php:189
|
3241 |
+
#: includes/REST/ProductController.php:213
|
3242 |
msgid "Number of product you want to get top rated product"
|
3243 |
msgstr ""
|
3244 |
|
3245 |
+
#: includes/REST/ProductController.php:146
|
3246 |
+
#: includes/REST/ProductController.php:170
|
3247 |
+
#: includes/REST/ProductController.php:194
|
3248 |
+
#: includes/REST/ProductController.php:218
|
3249 |
msgid "Number of page number"
|
3250 |
msgstr ""
|
3251 |
|
3252 |
+
#: includes/REST/ProductController.php:151
|
3253 |
+
#: includes/REST/ProductController.php:175
|
3254 |
+
#: includes/REST/ProductController.php:199
|
3255 |
+
#: includes/REST/ProductController.php:223
|
3256 |
msgid "Top rated product for specific vendor"
|
3257 |
msgstr ""
|
3258 |
|
3259 |
+
#: includes/REST/ProductController.php:265
|
3260 |
msgid "Product title must be required"
|
3261 |
msgstr ""
|
3262 |
|
3263 |
+
#: includes/REST/ProductController.php:271
|
3264 |
msgid "Category must be required"
|
3265 |
msgstr ""
|
3266 |
|
3267 |
+
#: includes/REST/ProductController.php:276
|
3268 |
msgid "You can not select more than category"
|
3269 |
msgstr ""
|
3270 |
|
3271 |
+
#: includes/REST/ProductController.php:1276
|
3272 |
+
#: includes/REST/ProductController.php:1277
|
3273 |
msgid "Placeholder"
|
3274 |
msgstr ""
|
3275 |
|
3276 |
+
#: includes/REST/ProductController.php:1489
|
3277 |
#. translators: %s: attachment id
|
3278 |
msgid "#%s is an invalid image ID."
|
3279 |
msgstr ""
|
3280 |
|
3281 |
+
#: includes/REST/ProductController.php:1708
|
3282 |
msgid "Product slug."
|
3283 |
msgstr ""
|
3284 |
|
3285 |
+
#: includes/REST/ProductController.php:1713
|
3286 |
msgid "Product URL."
|
3287 |
msgstr ""
|
3288 |
|
3289 |
+
#: includes/REST/ProductController.php:1720
|
3290 |
msgid "The date the product was created, in the site's timezone."
|
3291 |
msgstr ""
|
3292 |
|
3293 |
+
#: includes/REST/ProductController.php:1726
|
3294 |
msgid "The date the product was created, as GMT."
|
3295 |
msgstr ""
|
3296 |
|
3297 |
+
#: includes/REST/ProductController.php:1732
|
3298 |
msgid "The date the product was last modified, in the site's timezone."
|
3299 |
msgstr ""
|
3300 |
|
3301 |
+
#: includes/REST/ProductController.php:1738
|
3302 |
msgid "The date the product was last modified, as GMT."
|
3303 |
msgstr ""
|
3304 |
|
3305 |
+
#: includes/REST/ProductController.php:1744
|
3306 |
msgid "Product type."
|
3307 |
msgstr ""
|
3308 |
|
3309 |
+
#: includes/REST/ProductController.php:1751
|
3310 |
msgid "Product status (post status)."
|
3311 |
msgstr ""
|
3312 |
|
3313 |
+
#: includes/REST/ProductController.php:1758
|
3314 |
msgid "Featured product."
|
3315 |
msgstr ""
|
3316 |
|
3317 |
+
#: includes/REST/ProductController.php:1764
|
3318 |
msgid "Catalog visibility."
|
3319 |
msgstr ""
|
3320 |
|
3321 |
+
#: includes/REST/ProductController.php:1771
|
3322 |
msgid "Product description."
|
3323 |
msgstr ""
|
3324 |
|
3325 |
+
#: includes/REST/ProductController.php:1776
|
3326 |
msgid "Product short description."
|
3327 |
msgstr ""
|
3328 |
|
3329 |
+
#: includes/REST/ProductController.php:1781
|
3330 |
msgid "Unique identifier."
|
3331 |
msgstr ""
|
3332 |
|
3333 |
+
#: includes/REST/ProductController.php:1786
|
3334 |
msgid "Current product price."
|
3335 |
msgstr ""
|
3336 |
|
3337 |
+
#: includes/REST/ProductController.php:1792
|
3338 |
msgid "Product regular price."
|
3339 |
msgstr ""
|
3340 |
|
3341 |
+
#: includes/REST/ProductController.php:1797
|
3342 |
msgid "Product sale price."
|
3343 |
msgstr ""
|
3344 |
|
3345 |
+
#: includes/REST/ProductController.php:1802
|
3346 |
msgid "Start date of sale price, in the site's timezone."
|
3347 |
msgstr ""
|
3348 |
|
3349 |
+
#: includes/REST/ProductController.php:1807
|
3350 |
msgid "Start date of sale price, as GMT."
|
3351 |
msgstr ""
|
3352 |
|
3353 |
+
#: includes/REST/ProductController.php:1812
|
3354 |
msgid "End date of sale price, in the site's timezone."
|
3355 |
msgstr ""
|
3356 |
|
3357 |
+
#: includes/REST/ProductController.php:1817
|
3358 |
msgid "End date of sale price, as GMT."
|
3359 |
msgstr ""
|
3360 |
|
3361 |
+
#: includes/REST/ProductController.php:1822
|
3362 |
msgid "Price formatted in HTML."
|
3363 |
msgstr ""
|
3364 |
|
3365 |
+
#: includes/REST/ProductController.php:1828
|
3366 |
msgid "Shows if the product is on sale."
|
3367 |
msgstr ""
|
3368 |
|
3369 |
+
#: includes/REST/ProductController.php:1834
|
3370 |
msgid "Shows if the product can be bought."
|
3371 |
msgstr ""
|
3372 |
|
3373 |
+
#: includes/REST/ProductController.php:1840
|
3374 |
msgid "Amount of sales."
|
3375 |
msgstr ""
|
3376 |
|
3377 |
+
#: includes/REST/ProductController.php:1846
|
3378 |
msgid "If the product is virtual."
|
3379 |
msgstr ""
|
3380 |
|
3381 |
+
#: includes/REST/ProductController.php:1852
|
3382 |
msgid "If the product is downloadable."
|
3383 |
msgstr ""
|
3384 |
|
3385 |
+
#: includes/REST/ProductController.php:1858
|
3386 |
msgid "List of downloadable files."
|
3387 |
msgstr ""
|
3388 |
|
3389 |
+
#: includes/REST/ProductController.php:1865
|
3390 |
msgid "File MD5 hash."
|
3391 |
msgstr ""
|
3392 |
|
3393 |
+
#: includes/REST/ProductController.php:1871
|
3394 |
msgid "File name."
|
3395 |
msgstr ""
|
3396 |
|
3397 |
+
#: includes/REST/ProductController.php:1876
|
3398 |
msgid "File URL."
|
3399 |
msgstr ""
|
3400 |
|
3401 |
+
#: includes/REST/ProductController.php:1884
|
3402 |
msgid "Number of times downloadable files can be downloaded after purchase."
|
3403 |
msgstr ""
|
3404 |
|
3405 |
+
#: includes/REST/ProductController.php:1890
|
3406 |
msgid "Number of days until access to downloadable files expires."
|
3407 |
msgstr ""
|
3408 |
|
3409 |
+
#: includes/REST/ProductController.php:1896
|
3410 |
msgid "Product external URL. Only for external products."
|
3411 |
msgstr ""
|
3412 |
|
3413 |
+
#: includes/REST/ProductController.php:1902
|
3414 |
msgid "Product external button text. Only for external products."
|
3415 |
msgstr ""
|
3416 |
|
3417 |
+
#: includes/REST/ProductController.php:1907
|
3418 |
msgid "Tax status."
|
3419 |
msgstr ""
|
3420 |
|
3421 |
+
#: includes/REST/ProductController.php:1914
|
3422 |
msgid "Tax class."
|
3423 |
msgstr ""
|
3424 |
|
3425 |
+
#: includes/REST/ProductController.php:1919
|
3426 |
msgid "Stock management at product level."
|
3427 |
msgstr ""
|
3428 |
|
3429 |
+
#: includes/REST/ProductController.php:1925
|
3430 |
msgid "Stock quantity."
|
3431 |
msgstr ""
|
3432 |
|
3433 |
+
#: includes/REST/ProductController.php:1930
|
3434 |
msgid ""
|
3435 |
"Controls whether or not the product is listed as \"in stock\" or \"out of "
|
3436 |
"stock\" on the frontend."
|
3437 |
msgstr ""
|
3438 |
|
3439 |
+
#: includes/REST/ProductController.php:1936
|
3440 |
msgid "If managing stock, this controls if backorders are allowed."
|
3441 |
msgstr ""
|
3442 |
|
3443 |
+
#: includes/REST/ProductController.php:1943
|
3444 |
msgid "Shows if backorders are allowed."
|
3445 |
msgstr ""
|
3446 |
|
3447 |
+
#: includes/REST/ProductController.php:1949
|
3448 |
msgid "Shows if the product is on backordered."
|
3449 |
msgstr ""
|
3450 |
|
3451 |
+
#: includes/REST/ProductController.php:1955
|
3452 |
msgid "Allow one item to be bought in a single order."
|
3453 |
msgstr ""
|
3454 |
|
3455 |
+
#: includes/REST/ProductController.php:1962
|
3456 |
#. translators: %s: weight unit
|
3457 |
msgid "Product weight (%s)."
|
3458 |
msgstr ""
|
3459 |
|
3460 |
+
#: includes/REST/ProductController.php:1967
|
3461 |
msgid "Product dimensions."
|
3462 |
msgstr ""
|
3463 |
|
3464 |
+
#: includes/REST/ProductController.php:1973
|
3465 |
#. translators: %s: dimension unit
|
3466 |
msgid "Product length (%s)."
|
3467 |
msgstr ""
|
3468 |
|
3469 |
+
#: includes/REST/ProductController.php:1979
|
3470 |
#. translators: %s: dimension unit
|
3471 |
msgid "Product width (%s)."
|
3472 |
msgstr ""
|
3473 |
|
3474 |
+
#: includes/REST/ProductController.php:1985
|
3475 |
#. translators: %s: dimension unit
|
3476 |
msgid "Product height (%s)."
|
3477 |
msgstr ""
|
3478 |
|
3479 |
+
#: includes/REST/ProductController.php:1992
|
3480 |
msgid "Shows if the product need to be shipped."
|
3481 |
msgstr ""
|
3482 |
|
3483 |
+
#: includes/REST/ProductController.php:1998
|
3484 |
msgid "Shows whether or not the product shipping is taxable."
|
3485 |
msgstr ""
|
3486 |
|
3487 |
+
#: includes/REST/ProductController.php:2004
|
3488 |
msgid "Shipping class slug."
|
3489 |
msgstr ""
|
3490 |
|
3491 |
+
#: includes/REST/ProductController.php:2009
|
3492 |
msgid "Shipping class ID."
|
3493 |
msgstr ""
|
3494 |
|
3495 |
+
#: includes/REST/ProductController.php:2015
|
3496 |
msgid "Allow reviews."
|
3497 |
msgstr ""
|
3498 |
|
3499 |
+
#: includes/REST/ProductController.php:2021
|
3500 |
msgid "Reviews average rating."
|
3501 |
msgstr ""
|
3502 |
|
3503 |
+
#: includes/REST/ProductController.php:2027
|
3504 |
msgid "Amount of reviews that the product have."
|
3505 |
msgstr ""
|
3506 |
|
3507 |
+
#: includes/REST/ProductController.php:2033
|
3508 |
msgid "List of related products IDs."
|
3509 |
msgstr ""
|
3510 |
|
3511 |
+
#: includes/REST/ProductController.php:2042
|
3512 |
msgid "List of up-sell products IDs."
|
3513 |
msgstr ""
|
3514 |
|
3515 |
+
#: includes/REST/ProductController.php:2050
|
3516 |
msgid "List of cross-sell products IDs."
|
3517 |
msgstr ""
|
3518 |
|
3519 |
+
#: includes/REST/ProductController.php:2058
|
3520 |
msgid "Product parent ID."
|
3521 |
msgstr ""
|
3522 |
|
3523 |
+
#: includes/REST/ProductController.php:2063
|
3524 |
msgid "Optional note to send the customer after purchase."
|
3525 |
msgstr ""
|
3526 |
|
3527 |
+
#: includes/REST/ProductController.php:2068
|
3528 |
msgid "List of categories."
|
3529 |
msgstr ""
|
3530 |
|
3531 |
+
#: includes/REST/ProductController.php:2075
|
3532 |
msgid "Category ID."
|
3533 |
msgstr ""
|
3534 |
|
3535 |
+
#: includes/REST/ProductController.php:2080
|
3536 |
msgid "Category name."
|
3537 |
msgstr ""
|
3538 |
|
3539 |
+
#: includes/REST/ProductController.php:2086
|
3540 |
msgid "Category slug."
|
3541 |
msgstr ""
|
3542 |
|
3543 |
+
#: includes/REST/ProductController.php:2095
|
3544 |
msgid "List of tags."
|
3545 |
msgstr ""
|
3546 |
|
3547 |
+
#: includes/REST/ProductController.php:2102
|
3548 |
msgid "Tag ID."
|
3549 |
msgstr ""
|
3550 |
|
3551 |
+
#: includes/REST/ProductController.php:2107
|
3552 |
msgid "Tag name."
|
3553 |
msgstr ""
|
3554 |
|
3555 |
+
#: includes/REST/ProductController.php:2113
|
3556 |
msgid "Tag slug."
|
3557 |
msgstr ""
|
3558 |
|
3559 |
+
#: includes/REST/ProductController.php:2122
|
3560 |
msgid "List of images."
|
3561 |
msgstr ""
|
3562 |
|
3563 |
+
#: includes/REST/ProductController.php:2129
|
3564 |
msgid "Image ID."
|
3565 |
msgstr ""
|
3566 |
|
3567 |
+
#: includes/REST/ProductController.php:2134
|
3568 |
msgid "The date the image was created, in the site's timezone."
|
3569 |
msgstr ""
|
3570 |
|
3571 |
+
#: includes/REST/ProductController.php:2140
|
3572 |
msgid "The date the image was created, as GMT."
|
3573 |
msgstr ""
|
3574 |
|
3575 |
+
#: includes/REST/ProductController.php:2146
|
3576 |
msgid "The date the image was last modified, in the site's timezone."
|
3577 |
msgstr ""
|
3578 |
|
3579 |
+
#: includes/REST/ProductController.php:2152
|
3580 |
msgid "The date the image was last modified, as GMT."
|
3581 |
msgstr ""
|
3582 |
|
3583 |
+
#: includes/REST/ProductController.php:2158
|
3584 |
msgid "Image URL."
|
3585 |
msgstr ""
|
3586 |
|
3587 |
+
#: includes/REST/ProductController.php:2164
|
3588 |
msgid "Image name."
|
3589 |
msgstr ""
|
3590 |
|
3591 |
+
#: includes/REST/ProductController.php:2169
|
3592 |
msgid "Image alternative text."
|
3593 |
msgstr ""
|
3594 |
|
3595 |
+
#: includes/REST/ProductController.php:2174
|
3596 |
msgid "Image position. 0 means that the image is featured."
|
3597 |
msgstr ""
|
3598 |
|
3599 |
+
#: includes/REST/ProductController.php:2182
|
3600 |
msgid "List of attributes."
|
3601 |
msgstr ""
|
3602 |
|
3603 |
+
#: includes/REST/ProductController.php:2189
|
3604 |
+
#: includes/REST/ProductController.php:2234
|
3605 |
msgid "Attribute ID."
|
3606 |
msgstr ""
|
3607 |
|
3608 |
+
#: includes/REST/ProductController.php:2194
|
3609 |
+
#: includes/REST/ProductController.php:2239
|
3610 |
msgid "Attribute name."
|
3611 |
msgstr ""
|
3612 |
|
3613 |
+
#: includes/REST/ProductController.php:2199
|
3614 |
msgid "Attribute position."
|
3615 |
msgstr ""
|
3616 |
|
3617 |
+
#: includes/REST/ProductController.php:2204
|
3618 |
msgid ""
|
3619 |
"Define if the attribute is visible on the \"Additional information\" tab in "
|
3620 |
"the product's page."
|
3621 |
msgstr ""
|
3622 |
|
3623 |
+
#: includes/REST/ProductController.php:2210
|
3624 |
msgid "Define if the attribute can be used as variation."
|
3625 |
msgstr ""
|
3626 |
|
3627 |
+
#: includes/REST/ProductController.php:2216
|
3628 |
msgid "List of available term names of the attribute."
|
3629 |
msgstr ""
|
3630 |
|
3631 |
+
#: includes/REST/ProductController.php:2227
|
3632 |
msgid "Defaults variation attributes."
|
3633 |
msgstr ""
|
3634 |
|
3635 |
+
#: includes/REST/ProductController.php:2244
|
3636 |
msgid "Selected attribute term name."
|
3637 |
msgstr ""
|
3638 |
|
3639 |
+
#: includes/REST/ProductController.php:2252
|
3640 |
msgid "List of variations IDs."
|
3641 |
msgstr ""
|
3642 |
|
3643 |
+
#: includes/REST/ProductController.php:2261
|
3644 |
msgid "List of grouped products ID."
|
3645 |
msgstr ""
|
3646 |
|
3647 |
+
#: includes/REST/ProductController.php:2269
|
3648 |
msgid "Menu order, used to custom sort products."
|
3649 |
msgstr ""
|
3650 |
|
3651 |
+
#: includes/REST/StoreController.php:74
|
3652 |
msgid "Reassign the deleted user's posts and links to this user ID."
|
3653 |
msgstr ""
|
3654 |
|
3655 |
+
#: includes/REST/StoreController.php:137
|
3656 |
#: templates/widgets/store-contact-form.php:15
|
3657 |
msgid "Your Name"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
+
#: includes/REST/StoreController.php:143
|
3661 |
msgid "Your email"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
+
#: includes/REST/StoreController.php:148
|
3665 |
msgid "Your Message"
|
3666 |
msgstr ""
|
3667 |
|
3668 |
+
#: includes/REST/StoreController.php:164
|
3669 |
msgid "Status for the store object."
|
3670 |
msgstr ""
|
3671 |
|
3672 |
+
#: includes/REST/StoreController.php:250 includes/REST/StoreController.php:317
|
3673 |
+
#: includes/REST/StoreController.php:470
|
3674 |
msgid "No store found"
|
3675 |
msgstr ""
|
3676 |
|
3677 |
+
#: includes/REST/StoreController.php:271 includes/REST/StoreController.php:789
|
3678 |
msgid "No vendor found for updating status"
|
3679 |
msgstr ""
|
3680 |
|
3681 |
+
#: includes/REST/StoreController.php:276
|
3682 |
msgid "Invalid user ID for reassignment."
|
3683 |
msgstr ""
|
3684 |
|
3685 |
+
#: includes/REST/StoreController.php:487 includes/REST/StoreController.php:506
|
3686 |
msgid "No reviews found"
|
3687 |
msgstr ""
|
3688 |
|
3689 |
+
#: includes/REST/StoreController.php:695
|
3690 |
msgid "This email address is not valid"
|
3691 |
msgstr ""
|
3692 |
|
3693 |
+
#: includes/REST/StoreController.php:738
|
3694 |
msgid "No vendor is found to be send an email."
|
3695 |
msgstr ""
|
3696 |
|
3697 |
+
#: includes/REST/StoreController.php:783
|
3698 |
msgid "Status parameter must be active or inactive"
|
3699 |
msgstr ""
|
3700 |
|
3701 |
+
#: includes/REST/StoreController.php:814
|
3702 |
msgid "No items found for bulk updating"
|
3703 |
msgstr ""
|
3704 |
|
3705 |
+
#: includes/REST/StoreSettingController.php:84
|
3706 |
+
msgid "You are not logged in"
|
3707 |
+
msgstr ""
|
3708 |
+
|
3709 |
#: includes/REST/WithdrawController.php:42
|
3710 |
msgid "IDs of withdraws"
|
3711 |
msgstr ""
|
3712 |
|
3713 |
+
#: includes/REST/WithdrawController.php:199
|
3714 |
msgid "Withdraw not found"
|
3715 |
msgstr ""
|
3716 |
|
3717 |
+
#: includes/REST/WithdrawController.php:240
|
3718 |
+
#: includes/REST/WithdrawController.php:318
|
3719 |
msgid "No vendor found"
|
3720 |
msgstr ""
|
3721 |
|
3722 |
+
#: includes/REST/WithdrawController.php:308
|
3723 |
msgid "User does not have permission to withdraw"
|
3724 |
msgstr ""
|
3725 |
|
3726 |
+
#: includes/REST/WithdrawController.php:673
|
3727 |
msgid "Requested User"
|
3728 |
msgstr ""
|
3729 |
|
3730 |
+
#: includes/REST/WithdrawController.php:680
|
3731 |
msgid "Requested User ID"
|
3732 |
msgstr ""
|
3733 |
|
3734 |
+
#: includes/REST/WithdrawController.php:686
|
3735 |
msgid ""
|
3736 |
"The amount of discount. Should always be numeric, even if setting a "
|
3737 |
"percentage."
|
3738 |
msgstr ""
|
3739 |
|
3740 |
+
#: includes/REST/WithdrawController.php:691
|
3741 |
msgid "The date the withdraw request has beed created in the site's timezone."
|
3742 |
msgstr ""
|
3743 |
|
3744 |
+
#: includes/REST/WithdrawController.php:698
|
3745 |
msgid "Withdraw status"
|
3746 |
msgstr ""
|
3747 |
|
3748 |
+
#: includes/REST/WithdrawController.php:706
|
3749 |
msgid "Withdraw Method"
|
3750 |
msgstr ""
|
3751 |
|
3752 |
+
#: includes/REST/WithdrawController.php:713
|
3753 |
msgid "Withdraw Notes"
|
3754 |
msgstr ""
|
3755 |
|
3756 |
+
#: includes/REST/WithdrawController.php:719
|
3757 |
msgid "User IP"
|
3758 |
msgstr ""
|
3759 |
|
3760 |
+
#: includes/REST/WithdrawController.php:745
|
3761 |
msgid "List of withdraw IDs to be approved"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
+
#: includes/REST/WithdrawController.php:755
|
3765 |
msgid "List of withdraw IDs to be cancelled"
|
3766 |
msgstr ""
|
3767 |
|
3768 |
+
#: includes/REST/WithdrawController.php:765
|
3769 |
msgid "List of withdraw IDs to be deleted"
|
3770 |
msgstr ""
|
3771 |
|
6278 |
msgstr ""
|
6279 |
|
6280 |
#: templates/products/new-product-single.php:313
|
6281 |
+
#: templates/products/new-product.php:249
|
6282 |
msgid "Tags"
|
6283 |
msgstr ""
|
6284 |
|
6285 |
+
#: templates/products/new-product-single.php:355
|
|
|
|
|
|
|
|
|
|
|
|
|
6286 |
#: templates/products/tmpl-add-product-popup.php:23
|
6287 |
msgid "Upload a product cover image"
|
6288 |
msgstr ""
|
6289 |
|
6290 |
+
#: templates/products/new-product-single.php:387
|
6291 |
#: templates/products/new-product.php:131
|
6292 |
msgid "Delete image"
|
6293 |
msgstr ""
|
6294 |
|
6295 |
+
#: templates/products/new-product-single.php:393
|
6296 |
#: templates/products/new-product.php:138
|
6297 |
#: templates/products/tmpl-add-product-popup.php:38
|
6298 |
msgid "Add gallery image"
|
6299 |
msgstr ""
|
6300 |
|
6301 |
+
#: templates/products/new-product-single.php:407
|
6302 |
msgid "Short Description"
|
6303 |
msgstr ""
|
6304 |
|
6305 |
+
#: templates/products/new-product-single.php:412
|
6306 |
+
#: templates/products/new-product.php:268
|
6307 |
msgid "Description"
|
6308 |
msgstr ""
|
6309 |
|
6310 |
+
#: templates/products/new-product-single.php:428
|
6311 |
+
#: templates/products/new-product-single.php:429
|
6312 |
msgid "Save Product"
|
6313 |
msgstr ""
|
6314 |
|
6329 |
msgid "Short description of the product..."
|
6330 |
msgstr ""
|
6331 |
|
6332 |
+
#: templates/products/new-product.php:259
|
6333 |
+
#: templates/products/tmpl-add-product-popup.php:160
|
6334 |
+
msgid "Select product tags"
|
6335 |
+
msgstr ""
|
6336 |
+
|
6337 |
+
#: templates/products/new-product.php:268
|
6338 |
msgid "Add your product description"
|
6339 |
msgstr ""
|
6340 |
|
6341 |
+
#: templates/products/new-product.php:278
|
6342 |
msgid "Create & Add New"
|
6343 |
msgstr ""
|
6344 |
|
6345 |
+
#: templates/products/new-product.php:279
|
6346 |
msgid "Create Product"
|
6347 |
msgstr ""
|
6348 |
|
package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "dokan",
|
3 |
-
"version": "3.0.
|
4 |
"description": "A WordPress marketplace plugin",
|
5 |
"author": "weDevs",
|
6 |
"license": "GPL",
|
1 |
{
|
2 |
"name": "dokan",
|
3 |
+
"version": "3.0.9",
|
4 |
"description": "A WordPress marketplace plugin",
|
5 |
"author": "weDevs",
|
6 |
"license": "GPL",
|
readme.txt
CHANGED
@@ -5,9 +5,9 @@ Tags: WooCommerce multivendor marketplace, multi vendor marketplace, multi selle
|
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.5
|
7 |
WC requires at least: 3.0
|
8 |
-
WC tested up to: 4.
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable tag: 3.0.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -291,6 +291,14 @@ A. Just install and activate the PRO version without deleting the free plugin. A
|
|
291 |
|
292 |
== Changelog ==
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
= v3.0.8 (August 12, 2020) =
|
295 |
|
296 |
- **Fix:** WordPress v5.5 compatibility issue fixed
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.5
|
7 |
WC requires at least: 3.0
|
8 |
+
WC tested up to: 4.4.1
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable tag: 3.0.9
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
291 |
|
292 |
== Changelog ==
|
293 |
|
294 |
+
= v3.0.9 (August 25, 2020) =
|
295 |
+
|
296 |
+
- **Fix:** Some security issues fixed
|
297 |
+
- **Fix:** Loading issue when long tags list on add/edit product page (Vendor Dashboard)
|
298 |
+
- **Fix:** Add missing permission callback in REST routes to make WordPress 5.5 compatible
|
299 |
+
- **Fix:** Vendor can send multiple withdraw request from vendor dashboard
|
300 |
+
- **Fix:** API endpoint added
|
301 |
+
|
302 |
= v3.0.8 (August 12, 2020) =
|
303 |
|
304 |
- **Fix:** WordPress v5.5 compatibility issue fixed
|
templates/maps/mapbox-with-search.php
CHANGED
@@ -15,8 +15,8 @@
|
|
15 |
jQuery(document).ready(function ($) {
|
16 |
'use strict';
|
17 |
|
18 |
-
var accessToken = '<?php echo $access_token; ?>';
|
19 |
-
var mapboxId = '<?php echo $map_id; ?>';
|
20 |
var location = <?php echo json_encode( $location ); ?>
|
21 |
|
22 |
mapboxgl.accessToken = accessToken;
|
15 |
jQuery(document).ready(function ($) {
|
16 |
'use strict';
|
17 |
|
18 |
+
var accessToken = '<?php echo esc_attr( $access_token ); ?>';
|
19 |
+
var mapboxId = '<?php echo esc_attr( $map_id ); ?>';
|
20 |
var location = <?php echo json_encode( $location ); ?>
|
21 |
|
22 |
mapboxgl.accessToken = accessToken;
|
templates/products/new-product-single.php
CHANGED
@@ -199,7 +199,7 @@ do_action( 'dokan_dashboard_wrap_before', $post, $post_id );
|
|
199 |
data-product-id="<?php echo esc_attr( $post_id ); ?>">
|
200 |
( <?php esc_html_e( ' You Earn : ', 'dokan-lite' ) ?><?php echo esc_html( get_woocommerce_currency_symbol() ); ?>
|
201 |
<span class="vendor-price">
|
202 |
-
<?php echo wc_format_localized_price( esc_attr( dokan()->commission->get_earning_by_product( $post_id ) ) ); ?>
|
203 |
</span>
|
204 |
)
|
205 |
</span>
|
@@ -314,25 +314,20 @@ do_action( 'dokan_dashboard_wrap_before', $post, $post_id );
|
|
314 |
<?php
|
315 |
require_once DOKAN_LIB_DIR.'/class.taxonomy-walker.php';
|
316 |
$term = wp_get_post_terms( $post_id, 'product_tag', array( 'fields' => 'ids') );
|
317 |
-
$selected = ( $term ) ? $term : array();
|
318 |
-
$drop_down_tags = wp_dropdown_categories( array(
|
319 |
-
'show_option_none' => __( '', 'dokan-lite' ),
|
320 |
-
'hierarchical' => 1,
|
321 |
-
'hide_empty' => 0,
|
322 |
-
'name' => 'product_tag[]',
|
323 |
-
'id' => 'product_tag',
|
324 |
-
'taxonomy' => 'product_tag',
|
325 |
-
'title_li' => '',
|
326 |
-
'class' => 'product_tags dokan-form-control dokan-select2',
|
327 |
-
'exclude' => '',
|
328 |
-
'selected' => $selected,
|
329 |
-
'echo' => 0,
|
330 |
-
'walker' => new TaxonomyDropdown( $post_id )
|
331 |
-
) );
|
332 |
-
|
333 |
-
echo str_replace( '<select', '<select data-placeholder="' . esc_html__( 'Select product tags', 'dokan-lite' ) . '" multiple="multiple" ', $drop_down_tags ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
|
334 |
|
|
|
|
|
|
|
|
|
|
|
335 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
</div>
|
337 |
|
338 |
<?php do_action( 'dokan_product_edit_after_product_tags', $post, $post_id ); ?>
|
199 |
data-product-id="<?php echo esc_attr( $post_id ); ?>">
|
200 |
( <?php esc_html_e( ' You Earn : ', 'dokan-lite' ) ?><?php echo esc_html( get_woocommerce_currency_symbol() ); ?>
|
201 |
<span class="vendor-price">
|
202 |
+
<?php echo esc_html( wc_format_localized_price( esc_attr( dokan()->commission->get_earning_by_product( $post_id ) ) ) ); ?>
|
203 |
</span>
|
204 |
)
|
205 |
</span>
|
314 |
<?php
|
315 |
require_once DOKAN_LIB_DIR.'/class.taxonomy-walker.php';
|
316 |
$term = wp_get_post_terms( $post_id, 'product_tag', array( 'fields' => 'ids') );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
|
318 |
+
$drop_down_tags = array(
|
319 |
+
'hide_empty' => 0,
|
320 |
+
);
|
321 |
+
|
322 |
+
$my_tax_terms = get_terms( 'product_tag', $drop_down_tags );
|
323 |
?>
|
324 |
+
<select multiple="multiple" name="product_tag[]" id="product_tag_search" class="product_tags dokan-form-control dokan-select2">
|
325 |
+
<?php foreach ( $my_tax_terms as $tax_term ) : ?>
|
326 |
+
<?php if ( ! empty( $term ) && in_array( $tax_term->term_id, $term ) ) : ?>
|
327 |
+
<option value="<?php echo esc_attr( $tax_term->term_id ); ?>" selected="selected" ><?php echo esc_html( $tax_term->name ); ?></option>
|
328 |
+
<?php endif ?>
|
329 |
+
<?php endforeach ?>
|
330 |
+
</select>
|
331 |
</div>
|
332 |
|
333 |
<?php do_action( 'dokan_product_edit_after_product_tags', $post, $post_id ); ?>
|
templates/products/new-product.php
CHANGED
@@ -246,29 +246,18 @@ use WeDevs\Dokan\Walkers\TaxonomyDropdown;
|
|
246 |
<?php endif; ?>
|
247 |
|
248 |
<div class="dokan-form-group">
|
|
|
249 |
<?php
|
250 |
require_once DOKAN_LIB_DIR.'/class.taxonomy-walker.php';
|
|
|
|
|
|
|
|
|
251 |
|
252 |
-
$
|
253 |
-
$selected_tag = empty( $selected_tag ) ? array() : $selected_tag;
|
254 |
-
|
255 |
-
$drop_down_tags = wp_dropdown_categories( array(
|
256 |
-
'show_option_none' => __( '', 'dokan-lite' ),
|
257 |
-
'hierarchical' => 1,
|
258 |
-
'hide_empty' => 0,
|
259 |
-
'name' => 'product_tag[]',
|
260 |
-
'id' => 'product_tag',
|
261 |
-
'taxonomy' => 'product_tag',
|
262 |
-
'title_li' => '',
|
263 |
-
'class' => 'product_tags dokan-form-control',
|
264 |
-
'exclude' => '',
|
265 |
-
'selected' => $selected_tag,
|
266 |
-
'echo' => 0,
|
267 |
-
'walker' => new TaxonomyDropdown()
|
268 |
-
) );
|
269 |
-
|
270 |
-
echo str_replace( '<select', '<select data-placeholder="'.esc_attr__( 'Select product tags', 'dokan-lite' ).'" multiple="multiple" ', $drop_down_tags ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
|
271 |
?>
|
|
|
|
|
272 |
</div>
|
273 |
|
274 |
<?php do_action( 'dokan_new_product_after_product_tags' ); ?>
|
246 |
<?php endif; ?>
|
247 |
|
248 |
<div class="dokan-form-group">
|
249 |
+
<label for="product_tag" class="form-label"><?php esc_html_e( 'Tags', 'dokan-lite' ); ?></label>
|
250 |
<?php
|
251 |
require_once DOKAN_LIB_DIR.'/class.taxonomy-walker.php';
|
252 |
+
|
253 |
+
$drop_down_tags = array(
|
254 |
+
'hide_empty' => 0,
|
255 |
+
);
|
256 |
|
257 |
+
$my_tax_terms = get_terms( 'product_tag', $drop_down_tags );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
?>
|
259 |
+
<select multiple="multiple" placeholder="<?php esc_attr_e( 'Select product tags', 'dokan-lite' ); ?>" name="product_tag[]" id="product_tag_search" class="product_tags dokan-form-control dokan-select2">
|
260 |
+
</select>
|
261 |
</div>
|
262 |
|
263 |
<?php do_action( 'dokan_new_product_after_product_tags' ); ?>
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit506b93f25a35800cd6b17a9296c4bf49::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -66,6 +66,7 @@ return array(
|
|
66 |
'WeDevs\\Dokan\\REST\\ProductAttributeTermsController' => $baseDir . '/includes/REST/ProductAttributeTermsController.php',
|
67 |
'WeDevs\\Dokan\\REST\\ProductController' => $baseDir . '/includes/REST/ProductController.php',
|
68 |
'WeDevs\\Dokan\\REST\\StoreController' => $baseDir . '/includes/REST/StoreController.php',
|
|
|
69 |
'WeDevs\\Dokan\\REST\\WithdrawController' => $baseDir . '/includes/REST/WithdrawController.php',
|
70 |
'WeDevs\\Dokan\\Registration' => $baseDir . '/includes/Registration.php',
|
71 |
'WeDevs\\Dokan\\Rewrites' => $baseDir . '/includes/Rewrites.php',
|
66 |
'WeDevs\\Dokan\\REST\\ProductAttributeTermsController' => $baseDir . '/includes/REST/ProductAttributeTermsController.php',
|
67 |
'WeDevs\\Dokan\\REST\\ProductController' => $baseDir . '/includes/REST/ProductController.php',
|
68 |
'WeDevs\\Dokan\\REST\\StoreController' => $baseDir . '/includes/REST/StoreController.php',
|
69 |
+
'WeDevs\\Dokan\\REST\\StoreSettingController' => $baseDir . '/includes/REST/StoreSettingController.php',
|
70 |
'WeDevs\\Dokan\\REST\\WithdrawController' => $baseDir . '/includes/REST/WithdrawController.php',
|
71 |
'WeDevs\\Dokan\\Registration' => $baseDir . '/includes/Registration.php',
|
72 |
'WeDevs\\Dokan\\Rewrites' => $baseDir . '/includes/Rewrites.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit3983dedfaf74118befcda2043735123d
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit506b93f25a35800cd6b17a9296c4bf49
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit506b93f25a35800cd6b17a9296c4bf49', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit506b93f25a35800cd6b17a9296c4bf49', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit506b93f25a35800cd6b17a9296c4bf49::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -89,6 +89,7 @@ class ComposerStaticInit3983dedfaf74118befcda2043735123d
|
|
89 |
'WeDevs\\Dokan\\REST\\ProductAttributeTermsController' => __DIR__ . '/../..' . '/includes/REST/ProductAttributeTermsController.php',
|
90 |
'WeDevs\\Dokan\\REST\\ProductController' => __DIR__ . '/../..' . '/includes/REST/ProductController.php',
|
91 |
'WeDevs\\Dokan\\REST\\StoreController' => __DIR__ . '/../..' . '/includes/REST/StoreController.php',
|
|
|
92 |
'WeDevs\\Dokan\\REST\\WithdrawController' => __DIR__ . '/../..' . '/includes/REST/WithdrawController.php',
|
93 |
'WeDevs\\Dokan\\Registration' => __DIR__ . '/../..' . '/includes/Registration.php',
|
94 |
'WeDevs\\Dokan\\Rewrites' => __DIR__ . '/../..' . '/includes/Rewrites.php',
|
@@ -165,9 +166,9 @@ class ComposerStaticInit3983dedfaf74118befcda2043735123d
|
|
165 |
public static function getInitializer(ClassLoader $loader)
|
166 |
{
|
167 |
return \Closure::bind(function () use ($loader) {
|
168 |
-
$loader->prefixLengthsPsr4 =
|
169 |
-
$loader->prefixDirsPsr4 =
|
170 |
-
$loader->classMap =
|
171 |
|
172 |
}, null, ClassLoader::class);
|
173 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit506b93f25a35800cd6b17a9296c4bf49
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
89 |
'WeDevs\\Dokan\\REST\\ProductAttributeTermsController' => __DIR__ . '/../..' . '/includes/REST/ProductAttributeTermsController.php',
|
90 |
'WeDevs\\Dokan\\REST\\ProductController' => __DIR__ . '/../..' . '/includes/REST/ProductController.php',
|
91 |
'WeDevs\\Dokan\\REST\\StoreController' => __DIR__ . '/../..' . '/includes/REST/StoreController.php',
|
92 |
+
'WeDevs\\Dokan\\REST\\StoreSettingController' => __DIR__ . '/../..' . '/includes/REST/StoreSettingController.php',
|
93 |
'WeDevs\\Dokan\\REST\\WithdrawController' => __DIR__ . '/../..' . '/includes/REST/WithdrawController.php',
|
94 |
'WeDevs\\Dokan\\Registration' => __DIR__ . '/../..' . '/includes/Registration.php',
|
95 |
'WeDevs\\Dokan\\Rewrites' => __DIR__ . '/../..' . '/includes/Rewrites.php',
|
166 |
public static function getInitializer(ClassLoader $loader)
|
167 |
{
|
168 |
return \Closure::bind(function () use ($loader) {
|
169 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit506b93f25a35800cd6b17a9296c4bf49::$prefixLengthsPsr4;
|
170 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit506b93f25a35800cd6b17a9296c4bf49::$prefixDirsPsr4;
|
171 |
+
$loader->classMap = ComposerStaticInit506b93f25a35800cd6b17a9296c4bf49::$classMap;
|
172 |
|
173 |
}, null, ClassLoader::class);
|
174 |
}
|