Version Description
Download this release
Release Info
Developer | tareq1988 |
Plugin | Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy |
Version | 3.2.8 |
Comparing to | |
See all releases |
Code changes from version 3.2.7 to 3.2.8
- assets/js/vue-admin.js +42 -8
- assets/js/vue-admin.min.js +1 -1
- assets/js/vue-bootstrap.js +42 -8
- assets/js/vue-bootstrap.min.js +1 -1
- dokan.php +52 -17
- includes/Admin/LimitedTimePromotion.php +6 -6
- includes/Admin/Settings.php +7 -0
- includes/Admin/UserProfile.php +7 -0
- includes/Customizer.php +2 -0
- includes/Rewrites.php +3 -0
- includes/Vendor/Manager.php +12 -3
- languages/dokan-lite.pot +212 -197
- readme.txt +15 -2
- templates/account/vendor-registration.php +7 -0
- templates/admin-notice-dependencies.php +33 -0
- templates/global/seller-registration-form.php +9 -2
- templates/products/new-product.php +11 -0
- templates/products/tmpl-add-product-popup.php +10 -0
- templates/settings/store-form.php +4 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.json +10 -2
assets/js/vue-admin.js
CHANGED
@@ -445,6 +445,10 @@ if (false) {(function () {
|
|
445 |
//
|
446 |
//
|
447 |
//
|
|
|
|
|
|
|
|
|
448 |
|
449 |
|
450 |
|
@@ -2063,7 +2067,7 @@ var render = function() {
|
|
2063 |
{ staticClass: "dokan-form-group" },
|
2064 |
[
|
2065 |
_c("div", { staticClass: "column" }, [
|
2066 |
-
_c("label", { attrs: { for: "
|
2067 |
_vm._v(_vm._s(_vm.__("First Name", "dokan-lite")))
|
2068 |
]),
|
2069 |
_vm._v(" "),
|
@@ -2079,6 +2083,7 @@ var render = function() {
|
|
2079 |
staticClass: "dokan-form-input",
|
2080 |
attrs: {
|
2081 |
type: "email",
|
|
|
2082 |
placeholder: _vm.__("First Name", "dokan-lite")
|
2083 |
},
|
2084 |
domProps: { value: _vm.vendorInfo.first_name },
|
@@ -2094,7 +2099,7 @@ var render = function() {
|
|
2094 |
]),
|
2095 |
_vm._v(" "),
|
2096 |
_c("div", { staticClass: "column" }, [
|
2097 |
-
_c("label", { attrs: { for: "
|
2098 |
_vm._v(_vm._s(_vm.__("Last Name", "dokan-lite")))
|
2099 |
]),
|
2100 |
_vm._v(" "),
|
@@ -2110,6 +2115,7 @@ var render = function() {
|
|
2110 |
staticClass: "dokan-form-input",
|
2111 |
attrs: {
|
2112 |
type: "email",
|
|
|
2113 |
placeholder: _vm.__("Last Name", "dokan-lite")
|
2114 |
},
|
2115 |
domProps: { value: _vm.vendorInfo.last_name },
|
@@ -2148,6 +2154,7 @@ var render = function() {
|
|
2148 |
},
|
2149 |
attrs: {
|
2150 |
type: "text",
|
|
|
2151 |
placeholder: _vm.getError("store_name")
|
2152 |
? _vm.__("Store Name is required", "dokan-lite")
|
2153 |
: _vm.__("Store Name", "dokan-lite")
|
@@ -2166,7 +2173,7 @@ var render = function() {
|
|
2166 |
_vm._v(" "),
|
2167 |
!_vm.getId()
|
2168 |
? _c("div", { staticClass: "column" }, [
|
2169 |
-
_c("label", { attrs: { for: "
|
2170 |
_vm._v(_vm._s(_vm.__("Store URL", "dokan-lite")))
|
2171 |
]),
|
2172 |
_vm._v(" "),
|
@@ -2182,6 +2189,7 @@ var render = function() {
|
|
2182 |
staticClass: "dokan-form-input",
|
2183 |
attrs: {
|
2184 |
type: "text",
|
|
|
2185 |
placeholder: _vm.__("Store Url", "dokan-lite")
|
2186 |
},
|
2187 |
domProps: { value: _vm.vendorInfo.user_nicename },
|
@@ -2239,6 +2247,7 @@ var render = function() {
|
|
2239 |
staticClass: "dokan-form-input",
|
2240 |
attrs: {
|
2241 |
type: "number",
|
|
|
2242 |
placeholder: _vm.__("123456789", "dokan-lite")
|
2243 |
},
|
2244 |
domProps: { value: _vm.vendorInfo.phone },
|
@@ -2277,6 +2286,7 @@ var render = function() {
|
|
2277 |
},
|
2278 |
attrs: {
|
2279 |
type: "email",
|
|
|
2280 |
placeholder: _vm.getError("email")
|
2281 |
? _vm.__("Email is required", "dokan-lite")
|
2282 |
: _vm.__("store@email.com", "dokan-lite")
|
@@ -2309,7 +2319,7 @@ var render = function() {
|
|
2309 |
!_vm.getId()
|
2310 |
? [
|
2311 |
_c("div", { staticClass: "column" }, [
|
2312 |
-
_c("label", { attrs: { for: "
|
2313 |
_vm._v(_vm._s(_vm.__("Username", "dokan-lite")))
|
2314 |
]),
|
2315 |
_c("span", { staticClass: "required-field" }, [_vm._v("*")]),
|
@@ -2330,6 +2340,7 @@ var render = function() {
|
|
2330 |
},
|
2331 |
attrs: {
|
2332 |
type: "text",
|
|
|
2333 |
placeholder: _vm.getError("user_login")
|
2334 |
? _vm.__("Username is required", "dokan-lite")
|
2335 |
: _vm.__("Username", "dokan-lite")
|
@@ -2405,7 +2416,11 @@ var render = function() {
|
|
2405 |
}
|
2406 |
],
|
2407 |
staticClass: "dokan-form-input",
|
2408 |
-
attrs: {
|
|
|
|
|
|
|
|
|
2409 |
domProps: { value: _vm.vendorInfo.user_pass },
|
2410 |
on: {
|
2411 |
input: function($event) {
|
@@ -2556,6 +2571,7 @@ var render = function() {
|
|
2556 |
staticClass: "dokan-form-input",
|
2557 |
attrs: {
|
2558 |
type: "text",
|
|
|
2559 |
placeholder: _vm.__("Street 1", "dokan-lite")
|
2560 |
},
|
2561 |
domProps: { value: _vm.vendorInfo.address.street_1 },
|
@@ -2591,6 +2607,7 @@ var render = function() {
|
|
2591 |
staticClass: "dokan-form-input",
|
2592 |
attrs: {
|
2593 |
type: "text",
|
|
|
2594 |
placeholder: _vm.__("Street 2", "dokan-lite")
|
2595 |
},
|
2596 |
domProps: { value: _vm.vendorInfo.address.street_2 },
|
@@ -2626,6 +2643,7 @@ var render = function() {
|
|
2626 |
staticClass: "dokan-form-input",
|
2627 |
attrs: {
|
2628 |
type: "text",
|
|
|
2629 |
placeholder: _vm.__("City", "dokan-lite")
|
2630 |
},
|
2631 |
domProps: { value: _vm.vendorInfo.address.city },
|
@@ -2655,7 +2673,11 @@ var render = function() {
|
|
2655 |
}
|
2656 |
],
|
2657 |
staticClass: "dokan-form-input",
|
2658 |
-
attrs: {
|
|
|
|
|
|
|
|
|
2659 |
domProps: { value: _vm.vendorInfo.address.zip },
|
2660 |
on: {
|
2661 |
input: function($event) {
|
@@ -2678,6 +2700,7 @@ var render = function() {
|
|
2678 |
_vm._v(" "),
|
2679 |
_c("Multiselect", {
|
2680 |
attrs: {
|
|
|
2681 |
options: _vm.countries,
|
2682 |
multiselect: false,
|
2683 |
label: "name",
|
@@ -2719,6 +2742,7 @@ var render = function() {
|
|
2719 |
],
|
2720 |
staticClass: "dokan-form-input",
|
2721 |
attrs: {
|
|
|
2722 |
type: "text",
|
2723 |
placeholder: _vm.__("State", "dokan-lite")
|
2724 |
},
|
@@ -2740,6 +2764,7 @@ var render = function() {
|
|
2740 |
: [
|
2741 |
_c("Multiselect", {
|
2742 |
attrs: {
|
|
|
2743 |
options: _vm.getStatesFromCountryCode(_vm.selectedCode),
|
2744 |
multiselect: false,
|
2745 |
showLabels: false,
|
@@ -2893,6 +2918,7 @@ var render = function() {
|
|
2893 |
staticClass: "dokan-form-input",
|
2894 |
attrs: {
|
2895 |
type: "text",
|
|
|
2896 |
placeholder: _vm.__("Account Name", "dokan-lite")
|
2897 |
},
|
2898 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_name },
|
@@ -2928,6 +2954,7 @@ var render = function() {
|
|
2928 |
staticClass: "dokan-form-input",
|
2929 |
attrs: {
|
2930 |
type: "text",
|
|
|
2931 |
placeholder: _vm.__("1233456789", "dokan-lite")
|
2932 |
},
|
2933 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_number },
|
@@ -2963,6 +2990,7 @@ var render = function() {
|
|
2963 |
staticClass: "dokan-form-input",
|
2964 |
attrs: {
|
2965 |
type: "text",
|
|
|
2966 |
placeholder: _vm.__("Bank Name", "dokan-lite")
|
2967 |
},
|
2968 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_name },
|
@@ -2998,6 +3026,7 @@ var render = function() {
|
|
2998 |
staticClass: "dokan-form-input",
|
2999 |
attrs: {
|
3000 |
type: "text",
|
|
|
3001 |
placeholder: _vm.__("Bank Address", "dokan-lite")
|
3002 |
},
|
3003 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_addr },
|
@@ -3033,6 +3062,7 @@ var render = function() {
|
|
3033 |
staticClass: "dokan-form-input",
|
3034 |
attrs: {
|
3035 |
type: "text",
|
|
|
3036 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3037 |
},
|
3038 |
domProps: {
|
@@ -3070,6 +3100,7 @@ var render = function() {
|
|
3070 |
staticClass: "dokan-form-input",
|
3071 |
attrs: {
|
3072 |
type: "text",
|
|
|
3073 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3074 |
},
|
3075 |
domProps: { value: _vm.vendorInfo.payment.bank.iban },
|
@@ -3105,6 +3136,7 @@ var render = function() {
|
|
3105 |
staticClass: "dokan-form-input",
|
3106 |
attrs: {
|
3107 |
type: "text",
|
|
|
3108 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3109 |
},
|
3110 |
domProps: { value: _vm.vendorInfo.payment.bank.swift },
|
@@ -3144,7 +3176,7 @@ var render = function() {
|
|
3144 |
class: { column: _vm.getId(), "checkbox-group": !_vm.getId() }
|
3145 |
},
|
3146 |
[
|
3147 |
-
_c("label", { attrs: { for: "
|
3148 |
_vm._v(_vm._s(_vm.__("PayPal Email", "dokan-lite")))
|
3149 |
]),
|
3150 |
_vm._v(" "),
|
@@ -3160,6 +3192,7 @@ var render = function() {
|
|
3160 |
staticClass: "dokan-form-input",
|
3161 |
attrs: {
|
3162 |
type: "email",
|
|
|
3163 |
placeholder: _vm.__("store@email.com", "dokan-lite")
|
3164 |
},
|
3165 |
domProps: { value: _vm.vendorInfo.payment.paypal.email },
|
@@ -3186,7 +3219,7 @@ var render = function() {
|
|
3186 |
"div",
|
3187 |
{ staticClass: "column" },
|
3188 |
[
|
3189 |
-
_c("label", [
|
3190 |
_vm._v(
|
3191 |
_vm._s(
|
3192 |
_vm.__("Admin Commission Type", "dokan-lite")
|
@@ -3196,6 +3229,7 @@ var render = function() {
|
|
3196 |
_vm._v(" "),
|
3197 |
_c("Multiselect", {
|
3198 |
attrs: {
|
|
|
3199 |
options: _vm.commissionTypes,
|
3200 |
"track-by": "name",
|
3201 |
label: "label",
|
445 |
//
|
446 |
//
|
447 |
//
|
448 |
+
//
|
449 |
+
//
|
450 |
+
//
|
451 |
+
//
|
452 |
|
453 |
|
454 |
|
2067 |
{ staticClass: "dokan-form-group" },
|
2068 |
[
|
2069 |
_c("div", { staticClass: "column" }, [
|
2070 |
+
_c("label", { attrs: { for: "first-name" } }, [
|
2071 |
_vm._v(_vm._s(_vm.__("First Name", "dokan-lite")))
|
2072 |
]),
|
2073 |
_vm._v(" "),
|
2083 |
staticClass: "dokan-form-input",
|
2084 |
attrs: {
|
2085 |
type: "email",
|
2086 |
+
id: "first-name",
|
2087 |
placeholder: _vm.__("First Name", "dokan-lite")
|
2088 |
},
|
2089 |
domProps: { value: _vm.vendorInfo.first_name },
|
2099 |
]),
|
2100 |
_vm._v(" "),
|
2101 |
_c("div", { staticClass: "column" }, [
|
2102 |
+
_c("label", { attrs: { for: "last-name" } }, [
|
2103 |
_vm._v(_vm._s(_vm.__("Last Name", "dokan-lite")))
|
2104 |
]),
|
2105 |
_vm._v(" "),
|
2115 |
staticClass: "dokan-form-input",
|
2116 |
attrs: {
|
2117 |
type: "email",
|
2118 |
+
id: "last-name",
|
2119 |
placeholder: _vm.__("Last Name", "dokan-lite")
|
2120 |
},
|
2121 |
domProps: { value: _vm.vendorInfo.last_name },
|
2154 |
},
|
2155 |
attrs: {
|
2156 |
type: "text",
|
2157 |
+
id: "store-name",
|
2158 |
placeholder: _vm.getError("store_name")
|
2159 |
? _vm.__("Store Name is required", "dokan-lite")
|
2160 |
: _vm.__("Store Name", "dokan-lite")
|
2173 |
_vm._v(" "),
|
2174 |
!_vm.getId()
|
2175 |
? _c("div", { staticClass: "column" }, [
|
2176 |
+
_c("label", { attrs: { for: "user-nicename" } }, [
|
2177 |
_vm._v(_vm._s(_vm.__("Store URL", "dokan-lite")))
|
2178 |
]),
|
2179 |
_vm._v(" "),
|
2189 |
staticClass: "dokan-form-input",
|
2190 |
attrs: {
|
2191 |
type: "text",
|
2192 |
+
id: "user-nicename",
|
2193 |
placeholder: _vm.__("Store Url", "dokan-lite")
|
2194 |
},
|
2195 |
domProps: { value: _vm.vendorInfo.user_nicename },
|
2247 |
staticClass: "dokan-form-input",
|
2248 |
attrs: {
|
2249 |
type: "number",
|
2250 |
+
id: "store-phone",
|
2251 |
placeholder: _vm.__("123456789", "dokan-lite")
|
2252 |
},
|
2253 |
domProps: { value: _vm.vendorInfo.phone },
|
2286 |
},
|
2287 |
attrs: {
|
2288 |
type: "email",
|
2289 |
+
id: "store-email",
|
2290 |
placeholder: _vm.getError("email")
|
2291 |
? _vm.__("Email is required", "dokan-lite")
|
2292 |
: _vm.__("store@email.com", "dokan-lite")
|
2319 |
!_vm.getId()
|
2320 |
? [
|
2321 |
_c("div", { staticClass: "column" }, [
|
2322 |
+
_c("label", { attrs: { for: "user-login" } }, [
|
2323 |
_vm._v(_vm._s(_vm.__("Username", "dokan-lite")))
|
2324 |
]),
|
2325 |
_c("span", { staticClass: "required-field" }, [_vm._v("*")]),
|
2340 |
},
|
2341 |
attrs: {
|
2342 |
type: "text",
|
2343 |
+
id: "user-login",
|
2344 |
placeholder: _vm.getError("user_login")
|
2345 |
? _vm.__("Username is required", "dokan-lite")
|
2346 |
: _vm.__("Username", "dokan-lite")
|
2416 |
}
|
2417 |
],
|
2418 |
staticClass: "dokan-form-input",
|
2419 |
+
attrs: {
|
2420 |
+
id: "store-password",
|
2421 |
+
type: "text",
|
2422 |
+
placeholder: "********"
|
2423 |
+
},
|
2424 |
domProps: { value: _vm.vendorInfo.user_pass },
|
2425 |
on: {
|
2426 |
input: function($event) {
|
2571 |
staticClass: "dokan-form-input",
|
2572 |
attrs: {
|
2573 |
type: "text",
|
2574 |
+
id: "street-1",
|
2575 |
placeholder: _vm.__("Street 1", "dokan-lite")
|
2576 |
},
|
2577 |
domProps: { value: _vm.vendorInfo.address.street_1 },
|
2607 |
staticClass: "dokan-form-input",
|
2608 |
attrs: {
|
2609 |
type: "text",
|
2610 |
+
id: "street-2",
|
2611 |
placeholder: _vm.__("Street 2", "dokan-lite")
|
2612 |
},
|
2613 |
domProps: { value: _vm.vendorInfo.address.street_2 },
|
2643 |
staticClass: "dokan-form-input",
|
2644 |
attrs: {
|
2645 |
type: "text",
|
2646 |
+
id: "city",
|
2647 |
placeholder: _vm.__("City", "dokan-lite")
|
2648 |
},
|
2649 |
domProps: { value: _vm.vendorInfo.address.city },
|
2673 |
}
|
2674 |
],
|
2675 |
staticClass: "dokan-form-input",
|
2676 |
+
attrs: {
|
2677 |
+
type: "text",
|
2678 |
+
id: "zip",
|
2679 |
+
placeholder: _vm.__("Zip", "dokan-lite")
|
2680 |
+
},
|
2681 |
domProps: { value: _vm.vendorInfo.address.zip },
|
2682 |
on: {
|
2683 |
input: function($event) {
|
2700 |
_vm._v(" "),
|
2701 |
_c("Multiselect", {
|
2702 |
attrs: {
|
2703 |
+
id: "country",
|
2704 |
options: _vm.countries,
|
2705 |
multiselect: false,
|
2706 |
label: "name",
|
2742 |
],
|
2743 |
staticClass: "dokan-form-input",
|
2744 |
attrs: {
|
2745 |
+
id: "state",
|
2746 |
type: "text",
|
2747 |
placeholder: _vm.__("State", "dokan-lite")
|
2748 |
},
|
2764 |
: [
|
2765 |
_c("Multiselect", {
|
2766 |
attrs: {
|
2767 |
+
id: "state",
|
2768 |
options: _vm.getStatesFromCountryCode(_vm.selectedCode),
|
2769 |
multiselect: false,
|
2770 |
showLabels: false,
|
2918 |
staticClass: "dokan-form-input",
|
2919 |
attrs: {
|
2920 |
type: "text",
|
2921 |
+
id: "account-name",
|
2922 |
placeholder: _vm.__("Account Name", "dokan-lite")
|
2923 |
},
|
2924 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_name },
|
2954 |
staticClass: "dokan-form-input",
|
2955 |
attrs: {
|
2956 |
type: "text",
|
2957 |
+
id: "account-number",
|
2958 |
placeholder: _vm.__("1233456789", "dokan-lite")
|
2959 |
},
|
2960 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_number },
|
2990 |
staticClass: "dokan-form-input",
|
2991 |
attrs: {
|
2992 |
type: "text",
|
2993 |
+
id: "bank-name",
|
2994 |
placeholder: _vm.__("Bank Name", "dokan-lite")
|
2995 |
},
|
2996 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_name },
|
3026 |
staticClass: "dokan-form-input",
|
3027 |
attrs: {
|
3028 |
type: "text",
|
3029 |
+
id: "bank-address",
|
3030 |
placeholder: _vm.__("Bank Address", "dokan-lite")
|
3031 |
},
|
3032 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_addr },
|
3062 |
staticClass: "dokan-form-input",
|
3063 |
attrs: {
|
3064 |
type: "text",
|
3065 |
+
id: "routing-number",
|
3066 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3067 |
},
|
3068 |
domProps: {
|
3100 |
staticClass: "dokan-form-input",
|
3101 |
attrs: {
|
3102 |
type: "text",
|
3103 |
+
id: "iban",
|
3104 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3105 |
},
|
3106 |
domProps: { value: _vm.vendorInfo.payment.bank.iban },
|
3136 |
staticClass: "dokan-form-input",
|
3137 |
attrs: {
|
3138 |
type: "text",
|
3139 |
+
id: "swift",
|
3140 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3141 |
},
|
3142 |
domProps: { value: _vm.vendorInfo.payment.bank.swift },
|
3176 |
class: { column: _vm.getId(), "checkbox-group": !_vm.getId() }
|
3177 |
},
|
3178 |
[
|
3179 |
+
_c("label", { attrs: { for: "paypal-email" } }, [
|
3180 |
_vm._v(_vm._s(_vm.__("PayPal Email", "dokan-lite")))
|
3181 |
]),
|
3182 |
_vm._v(" "),
|
3192 |
staticClass: "dokan-form-input",
|
3193 |
attrs: {
|
3194 |
type: "email",
|
3195 |
+
id: "paypal-email",
|
3196 |
placeholder: _vm.__("store@email.com", "dokan-lite")
|
3197 |
},
|
3198 |
domProps: { value: _vm.vendorInfo.payment.paypal.email },
|
3219 |
"div",
|
3220 |
{ staticClass: "column" },
|
3221 |
[
|
3222 |
+
_c("label", { attrs: { for: "commission-type" } }, [
|
3223 |
_vm._v(
|
3224 |
_vm._s(
|
3225 |
_vm.__("Admin Commission Type", "dokan-lite")
|
3229 |
_vm._v(" "),
|
3230 |
_c("Multiselect", {
|
3231 |
attrs: {
|
3232 |
+
id: "commission-type",
|
3233 |
options: _vm.commissionTypes,
|
3234 |
"track-by": "name",
|
3235 |
label: "label",
|
assets/js/vue-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(10),n=a(28),i=!1;var o=function(e){i||a(27)},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(15);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,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(46),n=a(117),i=!1;var o=function(e){i||a(116)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UpgradeBanner.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(54);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(1),n=(a.n(s),a(2)),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");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(3);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(2),n=a(3);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,a){"use strict";var s=a(11),n=a(30),i=!1;var o=function(e){i||a(29)},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(12),n=a(31),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){e.exports=jQuery},function(e,t,a){"use strict";var s=a(8),n=a(25),i=!1;var o=function(e){i||a(24)},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){return 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){return 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(9),n=a(32),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){return t.preventDefault(),e.uploadImage.apply(null,arguments)}}},[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){return t.preventDefault(),e.generatePassword.apply(null,arguments)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword.apply(null,arguments)}}},[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){return t.preventDefault(),e.cancelButton.apply(null,arguments)}}},[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(13),n=a(35),i=!1;var o=function(e){i||a(34)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorAddressFields.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:"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:"address-multiselect"},[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:"address-multiselect"},[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(14),n=a(38),i=!1;var o=function(e){i||a(37)},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=a(7),i=dokan_get_lib("Postbox"),o=dokan_get_lib("Loading"),r=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:i,Loading:o,Chart:s.a,Currency:r,UpgradeBanner:n.a},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";t.a={name:"UpgradeBanner",data:function(){return{show:!0,upgradeURL:dokan.urls.upgradeToPro}},computed:{showUpgrade:function(){return!dokan.hasPro&&"show"===dokan.proNag}},methods:{dismiss:function(){this.show=!1,wp.ajax.post("dokan-upgrade-dissmiss")}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Modal"),o=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:n,Modal:i,Currency:o,UpgradeBanner:s.a},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",hasPro:!!dokan.hasPro}},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="<p>"+this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)+"</p>"),t.bank.hasOwnProperty("ac_number")&&(a+="<p>"+this.sprintf(this.__("Account Number: %s","dokan-lite"),t.bank.ac_number)+"</p>"),t.bank.hasOwnProperty("bank_name")&&(a+="<p>"+this.sprintf(this.__("Bank Name: %s","dokan-lite"),t.bank.bank_name)+"</p>"),t.bank.hasOwnProperty("iban")&&(a+="<p>"+this.sprintf(this.__("IBAN: %s","dokan-lite"),t.bank.iban)+"</p>"),t.bank.hasOwnProperty("routing_number")&&(a+="<p>"+this.sprintf(this.__("Routing Number: %s","dokan-lite"),t.bank.routing_number)+"</p>"),t.bank.hasOwnProperty("swift")&&(a+="<p>"+this.sprintf(this.__("Swift Code: %s","dokan-lite"),t.bank.swift)+"</p>"))),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(49),n=a(126),i=(a.n(n),a(129));t.a={name:"Premium",components:{Slick:i.a,ProCta:s.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,buyNowProUrl:"https://wedevs.com/account/",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:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(50),n=a(125),i=!1;var o=function(e){i||a(124)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ProCta.vue",t.a=r.exports},function(e,t,a){"use strict";t.a={name:"ProCta",data:function(){return{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.upgradeToPro}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:n,Loading:i,UpgradeBanner:s.a},data:function(){return{docs:null,hasPro:!!dokan.hasPro}},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(136),n=a(166),i=a(7),o=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:o,SettingsBanner:n.a,UpgradeBanner:i.a},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[],validationErrors:[],hasPro:!!dokan.hasPro,searchText:"",awaitingSearch:!1}},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}}a.validationErrors=[]}).fail(function(e){a.validationErrors=e.responseJSON.data.errors}).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},clearSearch:function(){this.searchText="",this.validateBlankSearch()},validateBlankSearch:function(){return""!==this.searchText.toLowerCase()||(this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields,!1)},searchInSettings:function(e){var t=this;this.validateBlankSearch()&&(this.awaitingSearch||setTimeout(function(){var e=t.$refs.searchInSettings.value.toLowerCase();t.doSearch(e),t.awaitingSearch=!1},1e3),this.awaitingSearch=!0)},doSearch:function(e){var t=this,a={},s=[],n=[],i=dokan.settings_fields;Object.keys(i).forEach(function(t,n){Object.keys(i[t]).forEach(function(n,o){if("sub_section"!==i[t][n].type){var r=i[t][n].label.toLowerCase();r&&r.includes(e)&&(a[t]||(a[t]={}),a[t][n]=i[t][n],-1===s.indexOf(t)&&s.push(t))}})});var o=0;Object.keys(dokan.settings_sections).forEach(function(e,a){-1!==s.indexOf(dokan.settings_sections[e].id)&&(o||(t.changeTab(dokan.settings_sections[e]),o=1),n.push(dokan.settings_sections[e]))}),this.settingFields=a,this.settingSections=n}},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(138),n=a.n(s),i=a(139),o=a.n(i),r=a(23);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(Object(a),!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(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","validationErrors"],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(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(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")},hasValidationError:function(e){if(this.validationErrors.filter(function(t){return t.name===e}).length>0)return e},getValidationErrorMessage:function(e){var t="";return this.validationErrors.forEach(function(a){a.name===e&&(t=a.error)}),t}}}},,,,,,,,,function(e,t,a){"use strict";t.a={name:"SettingsBanner",data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},computed:{bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(172),n=a(7),i=dokan_get_lib("ListTable"),o=dokan_get_lib("Switches"),r=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:i,Switches:o,Search:r,AddVendor:s.a,UpgradeBanner:n.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&&"pending"!==a.currentStatus&&"approved"!==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(26),n=a(33),i=a(36),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:"",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";var s=a(49);t.a={name:"VendorCapabilities",components:{ProCta:s.a},data:function(){return{showPopup:!1,selectedCapabilityImage:"",capabilityCards:[{title:this.__("Coupons","dokan-lite"),content:this.__("Each vendor can create unlimited discount coupon codes for their products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-coupon.svg")},{title:this.__("Shipping","dokan-lite"),content:this.__("Vendors can configure their own shipping costs for each country, state & single products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-shipping.svg")},{title:this.__("Duplicate Product","dokan-lite"),content:this.__("Vendors can duplicate their own products for ease and time saving.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-duplicate-product.svg")},{title:this.__("Reporting","dokan-lite"),content:this.__("Earning, selling and commissions reports for vendors to improve sales & take major decisions.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-reports.svg")},{title:this.__("Create Tags","dokan-lite"),content:this.__("Vendors can create & attach tags to products to categorize & for better search engine optimization.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-create-tags.svg")},{title:this.__("Vendor Biography","dokan-lite"),content:this.__("Vendors can write about themselves & about their store in a text field which visitors can see from the store page","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-biography.svg")},{title:this.__("Vendor Product Upload","dokan-lite"),content:this.__("New vendors can start uploading products upon registration if admins allow.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-product-upload.svg")},{title:this.__("Order Status Change","dokan-lite"),content:this.__("Vendors will be able to mark products as draft & update the order status to inform customers about progress.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-order-status-change.svg")},{title:this.__("Social Share","dokan-lite"),content:this.__("Visitors and customers can share a store page with their friends and acquaintances on their social profiles.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-share.svg")},{title:this.__("Variable Product","dokan-lite"),content:this.__("Vendors can create variable products with predefined and custom attributes.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-variable-product.svg")},{title:this.__("Store Opening & Closing Time","dokan-lite"),content:this.__("Vendors can define the working hours of their online store for each day of the week for visitors to see.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-opening-closing-hours.svg")},{title:this.__("Woocommerce Booking Integration","dokan-lite"),content:this.__("Create hotel rooms, resorts, conference rooms, cars, bikes, etc for renting out.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-woocommerce-booking.svg")},{title:this.__("Announcement For Vendors","dokan-lite"),content:this.__("Admins can make announcements targeted to a single vendor, multiple or all vendors.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-announcement-vendors.svg")},{title:this.__("Woocommerce Simple Auctions Integration","dokan-lite"),content:this.__("Sell auction-able products in your store with Dokan’s integration.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-simple-auction.svg")},{title:this.__("Social Profiles","dokan-lite"),content:this.__("Vendors can upload & showcase their Facebook, Twitter and Linkedin profiles on their store page.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-profile.svg")},{title:this.__("Refund","dokan-lite"),content:this.__("Vendors can send refund requests for an order to the admins who can approve or deny it from the dashboard.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-refund.svg")},{title:this.__("Store Seo","dokan-lite"),content:this.__("The Yoast SEO integration lets vendors define Store Title, Description, Slug and Keyword to appear in search engine results.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-store-seo.svg")}]}},methods:{closePopup:function(){this.showPopup=!1},openPopup:function(e){this.showPopup=!0,this.selectedCapabilityImage=e}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner.svg")}}}},function(e,t,a){"use strict";var s=a(181);t.a={name:"ProModules",components:{ModuleUpgradePopup:s.a},data:function(){return{modules:[{name:this.__("WooCommerce Booking Integration","dokan-lite"),description:this.__("Integrates WooCommerce Booking with Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/booking.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-bookings/",modLink:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/"},{name:this.__("Color Scheme Customizer","dokan-lite"),description:this.__("A Dokan plugin Add-on to Customize Colors of Dokan Dashboard","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/color-scheme-customizer.png"),docLink:"https://wedevs.com/docs/dokan/modules/color-scheme/",modLink:"https://wedevs.com/dokan/modules/color-scheme-customizer/"},{name:this.__("Elementor","dokan-lite"),description:this.__("Elementor Page Builder widgets for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/elementor.png"),docLink:"https://wedevs.com/docs/dokan/modules/elementor-dokan/",modLink:"https://wedevs.com/dokan/modules/elementor/"},{name:this.__("Vendor Product Importer and Exporter","dokan-lite"),description:this.__("This is simple product import and export plugin for vendor","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/import-export.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-dokan-exportimport-add/",modLink:"https://wedevs.com/dokan/modules/export-import/"},{name:this.__("Follow Store","dokan-lite"),description:this.__("Send emails to customers when their favorite store updates.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/follow-store.png"),docLink:"https://wedevs.com/docs/dokan/modules/follow-store/",modLink:"https://wedevs.com/dokan/modules/follow-store/"},{name:this.__("Geolocation","dokan-lite"),description:this.__("Search Products and Vendors by geolocation.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/geolocation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-geolocation/",modLink:"https://wedevs.com/dokan/modules/geolocation/"},{name:this.__("Live Chat","dokan-lite"),description:this.__("Live Chat Between Vendor & Customer.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/live-chat.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-live-chat/",modLink:"https://wedevs.com/dokan/modules/live-chat/"},{name:this.__("Live Search","dokan-lite"),description:this.__("Live product search for WooCommerce store.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/ajax-live-search.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-live-search/",modLink:"https://wedevs.com/dokan/modules/ajax-live-search/"},{name:this.__("Wirecard","dokan-lite"),description:this.__("Wirecard payment gateway for Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wirecard-connect.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-moip-connect/",modLink:"https://wedevs.com/dokan/modules/moip/"},{name:this.__("PayPal Adaptive Payment","dokan-lite"),description:this.__("Allows to send split payments to vendor via PayPal Adaptive Payment gateway.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/paypal-adaptive.png"),docLink:"#",modLink:"#"},{name:this.__("Product Addon","dokan-lite"),description:this.__("WooCommerce Product Addon support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-addon.png"),docLink:"https://wedevs.com/docs/dokan/modules/product-addon/",modLink:"https://wedevs.com/dokan/modules/product-addons/"},{name:this.__("Product Enquiry","dokan-lite"),description:this.__("Enquiry for a specific product to a seller.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-enquiry.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-product-enquiry/",modLink:"https://wedevs.com/dokan/modules/product-enquiry/"},{name:this.__("Report Abuse","dokan-lite"),description:this.__("Let customers report fraudulent or fake products.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/"},{name:this.__("Return and Warranty Request","dokan-lite"),description:this.__("Manage return and warranty from vendor end.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-rma/",modLink:"https://wedevs.com/dokan/modules/rma/"},{name:this.__("Seller Vacation","dokan-lite"),description:this.__("Using this plugin seller can go to vacation by closing their stores.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/seller-vacation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-vacation/",modLink:"https://wedevs.com/dokan/modules/vendor-vacation/"},{name:this.__("ShipStation Integration","dokan-lite"),description:this.__("Adds ShipStation label printing support to Dokan. Requires server DomDocument support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/shipstation.png"),docLink:"https://wedevs.com/docs/dokan/modules/shipstation-dokan-wedevs/",modLink:"https://wedevs.com/dokan/modules/shipstation/"},{name:this.__("Auction Integration","dokan-lite"),description:this.__("A plugin that combined WooCommerce simple auction and Dokan plugin.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/auction.png"),docLink:"https://wedevs.com/docs/dokan/modules/woocommerce-auctions-frontend-multivendor-marketplace/",modLink:"https://wedevs.com/dokan/modules/dokan-simple-auctions/"},{name:this.__("Single Product Multiple Vendor","dokan-lite"),description:this.__("A module that offers multiple vendor to sell a single product.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/single-product-multivendor.png"),docLink:"https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/",modLink:"https://wedevs.com/dokan/modules/single-product-multivendor/"},{name:this.__("Store Reviews","dokan-lite"),description:this.__("A plugin that allows customers to rate the sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-review.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-review/",modLink:"https://wedevs.com/dokan/modules/dokan-vendor-review/"},{name:this.__("Store Support","dokan-lite"),description:this.__("Enable vendors to provide support to customers from store page.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/store-support.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-store-support/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Stripe Connect","dokan-lite"),description:this.__("Accept credit card payments and allow your sellers to get automatic split payment in Dokan via Stripe.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/stripe.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-configure-dokan-stripe-connect/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Vendor Subscription","dokan-lite"),description:this.__("Product subscription pack add-on for Dokan vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/subscription.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-use-dokan-subscription/",modLink:"https://wedevs.com/dokan/modules/subscription/"},{name:this.__("Vendor Analytics","dokan-lite"),description:this.__("A plugin for store and product analytics for vendor.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/analytics.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/"},{name:this.__("Vendor Staff Manager","dokan-lite"),description:this.__("A plugin for manage store via vendor staffs.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-staff.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-staff-manager/",modLink:"https://wedevs.com/dokan/modules/vendor-staff-manager/"},{name:this.__("Vendor Subscription Product","dokan-lite"),description:this.__("WooCommerce Subscription integration for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-subscription-product.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-subscription-product/",modLink:"https://wedevs.com/dokan/modules/vendor-subscription-product/"},{name:this.__("Vendor Verification","dokan-lite"),description:this.__("Dokan add-on to verify sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-verification.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-seller-verification-admin-settings/",modLink:"https://wedevs.com/dokan/modules/seller-verification/"},{name:this.__("Wholesale","dokan-lite"),description:this.__("Offer any customer to buy product as a wholesale price from any vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wholesale.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-wholesale/",modLink:"https://wedevs.com/dokan/modules/wholesale/"}],showPopup:!0}},methods:{togglePopup:function(e){this.showPopup=e}}}},function(e,t,a){"use strict";t.a={name:"ModuleUpgradePopup",props:{showPopup:{type:Boolean,required:!0,default:!0}},data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},methods:{closePopup:function(){this.$emit("toggle",!1)},openPopup:function(){this.$emit("toggle",!0)}},computed:{headerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-header.svg")},bonusImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-bonus.svg")}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(106),n=a(109),i=a(185);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"]),dokan.dokan_pro_i18n&&this.setLocaleData(dokan.dokan_pro_i18n.dokan)},methods:{listTableTexts:function(){return{loading:this.__("Loading","dokan-lite"),select_bulk_action:this.__("Select bulk action","dokan-lite"),bulk_actions:this.__("Bulk Actions","dokan-lite"),items:this.__("items","dokan-lite"),apply:this.__("Apply","dokan-lite")}}}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(107)},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(110),n=a.n(s),i=a(111),o=a(119),r=a(122),l=a(131),d=a(134),c=a(170),u=a(176),p=a(179),m=dokan_get_lib("Vue"),v=dokan_get_lib("Router"),_=dokan_get_lib("VersionCompare");m.use(v),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_add_route(u.a),dokan_add_route(p.a),dokan.hasPro&&!_(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 v({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(45),n=a(118),i=!1;var o=function(e){i||a(112)},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){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.show&&e.showUpgrade?a("div",{staticClass:"dokan-upgrade-bar"},[e._v("\n You're using "),a("span",[e._v("Dokan Lite")]),e._v(". To unlock more features, consider\n "),a("a",{attrs:{target:"_blank",rel:"noopener",href:e.upgradeURL}},[e._v("\n Upgrading to Pro")]),e._v(".\n\n "),a("div",{staticClass:"close-button",attrs:{title:"Dismiss the notice"},on:{click:function(t){return e.dismiss()}}},[e._v("\n ×\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:"dokan-dashboard"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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.overview.vendors.this_month)+" "+e._s(e.__("Vendor","dokan-lite")))]),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.overview.vendors.inactive)+" "+e._s(e.__("Vendor","dokan-lite")))]),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.overview.products.this_month)+" "+e._s(e.__("Products","dokan-lite")))]),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.overview.withdraw.pending)+" "+e._s(e.__("Withdrawals","dokan-lite")))]),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))])])}),0),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){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?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){return 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("div",[a("chart",{attrs:{data:e.report}})],1):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(47),n=a(121),i=!1;var o=function(e){i||a(120)},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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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){return 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:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Cancelled","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.cancelled))])]),e._v(" | ")],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,text:e.$root.listTableTexts()},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[a("div",{staticClass:"method_details_inner",domProps:{innerHTML:e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))}})]}},{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){return 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){return 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){return 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){return 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){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(130),i=!1;var o=function(e){i||a(123)},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){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.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.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.url,target:"_blank"}},[e._v("\n "+e._s(e.__("Upgrade to Pro","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:[]};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-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:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")]),e._v(" "),a("router-link",{staticClass:"button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)]),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))])])])}),0),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))])])}),0)]),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))])])}),0)])])]),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))])])])}),0)],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("ProCta")],1)};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(51),n=a(133),i=!1;var o=function(e){i||a(132)},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"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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))])])}),0)])}),1):a("div",{staticClass:"loading"},[a("loading")],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(52),n=a(169),i=!1;var o=function(e){i||a(135)},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(53),n=a(165),i=!1;var o=function(e){i||a(137)},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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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.$set(e.fieldValue,e.fieldData.name,a.concat([null])):i>-1&&e.$set(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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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){return 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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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",class:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},e.fieldData.class],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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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.$set(e.fieldValue,e.fieldData.name,a.concat([null])):i>-1&&e.$set(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._v(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):e._e()])]: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.$set(e.fieldValue[e.fieldData.name],s,a.concat([null])):o>-1&&e.$set(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._v(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):e._e()])]: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:"",disabled:""},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)}})}),0)})],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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):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){return 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(" "),"warning"==e.fieldData.type?[a("th",{staticClass:"dokan-setting-warning",attrs:{scope:"row",colspan:"2"}},[a("div",{staticClass:"error"},[a("p",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("span",{staticClass:"dokan-setting-warning-label"},[a("span",{staticClass:"dashicons dashicons-warning"}),e._v(" "+e._s(e.fieldData.label))]),e._v(" "),a("span",{staticClass:"dokan-setting-warning-msg"},[e._v(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){return 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)+" "),t.must_use?e._e():a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){return t.preventDefault(),e.removeItem(s,e.fieldData.name)}}}),e._v(" "),a("span",{staticClass:"repeatable-item-description",domProps:{innerHTML:e._s(t.desc)}})]):e._e()}),0),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){return 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){return 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=a(62),n=a(168),i=!1;var o=function(e){i||a(167)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/SettingsBanner.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",{attrs:{id:"dokan-settings-banner"}},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Settings Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("h1",[e._v(e._s(e.__("Looking for Coupons, Variable Products, SEO or Shipping?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Unlock these awesome frontend features with Dokan PRO","dokan-lite")))]),e._v(" "),a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("router-link",{staticClass:"button custom-button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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("div",{staticClass:"nav-tab-wrapper"},[a("div",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],ref:"searchInSettings",staticClass:"dokan-admin-search-settings",attrs:{type:"text",placeholder:"Search e.g. vendor"},domProps:{value:e.searchText},on:{input:[function(t){t.target.composing||(e.searchText=t.target.value)},e.searchInSettings]}}),e._v(" "),""!==e.searchText?a("span",{staticClass:"dashicons dashicons-no-alt",on:{click:function(t){return t.preventDefault(),e.clearSearch.apply(null,arguments)}}}):e._e()]),e._v(" "),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){return 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,validationErrors:e.validationErrors,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}),1)]),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){return 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()])]),e._v(" "),e.hasPro?e._e():a("SettingsBanner")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(63),n=a(175),i=!1;var o=function(e){i||a(171)},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(64),n=a(174),i=!1;var o=function(e){i||a(173)},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 ")])])])}),0)]),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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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){return 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:""}},[e._v(e._s(e.__("All","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.all))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1)]),e._v(" "),a("search",{attrs:{title:e.__("Search Vendors","dokan-lite")},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,text:e.$root.listTableTexts()},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)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(65),n=a(178),i=!1;var o=function(e){i||a(177)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorCapabilities.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",{attrs:{id:"dokan-vendor-capabilities"}},[a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")])])]),e._v(" "),a("div",{staticClass:"grid"},e._l(e.capabilityCards,function(t){return a("div",{staticClass:"col-6"},[a("div",{staticClass:"capability-card"},[a("div",{staticClass:"capability-image"},[a("img",{staticClass:"image",attrs:{src:t.image,alt:e.__("Dokan Capability","dokan-lite")}}),e._v(" "),a("div",{staticClass:"middle"},[a("div",{staticClass:"zoom",on:{click:function(a){return e.openPopup(t.image)}}},[a("div",{staticClass:"dashicons dashicons-search"})])])]),e._v(" "),a("p",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"content"},[e._v(e._s(t.content))])])])}),0),e._v(" "),a("ProCta"),e._v(" "),e.showPopup?a("div",{attrs:{id:"dokan-capability-image-popup"},on:{click:e.closePopup}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"body"},[a("img",{attrs:{src:this.selectedCapabilityImage,alt:e.__("Dokan Capability","dokan-lite")}})])])]):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(66),n=a(184),i=!1;var o=function(e){i||a(180)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/ProModules.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(67),n=a(183),i=!1;var o=function(e){i||a(182)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ModuleUpgradePopup.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",{attrs:{id:"dokan-upgrade-to-pro-wrapper"}},[e.showPopup?a("div",{attrs:{id:"dokan-upgrade-popup"}},[a("div",{staticClass:"modal-content"},[a("span",{staticClass:"close",on:{click:e.closePopup}}),e._v(" "),a("div",{staticClass:"header"},[a("img",{attrs:{src:e.headerImage,alt:e.__("Dokan Upgrade Popup","dokan-lite")}}),e._v(" "),a("h1",[e._v(e._s(e.__("Unlock 20+ Modules","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-brand"},[e._v(e._s(e.__("with Dokan Premium Plans","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-disabled"},[e._v("\n "+e._s(e.__("We’re sorry, Dokan Modules are not available on Dokan Lite. Please upgrade to a PRO plan to unlock the modules of your choice.","dokan-lite"))+"\n ")])]),e._v(" "),a("div",{staticClass:"body"},[a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("div",{staticClass:"promo-card"},[a("img",{attrs:{src:e.bonusImage,alt:e.__("Dokan Upgrade Promo","dokan-lite")}}),e._v(" "),a("p",[e._v(e._s(e.__("Bonus: Dokan Lite users get 30% off regular price. Click on the link above to obtain the coupon & apply it during checkout.","dokan-lite")))])]),e._v(" "),a("span",[a("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://wedevs.com/docs/dokan/getting-started/installation-2/"}},[e._v(e._s(e.__("Already upgraded?","dokan-lite")))])])])])]):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",{attrs:{id:"lite-modules"}},[a("div",{staticClass:"dokan-modules-wrap"},[a("h1",[e._v(e._s(e.__("Modules","dokan")))]),e._v(" "),a("div",{staticClass:"module-content"},[a("div",{staticClass:"wp-list-table widefat dokan-modules"},[e.modules.length>0?e._l(e.modules,function(t){return a("div",{staticClass:"plugin-card"},[a("div",{staticClass:"plugin-card-top"},[a("div",{staticClass:"name column-name"},[a("h3",[a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[e._v(e._s(t.name))]),e._v(" "),a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[a("img",{staticClass:"plugin-icon",attrs:{src:t.thumbnail,alt:t.name}})])])]),e._v(" "),a("div",{staticClass:"action-links"},[a("ul",{staticClass:"plugin-action-buttons"},[a("li",{on:{click:function(t){return e.togglePopup(!0)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20"}},[a("rect",{attrs:{width:"42",height:"20",rx:"10",fill:"#c0c3c6"}}),a("circle",{attrs:{cx:"6",cy:"6",r:"6",transform:"translate(6 4)",fill:"#fff"}})])])])]),e._v(" "),a("div",{staticClass:"desc column-description"},[a("p",{domProps:{innerHTML:e._s(t.description)}})]),e._v(" "),a("div",{staticClass:"card-footer"},[a("a",{attrs:{href:t.docLink,target:"_blank"}},[e._v(e._s(e.__("Documentation","dokan")))])])])])}):[a("div",{staticClass:"notice notice-info",attrs:{id:"message"}},[a("p",[a("strong",[e._v(e._s(e.__("No modules found.","dokan")))])])])]],2)])]),e._v(" "),a("ModuleUpgradePopup",{attrs:{"show-popup":e.showPopup},on:{toggle:e.togglePopup}})],1)};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")})}}],[105]);
|
1 |
+
dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(10),n=a(28),i=!1;var o=function(e){i||a(27)},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(15);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,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(46),n=a(117),i=!1;var o=function(e){i||a(116)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UpgradeBanner.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(54);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(1),n=(a.n(s),a(2)),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");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(3);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(2),n=a(3);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,a){"use strict";var s=a(11),n=a(30),i=!1;var o=function(e){i||a(29)},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(12),n=a(31),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){e.exports=jQuery},function(e,t,a){"use strict";var s=a(8),n=a(25),i=!1;var o=function(e){i||a(24)},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){return 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){return 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(9),n=a(32),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){return t.preventDefault(),e.uploadImage.apply(null,arguments)}}},[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){return t.preventDefault(),e.generatePassword.apply(null,arguments)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword.apply(null,arguments)}}},[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){return t.preventDefault(),e.cancelButton.apply(null,arguments)}}},[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:"first-name"}},[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",id:"first-name",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:"last-name"}},[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",id:"last-name",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",id:"store-name",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:"user-nicename"}},[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",id:"user-nicename",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",id:"store-phone",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",id:"store-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:"user-login"}},[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",id:"user-login",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:{id:"store-password",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(13),n=a(35),i=!1;var o=function(e){i||a(34)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorAddressFields.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:"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",id:"street-1",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",id:"street-2",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",id:"city",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",id:"zip",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:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{id:"country",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:"address-multiselect"},[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:{id:"state",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:{id:"state",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(14),n=a(38),i=!1;var o=function(e){i||a(37)},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",id:"account-name",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",id:"account-number",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",id:"bank-name",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",id:"bank-address",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",id:"routing-number",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",id:"iban",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",id:"swift",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:"paypal-email"}},[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",id:"paypal-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",{attrs:{for:"commission-type"}},[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{id:"commission-type",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=a(7),i=dokan_get_lib("Postbox"),o=dokan_get_lib("Loading"),r=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:i,Loading:o,Chart:s.a,Currency:r,UpgradeBanner:n.a},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";t.a={name:"UpgradeBanner",data:function(){return{show:!0,upgradeURL:dokan.urls.upgradeToPro}},computed:{showUpgrade:function(){return!dokan.hasPro&&"show"===dokan.proNag}},methods:{dismiss:function(){this.show=!1,wp.ajax.post("dokan-upgrade-dissmiss")}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Modal"),o=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:n,Modal:i,Currency:o,UpgradeBanner:s.a},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",hasPro:!!dokan.hasPro}},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="<p>"+this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)+"</p>"),t.bank.hasOwnProperty("ac_number")&&(a+="<p>"+this.sprintf(this.__("Account Number: %s","dokan-lite"),t.bank.ac_number)+"</p>"),t.bank.hasOwnProperty("bank_name")&&(a+="<p>"+this.sprintf(this.__("Bank Name: %s","dokan-lite"),t.bank.bank_name)+"</p>"),t.bank.hasOwnProperty("iban")&&(a+="<p>"+this.sprintf(this.__("IBAN: %s","dokan-lite"),t.bank.iban)+"</p>"),t.bank.hasOwnProperty("routing_number")&&(a+="<p>"+this.sprintf(this.__("Routing Number: %s","dokan-lite"),t.bank.routing_number)+"</p>"),t.bank.hasOwnProperty("swift")&&(a+="<p>"+this.sprintf(this.__("Swift Code: %s","dokan-lite"),t.bank.swift)+"</p>"))),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(49),n=a(126),i=(a.n(n),a(129));t.a={name:"Premium",components:{Slick:i.a,ProCta:s.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,buyNowProUrl:"https://wedevs.com/account/",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:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(50),n=a(125),i=!1;var o=function(e){i||a(124)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ProCta.vue",t.a=r.exports},function(e,t,a){"use strict";t.a={name:"ProCta",data:function(){return{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.upgradeToPro}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:n,Loading:i,UpgradeBanner:s.a},data:function(){return{docs:null,hasPro:!!dokan.hasPro}},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(136),n=a(166),i=a(7),o=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:o,SettingsBanner:n.a,UpgradeBanner:i.a},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[],validationErrors:[],hasPro:!!dokan.hasPro,searchText:"",awaitingSearch:!1}},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}}a.validationErrors=[]}).fail(function(e){a.validationErrors=e.responseJSON.data.errors}).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},clearSearch:function(){this.searchText="",this.validateBlankSearch()},validateBlankSearch:function(){return""!==this.searchText.toLowerCase()||(this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields,!1)},searchInSettings:function(e){var t=this;this.validateBlankSearch()&&(this.awaitingSearch||setTimeout(function(){var e=t.$refs.searchInSettings.value.toLowerCase();t.doSearch(e),t.awaitingSearch=!1},1e3),this.awaitingSearch=!0)},doSearch:function(e){var t=this,a={},s=[],n=[],i=dokan.settings_fields;Object.keys(i).forEach(function(t,n){Object.keys(i[t]).forEach(function(n,o){if("sub_section"!==i[t][n].type){var r=i[t][n].label.toLowerCase();r&&r.includes(e)&&(a[t]||(a[t]={}),a[t][n]=i[t][n],-1===s.indexOf(t)&&s.push(t))}})});var o=0;Object.keys(dokan.settings_sections).forEach(function(e,a){-1!==s.indexOf(dokan.settings_sections[e].id)&&(o||(t.changeTab(dokan.settings_sections[e]),o=1),n.push(dokan.settings_sections[e]))}),this.settingFields=a,this.settingSections=n}},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(138),n=a.n(s),i=a(139),o=a.n(i),r=a(23);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(Object(a),!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(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","validationErrors"],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(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(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")},hasValidationError:function(e){if(this.validationErrors.filter(function(t){return t.name===e}).length>0)return e},getValidationErrorMessage:function(e){var t="";return this.validationErrors.forEach(function(a){a.name===e&&(t=a.error)}),t}}}},,,,,,,,,function(e,t,a){"use strict";t.a={name:"SettingsBanner",data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},computed:{bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(172),n=a(7),i=dokan_get_lib("ListTable"),o=dokan_get_lib("Switches"),r=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:i,Switches:o,Search:r,AddVendor:s.a,UpgradeBanner:n.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&&"pending"!==a.currentStatus&&"approved"!==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(26),n=a(33),i=a(36),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:"",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";var s=a(49);t.a={name:"VendorCapabilities",components:{ProCta:s.a},data:function(){return{showPopup:!1,selectedCapabilityImage:"",capabilityCards:[{title:this.__("Coupons","dokan-lite"),content:this.__("Each vendor can create unlimited discount coupon codes for their products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-coupon.svg")},{title:this.__("Shipping","dokan-lite"),content:this.__("Vendors can configure their own shipping costs for each country, state & single products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-shipping.svg")},{title:this.__("Duplicate Product","dokan-lite"),content:this.__("Vendors can duplicate their own products for ease and time saving.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-duplicate-product.svg")},{title:this.__("Reporting","dokan-lite"),content:this.__("Earning, selling and commissions reports for vendors to improve sales & take major decisions.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-reports.svg")},{title:this.__("Create Tags","dokan-lite"),content:this.__("Vendors can create & attach tags to products to categorize & for better search engine optimization.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-create-tags.svg")},{title:this.__("Vendor Biography","dokan-lite"),content:this.__("Vendors can write about themselves & about their store in a text field which visitors can see from the store page","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-biography.svg")},{title:this.__("Vendor Product Upload","dokan-lite"),content:this.__("New vendors can start uploading products upon registration if admins allow.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-product-upload.svg")},{title:this.__("Order Status Change","dokan-lite"),content:this.__("Vendors will be able to mark products as draft & update the order status to inform customers about progress.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-order-status-change.svg")},{title:this.__("Social Share","dokan-lite"),content:this.__("Visitors and customers can share a store page with their friends and acquaintances on their social profiles.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-share.svg")},{title:this.__("Variable Product","dokan-lite"),content:this.__("Vendors can create variable products with predefined and custom attributes.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-variable-product.svg")},{title:this.__("Store Opening & Closing Time","dokan-lite"),content:this.__("Vendors can define the working hours of their online store for each day of the week for visitors to see.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-opening-closing-hours.svg")},{title:this.__("Woocommerce Booking Integration","dokan-lite"),content:this.__("Create hotel rooms, resorts, conference rooms, cars, bikes, etc for renting out.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-woocommerce-booking.svg")},{title:this.__("Announcement For Vendors","dokan-lite"),content:this.__("Admins can make announcements targeted to a single vendor, multiple or all vendors.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-announcement-vendors.svg")},{title:this.__("Woocommerce Simple Auctions Integration","dokan-lite"),content:this.__("Sell auction-able products in your store with Dokan’s integration.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-simple-auction.svg")},{title:this.__("Social Profiles","dokan-lite"),content:this.__("Vendors can upload & showcase their Facebook, Twitter and Linkedin profiles on their store page.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-profile.svg")},{title:this.__("Refund","dokan-lite"),content:this.__("Vendors can send refund requests for an order to the admins who can approve or deny it from the dashboard.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-refund.svg")},{title:this.__("Store Seo","dokan-lite"),content:this.__("The Yoast SEO integration lets vendors define Store Title, Description, Slug and Keyword to appear in search engine results.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-store-seo.svg")}]}},methods:{closePopup:function(){this.showPopup=!1},openPopup:function(e){this.showPopup=!0,this.selectedCapabilityImage=e}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner.svg")}}}},function(e,t,a){"use strict";var s=a(181);t.a={name:"ProModules",components:{ModuleUpgradePopup:s.a},data:function(){return{modules:[{name:this.__("WooCommerce Booking Integration","dokan-lite"),description:this.__("Integrates WooCommerce Booking with Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/booking.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-bookings/",modLink:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/"},{name:this.__("Color Scheme Customizer","dokan-lite"),description:this.__("A Dokan plugin Add-on to Customize Colors of Dokan Dashboard","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/color-scheme-customizer.png"),docLink:"https://wedevs.com/docs/dokan/modules/color-scheme/",modLink:"https://wedevs.com/dokan/modules/color-scheme-customizer/"},{name:this.__("Elementor","dokan-lite"),description:this.__("Elementor Page Builder widgets for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/elementor.png"),docLink:"https://wedevs.com/docs/dokan/modules/elementor-dokan/",modLink:"https://wedevs.com/dokan/modules/elementor/"},{name:this.__("Vendor Product Importer and Exporter","dokan-lite"),description:this.__("This is simple product import and export plugin for vendor","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/import-export.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-dokan-exportimport-add/",modLink:"https://wedevs.com/dokan/modules/export-import/"},{name:this.__("Follow Store","dokan-lite"),description:this.__("Send emails to customers when their favorite store updates.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/follow-store.png"),docLink:"https://wedevs.com/docs/dokan/modules/follow-store/",modLink:"https://wedevs.com/dokan/modules/follow-store/"},{name:this.__("Geolocation","dokan-lite"),description:this.__("Search Products and Vendors by geolocation.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/geolocation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-geolocation/",modLink:"https://wedevs.com/dokan/modules/geolocation/"},{name:this.__("Live Chat","dokan-lite"),description:this.__("Live Chat Between Vendor & Customer.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/live-chat.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-live-chat/",modLink:"https://wedevs.com/dokan/modules/live-chat/"},{name:this.__("Live Search","dokan-lite"),description:this.__("Live product search for WooCommerce store.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/ajax-live-search.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-live-search/",modLink:"https://wedevs.com/dokan/modules/ajax-live-search/"},{name:this.__("Wirecard","dokan-lite"),description:this.__("Wirecard payment gateway for Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wirecard-connect.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-moip-connect/",modLink:"https://wedevs.com/dokan/modules/moip/"},{name:this.__("PayPal Adaptive Payment","dokan-lite"),description:this.__("Allows to send split payments to vendor via PayPal Adaptive Payment gateway.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/paypal-adaptive.png"),docLink:"#",modLink:"#"},{name:this.__("Product Addon","dokan-lite"),description:this.__("WooCommerce Product Addon support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-addon.png"),docLink:"https://wedevs.com/docs/dokan/modules/product-addon/",modLink:"https://wedevs.com/dokan/modules/product-addons/"},{name:this.__("Product Enquiry","dokan-lite"),description:this.__("Enquiry for a specific product to a seller.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-enquiry.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-product-enquiry/",modLink:"https://wedevs.com/dokan/modules/product-enquiry/"},{name:this.__("Report Abuse","dokan-lite"),description:this.__("Let customers report fraudulent or fake products.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/"},{name:this.__("Return and Warranty Request","dokan-lite"),description:this.__("Manage return and warranty from vendor end.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-rma/",modLink:"https://wedevs.com/dokan/modules/rma/"},{name:this.__("Seller Vacation","dokan-lite"),description:this.__("Using this plugin seller can go to vacation by closing their stores.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/seller-vacation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-vacation/",modLink:"https://wedevs.com/dokan/modules/vendor-vacation/"},{name:this.__("ShipStation Integration","dokan-lite"),description:this.__("Adds ShipStation label printing support to Dokan. Requires server DomDocument support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/shipstation.png"),docLink:"https://wedevs.com/docs/dokan/modules/shipstation-dokan-wedevs/",modLink:"https://wedevs.com/dokan/modules/shipstation/"},{name:this.__("Auction Integration","dokan-lite"),description:this.__("A plugin that combined WooCommerce simple auction and Dokan plugin.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/auction.png"),docLink:"https://wedevs.com/docs/dokan/modules/woocommerce-auctions-frontend-multivendor-marketplace/",modLink:"https://wedevs.com/dokan/modules/dokan-simple-auctions/"},{name:this.__("Single Product Multiple Vendor","dokan-lite"),description:this.__("A module that offers multiple vendor to sell a single product.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/single-product-multivendor.png"),docLink:"https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/",modLink:"https://wedevs.com/dokan/modules/single-product-multivendor/"},{name:this.__("Store Reviews","dokan-lite"),description:this.__("A plugin that allows customers to rate the sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-review.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-review/",modLink:"https://wedevs.com/dokan/modules/dokan-vendor-review/"},{name:this.__("Store Support","dokan-lite"),description:this.__("Enable vendors to provide support to customers from store page.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/store-support.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-store-support/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Stripe Connect","dokan-lite"),description:this.__("Accept credit card payments and allow your sellers to get automatic split payment in Dokan via Stripe.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/stripe.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-configure-dokan-stripe-connect/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Vendor Subscription","dokan-lite"),description:this.__("Product subscription pack add-on for Dokan vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/subscription.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-use-dokan-subscription/",modLink:"https://wedevs.com/dokan/modules/subscription/"},{name:this.__("Vendor Analytics","dokan-lite"),description:this.__("A plugin for store and product analytics for vendor.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/analytics.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/"},{name:this.__("Vendor Staff Manager","dokan-lite"),description:this.__("A plugin for manage store via vendor staffs.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-staff.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-staff-manager/",modLink:"https://wedevs.com/dokan/modules/vendor-staff-manager/"},{name:this.__("Vendor Subscription Product","dokan-lite"),description:this.__("WooCommerce Subscription integration for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-subscription-product.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-subscription-product/",modLink:"https://wedevs.com/dokan/modules/vendor-subscription-product/"},{name:this.__("Vendor Verification","dokan-lite"),description:this.__("Dokan add-on to verify sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-verification.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-seller-verification-admin-settings/",modLink:"https://wedevs.com/dokan/modules/seller-verification/"},{name:this.__("Wholesale","dokan-lite"),description:this.__("Offer any customer to buy product as a wholesale price from any vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wholesale.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-wholesale/",modLink:"https://wedevs.com/dokan/modules/wholesale/"}],showPopup:!0}},methods:{togglePopup:function(e){this.showPopup=e}}}},function(e,t,a){"use strict";t.a={name:"ModuleUpgradePopup",props:{showPopup:{type:Boolean,required:!0,default:!0}},data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},methods:{closePopup:function(){this.$emit("toggle",!1)},openPopup:function(){this.$emit("toggle",!0)}},computed:{headerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-header.svg")},bonusImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-bonus.svg")}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(106),n=a(109),i=a(185);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"]),dokan.dokan_pro_i18n&&this.setLocaleData(dokan.dokan_pro_i18n.dokan)},methods:{listTableTexts:function(){return{loading:this.__("Loading","dokan-lite"),select_bulk_action:this.__("Select bulk action","dokan-lite"),bulk_actions:this.__("Bulk Actions","dokan-lite"),items:this.__("items","dokan-lite"),apply:this.__("Apply","dokan-lite")}}}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(107)},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(110),n=a.n(s),i=a(111),o=a(119),r=a(122),l=a(131),d=a(134),c=a(170),u=a(176),p=a(179),m=dokan_get_lib("Vue"),v=dokan_get_lib("Router"),_=dokan_get_lib("VersionCompare");m.use(v),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_add_route(u.a),dokan_add_route(p.a),dokan.hasPro&&!_(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 v({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(45),n=a(118),i=!1;var o=function(e){i||a(112)},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){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.show&&e.showUpgrade?a("div",{staticClass:"dokan-upgrade-bar"},[e._v("\n You're using "),a("span",[e._v("Dokan Lite")]),e._v(". To unlock more features, consider\n "),a("a",{attrs:{target:"_blank",rel:"noopener",href:e.upgradeURL}},[e._v("\n Upgrading to Pro")]),e._v(".\n\n "),a("div",{staticClass:"close-button",attrs:{title:"Dismiss the notice"},on:{click:function(t){return e.dismiss()}}},[e._v("\n ×\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:"dokan-dashboard"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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.overview.vendors.this_month)+" "+e._s(e.__("Vendor","dokan-lite")))]),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.overview.vendors.inactive)+" "+e._s(e.__("Vendor","dokan-lite")))]),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.overview.products.this_month)+" "+e._s(e.__("Products","dokan-lite")))]),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.overview.withdraw.pending)+" "+e._s(e.__("Withdrawals","dokan-lite")))]),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))])])}),0),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){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?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){return 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("div",[a("chart",{attrs:{data:e.report}})],1):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(47),n=a(121),i=!1;var o=function(e){i||a(120)},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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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){return 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:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Cancelled","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.cancelled))])]),e._v(" | ")],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,text:e.$root.listTableTexts()},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[a("div",{staticClass:"method_details_inner",domProps:{innerHTML:e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))}})]}},{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){return 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){return 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){return 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){return 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){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(130),i=!1;var o=function(e){i||a(123)},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){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.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.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.url,target:"_blank"}},[e._v("\n "+e._s(e.__("Upgrade to Pro","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:[]};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-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:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")]),e._v(" "),a("router-link",{staticClass:"button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)]),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))])])])}),0),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))])])}),0)]),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))])])}),0)])])]),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))])])])}),0)],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("ProCta")],1)};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(51),n=a(133),i=!1;var o=function(e){i||a(132)},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"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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))])])}),0)])}),1):a("div",{staticClass:"loading"},[a("loading")],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(52),n=a(169),i=!1;var o=function(e){i||a(135)},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(53),n=a(165),i=!1;var o=function(e){i||a(137)},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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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.$set(e.fieldValue,e.fieldData.name,a.concat([null])):i>-1&&e.$set(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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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){return 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:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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",class:[{"dokan-input-validation-error":e.hasValidationError(e.fieldData.name)},e.fieldData.class],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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\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.$set(e.fieldValue,e.fieldData.name,a.concat([null])):i>-1&&e.$set(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._v(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):e._e()])]: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.$set(e.fieldValue[e.fieldData.name],s,a.concat([null])):o>-1&&e.$set(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._v(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):e._e()])]: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:"",disabled:""},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)}})}),0)})],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(" "),e.hasValidationError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getValidationErrorMessage(e.fieldData.name))+"\n ")]):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){return 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(" "),"warning"==e.fieldData.type?[a("th",{staticClass:"dokan-setting-warning",attrs:{scope:"row",colspan:"2"}},[a("div",{staticClass:"error"},[a("p",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("span",{staticClass:"dokan-setting-warning-label"},[a("span",{staticClass:"dashicons dashicons-warning"}),e._v(" "+e._s(e.fieldData.label))]),e._v(" "),a("span",{staticClass:"dokan-setting-warning-msg"},[e._v(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){return 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)+" "),t.must_use?e._e():a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){return t.preventDefault(),e.removeItem(s,e.fieldData.name)}}}),e._v(" "),a("span",{staticClass:"repeatable-item-description",domProps:{innerHTML:e._s(t.desc)}})]):e._e()}),0),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){return 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){return 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=a(62),n=a(168),i=!1;var o=function(e){i||a(167)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/SettingsBanner.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",{attrs:{id:"dokan-settings-banner"}},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Settings Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("h1",[e._v(e._s(e.__("Looking for Coupons, Variable Products, SEO or Shipping?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Unlock these awesome frontend features with Dokan PRO","dokan-lite")))]),e._v(" "),a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("router-link",{staticClass:"button custom-button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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("div",{staticClass:"nav-tab-wrapper"},[a("div",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],ref:"searchInSettings",staticClass:"dokan-admin-search-settings",attrs:{type:"text",placeholder:"Search e.g. vendor"},domProps:{value:e.searchText},on:{input:[function(t){t.target.composing||(e.searchText=t.target.value)},e.searchInSettings]}}),e._v(" "),""!==e.searchText?a("span",{staticClass:"dashicons dashicons-no-alt",on:{click:function(t){return t.preventDefault(),e.clearSearch.apply(null,arguments)}}}):e._e()]),e._v(" "),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){return 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,validationErrors:e.validationErrors,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}),1)]),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){return 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()])]),e._v(" "),e.hasPro?e._e():a("SettingsBanner")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(63),n=a(175),i=!1;var o=function(e){i||a(171)},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(64),n=a(174),i=!1;var o=function(e){i||a(173)},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 ")])])])}),0)]),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",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),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){return 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:""}},[e._v(e._s(e.__("All","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.all))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1)]),e._v(" "),a("search",{attrs:{title:e.__("Search Vendors","dokan-lite")},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,text:e.$root.listTableTexts()},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)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(65),n=a(178),i=!1;var o=function(e){i||a(177)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorCapabilities.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",{attrs:{id:"dokan-vendor-capabilities"}},[a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")])])]),e._v(" "),a("div",{staticClass:"grid"},e._l(e.capabilityCards,function(t){return a("div",{staticClass:"col-6"},[a("div",{staticClass:"capability-card"},[a("div",{staticClass:"capability-image"},[a("img",{staticClass:"image",attrs:{src:t.image,alt:e.__("Dokan Capability","dokan-lite")}}),e._v(" "),a("div",{staticClass:"middle"},[a("div",{staticClass:"zoom",on:{click:function(a){return e.openPopup(t.image)}}},[a("div",{staticClass:"dashicons dashicons-search"})])])]),e._v(" "),a("p",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"content"},[e._v(e._s(t.content))])])])}),0),e._v(" "),a("ProCta"),e._v(" "),e.showPopup?a("div",{attrs:{id:"dokan-capability-image-popup"},on:{click:e.closePopup}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"body"},[a("img",{attrs:{src:this.selectedCapabilityImage,alt:e.__("Dokan Capability","dokan-lite")}})])])]):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(66),n=a(184),i=!1;var o=function(e){i||a(180)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/ProModules.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(67),n=a(183),i=!1;var o=function(e){i||a(182)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ModuleUpgradePopup.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",{attrs:{id:"dokan-upgrade-to-pro-wrapper"}},[e.showPopup?a("div",{attrs:{id:"dokan-upgrade-popup"}},[a("div",{staticClass:"modal-content"},[a("span",{staticClass:"close",on:{click:e.closePopup}}),e._v(" "),a("div",{staticClass:"header"},[a("img",{attrs:{src:e.headerImage,alt:e.__("Dokan Upgrade Popup","dokan-lite")}}),e._v(" "),a("h1",[e._v(e._s(e.__("Unlock 20+ Modules","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-brand"},[e._v(e._s(e.__("with Dokan Premium Plans","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-disabled"},[e._v("\n "+e._s(e.__("We’re sorry, Dokan Modules are not available on Dokan Lite. Please upgrade to a PRO plan to unlock the modules of your choice.","dokan-lite"))+"\n ")])]),e._v(" "),a("div",{staticClass:"body"},[a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("div",{staticClass:"promo-card"},[a("img",{attrs:{src:e.bonusImage,alt:e.__("Dokan Upgrade Promo","dokan-lite")}}),e._v(" "),a("p",[e._v(e._s(e.__("Bonus: Dokan Lite users get 30% off regular price. Click on the link above to obtain the coupon & apply it during checkout.","dokan-lite")))])]),e._v(" "),a("span",[a("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://wedevs.com/docs/dokan/getting-started/installation-2/"}},[e._v(e._s(e.__("Already upgraded?","dokan-lite")))])])])])]):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",{attrs:{id:"lite-modules"}},[a("div",{staticClass:"dokan-modules-wrap"},[a("h1",[e._v(e._s(e.__("Modules","dokan")))]),e._v(" "),a("div",{staticClass:"module-content"},[a("div",{staticClass:"wp-list-table widefat dokan-modules"},[e.modules.length>0?e._l(e.modules,function(t){return a("div",{staticClass:"plugin-card"},[a("div",{staticClass:"plugin-card-top"},[a("div",{staticClass:"name column-name"},[a("h3",[a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[e._v(e._s(t.name))]),e._v(" "),a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[a("img",{staticClass:"plugin-icon",attrs:{src:t.thumbnail,alt:t.name}})])])]),e._v(" "),a("div",{staticClass:"action-links"},[a("ul",{staticClass:"plugin-action-buttons"},[a("li",{on:{click:function(t){return e.togglePopup(!0)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20"}},[a("rect",{attrs:{width:"42",height:"20",rx:"10",fill:"#c0c3c6"}}),a("circle",{attrs:{cx:"6",cy:"6",r:"6",transform:"translate(6 4)",fill:"#fff"}})])])])]),e._v(" "),a("div",{staticClass:"desc column-description"},[a("p",{domProps:{innerHTML:e._s(t.description)}})]),e._v(" "),a("div",{staticClass:"card-footer"},[a("a",{attrs:{href:t.docLink,target:"_blank"}},[e._v(e._s(e.__("Documentation","dokan")))])])])])}):[a("div",{staticClass:"notice notice-info",attrs:{id:"message"}},[a("p",[a("strong",[e._v(e._s(e.__("No modules found.","dokan")))])])])]],2)])]),e._v(" "),a("ModuleUpgradePopup",{attrs:{"show-popup":e.showPopup},on:{toggle:e.togglePopup}})],1)};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")})}}],[105]);
|
assets/js/vue-bootstrap.js
CHANGED
@@ -390,6 +390,10 @@ if (false) {(function () {
|
|
390 |
//
|
391 |
//
|
392 |
//
|
|
|
|
|
|
|
|
|
393 |
|
394 |
|
395 |
|
@@ -2003,7 +2007,7 @@ var render = function() {
|
|
2003 |
{ staticClass: "dokan-form-group" },
|
2004 |
[
|
2005 |
_c("div", { staticClass: "column" }, [
|
2006 |
-
_c("label", { attrs: { for: "
|
2007 |
_vm._v(_vm._s(_vm.__("First Name", "dokan-lite")))
|
2008 |
]),
|
2009 |
_vm._v(" "),
|
@@ -2019,6 +2023,7 @@ var render = function() {
|
|
2019 |
staticClass: "dokan-form-input",
|
2020 |
attrs: {
|
2021 |
type: "email",
|
|
|
2022 |
placeholder: _vm.__("First Name", "dokan-lite")
|
2023 |
},
|
2024 |
domProps: { value: _vm.vendorInfo.first_name },
|
@@ -2034,7 +2039,7 @@ var render = function() {
|
|
2034 |
]),
|
2035 |
_vm._v(" "),
|
2036 |
_c("div", { staticClass: "column" }, [
|
2037 |
-
_c("label", { attrs: { for: "
|
2038 |
_vm._v(_vm._s(_vm.__("Last Name", "dokan-lite")))
|
2039 |
]),
|
2040 |
_vm._v(" "),
|
@@ -2050,6 +2055,7 @@ var render = function() {
|
|
2050 |
staticClass: "dokan-form-input",
|
2051 |
attrs: {
|
2052 |
type: "email",
|
|
|
2053 |
placeholder: _vm.__("Last Name", "dokan-lite")
|
2054 |
},
|
2055 |
domProps: { value: _vm.vendorInfo.last_name },
|
@@ -2088,6 +2094,7 @@ var render = function() {
|
|
2088 |
},
|
2089 |
attrs: {
|
2090 |
type: "text",
|
|
|
2091 |
placeholder: _vm.getError("store_name")
|
2092 |
? _vm.__("Store Name is required", "dokan-lite")
|
2093 |
: _vm.__("Store Name", "dokan-lite")
|
@@ -2106,7 +2113,7 @@ var render = function() {
|
|
2106 |
_vm._v(" "),
|
2107 |
!_vm.getId()
|
2108 |
? _c("div", { staticClass: "column" }, [
|
2109 |
-
_c("label", { attrs: { for: "
|
2110 |
_vm._v(_vm._s(_vm.__("Store URL", "dokan-lite")))
|
2111 |
]),
|
2112 |
_vm._v(" "),
|
@@ -2122,6 +2129,7 @@ var render = function() {
|
|
2122 |
staticClass: "dokan-form-input",
|
2123 |
attrs: {
|
2124 |
type: "text",
|
|
|
2125 |
placeholder: _vm.__("Store Url", "dokan-lite")
|
2126 |
},
|
2127 |
domProps: { value: _vm.vendorInfo.user_nicename },
|
@@ -2179,6 +2187,7 @@ var render = function() {
|
|
2179 |
staticClass: "dokan-form-input",
|
2180 |
attrs: {
|
2181 |
type: "number",
|
|
|
2182 |
placeholder: _vm.__("123456789", "dokan-lite")
|
2183 |
},
|
2184 |
domProps: { value: _vm.vendorInfo.phone },
|
@@ -2217,6 +2226,7 @@ var render = function() {
|
|
2217 |
},
|
2218 |
attrs: {
|
2219 |
type: "email",
|
|
|
2220 |
placeholder: _vm.getError("email")
|
2221 |
? _vm.__("Email is required", "dokan-lite")
|
2222 |
: _vm.__("store@email.com", "dokan-lite")
|
@@ -2249,7 +2259,7 @@ var render = function() {
|
|
2249 |
!_vm.getId()
|
2250 |
? [
|
2251 |
_c("div", { staticClass: "column" }, [
|
2252 |
-
_c("label", { attrs: { for: "
|
2253 |
_vm._v(_vm._s(_vm.__("Username", "dokan-lite")))
|
2254 |
]),
|
2255 |
_c("span", { staticClass: "required-field" }, [_vm._v("*")]),
|
@@ -2270,6 +2280,7 @@ var render = function() {
|
|
2270 |
},
|
2271 |
attrs: {
|
2272 |
type: "text",
|
|
|
2273 |
placeholder: _vm.getError("user_login")
|
2274 |
? _vm.__("Username is required", "dokan-lite")
|
2275 |
: _vm.__("Username", "dokan-lite")
|
@@ -2345,7 +2356,11 @@ var render = function() {
|
|
2345 |
}
|
2346 |
],
|
2347 |
staticClass: "dokan-form-input",
|
2348 |
-
attrs: {
|
|
|
|
|
|
|
|
|
2349 |
domProps: { value: _vm.vendorInfo.user_pass },
|
2350 |
on: {
|
2351 |
input: function($event) {
|
@@ -2496,6 +2511,7 @@ var render = function() {
|
|
2496 |
staticClass: "dokan-form-input",
|
2497 |
attrs: {
|
2498 |
type: "text",
|
|
|
2499 |
placeholder: _vm.__("Street 1", "dokan-lite")
|
2500 |
},
|
2501 |
domProps: { value: _vm.vendorInfo.address.street_1 },
|
@@ -2531,6 +2547,7 @@ var render = function() {
|
|
2531 |
staticClass: "dokan-form-input",
|
2532 |
attrs: {
|
2533 |
type: "text",
|
|
|
2534 |
placeholder: _vm.__("Street 2", "dokan-lite")
|
2535 |
},
|
2536 |
domProps: { value: _vm.vendorInfo.address.street_2 },
|
@@ -2566,6 +2583,7 @@ var render = function() {
|
|
2566 |
staticClass: "dokan-form-input",
|
2567 |
attrs: {
|
2568 |
type: "text",
|
|
|
2569 |
placeholder: _vm.__("City", "dokan-lite")
|
2570 |
},
|
2571 |
domProps: { value: _vm.vendorInfo.address.city },
|
@@ -2595,7 +2613,11 @@ var render = function() {
|
|
2595 |
}
|
2596 |
],
|
2597 |
staticClass: "dokan-form-input",
|
2598 |
-
attrs: {
|
|
|
|
|
|
|
|
|
2599 |
domProps: { value: _vm.vendorInfo.address.zip },
|
2600 |
on: {
|
2601 |
input: function($event) {
|
@@ -2618,6 +2640,7 @@ var render = function() {
|
|
2618 |
_vm._v(" "),
|
2619 |
_c("Multiselect", {
|
2620 |
attrs: {
|
|
|
2621 |
options: _vm.countries,
|
2622 |
multiselect: false,
|
2623 |
label: "name",
|
@@ -2659,6 +2682,7 @@ var render = function() {
|
|
2659 |
],
|
2660 |
staticClass: "dokan-form-input",
|
2661 |
attrs: {
|
|
|
2662 |
type: "text",
|
2663 |
placeholder: _vm.__("State", "dokan-lite")
|
2664 |
},
|
@@ -2680,6 +2704,7 @@ var render = function() {
|
|
2680 |
: [
|
2681 |
_c("Multiselect", {
|
2682 |
attrs: {
|
|
|
2683 |
options: _vm.getStatesFromCountryCode(_vm.selectedCode),
|
2684 |
multiselect: false,
|
2685 |
showLabels: false,
|
@@ -2833,6 +2858,7 @@ var render = function() {
|
|
2833 |
staticClass: "dokan-form-input",
|
2834 |
attrs: {
|
2835 |
type: "text",
|
|
|
2836 |
placeholder: _vm.__("Account Name", "dokan-lite")
|
2837 |
},
|
2838 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_name },
|
@@ -2868,6 +2894,7 @@ var render = function() {
|
|
2868 |
staticClass: "dokan-form-input",
|
2869 |
attrs: {
|
2870 |
type: "text",
|
|
|
2871 |
placeholder: _vm.__("1233456789", "dokan-lite")
|
2872 |
},
|
2873 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_number },
|
@@ -2903,6 +2930,7 @@ var render = function() {
|
|
2903 |
staticClass: "dokan-form-input",
|
2904 |
attrs: {
|
2905 |
type: "text",
|
|
|
2906 |
placeholder: _vm.__("Bank Name", "dokan-lite")
|
2907 |
},
|
2908 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_name },
|
@@ -2938,6 +2966,7 @@ var render = function() {
|
|
2938 |
staticClass: "dokan-form-input",
|
2939 |
attrs: {
|
2940 |
type: "text",
|
|
|
2941 |
placeholder: _vm.__("Bank Address", "dokan-lite")
|
2942 |
},
|
2943 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_addr },
|
@@ -2973,6 +3002,7 @@ var render = function() {
|
|
2973 |
staticClass: "dokan-form-input",
|
2974 |
attrs: {
|
2975 |
type: "text",
|
|
|
2976 |
placeholder: _vm.__("123456789", "dokan-lite")
|
2977 |
},
|
2978 |
domProps: {
|
@@ -3010,6 +3040,7 @@ var render = function() {
|
|
3010 |
staticClass: "dokan-form-input",
|
3011 |
attrs: {
|
3012 |
type: "text",
|
|
|
3013 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3014 |
},
|
3015 |
domProps: { value: _vm.vendorInfo.payment.bank.iban },
|
@@ -3045,6 +3076,7 @@ var render = function() {
|
|
3045 |
staticClass: "dokan-form-input",
|
3046 |
attrs: {
|
3047 |
type: "text",
|
|
|
3048 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3049 |
},
|
3050 |
domProps: { value: _vm.vendorInfo.payment.bank.swift },
|
@@ -3084,7 +3116,7 @@ var render = function() {
|
|
3084 |
class: { column: _vm.getId(), "checkbox-group": !_vm.getId() }
|
3085 |
},
|
3086 |
[
|
3087 |
-
_c("label", { attrs: { for: "
|
3088 |
_vm._v(_vm._s(_vm.__("PayPal Email", "dokan-lite")))
|
3089 |
]),
|
3090 |
_vm._v(" "),
|
@@ -3100,6 +3132,7 @@ var render = function() {
|
|
3100 |
staticClass: "dokan-form-input",
|
3101 |
attrs: {
|
3102 |
type: "email",
|
|
|
3103 |
placeholder: _vm.__("store@email.com", "dokan-lite")
|
3104 |
},
|
3105 |
domProps: { value: _vm.vendorInfo.payment.paypal.email },
|
@@ -3126,7 +3159,7 @@ var render = function() {
|
|
3126 |
"div",
|
3127 |
{ staticClass: "column" },
|
3128 |
[
|
3129 |
-
_c("label", [
|
3130 |
_vm._v(
|
3131 |
_vm._s(
|
3132 |
_vm.__("Admin Commission Type", "dokan-lite")
|
@@ -3136,6 +3169,7 @@ var render = function() {
|
|
3136 |
_vm._v(" "),
|
3137 |
_c("Multiselect", {
|
3138 |
attrs: {
|
|
|
3139 |
options: _vm.commissionTypes,
|
3140 |
"track-by": "name",
|
3141 |
label: "label",
|
390 |
//
|
391 |
//
|
392 |
//
|
393 |
+
//
|
394 |
+
//
|
395 |
+
//
|
396 |
+
//
|
397 |
|
398 |
|
399 |
|
2007 |
{ staticClass: "dokan-form-group" },
|
2008 |
[
|
2009 |
_c("div", { staticClass: "column" }, [
|
2010 |
+
_c("label", { attrs: { for: "first-name" } }, [
|
2011 |
_vm._v(_vm._s(_vm.__("First Name", "dokan-lite")))
|
2012 |
]),
|
2013 |
_vm._v(" "),
|
2023 |
staticClass: "dokan-form-input",
|
2024 |
attrs: {
|
2025 |
type: "email",
|
2026 |
+
id: "first-name",
|
2027 |
placeholder: _vm.__("First Name", "dokan-lite")
|
2028 |
},
|
2029 |
domProps: { value: _vm.vendorInfo.first_name },
|
2039 |
]),
|
2040 |
_vm._v(" "),
|
2041 |
_c("div", { staticClass: "column" }, [
|
2042 |
+
_c("label", { attrs: { for: "last-name" } }, [
|
2043 |
_vm._v(_vm._s(_vm.__("Last Name", "dokan-lite")))
|
2044 |
]),
|
2045 |
_vm._v(" "),
|
2055 |
staticClass: "dokan-form-input",
|
2056 |
attrs: {
|
2057 |
type: "email",
|
2058 |
+
id: "last-name",
|
2059 |
placeholder: _vm.__("Last Name", "dokan-lite")
|
2060 |
},
|
2061 |
domProps: { value: _vm.vendorInfo.last_name },
|
2094 |
},
|
2095 |
attrs: {
|
2096 |
type: "text",
|
2097 |
+
id: "store-name",
|
2098 |
placeholder: _vm.getError("store_name")
|
2099 |
? _vm.__("Store Name is required", "dokan-lite")
|
2100 |
: _vm.__("Store Name", "dokan-lite")
|
2113 |
_vm._v(" "),
|
2114 |
!_vm.getId()
|
2115 |
? _c("div", { staticClass: "column" }, [
|
2116 |
+
_c("label", { attrs: { for: "user-nicename" } }, [
|
2117 |
_vm._v(_vm._s(_vm.__("Store URL", "dokan-lite")))
|
2118 |
]),
|
2119 |
_vm._v(" "),
|
2129 |
staticClass: "dokan-form-input",
|
2130 |
attrs: {
|
2131 |
type: "text",
|
2132 |
+
id: "user-nicename",
|
2133 |
placeholder: _vm.__("Store Url", "dokan-lite")
|
2134 |
},
|
2135 |
domProps: { value: _vm.vendorInfo.user_nicename },
|
2187 |
staticClass: "dokan-form-input",
|
2188 |
attrs: {
|
2189 |
type: "number",
|
2190 |
+
id: "store-phone",
|
2191 |
placeholder: _vm.__("123456789", "dokan-lite")
|
2192 |
},
|
2193 |
domProps: { value: _vm.vendorInfo.phone },
|
2226 |
},
|
2227 |
attrs: {
|
2228 |
type: "email",
|
2229 |
+
id: "store-email",
|
2230 |
placeholder: _vm.getError("email")
|
2231 |
? _vm.__("Email is required", "dokan-lite")
|
2232 |
: _vm.__("store@email.com", "dokan-lite")
|
2259 |
!_vm.getId()
|
2260 |
? [
|
2261 |
_c("div", { staticClass: "column" }, [
|
2262 |
+
_c("label", { attrs: { for: "user-login" } }, [
|
2263 |
_vm._v(_vm._s(_vm.__("Username", "dokan-lite")))
|
2264 |
]),
|
2265 |
_c("span", { staticClass: "required-field" }, [_vm._v("*")]),
|
2280 |
},
|
2281 |
attrs: {
|
2282 |
type: "text",
|
2283 |
+
id: "user-login",
|
2284 |
placeholder: _vm.getError("user_login")
|
2285 |
? _vm.__("Username is required", "dokan-lite")
|
2286 |
: _vm.__("Username", "dokan-lite")
|
2356 |
}
|
2357 |
],
|
2358 |
staticClass: "dokan-form-input",
|
2359 |
+
attrs: {
|
2360 |
+
id: "store-password",
|
2361 |
+
type: "text",
|
2362 |
+
placeholder: "********"
|
2363 |
+
},
|
2364 |
domProps: { value: _vm.vendorInfo.user_pass },
|
2365 |
on: {
|
2366 |
input: function($event) {
|
2511 |
staticClass: "dokan-form-input",
|
2512 |
attrs: {
|
2513 |
type: "text",
|
2514 |
+
id: "street-1",
|
2515 |
placeholder: _vm.__("Street 1", "dokan-lite")
|
2516 |
},
|
2517 |
domProps: { value: _vm.vendorInfo.address.street_1 },
|
2547 |
staticClass: "dokan-form-input",
|
2548 |
attrs: {
|
2549 |
type: "text",
|
2550 |
+
id: "street-2",
|
2551 |
placeholder: _vm.__("Street 2", "dokan-lite")
|
2552 |
},
|
2553 |
domProps: { value: _vm.vendorInfo.address.street_2 },
|
2583 |
staticClass: "dokan-form-input",
|
2584 |
attrs: {
|
2585 |
type: "text",
|
2586 |
+
id: "city",
|
2587 |
placeholder: _vm.__("City", "dokan-lite")
|
2588 |
},
|
2589 |
domProps: { value: _vm.vendorInfo.address.city },
|
2613 |
}
|
2614 |
],
|
2615 |
staticClass: "dokan-form-input",
|
2616 |
+
attrs: {
|
2617 |
+
type: "text",
|
2618 |
+
id: "zip",
|
2619 |
+
placeholder: _vm.__("Zip", "dokan-lite")
|
2620 |
+
},
|
2621 |
domProps: { value: _vm.vendorInfo.address.zip },
|
2622 |
on: {
|
2623 |
input: function($event) {
|
2640 |
_vm._v(" "),
|
2641 |
_c("Multiselect", {
|
2642 |
attrs: {
|
2643 |
+
id: "country",
|
2644 |
options: _vm.countries,
|
2645 |
multiselect: false,
|
2646 |
label: "name",
|
2682 |
],
|
2683 |
staticClass: "dokan-form-input",
|
2684 |
attrs: {
|
2685 |
+
id: "state",
|
2686 |
type: "text",
|
2687 |
placeholder: _vm.__("State", "dokan-lite")
|
2688 |
},
|
2704 |
: [
|
2705 |
_c("Multiselect", {
|
2706 |
attrs: {
|
2707 |
+
id: "state",
|
2708 |
options: _vm.getStatesFromCountryCode(_vm.selectedCode),
|
2709 |
multiselect: false,
|
2710 |
showLabels: false,
|
2858 |
staticClass: "dokan-form-input",
|
2859 |
attrs: {
|
2860 |
type: "text",
|
2861 |
+
id: "account-name",
|
2862 |
placeholder: _vm.__("Account Name", "dokan-lite")
|
2863 |
},
|
2864 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_name },
|
2894 |
staticClass: "dokan-form-input",
|
2895 |
attrs: {
|
2896 |
type: "text",
|
2897 |
+
id: "account-number",
|
2898 |
placeholder: _vm.__("1233456789", "dokan-lite")
|
2899 |
},
|
2900 |
domProps: { value: _vm.vendorInfo.payment.bank.ac_number },
|
2930 |
staticClass: "dokan-form-input",
|
2931 |
attrs: {
|
2932 |
type: "text",
|
2933 |
+
id: "bank-name",
|
2934 |
placeholder: _vm.__("Bank Name", "dokan-lite")
|
2935 |
},
|
2936 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_name },
|
2966 |
staticClass: "dokan-form-input",
|
2967 |
attrs: {
|
2968 |
type: "text",
|
2969 |
+
id: "bank-address",
|
2970 |
placeholder: _vm.__("Bank Address", "dokan-lite")
|
2971 |
},
|
2972 |
domProps: { value: _vm.vendorInfo.payment.bank.bank_addr },
|
3002 |
staticClass: "dokan-form-input",
|
3003 |
attrs: {
|
3004 |
type: "text",
|
3005 |
+
id: "routing-number",
|
3006 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3007 |
},
|
3008 |
domProps: {
|
3040 |
staticClass: "dokan-form-input",
|
3041 |
attrs: {
|
3042 |
type: "text",
|
3043 |
+
id: "iban",
|
3044 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3045 |
},
|
3046 |
domProps: { value: _vm.vendorInfo.payment.bank.iban },
|
3076 |
staticClass: "dokan-form-input",
|
3077 |
attrs: {
|
3078 |
type: "text",
|
3079 |
+
id: "swift",
|
3080 |
placeholder: _vm.__("123456789", "dokan-lite")
|
3081 |
},
|
3082 |
domProps: { value: _vm.vendorInfo.payment.bank.swift },
|
3116 |
class: { column: _vm.getId(), "checkbox-group": !_vm.getId() }
|
3117 |
},
|
3118 |
[
|
3119 |
+
_c("label", { attrs: { for: "paypal-email" } }, [
|
3120 |
_vm._v(_vm._s(_vm.__("PayPal Email", "dokan-lite")))
|
3121 |
]),
|
3122 |
_vm._v(" "),
|
3132 |
staticClass: "dokan-form-input",
|
3133 |
attrs: {
|
3134 |
type: "email",
|
3135 |
+
id: "paypal-email",
|
3136 |
placeholder: _vm.__("store@email.com", "dokan-lite")
|
3137 |
},
|
3138 |
domProps: { value: _vm.vendorInfo.payment.paypal.email },
|
3159 |
"div",
|
3160 |
{ staticClass: "column" },
|
3161 |
[
|
3162 |
+
_c("label", { attrs: { for: "commission-type" } }, [
|
3163 |
_vm._v(
|
3164 |
_vm._s(
|
3165 |
_vm.__("Admin Commission Type", "dokan-lite")
|
3169 |
_vm._v(" "),
|
3170 |
_c("Multiselect", {
|
3171 |
attrs: {
|
3172 |
+
id: "commission-type",
|
3173 |
options: _vm.commissionTypes,
|
3174 |
"track-by": "name",
|
3175 |
label: "label",
|
assets/js/vue-bootstrap.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
dokanWebpack([1],[,,function(e,t,a){"use strict";var n=a(10),o=a(28),i=!1;var s=function(e){i||a(27)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var n=a(15);t.a={extends:n.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,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||"",n=t.datasets[e.datasetIndex].tooltipLabel||"",o=t.datasets[e.datasetIndex].tooltipPrefix||"",i=n?n+": ":a+": ";return i+=o+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},,function(e,t,a){"use strict";var n=a(54);t.a={components:{Sketch:n.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 n=a(1),o=(a.n(n),a(2)),i=a(16),s=a(17);t.a={name:"VendorAccountFields",components:{Switches:o.a,UploadImage:i.a,PasswordGenerator:s.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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(n.debounce)(this.checkStore,this.delay),this.checkUsername=Object(n.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(n.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},n={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,n,o,i){return(!0!==e||!0!==t)&&((!0!==e||n!==i)&&((!0!==t||a!==o)&&((a!==o||n!==i)&&!(o<=a))))}},o=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:n})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=o,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,n,o,i,s,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);s=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,s,i)),(n=s)/(o=i)>(a=l/d)?l=(d=o)*a:d=(l=n)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,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 n=a(3);a.n(n);t.a={name:"VendorAddressFields",components:{Multiselect:n.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],n=a&&a[e];return void 0!==n?n:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var n in a)if(n===e&&!(a[n]&&a[n].length<1))for(var o in a[n])t.push({name:a[n][o],code:o});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 n=a(2),o=a(3);a.n(o);t.a={name:"VendorPaymentFields",components:{Switches:n.a,Multiselect:o.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,n=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=n}},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,a){"use strict";var n=a(11),o=a(30),i=!1;var s=function(e){i||a(29)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var n=a(12),o=a(31),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var n=a(6),o=a(0)(n.a,null,!1,null,null,null);o.options.__file="src/admin/components/Chart.vue",t.a=o.exports},,,function(e,t,a){"use strict";var n=a(8),o=a(25),i=!1;var s=function(e){i||a(24)},r=a(0)(n.a,o.a,!1,s,"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 n=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){return 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){return 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)};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(9),o=a(32),i=a(0)(n.a,o.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 n=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"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t){},function(e,t,a){"use strict";var n=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){return t.preventDefault(),e.uploadImage.apply(null,arguments)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=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){return t.preventDefault(),e.generatePassword.apply(null,arguments)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword.apply(null,arguments)}}},[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){return t.preventDefault(),e.cancelButton.apply(null,arguments)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(13),o=a(35),i=!1;var s=function(e){i||a(34)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=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:"address-multiselect"},[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:"address-multiselect"},[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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(14),o=a(38),i=!1;var s=function(e){i||a(37)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=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,n){return a(t,{key:n,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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";t.c=o,t.a=function(e,t){return i(t)?i(t).dgettext(t,e):e},t.b=function(e,t,a,n,o){return i(o).dnpgettext(o,n,e,t,a)},a.d(t,"d",function(){return s});var n={};function o(e){var t=new Jed(e);n[t._textdomain]=t}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n[e]||o({"":{}}),n[e]}var s=Jed.sprintf},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";t.a={name:"Postbox",props:{title:{type:String,required:!0,default:""},extraClass:{type:String,default:null}},data:function(){return{showing:!0}}}},function(e,t,a){"use strict";t.a={name:"Loading",data:function(){return{}}}},function(e,t,a){"use strict";t.a={name:"Modal",props:{footer:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:"500px"},height:{type:String,required:!1,default:"auto"},title:{type:String,required:!0,default:""}},data:function(){return{}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0},shortcodes:{type:Object,required:!1}},data:function(){return{editorId:this._uid,fileFrame:null}},mounted:function(){var e=this;window.tinymce.init({selector:"#dokan-tinymce-".concat(this.editorId),branding:!1,height:200,menubar:!1,convert_urls:!1,theme:"modern",skin:"lightgray",fontsize_formats:"10px 11px 13px 14px 16px 18px 22px 25px 30px 36px 40px 45px 50px 60px 65px 70px 75px 80px",font_formats:"Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Lucida=Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;",plugins:"textcolor colorpicker wplink wordpress code hr wpeditimage",toolbar:["shortcodes bold italic underline bullist numlist alignleft aligncenter alignjustify alignright link image wp_adv","formatselect forecolor backcolor blockquote hr code fontselect fontsizeselect removeformat undo redo"],setup:function(t){var a=[];_.forEach(e.shortcodes,function(e,n){a.push({text:e.title,classes:"menu-section-title"}),_.forEach(e.codes,function(e,o){a.push({text:e.title,onclick:function(){var a="[".concat(n,":").concat(o,"]");e.default&&(a="[".concat(n,":").concat(o,' default="').concat(e.default,'"]')),e.text&&(a="[".concat(n,":").concat(o,' text="').concat(e.text,'"]')),e.plainText&&(a=e.text),t.insertContent(a)}})})}),t.addButton("image",{icon:"image",onclick:function(){e.browseImage(t)}}),t.on("change keyup NodeChange",function(){e.$emit("input",t.getContent())})}})},methods:{browseImage:function(e){var t=this,a={id:0,url:"",type:""};if(t.fileFrame)t.fileFrame.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:this.__("Select an image","dokan-lite"),priority:20,filterable:"uploaded"})];t.fileFrame=wp.media({title:this.__("Select an image","dokan-lite"),library:{type:""},button:{text:this.__("Select an image","dokan-lite")},multiple:!1,states:n}),t.fileFrame.on("select",function(){t.fileFrame.state().get("selection").map(function(n){return(n=n.toJSON()).id&&(a.id=n.id),n.url&&(a.url=n.url),n.type&&(a.type=n.type),t.insertImage(e,a),null})}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-image-uploader"}}),t.fileFrame.open()}},insertImage:function(e,t){if(t.id&&"image"===t.type){var a='<img src="'.concat(t.url,'" alt="').concat(t.alt,'" title="').concat(t.title,'" style="max-width: 100%; height: auto;">');e.insertContent(a)}else this.alert({type:"error",text:this.__("Please select an image,","dokan-lite")})}}}},function(e,t,a){"use strict";t.a={props:["amount"],methods:{formattedPrice:function(e){return accounting.formatMoney(e,dokan.currency)}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"LazyInput",props:{value:{type:String,required:!0,default:""},type:{type:String,required:!1,default:"text"},placeholder:{type:String,required:!1,default:""}},data:function(){return{delay:500,debouncer:null}},methods:{updateValue:function(e){var t=this;t.debouncer&&t.debouncer.clear(),t.debouncer=Object(n.debounce)(function(){t.triggerInput(e)},t.delay),t.debouncer()},focus:function(){this.$emit("focus")},blur:function(){this.$emit("blur")},triggerInput:function(e){this.$emit("input",e)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:Number,default:0},hidden:{type:Boolean,default:!1},bgColor:{type:String,default:"defaultBg"},fgColor:{type:String,default:"defaultFg"}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"Search",props:{title:{type:String,default:"Search"}},data:function(){return{delay:500,searchItems:""}},watch:{searchItems:function(){this.makeDelay()}},created:function(){this.makeDelay=Object(n.debounce)(this.doSearch,this.delay)},methods:{doSearch:function(){this.$emit("searched",this.searchItems)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},changeMonthYear:{type:Boolean,required:!1,default:!1}},mounted:function(){var e=this;jQuery(e.$el).datepicker({dateFormat:e.format,changeMonth:e.changeMonthYear,changeYear:e.changeMonthYear,beforeShow:function(){jQuery(this).datepicker("widget").addClass("dokan-datepicker")},onSelect:function(t){e.updateValue(t)}})},methods:{updateValue:function(e){e||(e=moment().format("YYYY-MM-DD")),this.$emit("input",e)}}}},,function(e,t,a){"use strict";t.a={name:"GoogleMaps",props:{apiKey:{type:String,default:null},location:{type:Object,default:function(){return{latitude:23.709921,longitude:90.40714300000002,address:"dhaka",zoom:10}}}},data:function(){return{dokanGoogleMap:null,marker:null,loadMap:this.apiKey.length>1}},mounted:function(){this.apiKey&&window.google&&this.renderMap()||this.$emit("hideMap",!0)},beforeDestroy:function(){this.dokanGoogleMap&&(this.dokanGoogleMap=null),this.marker&&(this.marker=null)},methods:{setMap:function(){this.dokanGoogleMap=new google.maps.Map(this.getMapArea(),{center:this.getCenter(),zoom:this.location.zoom,mapTypeId:google.maps.MapTypeId.ROADMAP})},setMarker:function(){this.marker=new google.maps.Marker({position:this.getCenter(),map:this.dokanGoogleMap})},GetGeocoder:function(){return new google.maps.Geocoder},getSearchAddress:function(){return this.location.address&&(this.$refs.searchAddress.value=this.location.address),this.$refs.searchAddress},setAutoComplete:function(){var e=this,t=new google.maps.places.Autocomplete(this.getSearchAddress());t.addListener("place_changed",function(){var a=t.getPlace(),n=a.geometry.location;e.updateMap(n.lat(),n.lng(),a.formatted_address)})},updateMap:function(e,t,a){var n=new google.maps.LatLng(e,t);this.$emit("updateMap",{latitude:n.lat(),longitude:n.lng(),address:a}),this.dokanGoogleMap.setCenter(n),this.marker.setPosition(n),a||this.GetGeocoder.geocode({location:{lat:e,lng:t}},function(e,t){"OK"===t&&address.val(e[0].formatted_address)})},renderMap:function(){return this.setMap(),this.setMarker(),this.setAutoComplete(),!0},getCenter:function(){return new google.maps.LatLng(this.location.latitude,this.location.longitude)},getMapArea:function(){return this.$refs.gmapArea}}}},function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(t){o()(this,e),this._mapId=t}return s()(e,[{key:"onAdd",value:function(e){var t=this;this._map=e;var a=document.createElement("span");a.className="dashicons dashicons-search";var n=document.createTextNode("Search Map"),o=document.createElement("button");o.type="button",o.className="button",o.appendChild(a),o.appendChild(n),o.addEventListener("click",function(e){e.preventDefault();var a=document.getElementById(t._mapId).getElementsByClassName("mapboxgl-ctrl-top-left")[0];a.className=a.className+" show-geocoder"});var i=document.createElement("div");return i.className="mapboxgl-ctrl dokan-mapboxgl-ctrl",i.appendChild(o),this._container=i,this._container}},{key:"onRemove",value:function(){this._container.parentNode.removeChild(this._container),this._map=void 0}}]),e}();t.a={name:"Mapbox",props:{accessToken:{type:String,default:null},location:{type:Object,required:!0},width:{type:String,required:!1,default:"100%"},height:{type:String,required:!1,default:"300px"}},data:function(){return{dokanMapbox:null,dokanGeocoder:null,dokanMarker:null}},computed:{mapboxId:function(){return"dokan-mapbox-".concat(this._uid)},address:function(){return this.location.address}},mounted:function(){this.accessToken&&window.mapboxgl&&this.initializeMapbox()||this.$emit("hideMap",!0),window.mapboxgl=mapboxgl},beforeDestroy:function(){this.dokanMapbox&&(this.dokanMarker.remove(),this.dokanMapbox.remove())},methods:{initializeMapbox:function(){var e=this;return mapboxgl.accessToken=this.accessToken,this.dokanMapbox=new mapboxgl.Map({container:this.mapboxId,style:"mapbox://styles/mapbox/streets-v10",center:[this.location.longitude,this.location.latitude],zoom:this.location.zoom}),this.dokanMapbox.addControl(new mapboxgl.NavigationControl),this.dokanMapbox.addControl(new r(this.mapboxId),"top-left"),this.dokanMapbox.on("zoomend",function(t){e.setLocation({zoom:t.target.getZoom()})}),this.dokanMapbox.on("load",function(){e.dokanGeocoder=new MapboxGeocoder({accessToken:mapboxgl.accessToken,mapboxgl:mapboxgl,zoom:e.dokanMapbox.getZoom(),placeholder:e.__("Search Address","dokan-lite"),marker:!1,reverseGeocode:!0}),e.dokanMapbox.addControl(e.dokanGeocoder,"top-left"),e.dokanGeocoder.setInput(e.location.address),e.dokanGeocoder.on("result",function(t){var a=t.result,n=a.center;a.place_name;e.dokanMarker.setLngLat(n),e.dokanMapbox.setCenter([n[0],n[1]]),e.setLocation({address:a.place_name,latitude:n[1],longitude:n[0],zoom:e.dokanMapbox.getZoom()})})}),this.dokanMarker=new mapboxgl.Marker({draggable:!0}).setLngLat([this.location.longitude,this.location.latitude]).addTo(this.dokanMapbox).on("dragend",this.onMarkerDragEnd),!0},onMarkerDragEnd:function(){var e=this,t=this.dokanGeocoder.geocoderService.client.origin,a=this.dokanGeocoder.geocoderService.client.accessToken,n=this.dokanMarker.getLngLat().wrap(),o=n.lng,i=n.lat;this.dokanMapbox.setCenter([o,i]),this.setLocation({latitude:i,longitude:o});var s="".concat(t,"/geocoding/v5/mapbox.places/").concat(o,"%2C").concat(i,".json?access_token=").concat(a,"&cachebuster=").concat(+new Date,"&autocomplete=true");this.dokanGeocoder._inputEl.disabled=!0,this.dokanGeocoder._loadingEl.style.display="block",jQuery.ajax({url:s,method:"get"}).done(function(t){e.dokanGeocoder._typeahead.update(t.features)}).fail(function(){}).always(function(){e.dokanGeocoder._inputEl.disabled=!1,e.dokanGeocoder._loadingEl.style.display=""})},setLocation:function(e){this.$emit("updateMap",e)},onChangeAddress:function(e){this.setLocation({address:e.target.value})}}}},function(e,t,a){"use strict";t.a={props:{section:{type:String,required:!0},field:{type:Object,required:!0},toggleLoadingState:{type:Function,required:!0}},data:function(){return{isRefreshing:!1,showRefreshedMsg:!1}},computed:{messages:function(){var e,t,a,n;return{refreshing:(null===(e=this.field.refresh_options)||void 0===e?void 0:null===(t=e.messages)||void 0===t?void 0:t.refreshing)||this.__("Refreshing options","dokan-lite"),refreshed:(null===(a=this.field.refresh_options)||void 0===a?void 0:null===(n=a.messages)||void 0===n?void 0:n.refreshed)||this.__("Option refreshed!","dokan-lite")}}},methods:{refreshSettings:function(){var e=this;this.toggleLoadingState(),this.isRefreshing=!0,jQuery.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:{action:"dokan_refresh_admin_settings_field_options",_wpnonce:dokan.admin_settings_nonce,section:this.section,field:this.field.name}}).done(function(t){var a;(null===t||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a[0])&&e.setSettingOptions(t.data)}).always(function(){e.toggleLoadingState(),e.isRefreshing=!1}).fail(function(e){var t;(null===e||void 0===e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.data)&&alert(e.responseJSON.data)})},setSettingOptions:function(e){var t=this;this.field.options=e,this.showRefreshedMsg=!0,setTimeout(function(){return t.showRefreshedMsg=!1},3e3)}}}},function(e,t,a){"use strict";t.a={name:"VendorSocialFields",props:{vendorInfo:{type:Object}},data:function(){return{getSocialFields:dokan.hooks.applyFilters("getVendorSocialFields",[])}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(4),o=a(19),i=a(187),s=a.n(i),r=a(68),l=a.n(r),d=a(69),c=a(3),u=a.n(c),p=a(191),m=a(15),v=a(192),f=a(1),_=a.n(f),h=a(193),g=a.n(h),b=a(73),k=(a.n(b),a(194)),y=a(197),w=a(20),C=a(200),x=a(2),I=a(203),S=a(205),A=a(207),P=a(209),M=a(212),F=a(214),N=a(83),$=a(23),T=a(219),L=a(222),E=a(16),B=a(17),G=a(225),R=a(26),V=a(33),j=a(228),q=a(36),U=a(230);a.n(U);window.__=function(e,t){return __(e,t)},n.default.use(l.a),n.default.use(N.default),n.default.mixin(v.a),n.default.filter("currency",function(e){return accounting.formatMoney(e,dokan.currency)}),n.default.filter("capitalize",function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}),n.default.directive("tooltip",{bind:function(e,t,a){jQuery(e).tooltip("show")},unbind:function(e,t,a){jQuery(e).tooltip("destroy")}}),window.dokan_get_lib=function(e){return window.dokan.libs[e]},window.dokan_add_route=function(e){window.dokan.routeComponents[e.name]=e},window.dokan.api=new p.a,window.dokan.libs.Vue=n.default,window.dokan.libs.Router=o.default,window.dokan.libs.moment=s.a,window.dokan.libs.ListTable=d.default,window.dokan.libs.Currency=S.a,window.dokan.libs.Postbox=k.a,window.dokan.libs.Loading=y.a,window.dokan.libs.ChartJS=m.default,window.dokan.libs.Chart=w.a,window.dokan.libs.Modal=C.a,window.dokan.libs.Switches=x.a,window.dokan.libs.TextEditor=I.a,window.dokan.libs.LazyInput=A.a,window.dokan.libs.Progressbar=P.a,window.dokan.libs.Search=M.a,window.dokan.libs.Datepicker=F.a,window.dokan.libs.Multiselect=u.a,window.dokan.libs.ColorPicker=$.a,window.dokan.libs.debounce=_.a,window.dokan.libs.VersionCompare=g.a,window.dokan.libs.GoogleMaps=T.a,window.dokan.libs.Mapbox=L.a,window.dokan.libs.UploadImage=E.a,window.dokan.libs.PasswordGenerator=B.a,window.dokan.libs.VendorAccountFields=R.a,window.dokan.libs.VendorAddressFields=V.a,window.dokan.libs.VendorSocialFields=j.a,window.dokan.libs.VendorPaymentFields=q.a,window.dokan.libs.RefreshSettingOptions=G.a,window.dokan.libs.ContentLoading={VclCode:b.VclCode,VclList:b.VclList,VclTwitch:b.VclTwitch,VclFacebook:b.VclFacebook,VclInstagram:b.VclInstagram,VclBulletList:b.VclBulletList,VueContentLoading:b.VueContentLoading},dokan.hooks=wp&&wp.hooks?wp.hooks:dokan.wpPackages.hooks,dokan.hooks&&(dokan.addFilterComponent=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;dokan.hooks.addFilter(e,t,function(e){return e.push(a),e},n)})},function(e,t){e.exports=moment},,,,function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(){o()(this,e)}return s()(e,[{key:"endpoint",value:function(){return window.dokan.rest.root+window.dokan.rest.version}},{key:"headers",value:function(){return{}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"GET",this.headers(),t)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"POST",this.headers(),t)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"PUT",this.headers(),t)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"DELETE",this.headers(),t)}},{key:"ajax",value:function(e,t,a,n){var o=null;return"PUT"!==t&&"DELETE"!==t||(o=t,t="POST"),jQuery.ajax({url:this.endpoint()+e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.dokan.rest.nonce),o&&e.setRequestHeader("X-HTTP-Method-Override",o)},type:t,data:n})}}]),e}();t.a=r},function(e,t,a){"use strict";var n=a(39);t.a={methods:{setLocaleData:function(e){return Object(n.c)(e)},__:function(e,t){return Object(n.a)(e,t)},_nx:function(e,t,a,o,i){return Object(n.b)(e,t,a,o,i)},__n:function(e,t,a,n){return _n(e,t,a,n)},sprintf:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return n.d.apply(void 0,[e].concat(a))}}}},function(e,t){e.exports=function(e,t,a){var n,o,i=0,s={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},r=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?s[e]||-7:parseInt(e,10):0};for(e=r(e),t=r(t),o=Math.max(e.length,t.length),n=0;n<o;n++)if(e[n]!==t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){i=-1;break}if(e[n]>t[n]){i=1;break}}if(!a)return i;switch(a){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"===":case"=":case"eq":return 0===i;case"<>":case"!==":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}},function(e,t,a){"use strict";var n=a(74),o=a(196),i=!1;var s=function(e){i||a(195)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Postbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["postbox","dokan-postbox",{closed:!e.showing},e.extraClass]},[a("div",{staticClass:"postbox-header"},[a("h2",{staticClass:"hndle"},[a("span",[e._v(e._s(e.title))])]),e._v(" "),a("div",{staticClass:"handle-actions hide-if-no-js"},[a("button",{staticClass:"handlediv",attrs:{type:"button","aria-expanded":"false"},on:{click:function(t){e.showing=!e.showing}}},[a("span",{staticClass:"toggle-indicator",attrs:{"aria-hidden":"true"}})])])]),e._v(" "),a("div",{staticClass:"inside"},[a("div",{staticClass:"main"},[e._t("default")],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(75),o=a(199),i=!1;var s=function(e){i||a(198)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Loading.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)};n._withStripped=!0;var o={render:n,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"dokan-loader"},[t("div"),t("div")])}]};t.a=o},function(e,t,a){"use strict";var n=a(76),o=a(202),i=!1;var s=function(e){i||a(201)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Modal.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-modal-dialog"},[a("div",{staticClass:"dokan-modal"},[a("div",{staticClass:"dokan-modal-content",style:{width:e.width,height:e.height}},[a("section",{class:["dokan-modal-main",{"has-footer":e.footer}]},[a("header",{staticClass:"modal-header"},[e._t("header",function(){return[a("h1",[e._v(e._s(e.title))])]}),e._v(" "),a("button",{staticClass:"modal-close modal-close-link dashicons dashicons-no-alt",on:{click:function(t){return e.$emit("close")}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Close modal panel","dokan-lite")))])])],2),e._v(" "),a("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),e.footer?a("footer",{staticClass:"modal-footer"},[a("div",{staticClass:"inner"},[e._t("footer")],2)]):e._e()])])]),e._v(" "),a("div",{staticClass:"dokan-modal-backdrop"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(77),o=a(204),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/TextEditor.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("textarea",{attrs:{id:"dokan-tinymce-"+this.editorId},domProps:{value:this.value}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(78),o=a(206),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Currency.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("div",{domProps:{innerHTML:this._s(this.formattedPrice(this.amount))}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(79),o=a(208),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/LazyInput.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:e.type,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)},focus:e.focus,blur:e.blur}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(80),o=a(211),i=!1;var s=function(e){i||a(210)},r=a(0)(n.a,o.a,!1,s,"data-v-356fabc6",null);r.options.__file="src/admin/components/Progressbar.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.bgColor,attrs:{id:"progressbar"}},[a("div",{class:e.fgColor,style:{width:e.value+"%"},attrs:{id:"value"}},[e.hidden?e._e():[e._v(e._s(e.value+"%"))]],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(81),o=a(213),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Search.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchItems,expression:"searchItems"}],attrs:{type:"search",id:"post-search-input",name:"s",placeholder:e.title},domProps:{value:e.searchItems},on:{input:function(t){t.target.composing||(e.searchItems=t.target.value)}}})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(82),o=a(215),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Datepicker.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},,,,function(e,t,a){"use strict";var n=a(84),o=a(221),i=!1;var s=function(e){i||a(220)},r=a(0)(n.a,o.a,!1,s,"data-v-4f45e4a0",null);r.options.__file="src/admin/components/GoogleMaps.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return this.apiKey?t("div",{staticClass:"gmap-wrap regular-text"},[t("input",{ref:"searchAddress",staticClass:"search-address regular-text",attrs:{type:"text",placeholder:this.__("Search Address","dokan-lite")}}),this._v(" "),t("div",{ref:"gmapArea",attrs:{id:"gmap"}})]):t("p",[this._v("\n "+this._s(this.__("Please enter google map API key","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(85),o=a(224),i=!1;var s=function(e){i||a(223)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Mapbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.accessToken?a("div",{staticClass:"mapbox-wrapper"},[a("div",{staticClass:"address-input"},[a("label",[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n "),a("input",{attrs:{type:"text"},domProps:{value:e.address},on:{input:e.onChangeAddress}})])]),e._v(" "),a("div",{style:{width:e.width,height:e.height},attrs:{id:e.mapboxId}})]):a("p",[e._v("\n "+e._s(e.__("Please enter Mapbox access token in `Appearance > Mapbox Access Token` settings.","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(86),o=a(227),i=!1;var s=function(e){i||a(226)},r=a(0)(n.a,o.a,!1,s,"data-v-e724292e",null);r.options.__file="src/admin/components/RefreshSettingOptions.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",{staticClass:"button button-link",attrs:{type:"button",disabled:e.isRefreshing||e.showRefreshedMsg},on:{click:function(t){return t.preventDefault(),e.refreshSettings.apply(null,arguments)}}},[e.isRefreshing||e.showRefreshedMsg?e._e():a("span",{staticClass:"dashicons dashicons-image-rotate"}),e._v(" "),e.isRefreshing?a("span",{staticClass:"refreshing-message"},[e._v(e._s(e.messages.refreshing)+"...")]):e._e(),e._v(" "),e.showRefreshedMsg?a("span",{staticClass:"refresh-message-success"},[e._v("✓ "+e._s(e.messages.refreshed))]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(87),o=a(229),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorSocialFields.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"social-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Social 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:"facebook"}},[e._v(e._s(e.__("Facebook","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.fb,expression:"vendorInfo.social.fb"}],staticClass:"dokan-form-input",attrs:{id:"facebook",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.fb},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"fb",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"flickr"}},[e._v(e._s(e.__("Flickr","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.flickr,expression:"vendorInfo.social.flickr"}],staticClass:"dokan-form-input",attrs:{id:"flickr",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.flickr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"flickr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"twitter"}},[e._v(e._s(e.__("Twitter","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.twitter,expression:"vendorInfo.social.twitter"}],staticClass:"dokan-form-input",attrs:{id:"twitter",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.twitter},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"twitter",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"youtube"}},[e._v(e._s(e.__("Youtube","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.youtube,expression:"vendorInfo.social.youtube"}],staticClass:"dokan-form-input",attrs:{id:"youtube",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.youtube},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"youtube",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"linkedin"}},[e._v(e._s(e.__("Linkedin","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.linkedin,expression:"vendorInfo.social.linkedin"}],staticClass:"dokan-form-input",attrs:{id:"linkedin",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.linkedin},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"linkedin",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{id:"pinterest",for:"pinterest"}},[e._v(e._s(e.__("Pinterest","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.pinterest,expression:"vendorInfo.social.pinterest"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.pinterest},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"pinterest",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"instagram"}},[e._v(e._s(e.__("Instagram","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.instagram,expression:"vendorInfo.social.instagram"}],staticClass:"dokan-form-input",attrs:{id:"instagram",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.instagram},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"instagram",t.target.value)}}})]),e._v(" "),e._l(e.getSocialFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o}],[186]);
|
1 |
+
dokanWebpack([1],[,,function(e,t,a){"use strict";var n=a(10),o=a(28),i=!1;var s=function(e){i||a(27)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var n=a(15);t.a={extends:n.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,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||"",n=t.datasets[e.datasetIndex].tooltipLabel||"",o=t.datasets[e.datasetIndex].tooltipPrefix||"",i=n?n+": ":a+": ";return i+=o+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},,function(e,t,a){"use strict";var n=a(54);t.a={components:{Sketch:n.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 n=a(1),o=(a.n(n),a(2)),i=a(16),s=a(17);t.a={name:"VendorAccountFields",components:{Switches:o.a,UploadImage:i.a,PasswordGenerator:s.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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),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("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(n.debounce)(this.checkStore,this.delay),this.checkUsername=Object(n.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(n.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},n={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,n,o,i){return(!0!==e||!0!==t)&&((!0!==e||n!==i)&&((!0!==t||a!==o)&&((a!==o||n!==i)&&!(o<=a))))}},o=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:n})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=o,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,n,o,i,s,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);s=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,s,i)),(n=s)/(o=i)>(a=l/d)?l=(d=o)*a:d=(l=n)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,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 n=a(3);a.n(n);t.a={name:"VendorAddressFields",components:{Multiselect:n.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],n=a&&a[e];return void 0!==n?n:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var n in a)if(n===e&&!(a[n]&&a[n].length<1))for(var o in a[n])t.push({name:a[n][o],code:o});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 n=a(2),o=a(3);a.n(o);t.a={name:"VendorPaymentFields",components:{Switches:n.a,Multiselect:o.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,n=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=n}},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,a){"use strict";var n=a(11),o=a(30),i=!1;var s=function(e){i||a(29)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var n=a(12),o=a(31),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var n=a(6),o=a(0)(n.a,null,!1,null,null,null);o.options.__file="src/admin/components/Chart.vue",t.a=o.exports},,,function(e,t,a){"use strict";var n=a(8),o=a(25),i=!1;var s=function(e){i||a(24)},r=a(0)(n.a,o.a,!1,s,"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 n=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){return 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){return 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)};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(9),o=a(32),i=a(0)(n.a,o.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 n=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"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t){},function(e,t,a){"use strict";var n=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){return t.preventDefault(),e.uploadImage.apply(null,arguments)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=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){return t.preventDefault(),e.generatePassword.apply(null,arguments)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword.apply(null,arguments)}}},[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){return t.preventDefault(),e.cancelButton.apply(null,arguments)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=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:"first-name"}},[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",id:"first-name",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:"last-name"}},[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",id:"last-name",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",id:"store-name",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:"user-nicename"}},[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",id:"user-nicename",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",id:"store-phone",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",id:"store-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:"user-login"}},[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",id:"user-login",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:{id:"store-password",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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(13),o=a(35),i=!1;var s=function(e){i||a(34)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=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",id:"street-1",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",id:"street-2",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",id:"city",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",id:"zip",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:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{id:"country",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:"address-multiselect"},[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:{id:"state",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:{id:"state",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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(14),o=a(38),i=!1;var s=function(e){i||a(37)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=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",id:"account-name",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",id:"account-number",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",id:"bank-name",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",id:"bank-address",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",id:"routing-number",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",id:"iban",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",id:"swift",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,n){return a(t,{key:n,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:"paypal-email"}},[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",id:"paypal-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",{attrs:{for:"commission-type"}},[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{id:"commission-type",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,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";t.c=o,t.a=function(e,t){return i(t)?i(t).dgettext(t,e):e},t.b=function(e,t,a,n,o){return i(o).dnpgettext(o,n,e,t,a)},a.d(t,"d",function(){return s});var n={};function o(e){var t=new Jed(e);n[t._textdomain]=t}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n[e]||o({"":{}}),n[e]}var s=Jed.sprintf},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";t.a={name:"Postbox",props:{title:{type:String,required:!0,default:""},extraClass:{type:String,default:null}},data:function(){return{showing:!0}}}},function(e,t,a){"use strict";t.a={name:"Loading",data:function(){return{}}}},function(e,t,a){"use strict";t.a={name:"Modal",props:{footer:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:"500px"},height:{type:String,required:!1,default:"auto"},title:{type:String,required:!0,default:""}},data:function(){return{}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0},shortcodes:{type:Object,required:!1}},data:function(){return{editorId:this._uid,fileFrame:null}},mounted:function(){var e=this;window.tinymce.init({selector:"#dokan-tinymce-".concat(this.editorId),branding:!1,height:200,menubar:!1,convert_urls:!1,theme:"modern",skin:"lightgray",fontsize_formats:"10px 11px 13px 14px 16px 18px 22px 25px 30px 36px 40px 45px 50px 60px 65px 70px 75px 80px",font_formats:"Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Lucida=Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;",plugins:"textcolor colorpicker wplink wordpress code hr wpeditimage",toolbar:["shortcodes bold italic underline bullist numlist alignleft aligncenter alignjustify alignright link image wp_adv","formatselect forecolor backcolor blockquote hr code fontselect fontsizeselect removeformat undo redo"],setup:function(t){var a=[];_.forEach(e.shortcodes,function(e,n){a.push({text:e.title,classes:"menu-section-title"}),_.forEach(e.codes,function(e,o){a.push({text:e.title,onclick:function(){var a="[".concat(n,":").concat(o,"]");e.default&&(a="[".concat(n,":").concat(o,' default="').concat(e.default,'"]')),e.text&&(a="[".concat(n,":").concat(o,' text="').concat(e.text,'"]')),e.plainText&&(a=e.text),t.insertContent(a)}})})}),t.addButton("image",{icon:"image",onclick:function(){e.browseImage(t)}}),t.on("change keyup NodeChange",function(){e.$emit("input",t.getContent())})}})},methods:{browseImage:function(e){var t=this,a={id:0,url:"",type:""};if(t.fileFrame)t.fileFrame.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:this.__("Select an image","dokan-lite"),priority:20,filterable:"uploaded"})];t.fileFrame=wp.media({title:this.__("Select an image","dokan-lite"),library:{type:""},button:{text:this.__("Select an image","dokan-lite")},multiple:!1,states:n}),t.fileFrame.on("select",function(){t.fileFrame.state().get("selection").map(function(n){return(n=n.toJSON()).id&&(a.id=n.id),n.url&&(a.url=n.url),n.type&&(a.type=n.type),t.insertImage(e,a),null})}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-image-uploader"}}),t.fileFrame.open()}},insertImage:function(e,t){if(t.id&&"image"===t.type){var a='<img src="'.concat(t.url,'" alt="').concat(t.alt,'" title="').concat(t.title,'" style="max-width: 100%; height: auto;">');e.insertContent(a)}else this.alert({type:"error",text:this.__("Please select an image,","dokan-lite")})}}}},function(e,t,a){"use strict";t.a={props:["amount"],methods:{formattedPrice:function(e){return accounting.formatMoney(e,dokan.currency)}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"LazyInput",props:{value:{type:String,required:!0,default:""},type:{type:String,required:!1,default:"text"},placeholder:{type:String,required:!1,default:""}},data:function(){return{delay:500,debouncer:null}},methods:{updateValue:function(e){var t=this;t.debouncer&&t.debouncer.clear(),t.debouncer=Object(n.debounce)(function(){t.triggerInput(e)},t.delay),t.debouncer()},focus:function(){this.$emit("focus")},blur:function(){this.$emit("blur")},triggerInput:function(e){this.$emit("input",e)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:Number,default:0},hidden:{type:Boolean,default:!1},bgColor:{type:String,default:"defaultBg"},fgColor:{type:String,default:"defaultFg"}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"Search",props:{title:{type:String,default:"Search"}},data:function(){return{delay:500,searchItems:""}},watch:{searchItems:function(){this.makeDelay()}},created:function(){this.makeDelay=Object(n.debounce)(this.doSearch,this.delay)},methods:{doSearch:function(){this.$emit("searched",this.searchItems)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},changeMonthYear:{type:Boolean,required:!1,default:!1}},mounted:function(){var e=this;jQuery(e.$el).datepicker({dateFormat:e.format,changeMonth:e.changeMonthYear,changeYear:e.changeMonthYear,beforeShow:function(){jQuery(this).datepicker("widget").addClass("dokan-datepicker")},onSelect:function(t){e.updateValue(t)}})},methods:{updateValue:function(e){e||(e=moment().format("YYYY-MM-DD")),this.$emit("input",e)}}}},,function(e,t,a){"use strict";t.a={name:"GoogleMaps",props:{apiKey:{type:String,default:null},location:{type:Object,default:function(){return{latitude:23.709921,longitude:90.40714300000002,address:"dhaka",zoom:10}}}},data:function(){return{dokanGoogleMap:null,marker:null,loadMap:this.apiKey.length>1}},mounted:function(){this.apiKey&&window.google&&this.renderMap()||this.$emit("hideMap",!0)},beforeDestroy:function(){this.dokanGoogleMap&&(this.dokanGoogleMap=null),this.marker&&(this.marker=null)},methods:{setMap:function(){this.dokanGoogleMap=new google.maps.Map(this.getMapArea(),{center:this.getCenter(),zoom:this.location.zoom,mapTypeId:google.maps.MapTypeId.ROADMAP})},setMarker:function(){this.marker=new google.maps.Marker({position:this.getCenter(),map:this.dokanGoogleMap})},GetGeocoder:function(){return new google.maps.Geocoder},getSearchAddress:function(){return this.location.address&&(this.$refs.searchAddress.value=this.location.address),this.$refs.searchAddress},setAutoComplete:function(){var e=this,t=new google.maps.places.Autocomplete(this.getSearchAddress());t.addListener("place_changed",function(){var a=t.getPlace(),n=a.geometry.location;e.updateMap(n.lat(),n.lng(),a.formatted_address)})},updateMap:function(e,t,a){var n=new google.maps.LatLng(e,t);this.$emit("updateMap",{latitude:n.lat(),longitude:n.lng(),address:a}),this.dokanGoogleMap.setCenter(n),this.marker.setPosition(n),a||this.GetGeocoder.geocode({location:{lat:e,lng:t}},function(e,t){"OK"===t&&address.val(e[0].formatted_address)})},renderMap:function(){return this.setMap(),this.setMarker(),this.setAutoComplete(),!0},getCenter:function(){return new google.maps.LatLng(this.location.latitude,this.location.longitude)},getMapArea:function(){return this.$refs.gmapArea}}}},function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(t){o()(this,e),this._mapId=t}return s()(e,[{key:"onAdd",value:function(e){var t=this;this._map=e;var a=document.createElement("span");a.className="dashicons dashicons-search";var n=document.createTextNode("Search Map"),o=document.createElement("button");o.type="button",o.className="button",o.appendChild(a),o.appendChild(n),o.addEventListener("click",function(e){e.preventDefault();var a=document.getElementById(t._mapId).getElementsByClassName("mapboxgl-ctrl-top-left")[0];a.className=a.className+" show-geocoder"});var i=document.createElement("div");return i.className="mapboxgl-ctrl dokan-mapboxgl-ctrl",i.appendChild(o),this._container=i,this._container}},{key:"onRemove",value:function(){this._container.parentNode.removeChild(this._container),this._map=void 0}}]),e}();t.a={name:"Mapbox",props:{accessToken:{type:String,default:null},location:{type:Object,required:!0},width:{type:String,required:!1,default:"100%"},height:{type:String,required:!1,default:"300px"}},data:function(){return{dokanMapbox:null,dokanGeocoder:null,dokanMarker:null}},computed:{mapboxId:function(){return"dokan-mapbox-".concat(this._uid)},address:function(){return this.location.address}},mounted:function(){this.accessToken&&window.mapboxgl&&this.initializeMapbox()||this.$emit("hideMap",!0),window.mapboxgl=mapboxgl},beforeDestroy:function(){this.dokanMapbox&&(this.dokanMarker.remove(),this.dokanMapbox.remove())},methods:{initializeMapbox:function(){var e=this;return mapboxgl.accessToken=this.accessToken,this.dokanMapbox=new mapboxgl.Map({container:this.mapboxId,style:"mapbox://styles/mapbox/streets-v10",center:[this.location.longitude,this.location.latitude],zoom:this.location.zoom}),this.dokanMapbox.addControl(new mapboxgl.NavigationControl),this.dokanMapbox.addControl(new r(this.mapboxId),"top-left"),this.dokanMapbox.on("zoomend",function(t){e.setLocation({zoom:t.target.getZoom()})}),this.dokanMapbox.on("load",function(){e.dokanGeocoder=new MapboxGeocoder({accessToken:mapboxgl.accessToken,mapboxgl:mapboxgl,zoom:e.dokanMapbox.getZoom(),placeholder:e.__("Search Address","dokan-lite"),marker:!1,reverseGeocode:!0}),e.dokanMapbox.addControl(e.dokanGeocoder,"top-left"),e.dokanGeocoder.setInput(e.location.address),e.dokanGeocoder.on("result",function(t){var a=t.result,n=a.center;a.place_name;e.dokanMarker.setLngLat(n),e.dokanMapbox.setCenter([n[0],n[1]]),e.setLocation({address:a.place_name,latitude:n[1],longitude:n[0],zoom:e.dokanMapbox.getZoom()})})}),this.dokanMarker=new mapboxgl.Marker({draggable:!0}).setLngLat([this.location.longitude,this.location.latitude]).addTo(this.dokanMapbox).on("dragend",this.onMarkerDragEnd),!0},onMarkerDragEnd:function(){var e=this,t=this.dokanGeocoder.geocoderService.client.origin,a=this.dokanGeocoder.geocoderService.client.accessToken,n=this.dokanMarker.getLngLat().wrap(),o=n.lng,i=n.lat;this.dokanMapbox.setCenter([o,i]),this.setLocation({latitude:i,longitude:o});var s="".concat(t,"/geocoding/v5/mapbox.places/").concat(o,"%2C").concat(i,".json?access_token=").concat(a,"&cachebuster=").concat(+new Date,"&autocomplete=true");this.dokanGeocoder._inputEl.disabled=!0,this.dokanGeocoder._loadingEl.style.display="block",jQuery.ajax({url:s,method:"get"}).done(function(t){e.dokanGeocoder._typeahead.update(t.features)}).fail(function(){}).always(function(){e.dokanGeocoder._inputEl.disabled=!1,e.dokanGeocoder._loadingEl.style.display=""})},setLocation:function(e){this.$emit("updateMap",e)},onChangeAddress:function(e){this.setLocation({address:e.target.value})}}}},function(e,t,a){"use strict";t.a={props:{section:{type:String,required:!0},field:{type:Object,required:!0},toggleLoadingState:{type:Function,required:!0}},data:function(){return{isRefreshing:!1,showRefreshedMsg:!1}},computed:{messages:function(){var e,t,a,n;return{refreshing:(null===(e=this.field.refresh_options)||void 0===e?void 0:null===(t=e.messages)||void 0===t?void 0:t.refreshing)||this.__("Refreshing options","dokan-lite"),refreshed:(null===(a=this.field.refresh_options)||void 0===a?void 0:null===(n=a.messages)||void 0===n?void 0:n.refreshed)||this.__("Option refreshed!","dokan-lite")}}},methods:{refreshSettings:function(){var e=this;this.toggleLoadingState(),this.isRefreshing=!0,jQuery.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:{action:"dokan_refresh_admin_settings_field_options",_wpnonce:dokan.admin_settings_nonce,section:this.section,field:this.field.name}}).done(function(t){var a;(null===t||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a[0])&&e.setSettingOptions(t.data)}).always(function(){e.toggleLoadingState(),e.isRefreshing=!1}).fail(function(e){var t;(null===e||void 0===e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.data)&&alert(e.responseJSON.data)})},setSettingOptions:function(e){var t=this;this.field.options=e,this.showRefreshedMsg=!0,setTimeout(function(){return t.showRefreshedMsg=!1},3e3)}}}},function(e,t,a){"use strict";t.a={name:"VendorSocialFields",props:{vendorInfo:{type:Object}},data:function(){return{getSocialFields:dokan.hooks.applyFilters("getVendorSocialFields",[])}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(4),o=a(19),i=a(187),s=a.n(i),r=a(68),l=a.n(r),d=a(69),c=a(3),u=a.n(c),p=a(191),m=a(15),v=a(192),f=a(1),_=a.n(f),h=a(193),g=a.n(h),b=a(73),k=(a.n(b),a(194)),y=a(197),w=a(20),C=a(200),x=a(2),I=a(203),S=a(205),A=a(207),P=a(209),M=a(212),F=a(214),N=a(83),$=a(23),T=a(219),L=a(222),E=a(16),B=a(17),G=a(225),R=a(26),V=a(33),j=a(228),q=a(36),U=a(230);a.n(U);window.__=function(e,t){return __(e,t)},n.default.use(l.a),n.default.use(N.default),n.default.mixin(v.a),n.default.filter("currency",function(e){return accounting.formatMoney(e,dokan.currency)}),n.default.filter("capitalize",function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}),n.default.directive("tooltip",{bind:function(e,t,a){jQuery(e).tooltip("show")},unbind:function(e,t,a){jQuery(e).tooltip("destroy")}}),window.dokan_get_lib=function(e){return window.dokan.libs[e]},window.dokan_add_route=function(e){window.dokan.routeComponents[e.name]=e},window.dokan.api=new p.a,window.dokan.libs.Vue=n.default,window.dokan.libs.Router=o.default,window.dokan.libs.moment=s.a,window.dokan.libs.ListTable=d.default,window.dokan.libs.Currency=S.a,window.dokan.libs.Postbox=k.a,window.dokan.libs.Loading=y.a,window.dokan.libs.ChartJS=m.default,window.dokan.libs.Chart=w.a,window.dokan.libs.Modal=C.a,window.dokan.libs.Switches=x.a,window.dokan.libs.TextEditor=I.a,window.dokan.libs.LazyInput=A.a,window.dokan.libs.Progressbar=P.a,window.dokan.libs.Search=M.a,window.dokan.libs.Datepicker=F.a,window.dokan.libs.Multiselect=u.a,window.dokan.libs.ColorPicker=$.a,window.dokan.libs.debounce=_.a,window.dokan.libs.VersionCompare=g.a,window.dokan.libs.GoogleMaps=T.a,window.dokan.libs.Mapbox=L.a,window.dokan.libs.UploadImage=E.a,window.dokan.libs.PasswordGenerator=B.a,window.dokan.libs.VendorAccountFields=R.a,window.dokan.libs.VendorAddressFields=V.a,window.dokan.libs.VendorSocialFields=j.a,window.dokan.libs.VendorPaymentFields=q.a,window.dokan.libs.RefreshSettingOptions=G.a,window.dokan.libs.ContentLoading={VclCode:b.VclCode,VclList:b.VclList,VclTwitch:b.VclTwitch,VclFacebook:b.VclFacebook,VclInstagram:b.VclInstagram,VclBulletList:b.VclBulletList,VueContentLoading:b.VueContentLoading},dokan.hooks=wp&&wp.hooks?wp.hooks:dokan.wpPackages.hooks,dokan.hooks&&(dokan.addFilterComponent=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;dokan.hooks.addFilter(e,t,function(e){return e.push(a),e},n)})},function(e,t){e.exports=moment},,,,function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(){o()(this,e)}return s()(e,[{key:"endpoint",value:function(){return window.dokan.rest.root+window.dokan.rest.version}},{key:"headers",value:function(){return{}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"GET",this.headers(),t)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"POST",this.headers(),t)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"PUT",this.headers(),t)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"DELETE",this.headers(),t)}},{key:"ajax",value:function(e,t,a,n){var o=null;return"PUT"!==t&&"DELETE"!==t||(o=t,t="POST"),jQuery.ajax({url:this.endpoint()+e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.dokan.rest.nonce),o&&e.setRequestHeader("X-HTTP-Method-Override",o)},type:t,data:n})}}]),e}();t.a=r},function(e,t,a){"use strict";var n=a(39);t.a={methods:{setLocaleData:function(e){return Object(n.c)(e)},__:function(e,t){return Object(n.a)(e,t)},_nx:function(e,t,a,o,i){return Object(n.b)(e,t,a,o,i)},__n:function(e,t,a,n){return _n(e,t,a,n)},sprintf:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return n.d.apply(void 0,[e].concat(a))}}}},function(e,t){e.exports=function(e,t,a){var n,o,i=0,s={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},r=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?s[e]||-7:parseInt(e,10):0};for(e=r(e),t=r(t),o=Math.max(e.length,t.length),n=0;n<o;n++)if(e[n]!==t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){i=-1;break}if(e[n]>t[n]){i=1;break}}if(!a)return i;switch(a){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"===":case"=":case"eq":return 0===i;case"<>":case"!==":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}},function(e,t,a){"use strict";var n=a(74),o=a(196),i=!1;var s=function(e){i||a(195)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Postbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["postbox","dokan-postbox",{closed:!e.showing},e.extraClass]},[a("div",{staticClass:"postbox-header"},[a("h2",{staticClass:"hndle"},[a("span",[e._v(e._s(e.title))])]),e._v(" "),a("div",{staticClass:"handle-actions hide-if-no-js"},[a("button",{staticClass:"handlediv",attrs:{type:"button","aria-expanded":"false"},on:{click:function(t){e.showing=!e.showing}}},[a("span",{staticClass:"toggle-indicator",attrs:{"aria-hidden":"true"}})])])]),e._v(" "),a("div",{staticClass:"inside"},[a("div",{staticClass:"main"},[e._t("default")],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(75),o=a(199),i=!1;var s=function(e){i||a(198)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Loading.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)};n._withStripped=!0;var o={render:n,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"dokan-loader"},[t("div"),t("div")])}]};t.a=o},function(e,t,a){"use strict";var n=a(76),o=a(202),i=!1;var s=function(e){i||a(201)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Modal.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-modal-dialog"},[a("div",{staticClass:"dokan-modal"},[a("div",{staticClass:"dokan-modal-content",style:{width:e.width,height:e.height}},[a("section",{class:["dokan-modal-main",{"has-footer":e.footer}]},[a("header",{staticClass:"modal-header"},[e._t("header",function(){return[a("h1",[e._v(e._s(e.title))])]}),e._v(" "),a("button",{staticClass:"modal-close modal-close-link dashicons dashicons-no-alt",on:{click:function(t){return e.$emit("close")}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Close modal panel","dokan-lite")))])])],2),e._v(" "),a("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),e.footer?a("footer",{staticClass:"modal-footer"},[a("div",{staticClass:"inner"},[e._t("footer")],2)]):e._e()])])]),e._v(" "),a("div",{staticClass:"dokan-modal-backdrop"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(77),o=a(204),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/TextEditor.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("textarea",{attrs:{id:"dokan-tinymce-"+this.editorId},domProps:{value:this.value}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(78),o=a(206),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Currency.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("div",{domProps:{innerHTML:this._s(this.formattedPrice(this.amount))}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(79),o=a(208),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/LazyInput.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:e.type,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)},focus:e.focus,blur:e.blur}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(80),o=a(211),i=!1;var s=function(e){i||a(210)},r=a(0)(n.a,o.a,!1,s,"data-v-356fabc6",null);r.options.__file="src/admin/components/Progressbar.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.bgColor,attrs:{id:"progressbar"}},[a("div",{class:e.fgColor,style:{width:e.value+"%"},attrs:{id:"value"}},[e.hidden?e._e():[e._v(e._s(e.value+"%"))]],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(81),o=a(213),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Search.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchItems,expression:"searchItems"}],attrs:{type:"search",id:"post-search-input",name:"s",placeholder:e.title},domProps:{value:e.searchItems},on:{input:function(t){t.target.composing||(e.searchItems=t.target.value)}}})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(82),o=a(215),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Datepicker.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},,,,function(e,t,a){"use strict";var n=a(84),o=a(221),i=!1;var s=function(e){i||a(220)},r=a(0)(n.a,o.a,!1,s,"data-v-4f45e4a0",null);r.options.__file="src/admin/components/GoogleMaps.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return this.apiKey?t("div",{staticClass:"gmap-wrap regular-text"},[t("input",{ref:"searchAddress",staticClass:"search-address regular-text",attrs:{type:"text",placeholder:this.__("Search Address","dokan-lite")}}),this._v(" "),t("div",{ref:"gmapArea",attrs:{id:"gmap"}})]):t("p",[this._v("\n "+this._s(this.__("Please enter google map API key","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(85),o=a(224),i=!1;var s=function(e){i||a(223)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Mapbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.accessToken?a("div",{staticClass:"mapbox-wrapper"},[a("div",{staticClass:"address-input"},[a("label",[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n "),a("input",{attrs:{type:"text"},domProps:{value:e.address},on:{input:e.onChangeAddress}})])]),e._v(" "),a("div",{style:{width:e.width,height:e.height},attrs:{id:e.mapboxId}})]):a("p",[e._v("\n "+e._s(e.__("Please enter Mapbox access token in `Appearance > Mapbox Access Token` settings.","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(86),o=a(227),i=!1;var s=function(e){i||a(226)},r=a(0)(n.a,o.a,!1,s,"data-v-e724292e",null);r.options.__file="src/admin/components/RefreshSettingOptions.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",{staticClass:"button button-link",attrs:{type:"button",disabled:e.isRefreshing||e.showRefreshedMsg},on:{click:function(t){return t.preventDefault(),e.refreshSettings.apply(null,arguments)}}},[e.isRefreshing||e.showRefreshedMsg?e._e():a("span",{staticClass:"dashicons dashicons-image-rotate"}),e._v(" "),e.isRefreshing?a("span",{staticClass:"refreshing-message"},[e._v(e._s(e.messages.refreshing)+"...")]):e._e(),e._v(" "),e.showRefreshedMsg?a("span",{staticClass:"refresh-message-success"},[e._v("✓ "+e._s(e.messages.refreshed))]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(87),o=a(229),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorSocialFields.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"social-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Social 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:"facebook"}},[e._v(e._s(e.__("Facebook","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.fb,expression:"vendorInfo.social.fb"}],staticClass:"dokan-form-input",attrs:{id:"facebook",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.fb},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"fb",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"flickr"}},[e._v(e._s(e.__("Flickr","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.flickr,expression:"vendorInfo.social.flickr"}],staticClass:"dokan-form-input",attrs:{id:"flickr",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.flickr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"flickr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"twitter"}},[e._v(e._s(e.__("Twitter","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.twitter,expression:"vendorInfo.social.twitter"}],staticClass:"dokan-form-input",attrs:{id:"twitter",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.twitter},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"twitter",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"youtube"}},[e._v(e._s(e.__("Youtube","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.youtube,expression:"vendorInfo.social.youtube"}],staticClass:"dokan-form-input",attrs:{id:"youtube",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.youtube},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"youtube",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"linkedin"}},[e._v(e._s(e.__("Linkedin","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.linkedin,expression:"vendorInfo.social.linkedin"}],staticClass:"dokan-form-input",attrs:{id:"linkedin",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.linkedin},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"linkedin",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{id:"pinterest",for:"pinterest"}},[e._v(e._s(e.__("Pinterest","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.pinterest,expression:"vendorInfo.social.pinterest"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.pinterest},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"pinterest",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"instagram"}},[e._v(e._s(e.__("Instagram","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.instagram,expression:"vendorInfo.social.instagram"}],staticClass:"dokan-form-input",attrs:{id:"instagram",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.instagram},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"instagram",t.target.value)}}})]),e._v(" "),e._l(e.getSocialFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o}],[186]);
|
dokan.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.2.
|
7 |
* Author: weDevs
|
8 |
* Author URI: https://wedevs.com/
|
9 |
* Text Domain: dokan-lite
|
@@ -56,7 +56,7 @@ final class WeDevs_Dokan {
|
|
56 |
*
|
57 |
* @var string
|
58 |
*/
|
59 |
-
public $version = '3.2.
|
60 |
|
61 |
/**
|
62 |
* Instance of self
|
@@ -105,6 +105,7 @@ final class WeDevs_Dokan {
|
|
105 |
register_deactivation_hook( __FILE__, [ $this, 'deactivate' ] );
|
106 |
|
107 |
add_action( 'woocommerce_loaded', [ $this, 'init_plugin' ] );
|
|
|
108 |
add_action( 'admin_notices', [ $this, 'render_missing_woocommerce_notice' ] );
|
109 |
add_action( 'admin_notices', [ $this, 'render_run_admin_setup_wizard_notice' ] );
|
110 |
|
@@ -197,6 +198,25 @@ final class WeDevs_Dokan {
|
|
197 |
$this->container['upgrades'] = new \WeDevs\Dokan\Upgrade\Manager();
|
198 |
$installer = new \WeDevs\Dokan\Install\Installer();
|
199 |
$installer->do_install();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
201 |
|
202 |
/**
|
@@ -351,11 +371,15 @@ final class WeDevs_Dokan {
|
|
351 |
$this->container['api'] = new \WeDevs\Dokan\REST\Manager();
|
352 |
$this->container['withdraw'] = new \WeDevs\Dokan\Withdraw\Manager();
|
353 |
$this->container['dashboard'] = new \WeDevs\Dokan\Dashboard\Manager();
|
354 |
-
$this->container['rewrite'] = new \WeDevs\Dokan\Rewrites();
|
355 |
$this->container['commission'] = new \WeDevs\Dokan\Commission();
|
356 |
$this->container['customizer'] = new \WeDevs\Dokan\Customizer();
|
357 |
$this->container['upgrades'] = new \WeDevs\Dokan\Upgrade\Manager();
|
358 |
|
|
|
|
|
|
|
|
|
|
|
359 |
$this->container = apply_filters( 'dokan_get_class_container', $this->container );
|
360 |
|
361 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
@@ -464,20 +488,20 @@ final class WeDevs_Dokan {
|
|
464 |
* @return void
|
465 |
*/
|
466 |
public function render_missing_woocommerce_notice() {
|
467 |
-
|
468 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
}
|
470 |
-
|
471 |
-
if ( $this->has_woocommerce() ) {
|
472 |
-
return delete_transient( 'dokan_wc_missing_notice' );
|
473 |
-
}
|
474 |
-
|
475 |
-
$plugin_url = self_admin_url( 'plugin-install.php?s=woocommerce&tab=search&type=term' );
|
476 |
-
|
477 |
-
/* translators: %s: wc plugin url */
|
478 |
-
$message = sprintf( __( 'Dokan requires WooCommerce to be installed and active. You can activate <a href="%s">WooCommerce</a> here.', 'dokan-lite' ), $plugin_url );
|
479 |
-
|
480 |
-
echo wp_kses_post( sprintf( '<div class="error"><p><strong>%1$s</strong></p></div>', $message ) );
|
481 |
}
|
482 |
|
483 |
/**
|
@@ -508,7 +532,7 @@ final class WeDevs_Dokan {
|
|
508 |
}
|
509 |
|
510 |
/**
|
511 |
-
* Check whether woocommerce is installed
|
512 |
*
|
513 |
* @since 2.9.16
|
514 |
*
|
@@ -518,6 +542,17 @@ final class WeDevs_Dokan {
|
|
518 |
return class_exists( 'WooCommerce' );
|
519 |
}
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
/**
|
522 |
* Handles scenerios when WooCommerce is not active
|
523 |
*
|
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.2.8
|
7 |
* Author: weDevs
|
8 |
* Author URI: https://wedevs.com/
|
9 |
* Text Domain: dokan-lite
|
56 |
*
|
57 |
* @var string
|
58 |
*/
|
59 |
+
public $version = '3.2.8';
|
60 |
|
61 |
/**
|
62 |
* Instance of self
|
105 |
register_deactivation_hook( __FILE__, [ $this, 'deactivate' ] );
|
106 |
|
107 |
add_action( 'woocommerce_loaded', [ $this, 'init_plugin' ] );
|
108 |
+
add_action( 'woocommerce_flush_rewrite_rules', [ $this, 'flush_rewrite_rules' ] );
|
109 |
add_action( 'admin_notices', [ $this, 'render_missing_woocommerce_notice' ] );
|
110 |
add_action( 'admin_notices', [ $this, 'render_run_admin_setup_wizard_notice' ] );
|
111 |
|
198 |
$this->container['upgrades'] = new \WeDevs\Dokan\Upgrade\Manager();
|
199 |
$installer = new \WeDevs\Dokan\Install\Installer();
|
200 |
$installer->do_install();
|
201 |
+
|
202 |
+
// rewrite rules during dokan activation
|
203 |
+
if ( $this->has_woocommerce() ) {
|
204 |
+
$this->flush_rewrite_rules();
|
205 |
+
}
|
206 |
+
}
|
207 |
+
|
208 |
+
/**
|
209 |
+
* Flush rewrite rules after dokan is activated or woocommerce is activated
|
210 |
+
*
|
211 |
+
* @since 3.2.8
|
212 |
+
*/
|
213 |
+
public function flush_rewrite_rules() {
|
214 |
+
// fix rewrite rules
|
215 |
+
if ( ! isset( $this->container['rewrite'] ) ) {
|
216 |
+
$this->container['rewrite'] = new \WeDevs\Dokan\Rewrites();
|
217 |
+
}
|
218 |
+
$this->container['rewrite']->register_rule();
|
219 |
+
flush_rewrite_rules();
|
220 |
}
|
221 |
|
222 |
/**
|
371 |
$this->container['api'] = new \WeDevs\Dokan\REST\Manager();
|
372 |
$this->container['withdraw'] = new \WeDevs\Dokan\Withdraw\Manager();
|
373 |
$this->container['dashboard'] = new \WeDevs\Dokan\Dashboard\Manager();
|
|
|
374 |
$this->container['commission'] = new \WeDevs\Dokan\Commission();
|
375 |
$this->container['customizer'] = new \WeDevs\Dokan\Customizer();
|
376 |
$this->container['upgrades'] = new \WeDevs\Dokan\Upgrade\Manager();
|
377 |
|
378 |
+
//fix rewrite rules
|
379 |
+
if ( ! isset( $this->container['rewrite'] ) ) {
|
380 |
+
$this->container['rewrite'] = new \WeDevs\Dokan\Rewrites();
|
381 |
+
}
|
382 |
+
|
383 |
$this->container = apply_filters( 'dokan_get_class_container', $this->container );
|
384 |
|
385 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
488 |
* @return void
|
489 |
*/
|
490 |
public function render_missing_woocommerce_notice() {
|
491 |
+
// check wooCommerce is available and active
|
492 |
+
$has_woocommerce = $this->has_woocommerce();
|
493 |
+
|
494 |
+
// check if woocommerce installed
|
495 |
+
$woocommerce_installed = $this->is_woocommerce_installed();
|
496 |
+
|
497 |
+
if ( ( ! $has_woocommerce || ! $woocommerce_installed ) && current_user_can( 'activate_plugins' ) ) {
|
498 |
+
dokan_get_template(
|
499 |
+
'admin-notice-dependencies.php', [
|
500 |
+
'has_woocommerce' => $has_woocommerce,
|
501 |
+
'woocommerce_installed' => $woocommerce_installed,
|
502 |
+
]
|
503 |
+
);
|
504 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
506 |
|
507 |
/**
|
532 |
}
|
533 |
|
534 |
/**
|
535 |
+
* Check whether woocommerce is installed and active
|
536 |
*
|
537 |
* @since 2.9.16
|
538 |
*
|
542 |
return class_exists( 'WooCommerce' );
|
543 |
}
|
544 |
|
545 |
+
/**
|
546 |
+
* Check whether woocommerce is installed
|
547 |
+
*
|
548 |
+
* @since 3.2.8
|
549 |
+
*
|
550 |
+
* @return bool
|
551 |
+
*/
|
552 |
+
public function is_woocommerce_installed() {
|
553 |
+
return in_array( 'woocommerce/woocommerce.php', array_keys( get_plugins() ), true );
|
554 |
+
}
|
555 |
+
|
556 |
/**
|
557 |
* Handles scenerios when WooCommerce is not active
|
558 |
*
|
includes/Admin/LimitedTimePromotion.php
CHANGED
@@ -39,12 +39,12 @@ class LimitedTimePromotion {
|
|
39 |
|
40 |
$notices = [
|
41 |
[
|
42 |
-
'key' => 'dokan-
|
43 |
-
'start_date' => '2021-
|
44 |
-
'end_date' => '2021-
|
45 |
-
'title' => "
|
46 |
-
'content' => 'Enjoy Up To
|
47 |
-
'link' => 'https://wedevs.com/dokan/pricing?utm_medium=text&utm_source=wordpress-dokan-
|
48 |
],
|
49 |
];
|
50 |
|
39 |
|
40 |
$notices = [
|
41 |
[
|
42 |
+
'key' => 'dokan-summer-sale-promotion-2021',
|
43 |
+
'start_date' => '2021-07-16 00:09:00 EST',
|
44 |
+
'end_date' => '2021-07-26 23:00:00 EST',
|
45 |
+
'title' => "Summer Sale! Chill out with weDevs.",
|
46 |
+
'content' => 'Enjoy Up To 45% OFF on Dokan Pro.',
|
47 |
+
'link' => 'https://wedevs.com/dokan/pricing?utm_medium=text&utm_source=wordpress-dokan-summer-sale2021',
|
48 |
],
|
49 |
];
|
50 |
|
includes/Admin/Settings.php
CHANGED
@@ -107,6 +107,7 @@ class Settings {
|
|
107 |
$option_name = $_post_data['section'];
|
108 |
$option_value = $this->sanitize_options( $_post_data['settingsData'], 'edit' );
|
109 |
$option_value = apply_filters( 'dokan_save_settings_value', $option_value, $option_name );
|
|
|
110 |
|
111 |
do_action( 'dokan_before_saving_settings', $option_name, $option_value );
|
112 |
|
@@ -114,6 +115,12 @@ class Settings {
|
|
114 |
|
115 |
do_action( 'dokan_after_saving_settings', $option_name, $option_value );
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
wp_send_json_success(
|
118 |
[
|
119 |
'settings' => [
|
107 |
$option_name = $_post_data['section'];
|
108 |
$option_value = $this->sanitize_options( $_post_data['settingsData'], 'edit' );
|
109 |
$option_value = apply_filters( 'dokan_save_settings_value', $option_value, $option_name );
|
110 |
+
$old_options = get_option( $option_name, [] );
|
111 |
|
112 |
do_action( 'dokan_before_saving_settings', $option_name, $option_value );
|
113 |
|
115 |
|
116 |
do_action( 'dokan_after_saving_settings', $option_name, $option_value );
|
117 |
|
118 |
+
// only flush rewrite rules if store url has been changed
|
119 |
+
if ( 'dokan_general' === $option_name && isset( $old_options['custom_store_url'] ) && $old_options['custom_store_url'] !== $option_value['custom_store_url'] ) {
|
120 |
+
dokan()->rewrite->register_rule();
|
121 |
+
flush_rewrite_rules();
|
122 |
+
}
|
123 |
+
|
124 |
wp_send_json_success(
|
125 |
[
|
126 |
'settings' => [
|
includes/Admin/UserProfile.php
CHANGED
@@ -215,6 +215,13 @@ class UserProfile {
|
|
215 |
</td>
|
216 |
</tr>
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
<?php foreach ( $social_fields as $key => $value ) { ?>
|
219 |
|
220 |
<tr>
|
215 |
</td>
|
216 |
</tr>
|
217 |
|
218 |
+
<?php
|
219 |
+
/**
|
220 |
+
* @since 3.2.7
|
221 |
+
*/
|
222 |
+
do_action( 'dokan_user_profile_after_phone_number', $store_settings, $user );
|
223 |
+
?>
|
224 |
+
|
225 |
<?php foreach ( $social_fields as $key => $value ) { ?>
|
226 |
|
227 |
<tr>
|
includes/Customizer.php
CHANGED
@@ -254,6 +254,8 @@ class Customizer {
|
|
254 |
]
|
255 |
);
|
256 |
|
|
|
|
|
257 |
if ( isset( $wp_customize->selective_refresh ) ) {
|
258 |
$wp_customize->selective_refresh->add_partial(
|
259 |
'store_header_template',
|
254 |
]
|
255 |
);
|
256 |
|
257 |
+
do_action( 'dokan_store_customizer_after_vendor_info', $wp_customize );
|
258 |
+
|
259 |
if ( isset( $wp_customize->selective_refresh ) ) {
|
260 |
$wp_customize->selective_refresh->add_partial(
|
261 |
'store_header_template',
|
includes/Rewrites.php
CHANGED
@@ -95,6 +95,9 @@ class Rewrites {
|
|
95 |
// default base is product
|
96 |
$base = empty( $base ) ? 'product' : $base;
|
97 |
|
|
|
|
|
|
|
98 |
// special treatment for product cat
|
99 |
if ( stripos( $base, 'product_cat' ) ) {
|
100 |
|
95 |
// default base is product
|
96 |
$base = empty( $base ) ? 'product' : $base;
|
97 |
|
98 |
+
// get custom store url from settings so that we can use it from other places
|
99 |
+
$this->custom_store_url = dokan_get_option( 'custom_store_url', 'dokan_general', 'store' );
|
100 |
+
|
101 |
// special treatment for product cat
|
102 |
if ( stripos( $base, 'product_cat' ) ) {
|
103 |
|
includes/Vendor/Manager.php
CHANGED
@@ -125,7 +125,7 @@ class Manager {
|
|
125 |
*
|
126 |
* @param object|integer $vendor
|
127 |
*
|
128 |
-
* @return object|
|
129 |
*/
|
130 |
public function get( $vendor ) {
|
131 |
return new Vendor( $vendor );
|
@@ -136,7 +136,7 @@ class Manager {
|
|
136 |
*
|
137 |
* @param array $data
|
138 |
*
|
139 |
-
* @return
|
140 |
*/
|
141 |
public function create( $data = [] ) {
|
142 |
$defaults = [
|
@@ -164,6 +164,9 @@ class Manager {
|
|
164 |
wp_send_new_user_notifications( $vendor_id, 'admin' );
|
165 |
}
|
166 |
|
|
|
|
|
|
|
167 |
$store_data = apply_filters( 'dokan_vendor_create_data', [
|
168 |
'store_name' => ! empty( $data['store_name'] ) ? $data['store_name'] : '',
|
169 |
'social' => ! empty( $data['social'] ) ? $data['social'] : [],
|
@@ -185,7 +188,7 @@ class Manager {
|
|
185 |
'show_min_order_discount' => ! empty( $data['show_min_order_discount'] ) ? $data['show_min_order_discount'] : 'no',
|
186 |
'store_seo' => ! empty( $data['store_seo'] ) ? $data['store_seo'] : [],
|
187 |
'dokan_store_time' => ! empty( $data['store_open_close'] ) ? $data['store_open_close'] : [],
|
188 |
-
] );
|
189 |
|
190 |
$vendor = dokan()->vendor->get( $vendor_id );
|
191 |
|
@@ -214,6 +217,12 @@ class Manager {
|
|
214 |
$vendor->update_meta( 'dokan_profile_settings', $store_data );
|
215 |
$vendor->update_meta( 'dokan_store_name', $store_data['store_name'] );
|
216 |
$vendor->set_store_name( $store_data['store_name'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
$vendor->save();
|
218 |
|
219 |
do_action( 'dokan_new_vendor', $vendor_id );
|
125 |
*
|
126 |
* @param object|integer $vendor
|
127 |
*
|
128 |
+
* @return object|Vendor instance
|
129 |
*/
|
130 |
public function get( $vendor ) {
|
131 |
return new Vendor( $vendor );
|
136 |
*
|
137 |
* @param array $data
|
138 |
*
|
139 |
+
* @return Vendor|WP_Error on failure
|
140 |
*/
|
141 |
public function create( $data = [] ) {
|
142 |
$defaults = [
|
164 |
wp_send_new_user_notifications( $vendor_id, 'admin' );
|
165 |
}
|
166 |
|
167 |
+
/**
|
168 |
+
* @since 3.2.7 added $data parameter
|
169 |
+
*/
|
170 |
$store_data = apply_filters( 'dokan_vendor_create_data', [
|
171 |
'store_name' => ! empty( $data['store_name'] ) ? $data['store_name'] : '',
|
172 |
'social' => ! empty( $data['social'] ) ? $data['social'] : [],
|
188 |
'show_min_order_discount' => ! empty( $data['show_min_order_discount'] ) ? $data['show_min_order_discount'] : 'no',
|
189 |
'store_seo' => ! empty( $data['store_seo'] ) ? $data['store_seo'] : [],
|
190 |
'dokan_store_time' => ! empty( $data['store_open_close'] ) ? $data['store_open_close'] : [],
|
191 |
+
], $data );
|
192 |
|
193 |
$vendor = dokan()->vendor->get( $vendor_id );
|
194 |
|
217 |
$vendor->update_meta( 'dokan_profile_settings', $store_data );
|
218 |
$vendor->update_meta( 'dokan_store_name', $store_data['store_name'] );
|
219 |
$vendor->set_store_name( $store_data['store_name'] );
|
220 |
+
|
221 |
+
/**
|
222 |
+
* @since 3.2.7 hook introduced
|
223 |
+
*/
|
224 |
+
do_action( 'dokan_before_create_vendor', $vendor->get_id(), $data );
|
225 |
+
|
226 |
$vendor->save();
|
227 |
|
228 |
do_action( 'dokan_new_vendor', $vendor_id );
|
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.2.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2021-07-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -28,7 +28,7 @@ msgstr ""
|
|
28 |
msgid "1"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
32 |
#: src/admin/pages/VendorPaymentFields.vue:31
|
33 |
#: src/admin/pages/VendorPaymentFields.vue:36
|
34 |
#: src/admin/pages/VendorPaymentFields.vue:41
|
@@ -39,35 +39,28 @@ msgstr ""
|
|
39 |
msgid "1233456789"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: dokan.php:
|
43 |
#. translators: 1: Required PHP Version 2: Running php version
|
44 |
msgid ""
|
45 |
"The Minimum PHP Version Requirement for <b>Dokan</b> is %1$s. You are "
|
46 |
"Running PHP %2$s"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: dokan.php:
|
50 |
msgid "Get Pro"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: dokan.php:
|
54 |
#: includes/Dashboard/Templates/Settings.php:59
|
55 |
#: includes/Dashboard/Templates/Settings.php:64 includes/template-tags.php:417
|
56 |
#: src/admin/pages/Settings.vue:6
|
57 |
msgid "Settings"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: dokan.php:
|
61 |
msgid "Documentation"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: dokan.php:478
|
65 |
-
#. translators: %s: wc plugin url
|
66 |
-
msgid ""
|
67 |
-
"Dokan requires WooCommerce to be installed and active. You can activate <a "
|
68 |
-
"href=\"%s\">WooCommerce</a> here."
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
#: includes/Abstracts/DokanBackgroundProcesses.php:86
|
72 |
msgid "Every %d Minutes"
|
73 |
msgstr ""
|
@@ -121,7 +114,7 @@ msgid "Dokan"
|
|
121 |
msgstr ""
|
122 |
|
123 |
#: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
|
124 |
-
#: includes/Admin/Settings.php:
|
125 |
#: includes/template-tags.php:386 src/admin/pages/Dashboard.vue:5
|
126 |
msgid "Dashboard"
|
127 |
msgstr ""
|
@@ -143,7 +136,7 @@ msgstr ""
|
|
143 |
|
144 |
#: includes/Admin/Hooks.php:64 includes/Admin/Hooks.php:70
|
145 |
#: includes/Admin/Hooks.php:357 includes/Admin/Hooks.php:379
|
146 |
-
#: includes/Admin/Settings.php:
|
147 |
#: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:93
|
148 |
#: includes/wc-template.php:17 includes/wc-template.php:166
|
149 |
#: includes/wc-template.php:315 src/admin/pages/Dashboard.vue:38
|
@@ -240,7 +233,7 @@ msgstr ""
|
|
240 |
msgid "Configure all general settings for your marketplace from this tab."
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/Admin/Pointers.php:191 includes/Admin/Settings.php:
|
244 |
msgid "Selling Options"
|
245 |
msgstr ""
|
246 |
|
@@ -248,7 +241,7 @@ msgstr ""
|
|
248 |
msgid "You can configure different selling options for your vendors"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/Admin/Pointers.php:208 includes/Admin/Settings.php:
|
252 |
msgid "Withdraw Options"
|
253 |
msgstr ""
|
254 |
|
@@ -341,7 +334,7 @@ msgstr ""
|
|
341 |
msgid "You have no permission to get settings value"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: includes/Admin/Settings.php:94 includes/Admin/Settings.php:
|
345 |
msgid "You are not authorized to perform this action."
|
346 |
msgstr ""
|
347 |
|
@@ -349,299 +342,299 @@ msgstr ""
|
|
349 |
msgid "`section` parameter is required."
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: includes/Admin/Settings.php:
|
353 |
msgid "Setting has been saved successfully."
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: includes/Admin/Settings.php:
|
357 |
msgid "General"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: includes/Admin/Settings.php:
|
361 |
msgid "Page Settings"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: includes/Admin/Settings.php:
|
365 |
msgid "Appearance"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/Admin/Settings.php:
|
369 |
msgid "Privacy Policy"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: includes/Admin/Settings.php:
|
373 |
msgid "Site Options"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: includes/Admin/Settings.php:
|
377 |
msgid "Admin area access"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: includes/Admin/Settings.php:
|
381 |
msgid "Disallow Vendors and Customers from accessing the wp-admin dashboard area"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: includes/Admin/Settings.php:
|
385 |
#: templates/admin-setup-wizard/step-store.php:7
|
386 |
msgid "Vendor Store URL"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: includes/Admin/Settings.php:
|
390 |
#. translators: %s: store url
|
391 |
msgid "Define the Vendor store URL (%s<strong>[this-text]</strong>/[vendor-name])"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: includes/Admin/Settings.php:
|
395 |
msgid "Vendor Setup Wizard Logo"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: includes/Admin/Settings.php:
|
399 |
msgid ""
|
400 |
"Recommended Logo size ( 270px X 90px ). If no logo is uploaded, site title "
|
401 |
"is shown by default."
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: includes/Admin/Settings.php:
|
405 |
msgid "Disable Welcome Wizard"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: includes/Admin/Settings.php:
|
409 |
msgid "Disable welcome wizard for newly registered vendors"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: includes/Admin/Settings.php:
|
413 |
msgid "Vendor Store Options"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: includes/Admin/Settings.php:
|
417 |
msgid "Store Terms and Conditions"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: includes/Admin/Settings.php:
|
421 |
msgid "Enable Terms and Conditions for vendor stores"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: includes/Admin/Settings.php:
|
425 |
#: templates/settings/store-form.php:125
|
426 |
msgid "Store Products Per Page"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/Admin/Settings.php:
|
430 |
msgid ""
|
431 |
"Set how many products to display per page on the vendor store page. It will "
|
432 |
"affect only if the vendor isn't set this value on their vendor setting page."
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: includes/Admin/Settings.php:
|
436 |
msgid "Commission"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: includes/Admin/Settings.php:
|
440 |
msgid "Commission Type "
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: includes/Admin/Settings.php:
|
444 |
msgid "Select a commission type for Vendor"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: includes/Admin/Settings.php:
|
448 |
#: src/admin/pages/VendorPaymentFields.vue:78
|
449 |
#: templates/admin-setup-wizard/step-selling.php:31
|
450 |
msgid "Admin Commission"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/Admin/Settings.php:
|
454 |
msgid "Amount you get from each sale"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: includes/Admin/Settings.php:
|
458 |
#: templates/admin-setup-wizard/step-store.php:14
|
459 |
msgid "Shipping Fee Recipient"
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: includes/Admin/Settings.php:
|
463 |
msgid "Who will be receiving the Shipping fees"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/Admin/Settings.php:
|
467 |
#: includes/Admin/SetupWizard.php:346
|
468 |
msgid "Admin"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: includes/Admin/Settings.php:
|
472 |
#: templates/admin-setup-wizard/step-store.php:28
|
473 |
msgid "Tax Fee Recipient"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: includes/Admin/Settings.php:
|
477 |
msgid "Who will be receiving the Tax fees"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: includes/Admin/Settings.php:
|
481 |
msgid "Vendor Capability"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: includes/Admin/Settings.php:
|
485 |
msgid "New Vendor Product Upload"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/Admin/Settings.php:
|
489 |
msgid "Allow newly registered vendors to add products"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: includes/Admin/Settings.php:
|
493 |
msgid "Disable Product Popup"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: includes/Admin/Settings.php:
|
497 |
msgid "Disable add new product in popup view"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: includes/Admin/Settings.php:
|
501 |
#: templates/admin-setup-wizard/step-selling.php:39
|
502 |
msgid "Order Status Change"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: includes/Admin/Settings.php:
|
506 |
msgid "Allow vendor to update order status"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: includes/Admin/Settings.php:
|
510 |
msgid "Withdraw Methods"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: includes/Admin/Settings.php:
|
514 |
msgid "Select suitable Withdraw methods for Vendors"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: includes/Admin/Settings.php:
|
518 |
msgid "Minimum Withdraw Limit"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/Admin/Settings.php:
|
522 |
msgid ""
|
523 |
"Minimum balance required to make a withdraw request. Leave blank to set no "
|
524 |
"minimum limits."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/Admin/Settings.php:
|
528 |
msgid "Order Status for Withdraw"
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: includes/Admin/Settings.php:
|
532 |
msgid "Order status for which vendor can make a withdraw request."
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: includes/Admin/Settings.php:
|
536 |
#: includes/Dashboard/Templates/Dashboard.php:101
|
537 |
#: includes/Order/functions.php:539 templates/dashboard/orders-widget.php:26
|
538 |
msgid "Completed"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: includes/Admin/Settings.php:
|
542 |
#: includes/Dashboard/Templates/Dashboard.php:111
|
543 |
#: includes/Order/functions.php:554 templates/dashboard/orders-widget.php:36
|
544 |
#: templates/orders/listing.php:151
|
545 |
msgid "Processing"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/Admin/Settings.php:
|
549 |
msgid "On-hold"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/Admin/Settings.php:
|
553 |
msgid "Exclude COD Payments"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: includes/Admin/Settings.php:
|
557 |
msgid ""
|
558 |
"If an order is paid with Cash on Delivery (COD), then exclude that payment "
|
559 |
"from vendor balance."
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: includes/Admin/Settings.php:
|
563 |
msgid "Select a page to show Vendor Dashboard"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/Admin/Settings.php:
|
567 |
-
#: includes/Admin/Settings.php:
|
568 |
-
#: includes/Admin/Settings.php:
|
569 |
msgid "Select page"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: includes/Admin/Settings.php:
|
573 |
#: templates/global/header-menu.php:46
|
574 |
msgid "My Orders"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: includes/Admin/Settings.php:
|
578 |
msgid "Select a page to show My Orders"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: includes/Admin/Settings.php:
|
582 |
msgid "Store Listing"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: includes/Admin/Settings.php:
|
586 |
msgid "Select a page to show all Stores"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: includes/Admin/Settings.php:
|
590 |
msgid "Terms and Conditions Page"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: includes/Admin/Settings.php:
|
594 |
#. translators: %s: dokan pages
|
595 |
msgid ""
|
596 |
"Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
|
597 |
"Learn More </a>"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: includes/Admin/Settings.php:
|
601 |
msgid "Show Map on Store Page"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: includes/Admin/Settings.php:
|
605 |
msgid "Enable Map of the Store Location in the store sidebar"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/Admin/Settings.php:
|
609 |
#: templates/admin-setup-wizard/step-store.php:42
|
610 |
msgid "Map API Source"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: includes/Admin/Settings.php:
|
614 |
#: templates/admin-setup-wizard/step-store.php:52
|
615 |
msgid "Which Map API source you want to use in your site?"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: includes/Admin/Settings.php:
|
619 |
#: src/admin/pages/Premium.vue:388
|
620 |
msgid "Google Maps"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: includes/Admin/Settings.php:
|
624 |
msgid "Mapbox"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/Admin/Settings.php:
|
628 |
#: templates/admin-setup-wizard/step-store.php:56
|
629 |
msgid "Google Map API Key"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: includes/Admin/Settings.php:
|
633 |
msgid ""
|
634 |
"<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
|
635 |
"target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
|
636 |
"display map on store page"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: includes/Admin/Settings.php:
|
640 |
#: templates/admin-setup-wizard/step-store.php:71
|
641 |
msgid "Mapbox Access Token"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/Admin/Settings.php:
|
645 |
#: templates/admin-setup-wizard/step-store.php:75
|
646 |
msgid ""
|
647 |
"<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
|
@@ -649,81 +642,81 @@ msgid ""
|
|
649 |
"display map on store page"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: includes/Admin/Settings.php:
|
653 |
msgid "Show Contact Form on Store Page"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: includes/Admin/Settings.php:
|
657 |
msgid "Display a vendor contact form in the store sidebar"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/Admin/Settings.php:
|
661 |
msgid "Store Header Template"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/Admin/Settings.php:
|
665 |
msgid "Store Opening Closing Time Widget"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: includes/Admin/Settings.php:
|
669 |
msgid "Enable store opening & closing time widget in the store sidebar"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/Admin/Settings.php:
|
673 |
msgid "Enable Store Sidebar From Theme"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: includes/Admin/Settings.php:
|
677 |
msgid "Enable showing Store Sidebar From Your Theme."
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: includes/Admin/Settings.php:
|
681 |
msgid "Hide Vendor Info"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: includes/Admin/Settings.php:
|
685 |
msgid "Email Address"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: includes/Admin/Settings.php:
|
689 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
690 |
#: templates/account/vendor-registration.php:33
|
691 |
-
#: templates/global/seller-registration-form.php:
|
692 |
msgid "Phone Number"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: includes/Admin/Settings.php:
|
696 |
msgid "Store Address"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/Admin/Settings.php:
|
700 |
msgid "Enable Privacy Policy"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: includes/Admin/Settings.php:
|
704 |
msgid "Enable privacy policy for Vendor store contact form"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: includes/Admin/Settings.php:
|
708 |
msgid "Privacy Page"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: includes/Admin/Settings.php:
|
712 |
msgid "Select a page to show your privacy policy"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: includes/Admin/Settings.php:
|
716 |
msgid ""
|
717 |
"Your personal data will be used to support your experience throughout this "
|
718 |
"website, to manage access to your account, and for other purposes described "
|
719 |
"in our [dokan_privacy_policy]"
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: includes/Admin/Settings.php:
|
723 |
msgid "Both section and field params are required."
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: includes/Admin/Settings.php:
|
727 |
msgid "No filter found to refresh the setting options"
|
728 |
msgstr ""
|
729 |
|
@@ -736,7 +729,7 @@ msgstr ""
|
|
736 |
msgid "Store"
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: includes/Admin/SetupWizard.php:155 includes/Admin/UserProfile.php:
|
740 |
msgid "Selling"
|
741 |
msgstr ""
|
742 |
|
@@ -953,15 +946,15 @@ msgid "We'll use %1$s for product weight and %2$s for product dimensions."
|
|
953 |
msgstr ""
|
954 |
|
955 |
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:143
|
956 |
-
#: includes/Assets.php:421 src/admin/pages/VendorAccountFields.vue:
|
957 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
958 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
959 |
msgid "Available"
|
960 |
msgstr ""
|
961 |
|
962 |
#: includes/Admin/UserProfile.php:39 includes/Assets.php:422
|
963 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
964 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
965 |
msgid "Not Available"
|
966 |
msgstr ""
|
967 |
|
@@ -1006,7 +999,7 @@ msgid "Store name"
|
|
1006 |
msgstr ""
|
1007 |
|
1008 |
#: includes/Admin/UserProfile.php:142
|
1009 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
1010 |
msgid "Store URL"
|
1011 |
msgstr ""
|
1012 |
|
@@ -1026,92 +1019,92 @@ msgstr ""
|
|
1026 |
msgid "Zip Code"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
-
#: includes/Admin/UserProfile.php:
|
1030 |
msgid "Payment Options : "
|
1031 |
msgstr ""
|
1032 |
|
1033 |
-
#: includes/Admin/UserProfile.php:
|
1034 |
msgid "Paypal Email "
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: includes/Admin/UserProfile.php:
|
1038 |
msgid "Skrill Email "
|
1039 |
msgstr ""
|
1040 |
|
1041 |
-
#: includes/Admin/UserProfile.php:
|
1042 |
msgid "Bank name "
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: includes/Admin/UserProfile.php:
|
1046 |
msgid "Account Name "
|
1047 |
msgstr ""
|
1048 |
|
1049 |
-
#: includes/Admin/UserProfile.php:
|
1050 |
msgid "Account Number "
|
1051 |
msgstr ""
|
1052 |
|
1053 |
-
#: includes/Admin/UserProfile.php:
|
1054 |
msgid "Bank Address "
|
1055 |
msgstr ""
|
1056 |
|
1057 |
-
#: includes/Admin/UserProfile.php:
|
1058 |
#: src/admin/pages/VendorPaymentFields.vue:30
|
1059 |
msgid "Routing Number"
|
1060 |
msgstr ""
|
1061 |
|
1062 |
-
#: includes/Admin/UserProfile.php:
|
1063 |
msgid "Bank IBAN "
|
1064 |
msgstr ""
|
1065 |
|
1066 |
-
#: includes/Admin/UserProfile.php:
|
1067 |
msgid "Bank Swift "
|
1068 |
msgstr ""
|
1069 |
|
1070 |
-
#: includes/Admin/UserProfile.php:
|
1071 |
msgid "Enable Adding Products"
|
1072 |
msgstr ""
|
1073 |
|
1074 |
-
#: includes/Admin/UserProfile.php:
|
1075 |
msgid "Enable or disable product adding capability"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: includes/Admin/UserProfile.php:
|
1079 |
msgid "Publishing"
|
1080 |
msgstr ""
|
1081 |
|
1082 |
-
#: includes/Admin/UserProfile.php:
|
1083 |
msgid "Publish product directly"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
-
#: includes/Admin/UserProfile.php:
|
1087 |
msgid "Bypass pending, publish products directly"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
-
#: includes/Admin/UserProfile.php:
|
1091 |
msgid "Admin Commission Type "
|
1092 |
msgstr ""
|
1093 |
|
1094 |
-
#: includes/Admin/UserProfile.php:
|
1095 |
msgid "Set the commmission type admin gets from this seller"
|
1096 |
msgstr ""
|
1097 |
|
1098 |
-
#: includes/Admin/UserProfile.php:
|
1099 |
msgid "Admin Commission "
|
1100 |
msgstr ""
|
1101 |
|
1102 |
-
#: includes/Admin/UserProfile.php:
|
1103 |
msgid "It will override the default commission admin gets from each sales"
|
1104 |
msgstr ""
|
1105 |
|
1106 |
-
#: includes/Admin/UserProfile.php:
|
1107 |
msgid "Featured vendor"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
-
#: includes/Admin/UserProfile.php:
|
1111 |
msgid "Mark as featured vendor"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
-
#: includes/Admin/UserProfile.php:
|
1115 |
msgid "This vendor will be marked as a featured vendor."
|
1116 |
msgstr ""
|
1117 |
|
@@ -1551,7 +1544,7 @@ msgstr ""
|
|
1551 |
#: includes/Assets.php:728 includes/Product/functions.php:282
|
1552 |
#: templates/my-orders.php:83 templates/orders/details.php:204
|
1553 |
#: templates/products/new-product-single.php:222
|
1554 |
-
#: templates/products/new-product.php:
|
1555 |
#: templates/products/tmpl-add-product-popup.php:68
|
1556 |
#: templates/store-lists-filter.php:83
|
1557 |
#: templates/withdraw/pending-request-listing.php:17
|
@@ -1641,19 +1634,19 @@ msgstr ""
|
|
1641 |
msgid "Hide store address"
|
1642 |
msgstr ""
|
1643 |
|
1644 |
-
#: includes/Customizer.php:
|
1645 |
msgid "Sidebar Widgets"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
-
#: includes/Customizer.php:
|
1649 |
msgid "Show store map"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
-
#: includes/Customizer.php:
|
1653 |
msgid "Show vendor contact form"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
-
#: includes/Customizer.php:
|
1657 |
msgid "Show store opening/closing Time"
|
1658 |
msgstr ""
|
1659 |
|
@@ -2540,7 +2533,7 @@ msgid "Dokan vendor personal data."
|
|
2540 |
msgstr ""
|
2541 |
|
2542 |
#: includes/Privacy.php:178 src/admin/pages/VendorAccountFields.vue:43
|
2543 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
2544 |
#: templates/settings/store-form.php:115
|
2545 |
msgid "Store Name"
|
2546 |
msgstr ""
|
@@ -2840,7 +2833,7 @@ msgstr ""
|
|
2840 |
|
2841 |
#: includes/Product/functions.php:293 src/admin/components/ColorPicker.vue:31
|
2842 |
#: src/upgrade/App.vue:49 templates/orders/details.php:361
|
2843 |
-
#: templates/settings/store-form.php:
|
2844 |
msgid "Close"
|
2845 |
msgstr ""
|
2846 |
|
@@ -4052,11 +4045,11 @@ msgstr ""
|
|
4052 |
msgid "Upgrading db fields error: "
|
4053 |
msgstr ""
|
4054 |
|
4055 |
-
#: includes/Vendor/Manager.php:
|
4056 |
msgid "Unable to create vendor"
|
4057 |
msgstr ""
|
4058 |
|
4059 |
-
#: includes/Vendor/Manager.php:
|
4060 |
msgid "Email is not valid"
|
4061 |
msgstr ""
|
4062 |
|
@@ -4110,12 +4103,12 @@ msgid "State Name"
|
|
4110 |
msgstr ""
|
4111 |
|
4112 |
#: includes/Vendor/SetupWizard.php:230
|
4113 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
4114 |
-
#: templates/settings/store-form.php:
|
4115 |
msgid "Email"
|
4116 |
msgstr ""
|
4117 |
|
4118 |
-
#: includes/Vendor/SetupWizard.php:234 templates/settings/store-form.php:
|
4119 |
msgid "Show email address in store"
|
4120 |
msgstr ""
|
4121 |
|
@@ -4202,11 +4195,11 @@ msgstr[1] ""
|
|
4202 |
msgid "Rated %s out of %d"
|
4203 |
msgstr ""
|
4204 |
|
4205 |
-
#: includes/Vendor/Vendor.php:843 templates/settings/store-form.php:
|
4206 |
msgid "Store is open"
|
4207 |
msgstr ""
|
4208 |
|
4209 |
-
#: includes/Vendor/Vendor.php:857 templates/settings/store-form.php:
|
4210 |
msgid "Store is closed"
|
4211 |
msgstr ""
|
4212 |
|
@@ -4441,7 +4434,7 @@ msgstr ""
|
|
4441 |
msgid "Products"
|
4442 |
msgstr ""
|
4443 |
|
4444 |
-
#: includes/functions.php:1282 templates/settings/store-form.php:
|
4445 |
msgid "Terms and Conditions"
|
4446 |
msgstr ""
|
4447 |
|
@@ -5610,55 +5603,55 @@ msgstr ""
|
|
5610 |
msgid "Upload Banner"
|
5611 |
msgstr ""
|
5612 |
|
5613 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5614 |
msgid "Store Name is required"
|
5615 |
msgstr ""
|
5616 |
|
5617 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5618 |
msgid "Store Url"
|
5619 |
msgstr ""
|
5620 |
|
5621 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5622 |
msgid "Email is required"
|
5623 |
msgstr ""
|
5624 |
|
5625 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5626 |
#: src/admin/pages/VendorPaymentFields.vue:56
|
5627 |
msgid "store@email.com"
|
5628 |
msgstr ""
|
5629 |
|
5630 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5631 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5632 |
#: templates/account/vendor-registration.php:21
|
5633 |
#: templates/login-form/login-form.php:8
|
5634 |
msgid "Username"
|
5635 |
msgstr ""
|
5636 |
|
5637 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5638 |
msgid "Username is required"
|
5639 |
msgstr ""
|
5640 |
|
5641 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5642 |
msgid "Send the vendor an email about their account."
|
5643 |
msgstr ""
|
5644 |
|
5645 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5646 |
#: templates/account/vendor-registration.php:39
|
5647 |
#: templates/login-form/login-form.php:13
|
5648 |
msgid "Password"
|
5649 |
msgstr ""
|
5650 |
|
5651 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5652 |
msgid "Generate Password"
|
5653 |
msgstr ""
|
5654 |
|
5655 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5656 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5657 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5658 |
msgid "Searching..."
|
5659 |
msgstr ""
|
5660 |
|
5661 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5662 |
msgid "This email is already registered, please choose another one."
|
5663 |
msgstr ""
|
5664 |
|
@@ -5947,14 +5940,14 @@ msgstr ""
|
|
5947 |
msgid "Shop URL"
|
5948 |
msgstr ""
|
5949 |
|
5950 |
-
#: templates/account/vendor-registration.php:
|
5951 |
-
#: templates/global/seller-registration-form.php:
|
5952 |
msgid ""
|
5953 |
"I have read and agree to the <a target=\"_blank\" href=\"%s\">Terms & "
|
5954 |
"Conditions</a>."
|
5955 |
msgstr ""
|
5956 |
|
5957 |
-
#: templates/account/vendor-registration.php:
|
5958 |
msgid "Register"
|
5959 |
msgstr ""
|
5960 |
|
@@ -5986,6 +5979,28 @@ msgstr ""
|
|
5986 |
msgid "Upgrade to Dokan Pro"
|
5987 |
msgstr ""
|
5988 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5989 |
#: templates/admin-setup-wizard/run-wizard-notice.php:2
|
5990 |
msgid ""
|
5991 |
"<strong>Welcome to Dokan</strong> – You‘re almost ready to "
|
@@ -6407,7 +6422,7 @@ msgstr ""
|
|
6407 |
#: templates/emails/vendor-completed-order.php:48
|
6408 |
#: templates/emails/vendor-new-order.php:48
|
6409 |
#: templates/products/new-product-single.php:200
|
6410 |
-
#: templates/products/new-product.php:
|
6411 |
#: templates/products/products-listing-row.php:82
|
6412 |
#: templates/products/products-listing.php:106
|
6413 |
#: templates/products/tmpl-add-product-popup.php:57
|
@@ -6500,11 +6515,11 @@ msgstr ""
|
|
6500 |
msgid "Address:"
|
6501 |
msgstr ""
|
6502 |
|
6503 |
-
#: templates/global/seller-registration-form.php:
|
6504 |
msgid "I am a customer"
|
6505 |
msgstr ""
|
6506 |
|
6507 |
-
#: templates/global/seller-registration-form.php:
|
6508 |
msgid "I am a vendor"
|
6509 |
msgstr ""
|
6510 |
|
@@ -6956,7 +6971,7 @@ msgstr ""
|
|
6956 |
|
6957 |
#: templates/products/listing-filter.php:25
|
6958 |
#: templates/products/new-product-single.php:271
|
6959 |
-
#: templates/products/new-product.php:
|
6960 |
#: templates/products/tmpl-add-product-popup.php:102
|
6961 |
msgid "- Select a category -"
|
6962 |
msgstr ""
|
@@ -7011,7 +7026,7 @@ msgid "Title"
|
|
7011 |
msgstr ""
|
7012 |
|
7013 |
#: templates/products/new-product-single.php:165
|
7014 |
-
#: templates/products/new-product.php:
|
7015 |
#: templates/products/tmpl-add-product-popup.php:51
|
7016 |
msgid "Product name.."
|
7017 |
msgstr ""
|
@@ -7040,13 +7055,13 @@ msgid "0.00"
|
|
7040 |
msgstr ""
|
7041 |
|
7042 |
#: templates/products/new-product-single.php:220
|
7043 |
-
#: templates/products/new-product.php:
|
7044 |
#: templates/products/tmpl-add-product-popup.php:66
|
7045 |
msgid "Discounted Price"
|
7046 |
msgstr ""
|
7047 |
|
7048 |
#: templates/products/new-product-single.php:221
|
7049 |
-
#: templates/products/new-product.php:
|
7050 |
#: templates/products/tmpl-add-product-popup.php:67
|
7051 |
msgid "Schedule"
|
7052 |
msgstr ""
|
@@ -7056,22 +7071,22 @@ msgid "Product price can't be less than the vendor fee!"
|
|
7056 |
msgstr ""
|
7057 |
|
7058 |
#: templates/products/new-product-single.php:241
|
7059 |
-
#: templates/products/new-product.php:
|
7060 |
#: templates/products/tmpl-add-product-popup.php:81
|
7061 |
msgid "From"
|
7062 |
msgstr ""
|
7063 |
|
7064 |
#: templates/products/new-product-single.php:242
|
7065 |
#: templates/products/new-product-single.php:249
|
7066 |
-
#: templates/products/new-product.php:
|
7067 |
-
#: templates/products/new-product.php:
|
7068 |
#: templates/products/tmpl-add-product-popup.php:82
|
7069 |
#: templates/products/tmpl-add-product-popup.php:89
|
7070 |
msgid "YYYY-MM-DD"
|
7071 |
msgstr ""
|
7072 |
|
7073 |
#: templates/products/new-product-single.php:248
|
7074 |
-
#: templates/products/new-product.php:
|
7075 |
#: templates/products/tmpl-add-product-popup.php:88
|
7076 |
msgid "To"
|
7077 |
msgstr ""
|
@@ -7086,13 +7101,13 @@ msgid "Please choose a category!"
|
|
7086 |
msgstr ""
|
7087 |
|
7088 |
#: templates/products/new-product-single.php:312
|
7089 |
-
#: templates/products/new-product.php:
|
7090 |
#: templates/products/tmpl-add-product-popup.php:138
|
7091 |
msgid "Select product category"
|
7092 |
msgstr ""
|
7093 |
|
7094 |
#: templates/products/new-product-single.php:318
|
7095 |
-
#: templates/products/new-product.php:
|
7096 |
#: templates/products/tmpl-add-product-popup.php:144
|
7097 |
msgid "Tags"
|
7098 |
msgstr ""
|
@@ -7130,7 +7145,7 @@ msgid "Short Description"
|
|
7130 |
msgstr ""
|
7131 |
|
7132 |
#: templates/products/new-product-single.php:418
|
7133 |
-
#: templates/products/new-product.php:
|
7134 |
msgid "Description"
|
7135 |
msgstr ""
|
7136 |
|
@@ -7152,19 +7167,19 @@ msgstr ""
|
|
7152 |
msgid "Upload Product Image"
|
7153 |
msgstr ""
|
7154 |
|
7155 |
-
#: templates/products/new-product.php:
|
7156 |
msgid "Short description of the product..."
|
7157 |
msgstr ""
|
7158 |
|
7159 |
-
#: templates/products/new-product.php:
|
7160 |
msgid "Add your product description"
|
7161 |
msgstr ""
|
7162 |
|
7163 |
-
#: templates/products/new-product.php:
|
7164 |
msgid "Create & Add New"
|
7165 |
msgstr ""
|
7166 |
|
7167 |
-
#: templates/products/new-product.php:
|
7168 |
msgid "Create Product"
|
7169 |
msgstr ""
|
7170 |
|
@@ -7272,7 +7287,7 @@ msgstr ""
|
|
7272 |
msgid "Create product"
|
7273 |
msgstr ""
|
7274 |
|
7275 |
-
#: templates/products/tmpl-add-product-popup.php:
|
7276 |
msgid "Create & add new"
|
7277 |
msgstr ""
|
7278 |
|
@@ -7321,7 +7336,7 @@ msgid "State "
|
|
7321 |
msgstr ""
|
7322 |
|
7323 |
#: templates/settings/header.php:20 templates/settings/payment.php:45
|
7324 |
-
#: templates/settings/store-form.php:
|
7325 |
msgid "Update Settings"
|
7326 |
msgstr ""
|
7327 |
|
@@ -7353,43 +7368,43 @@ msgstr ""
|
|
7353 |
msgid "+123456.."
|
7354 |
msgstr ""
|
7355 |
|
7356 |
-
#: templates/settings/store-form.php:
|
7357 |
msgid "More products"
|
7358 |
msgstr ""
|
7359 |
|
7360 |
-
#: templates/settings/store-form.php:
|
7361 |
msgid "Enable tab on product single page view"
|
7362 |
msgstr ""
|
7363 |
|
7364 |
-
#: templates/settings/store-form.php:
|
7365 |
msgid "Map"
|
7366 |
msgstr ""
|
7367 |
|
7368 |
-
#: templates/settings/store-form.php:
|
7369 |
msgid "Show terms and conditions in store page"
|
7370 |
msgstr ""
|
7371 |
|
7372 |
-
#: templates/settings/store-form.php:
|
7373 |
msgid "TOC Details"
|
7374 |
msgstr ""
|
7375 |
|
7376 |
-
#: templates/settings/store-form.php:
|
7377 |
msgid "Store Opening Closing Time"
|
7378 |
msgstr ""
|
7379 |
|
7380 |
-
#: templates/settings/store-form.php:
|
7381 |
msgid "Show store opening closing time widget in store page"
|
7382 |
msgstr ""
|
7383 |
|
7384 |
-
#: templates/settings/store-form.php:
|
7385 |
msgid "Open"
|
7386 |
msgstr ""
|
7387 |
|
7388 |
-
#: templates/settings/store-form.php:
|
7389 |
msgid "Store Open Notice"
|
7390 |
msgstr ""
|
7391 |
|
7392 |
-
#: templates/settings/store-form.php:
|
7393 |
msgid "Store Close Notice"
|
7394 |
msgstr ""
|
7395 |
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Dokan 3.2.8\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2021-07-12 12:02: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"
|
28 |
msgid "1"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: src/admin/pages/VendorAccountFields.vue:66
|
32 |
#: src/admin/pages/VendorPaymentFields.vue:31
|
33 |
#: src/admin/pages/VendorPaymentFields.vue:36
|
34 |
#: src/admin/pages/VendorPaymentFields.vue:41
|
39 |
msgid "1233456789"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: dokan.php:191
|
43 |
#. translators: 1: Required PHP Version 2: Running php version
|
44 |
msgid ""
|
45 |
"The Minimum PHP Version Requirement for <b>Dokan</b> is %1$s. You are "
|
46 |
"Running PHP %2$s"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: dokan.php:465
|
50 |
msgid "Get Pro"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: dokan.php:468 includes/Admin/AdminBar.php:81 includes/Admin/Menu.php:64
|
54 |
#: includes/Dashboard/Templates/Settings.php:59
|
55 |
#: includes/Dashboard/Templates/Settings.php:64 includes/template-tags.php:417
|
56 |
#: src/admin/pages/Settings.vue:6
|
57 |
msgid "Settings"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: dokan.php:469 src/admin/pages/ProModules.vue:33
|
61 |
msgid "Documentation"
|
62 |
msgstr ""
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
#: includes/Abstracts/DokanBackgroundProcesses.php:86
|
65 |
msgid "Every %d Minutes"
|
66 |
msgstr ""
|
114 |
msgstr ""
|
115 |
|
116 |
#: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
|
117 |
+
#: includes/Admin/Settings.php:512 includes/Install/Installer.php:157
|
118 |
#: includes/template-tags.php:386 src/admin/pages/Dashboard.vue:5
|
119 |
msgid "Dashboard"
|
120 |
msgstr ""
|
136 |
|
137 |
#: includes/Admin/Hooks.php:64 includes/Admin/Hooks.php:70
|
138 |
#: includes/Admin/Hooks.php:357 includes/Admin/Hooks.php:379
|
139 |
+
#: includes/Admin/Settings.php:409 includes/Admin/Settings.php:420
|
140 |
#: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:93
|
141 |
#: includes/wc-template.php:17 includes/wc-template.php:166
|
142 |
#: includes/wc-template.php:315 src/admin/pages/Dashboard.vue:38
|
233 |
msgid "Configure all general settings for your marketplace from this tab."
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/Admin/Pointers.php:191 includes/Admin/Settings.php:275
|
237 |
msgid "Selling Options"
|
238 |
msgstr ""
|
239 |
|
241 |
msgid "You can configure different selling options for your vendors"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/Admin/Pointers.php:208 includes/Admin/Settings.php:280
|
245 |
msgid "Withdraw Options"
|
246 |
msgstr ""
|
247 |
|
334 |
msgid "You have no permission to get settings value"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/Admin/Settings.php:94 includes/Admin/Settings.php:717
|
338 |
msgid "You are not authorized to perform this action."
|
339 |
msgstr ""
|
340 |
|
342 |
msgid "`section` parameter is required."
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/Admin/Settings.php:130
|
346 |
msgid "Setting has been saved successfully."
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: includes/Admin/Settings.php:270
|
350 |
msgid "General"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/Admin/Settings.php:285
|
354 |
msgid "Page Settings"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: includes/Admin/Settings.php:290
|
358 |
msgid "Appearance"
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: includes/Admin/Settings.php:295 includes/Admin/Settings.php:653
|
362 |
msgid "Privacy Policy"
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/Admin/Settings.php:319
|
366 |
msgid "Site Options"
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/Admin/Settings.php:324
|
370 |
msgid "Admin area access"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/Admin/Settings.php:325
|
374 |
msgid "Disallow Vendors and Customers from accessing the wp-admin dashboard area"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/Admin/Settings.php:331
|
378 |
#: templates/admin-setup-wizard/step-store.php:7
|
379 |
msgid "Vendor Store URL"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: includes/Admin/Settings.php:333
|
383 |
#. translators: %s: store url
|
384 |
msgid "Define the Vendor store URL (%s<strong>[this-text]</strong>/[vendor-name])"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/Admin/Settings.php:339
|
388 |
msgid "Vendor Setup Wizard Logo"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/Admin/Settings.php:341
|
392 |
msgid ""
|
393 |
"Recommended Logo size ( 270px X 90px ). If no logo is uploaded, site title "
|
394 |
"is shown by default."
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: includes/Admin/Settings.php:345
|
398 |
msgid "Disable Welcome Wizard"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: includes/Admin/Settings.php:346
|
402 |
msgid "Disable welcome wizard for newly registered vendors"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/Admin/Settings.php:357
|
406 |
msgid "Vendor Store Options"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: includes/Admin/Settings.php:362
|
410 |
msgid "Store Terms and Conditions"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/Admin/Settings.php:363
|
414 |
msgid "Enable Terms and Conditions for vendor stores"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: includes/Admin/Settings.php:369 includes/Vendor/SetupWizard.php:185
|
418 |
#: templates/settings/store-form.php:125
|
419 |
msgid "Store Products Per Page"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: includes/Admin/Settings.php:370
|
423 |
msgid ""
|
424 |
"Set how many products to display per page on the vendor store page. It will "
|
425 |
"affect only if the vendor isn't set this value on their vendor setting page."
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: includes/Admin/Settings.php:381
|
429 |
msgid "Commission"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: includes/Admin/Settings.php:386
|
433 |
msgid "Commission Type "
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: includes/Admin/Settings.php:387
|
437 |
msgid "Select a commission type for Vendor"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: includes/Admin/Settings.php:394 src/admin/pages/VendorPaymentFields.vue:69
|
441 |
#: src/admin/pages/VendorPaymentFields.vue:78
|
442 |
#: templates/admin-setup-wizard/step-selling.php:31
|
443 |
msgid "Admin Commission"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: includes/Admin/Settings.php:395
|
447 |
msgid "Amount you get from each sale"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/Admin/Settings.php:405
|
451 |
#: templates/admin-setup-wizard/step-store.php:14
|
452 |
msgid "Shipping Fee Recipient"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: includes/Admin/Settings.php:406
|
456 |
msgid "Who will be receiving the Shipping fees"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/Admin/Settings.php:410 includes/Admin/Settings.php:421
|
460 |
#: includes/Admin/SetupWizard.php:346
|
461 |
msgid "Admin"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: includes/Admin/Settings.php:416
|
465 |
#: templates/admin-setup-wizard/step-store.php:28
|
466 |
msgid "Tax Fee Recipient"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: includes/Admin/Settings.php:417
|
470 |
msgid "Who will be receiving the Tax fees"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: includes/Admin/Settings.php:432
|
474 |
msgid "Vendor Capability"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: includes/Admin/Settings.php:437
|
478 |
msgid "New Vendor Product Upload"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: includes/Admin/Settings.php:438
|
482 |
msgid "Allow newly registered vendors to add products"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/Admin/Settings.php:444
|
486 |
msgid "Disable Product Popup"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: includes/Admin/Settings.php:445
|
490 |
msgid "Disable add new product in popup view"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: includes/Admin/Settings.php:451 src/admin/pages/VendorCapabilities.vue:89
|
494 |
#: templates/admin-setup-wizard/step-selling.php:39
|
495 |
msgid "Order Status Change"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: includes/Admin/Settings.php:452
|
499 |
msgid "Allow vendor to update order status"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: includes/Admin/Settings.php:471 includes/Admin/SetupWizard.php:474
|
503 |
msgid "Withdraw Methods"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/Admin/Settings.php:472
|
507 |
msgid "Select suitable Withdraw methods for Vendors"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/Admin/Settings.php:479 includes/Admin/SetupWizard.php:511
|
511 |
msgid "Minimum Withdraw Limit"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/Admin/Settings.php:480
|
515 |
msgid ""
|
516 |
"Minimum balance required to make a withdraw request. Leave blank to set no "
|
517 |
"minimum limits."
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/Admin/Settings.php:489 includes/Admin/SetupWizard.php:518
|
521 |
msgid "Order Status for Withdraw"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: includes/Admin/Settings.php:490 includes/Admin/SetupWizard.php:535
|
525 |
msgid "Order status for which vendor can make a withdraw request."
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/Admin/Settings.php:496 includes/Admin/SetupWizard.php:524
|
529 |
#: includes/Dashboard/Templates/Dashboard.php:101
|
530 |
#: includes/Order/functions.php:539 templates/dashboard/orders-widget.php:26
|
531 |
msgid "Completed"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/Admin/Settings.php:497 includes/Admin/SetupWizard.php:530
|
535 |
#: includes/Dashboard/Templates/Dashboard.php:111
|
536 |
#: includes/Order/functions.php:554 templates/dashboard/orders-widget.php:36
|
537 |
#: templates/orders/listing.php:151
|
538 |
msgid "Processing"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: includes/Admin/Settings.php:498 includes/Order/functions.php:549
|
542 |
msgid "On-hold"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: includes/Admin/Settings.php:503
|
546 |
msgid "Exclude COD Payments"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/Admin/Settings.php:504
|
550 |
msgid ""
|
551 |
"If an order is paid with Cash on Delivery (COD), then exclude that payment "
|
552 |
"from vendor balance."
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: includes/Admin/Settings.php:513
|
556 |
msgid "Select a page to show Vendor Dashboard"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: includes/Admin/Settings.php:515 includes/Admin/Settings.php:523
|
560 |
+
#: includes/Admin/Settings.php:531 includes/Admin/Settings.php:538
|
561 |
+
#: includes/Admin/Settings.php:648
|
562 |
msgid "Select page"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: includes/Admin/Settings.php:520 includes/Install/Installer.php:169
|
566 |
#: templates/global/header-menu.php:46
|
567 |
msgid "My Orders"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: includes/Admin/Settings.php:521
|
571 |
msgid "Select a page to show My Orders"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: includes/Admin/Settings.php:528
|
575 |
msgid "Store Listing"
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: includes/Admin/Settings.php:529
|
579 |
msgid "Select a page to show all Stores"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: includes/Admin/Settings.php:536
|
583 |
msgid "Terms and Conditions Page"
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: includes/Admin/Settings.php:541
|
587 |
#. translators: %s: dokan pages
|
588 |
msgid ""
|
589 |
"Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
|
590 |
"Learn More </a>"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: includes/Admin/Settings.php:547
|
594 |
msgid "Show Map on Store Page"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: includes/Admin/Settings.php:548
|
598 |
msgid "Enable Map of the Store Location in the store sidebar"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: includes/Admin/Settings.php:554
|
602 |
#: templates/admin-setup-wizard/step-store.php:42
|
603 |
msgid "Map API Source"
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: includes/Admin/Settings.php:555
|
607 |
#: templates/admin-setup-wizard/step-store.php:52
|
608 |
msgid "Which Map API source you want to use in your site?"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: includes/Admin/Settings.php:560 includes/Admin/SetupWizard.php:359
|
612 |
#: src/admin/pages/Premium.vue:388
|
613 |
msgid "Google Maps"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/Admin/Settings.php:561 includes/Admin/SetupWizard.php:360
|
617 |
msgid "Mapbox"
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: includes/Admin/Settings.php:571
|
621 |
#: templates/admin-setup-wizard/step-store.php:56
|
622 |
msgid "Google Map API Key"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: includes/Admin/Settings.php:572
|
626 |
msgid ""
|
627 |
"<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
|
628 |
"target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
|
629 |
"display map on store page"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: includes/Admin/Settings.php:582
|
633 |
#: templates/admin-setup-wizard/step-store.php:71
|
634 |
msgid "Mapbox Access Token"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: includes/Admin/Settings.php:583
|
638 |
#: templates/admin-setup-wizard/step-store.php:75
|
639 |
msgid ""
|
640 |
"<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
|
642 |
"display map on store page"
|
643 |
msgstr ""
|
644 |
|
645 |
+
#: includes/Admin/Settings.php:588
|
646 |
msgid "Show Contact Form on Store Page"
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: includes/Admin/Settings.php:589
|
650 |
msgid "Display a vendor contact form in the store sidebar"
|
651 |
msgstr ""
|
652 |
|
653 |
+
#: includes/Admin/Settings.php:595
|
654 |
msgid "Store Header Template"
|
655 |
msgstr ""
|
656 |
|
657 |
+
#: includes/Admin/Settings.php:607
|
658 |
msgid "Store Opening Closing Time Widget"
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: includes/Admin/Settings.php:608
|
662 |
msgid "Enable store opening & closing time widget in the store sidebar"
|
663 |
msgstr ""
|
664 |
|
665 |
+
#: includes/Admin/Settings.php:614
|
666 |
msgid "Enable Store Sidebar From Theme"
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: includes/Admin/Settings.php:615
|
670 |
msgid "Enable showing Store Sidebar From Your Theme."
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: includes/Admin/Settings.php:621
|
674 |
msgid "Hide Vendor Info"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/Admin/Settings.php:629
|
678 |
msgid "Email Address"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/Admin/Settings.php:630 includes/Admin/UserProfile.php:212
|
682 |
+
#: src/admin/pages/VendorAccountFields.vue:65
|
683 |
#: templates/account/vendor-registration.php:33
|
684 |
+
#: templates/global/seller-registration-form.php:43
|
685 |
msgid "Phone Number"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: includes/Admin/Settings.php:631
|
689 |
msgid "Store Address"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/Admin/Settings.php:638
|
693 |
msgid "Enable Privacy Policy"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: includes/Admin/Settings.php:640
|
697 |
msgid "Enable privacy policy for Vendor store contact form"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: includes/Admin/Settings.php:645
|
701 |
msgid "Privacy Page"
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: includes/Admin/Settings.php:647
|
705 |
msgid "Select a page to show your privacy policy"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: includes/Admin/Settings.php:656 includes/functions.php:3616
|
709 |
msgid ""
|
710 |
"Your personal data will be used to support your experience throughout this "
|
711 |
"website, to manage access to your account, and for other purposes described "
|
712 |
"in our [dokan_privacy_policy]"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: includes/Admin/Settings.php:729
|
716 |
msgid "Both section and field params are required."
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: includes/Admin/Settings.php:738
|
720 |
msgid "No filter found to refresh the setting options"
|
721 |
msgstr ""
|
722 |
|
729 |
msgid "Store"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/Admin/SetupWizard.php:155 includes/Admin/UserProfile.php:302
|
733 |
msgid "Selling"
|
734 |
msgstr ""
|
735 |
|
946 |
msgstr ""
|
947 |
|
948 |
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:143
|
949 |
+
#: includes/Assets.php:421 src/admin/pages/VendorAccountFields.vue:282
|
950 |
+
#: src/admin/pages/VendorAccountFields.vue:314
|
951 |
+
#: src/admin/pages/VendorAccountFields.vue:346
|
952 |
msgid "Available"
|
953 |
msgstr ""
|
954 |
|
955 |
#: includes/Admin/UserProfile.php:39 includes/Assets.php:422
|
956 |
+
#: src/admin/pages/VendorAccountFields.vue:290
|
957 |
+
#: src/admin/pages/VendorAccountFields.vue:322
|
958 |
msgid "Not Available"
|
959 |
msgstr ""
|
960 |
|
999 |
msgstr ""
|
1000 |
|
1001 |
#: includes/Admin/UserProfile.php:142
|
1002 |
+
#: src/admin/pages/VendorAccountFields.vue:54
|
1003 |
msgid "Store URL"
|
1004 |
msgstr ""
|
1005 |
|
1019 |
msgid "Zip Code"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
+
#: includes/Admin/UserProfile.php:237
|
1023 |
msgid "Payment Options : "
|
1024 |
msgstr ""
|
1025 |
|
1026 |
+
#: includes/Admin/UserProfile.php:242
|
1027 |
msgid "Paypal Email "
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: includes/Admin/UserProfile.php:250
|
1031 |
msgid "Skrill Email "
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#: includes/Admin/UserProfile.php:259
|
1035 |
msgid "Bank name "
|
1036 |
msgstr ""
|
1037 |
|
1038 |
+
#: includes/Admin/UserProfile.php:265
|
1039 |
msgid "Account Name "
|
1040 |
msgstr ""
|
1041 |
|
1042 |
+
#: includes/Admin/UserProfile.php:271
|
1043 |
msgid "Account Number "
|
1044 |
msgstr ""
|
1045 |
|
1046 |
+
#: includes/Admin/UserProfile.php:277
|
1047 |
msgid "Bank Address "
|
1048 |
msgstr ""
|
1049 |
|
1050 |
+
#: includes/Admin/UserProfile.php:283 includes/Privacy.php:278
|
1051 |
#: src/admin/pages/VendorPaymentFields.vue:30
|
1052 |
msgid "Routing Number"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: includes/Admin/UserProfile.php:289
|
1056 |
msgid "Bank IBAN "
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: includes/Admin/UserProfile.php:295
|
1060 |
msgid "Bank Swift "
|
1061 |
msgstr ""
|
1062 |
|
1063 |
+
#: includes/Admin/UserProfile.php:307
|
1064 |
msgid "Enable Adding Products"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: includes/Admin/UserProfile.php:310
|
1068 |
msgid "Enable or disable product adding capability"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: includes/Admin/UserProfile.php:315
|
1072 |
msgid "Publishing"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: includes/Admin/UserProfile.php:320
|
1076 |
msgid "Publish product directly"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: includes/Admin/UserProfile.php:323
|
1080 |
msgid "Bypass pending, publish products directly"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: includes/Admin/UserProfile.php:328
|
1084 |
msgid "Admin Commission Type "
|
1085 |
msgstr ""
|
1086 |
|
1087 |
+
#: includes/Admin/UserProfile.php:335
|
1088 |
msgid "Set the commmission type admin gets from this seller"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
+
#: includes/Admin/UserProfile.php:339
|
1092 |
msgid "Admin Commission "
|
1093 |
msgstr ""
|
1094 |
|
1095 |
+
#: includes/Admin/UserProfile.php:343
|
1096 |
msgid "It will override the default commission admin gets from each sales"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: includes/Admin/UserProfile.php:348
|
1100 |
msgid "Featured vendor"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
+
#: includes/Admin/UserProfile.php:353
|
1104 |
msgid "Mark as featured vendor"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
+
#: includes/Admin/UserProfile.php:356
|
1108 |
msgid "This vendor will be marked as a featured vendor."
|
1109 |
msgstr ""
|
1110 |
|
1544 |
#: includes/Assets.php:728 includes/Product/functions.php:282
|
1545 |
#: templates/my-orders.php:83 templates/orders/details.php:204
|
1546 |
#: templates/products/new-product-single.php:222
|
1547 |
+
#: templates/products/new-product.php:170
|
1548 |
#: templates/products/tmpl-add-product-popup.php:68
|
1549 |
#: templates/store-lists-filter.php:83
|
1550 |
#: templates/withdraw/pending-request-listing.php:17
|
1634 |
msgid "Hide store address"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
+
#: includes/Customizer.php:281
|
1638 |
msgid "Sidebar Widgets"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
+
#: includes/Customizer.php:303
|
1642 |
msgid "Show store map"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
+
#: includes/Customizer.php:326
|
1646 |
msgid "Show vendor contact form"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
+
#: includes/Customizer.php:348
|
1650 |
msgid "Show store opening/closing Time"
|
1651 |
msgstr ""
|
1652 |
|
2533 |
msgstr ""
|
2534 |
|
2535 |
#: includes/Privacy.php:178 src/admin/pages/VendorAccountFields.vue:43
|
2536 |
+
#: src/admin/pages/VendorAccountFields.vue:50
|
2537 |
#: templates/settings/store-form.php:115
|
2538 |
msgid "Store Name"
|
2539 |
msgstr ""
|
2833 |
|
2834 |
#: includes/Product/functions.php:293 src/admin/components/ColorPicker.vue:31
|
2835 |
#: src/upgrade/App.vue:49 templates/orders/details.php:361
|
2836 |
+
#: templates/settings/store-form.php:262
|
2837 |
msgid "Close"
|
2838 |
msgstr ""
|
2839 |
|
4045 |
msgid "Upgrading db fields error: "
|
4046 |
msgstr ""
|
4047 |
|
4048 |
+
#: includes/Vendor/Manager.php:198
|
4049 |
msgid "Unable to create vendor"
|
4050 |
msgstr ""
|
4051 |
|
4052 |
+
#: includes/Vendor/Manager.php:288
|
4053 |
msgid "Email is not valid"
|
4054 |
msgstr ""
|
4055 |
|
4103 |
msgstr ""
|
4104 |
|
4105 |
#: includes/Vendor/SetupWizard.php:230
|
4106 |
+
#: src/admin/pages/VendorAccountFields.vue:70
|
4107 |
+
#: templates/settings/store-form.php:159
|
4108 |
msgid "Email"
|
4109 |
msgstr ""
|
4110 |
|
4111 |
+
#: includes/Vendor/SetupWizard.php:234 templates/settings/store-form.php:164
|
4112 |
msgid "Show email address in store"
|
4113 |
msgstr ""
|
4114 |
|
4195 |
msgid "Rated %s out of %d"
|
4196 |
msgstr ""
|
4197 |
|
4198 |
+
#: includes/Vendor/Vendor.php:843 templates/settings/store-form.php:285
|
4199 |
msgid "Store is open"
|
4200 |
msgstr ""
|
4201 |
|
4202 |
+
#: includes/Vendor/Vendor.php:857 templates/settings/store-form.php:293
|
4203 |
msgid "Store is closed"
|
4204 |
msgstr ""
|
4205 |
|
4434 |
msgid "Products"
|
4435 |
msgstr ""
|
4436 |
|
4437 |
+
#: includes/functions.php:1282 templates/settings/store-form.php:204
|
4438 |
msgid "Terms and Conditions"
|
4439 |
msgstr ""
|
4440 |
|
5603 |
msgid "Upload Banner"
|
5604 |
msgstr ""
|
5605 |
|
5606 |
+
#: src/admin/pages/VendorAccountFields.vue:50
|
5607 |
msgid "Store Name is required"
|
5608 |
msgstr ""
|
5609 |
|
5610 |
+
#: src/admin/pages/VendorAccountFields.vue:55
|
5611 |
msgid "Store Url"
|
5612 |
msgstr ""
|
5613 |
|
5614 |
+
#: src/admin/pages/VendorAccountFields.vue:77
|
5615 |
msgid "Email is required"
|
5616 |
msgstr ""
|
5617 |
|
5618 |
+
#: src/admin/pages/VendorAccountFields.vue:77
|
5619 |
#: src/admin/pages/VendorPaymentFields.vue:56
|
5620 |
msgid "store@email.com"
|
5621 |
msgstr ""
|
5622 |
|
5623 |
+
#: src/admin/pages/VendorAccountFields.vue:87
|
5624 |
+
#: src/admin/pages/VendorAccountFields.vue:92
|
5625 |
#: templates/account/vendor-registration.php:21
|
5626 |
#: templates/login-form/login-form.php:8
|
5627 |
msgid "Username"
|
5628 |
msgstr ""
|
5629 |
|
5630 |
+
#: src/admin/pages/VendorAccountFields.vue:92
|
5631 |
msgid "Username is required"
|
5632 |
msgstr ""
|
5633 |
|
5634 |
+
#: src/admin/pages/VendorAccountFields.vue:101
|
5635 |
msgid "Send the vendor an email about their account."
|
5636 |
msgstr ""
|
5637 |
|
5638 |
+
#: src/admin/pages/VendorAccountFields.vue:106
|
5639 |
#: templates/account/vendor-registration.php:39
|
5640 |
#: templates/login-form/login-form.php:13
|
5641 |
msgid "Password"
|
5642 |
msgstr ""
|
5643 |
|
5644 |
+
#: src/admin/pages/VendorAccountFields.vue:118
|
5645 |
msgid "Generate Password"
|
5646 |
msgstr ""
|
5647 |
|
5648 |
+
#: src/admin/pages/VendorAccountFields.vue:270
|
5649 |
+
#: src/admin/pages/VendorAccountFields.vue:302
|
5650 |
+
#: src/admin/pages/VendorAccountFields.vue:334
|
5651 |
msgid "Searching..."
|
5652 |
msgstr ""
|
5653 |
|
5654 |
+
#: src/admin/pages/VendorAccountFields.vue:354
|
5655 |
msgid "This email is already registered, please choose another one."
|
5656 |
msgstr ""
|
5657 |
|
5940 |
msgid "Shop URL"
|
5941 |
msgstr ""
|
5942 |
|
5943 |
+
#: templates/account/vendor-registration.php:74
|
5944 |
+
#: templates/global/seller-registration-form.php:54
|
5945 |
msgid ""
|
5946 |
"I have read and agree to the <a target=\"_blank\" href=\"%s\">Terms & "
|
5947 |
"Conditions</a>."
|
5948 |
msgstr ""
|
5949 |
|
5950 |
+
#: templates/account/vendor-registration.php:84
|
5951 |
msgid "Register"
|
5952 |
msgstr ""
|
5953 |
|
5979 |
msgid "Upgrade to Dokan Pro"
|
5980 |
msgstr ""
|
5981 |
|
5982 |
+
#: templates/admin-notice-dependencies.php:16
|
5983 |
+
msgid "WooCommerce Missing"
|
5984 |
+
msgstr ""
|
5985 |
+
|
5986 |
+
#: templates/admin-notice-dependencies.php:21
|
5987 |
+
#. translators: 1$-2$: opening and closing <strong> tags, 3$-4$: link tags,
|
5988 |
+
#. takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags,
|
5989 |
+
#. leads to plugins.php in admin
|
5990 |
+
msgid ""
|
5991 |
+
"%1$sDokan is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active "
|
5992 |
+
"for Dokan to work. Please %5$sinstall WooCommerce »%6$s"
|
5993 |
+
msgstr ""
|
5994 |
+
|
5995 |
+
#: templates/admin-notice-dependencies.php:27
|
5996 |
+
#. translators: 1$-2$: opening and closing <strong> tags, 3$-4$: link tags,
|
5997 |
+
#. takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags,
|
5998 |
+
#. leads to plugins.php in admin
|
5999 |
+
msgid ""
|
6000 |
+
"%1$sDokan is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active "
|
6001 |
+
"for Dokan to work. Please %5$sactivate WooCommerce »%6$s"
|
6002 |
+
msgstr ""
|
6003 |
+
|
6004 |
#: templates/admin-setup-wizard/run-wizard-notice.php:2
|
6005 |
msgid ""
|
6006 |
"<strong>Welcome to Dokan</strong> – You‘re almost ready to "
|
6422 |
#: templates/emails/vendor-completed-order.php:48
|
6423 |
#: templates/emails/vendor-new-order.php:48
|
6424 |
#: templates/products/new-product-single.php:200
|
6425 |
+
#: templates/products/new-product.php:159
|
6426 |
#: templates/products/products-listing-row.php:82
|
6427 |
#: templates/products/products-listing.php:106
|
6428 |
#: templates/products/tmpl-add-product-popup.php:57
|
6515 |
msgid "Address:"
|
6516 |
msgstr ""
|
6517 |
|
6518 |
+
#: templates/global/seller-registration-form.php:68
|
6519 |
msgid "I am a customer"
|
6520 |
msgstr ""
|
6521 |
|
6522 |
+
#: templates/global/seller-registration-form.php:73
|
6523 |
msgid "I am a vendor"
|
6524 |
msgstr ""
|
6525 |
|
6971 |
|
6972 |
#: templates/products/listing-filter.php:25
|
6973 |
#: templates/products/new-product-single.php:271
|
6974 |
+
#: templates/products/new-product.php:207
|
6975 |
#: templates/products/tmpl-add-product-popup.php:102
|
6976 |
msgid "- Select a category -"
|
6977 |
msgstr ""
|
7026 |
msgstr ""
|
7027 |
|
7028 |
#: templates/products/new-product-single.php:165
|
7029 |
+
#: templates/products/new-product.php:153
|
7030 |
#: templates/products/tmpl-add-product-popup.php:51
|
7031 |
msgid "Product name.."
|
7032 |
msgstr ""
|
7055 |
msgstr ""
|
7056 |
|
7057 |
#: templates/products/new-product-single.php:220
|
7058 |
+
#: templates/products/new-product.php:168
|
7059 |
#: templates/products/tmpl-add-product-popup.php:66
|
7060 |
msgid "Discounted Price"
|
7061 |
msgstr ""
|
7062 |
|
7063 |
#: templates/products/new-product-single.php:221
|
7064 |
+
#: templates/products/new-product.php:169
|
7065 |
#: templates/products/tmpl-add-product-popup.php:67
|
7066 |
msgid "Schedule"
|
7067 |
msgstr ""
|
7071 |
msgstr ""
|
7072 |
|
7073 |
#: templates/products/new-product-single.php:241
|
7074 |
+
#: templates/products/new-product.php:183
|
7075 |
#: templates/products/tmpl-add-product-popup.php:81
|
7076 |
msgid "From"
|
7077 |
msgstr ""
|
7078 |
|
7079 |
#: templates/products/new-product-single.php:242
|
7080 |
#: templates/products/new-product-single.php:249
|
7081 |
+
#: templates/products/new-product.php:184
|
7082 |
+
#: templates/products/new-product.php:191
|
7083 |
#: templates/products/tmpl-add-product-popup.php:82
|
7084 |
#: templates/products/tmpl-add-product-popup.php:89
|
7085 |
msgid "YYYY-MM-DD"
|
7086 |
msgstr ""
|
7087 |
|
7088 |
#: templates/products/new-product-single.php:248
|
7089 |
+
#: templates/products/new-product.php:190
|
7090 |
#: templates/products/tmpl-add-product-popup.php:88
|
7091 |
msgid "To"
|
7092 |
msgstr ""
|
7101 |
msgstr ""
|
7102 |
|
7103 |
#: templates/products/new-product-single.php:312
|
7104 |
+
#: templates/products/new-product.php:247
|
7105 |
#: templates/products/tmpl-add-product-popup.php:138
|
7106 |
msgid "Select product category"
|
7107 |
msgstr ""
|
7108 |
|
7109 |
#: templates/products/new-product-single.php:318
|
7110 |
+
#: templates/products/new-product.php:253
|
7111 |
#: templates/products/tmpl-add-product-popup.php:144
|
7112 |
msgid "Tags"
|
7113 |
msgstr ""
|
7145 |
msgstr ""
|
7146 |
|
7147 |
#: templates/products/new-product-single.php:418
|
7148 |
+
#: templates/products/new-product.php:262
|
7149 |
msgid "Description"
|
7150 |
msgstr ""
|
7151 |
|
7167 |
msgid "Upload Product Image"
|
7168 |
msgstr ""
|
7169 |
|
7170 |
+
#: templates/products/new-product.php:198
|
7171 |
msgid "Short description of the product..."
|
7172 |
msgstr ""
|
7173 |
|
7174 |
+
#: templates/products/new-product.php:262
|
7175 |
msgid "Add your product description"
|
7176 |
msgstr ""
|
7177 |
|
7178 |
+
#: templates/products/new-product.php:281
|
7179 |
msgid "Create & Add New"
|
7180 |
msgstr ""
|
7181 |
|
7182 |
+
#: templates/products/new-product.php:283
|
7183 |
msgid "Create Product"
|
7184 |
msgstr ""
|
7185 |
|
7287 |
msgid "Create product"
|
7288 |
msgstr ""
|
7289 |
|
7290 |
+
#: templates/products/tmpl-add-product-popup.php:169
|
7291 |
msgid "Create & add new"
|
7292 |
msgstr ""
|
7293 |
|
7336 |
msgstr ""
|
7337 |
|
7338 |
#: templates/settings/header.php:20 templates/settings/payment.php:45
|
7339 |
+
#: templates/settings/store-form.php:303
|
7340 |
msgid "Update Settings"
|
7341 |
msgstr ""
|
7342 |
|
7368 |
msgid "+123456.."
|
7369 |
msgstr ""
|
7370 |
|
7371 |
+
#: templates/settings/store-form.php:171
|
7372 |
msgid "More products"
|
7373 |
msgstr ""
|
7374 |
|
7375 |
+
#: templates/settings/store-form.php:176
|
7376 |
msgid "Enable tab on product single page view"
|
7377 |
msgstr ""
|
7378 |
|
7379 |
+
#: templates/settings/store-form.php:184
|
7380 |
msgid "Map"
|
7381 |
msgstr ""
|
7382 |
|
7383 |
+
#: templates/settings/store-form.php:208
|
7384 |
msgid "Show terms and conditions in store page"
|
7385 |
msgstr ""
|
7386 |
|
7387 |
+
#: templates/settings/store-form.php:214
|
7388 |
msgid "TOC Details"
|
7389 |
msgstr ""
|
7390 |
|
7391 |
+
#: templates/settings/store-form.php:234
|
7392 |
msgid "Store Opening Closing Time"
|
7393 |
msgstr ""
|
7394 |
|
7395 |
+
#: templates/settings/store-form.php:241
|
7396 |
msgid "Show store opening closing time widget in store page"
|
7397 |
msgstr ""
|
7398 |
|
7399 |
+
#: templates/settings/store-form.php:265 templates/store-lists-loop.php:45
|
7400 |
msgid "Open"
|
7401 |
msgstr ""
|
7402 |
|
7403 |
+
#: templates/settings/store-form.php:282
|
7404 |
msgid "Store Open Notice"
|
7405 |
msgstr ""
|
7406 |
|
7407 |
+
#: templates/settings/store-form.php:290
|
7408 |
msgid "Store Close Notice"
|
7409 |
msgstr ""
|
7410 |
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tested up to: 5.7.2
|
|
7 |
WC requires at least: 3.0
|
8 |
WC tested up to: 5.4.1
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable tag: 3.2.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -292,13 +292,26 @@ A. Just install and activate the PRO version without deleting the free plugin. A
|
|
292 |
|
293 |
== Changelog ==
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
= v3.2.7 ( Jul 01, 2021 ) =
|
296 |
|
297 |
- **new:** Added Orderby filtering for single store product listing page
|
298 |
- **new:** Added custom ip address lookup link
|
299 |
- **new:** Added a success message after creating a product from add new product modal window
|
300 |
- **new:** Added - - for category listing in add new product page and add new product modal window
|
301 |
-
- **new:** Added a new shortcode attribute named with_products_only in [
|
302 |
- **new(api):** Add support to send objects to trash, thanks to @Mário Valney
|
303 |
- **fix:** Fixed duplicate tag create issue, if new tag is searched with mixed character case
|
304 |
- **fix:** Wrong hooks used on Elementor widgets
|
7 |
WC requires at least: 3.0
|
8 |
WC tested up to: 5.4.1
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable tag: 3.2.8
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
292 |
|
293 |
== Changelog ==
|
294 |
|
295 |
+
= v3.2.8 ( Jul 12, 2021 ) =
|
296 |
+
|
297 |
+
- **update:** Added Composer 2 support
|
298 |
+
- **fix:** Fixed rewrite rules issues after Dokan plugin is installed and after change store slug
|
299 |
+
- **new:** Added dokan summer sale promotion
|
300 |
+
- **new:** Added a new action hook named dokan_store_customizer_after_vendor_info under Dokan Store Customizer
|
301 |
+
- **update:** added $data parameter to existing dokan_vendor_create_data action hook
|
302 |
+
- **new:** added a new action hook named dokan_before_create_vendor
|
303 |
+
- **new:** added a new action hook named dokan_seller_registration_after_shopurl_field
|
304 |
+
- **new:** added a new action hook named dokan_settings_after_store_phone
|
305 |
+
- **new:** added a new action hook dokan_settings_before_store_email
|
306 |
+
- **new:** added a new action hook dokan_product_gallery_image_count
|
307 |
+
|
308 |
= v3.2.7 ( Jul 01, 2021 ) =
|
309 |
|
310 |
- **new:** Added Orderby filtering for single store product listing page
|
311 |
- **new:** Added custom ip address lookup link
|
312 |
- **new:** Added a success message after creating a product from add new product modal window
|
313 |
- **new:** Added - - for category listing in add new product page and add new product modal window
|
314 |
+
- **new:** Added a new shortcode attribute named with_products_only in [dokan-stores] shortcode so that vendor without product can be filtered out from store listing page
|
315 |
- **new(api):** Add support to send objects to trash, thanks to @Mário Valney
|
316 |
- **fix:** Fixed duplicate tag create issue, if new tag is searched with mixed character case
|
317 |
- **fix:** Wrong hooks used on Elementor widgets
|
templates/account/vendor-registration.php
CHANGED
@@ -55,6 +55,13 @@
|
|
55 |
<small><?php echo esc_url( home_url() . '/' . dokan_get_option( 'custom_store_url', 'dokan_general', 'store' ) ); ?>/<strong id="url-alart"></strong></small>
|
56 |
</p>
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
<?php do_action( 'register_form' ); ?>
|
59 |
|
60 |
<?php
|
55 |
<small><?php echo esc_url( home_url() . '/' . dokan_get_option( 'custom_store_url', 'dokan_general', 'store' ) ); ?>/<strong id="url-alart"></strong></small>
|
56 |
</p>
|
57 |
|
58 |
+
<?php
|
59 |
+
/**
|
60 |
+
* @since 3.2.8
|
61 |
+
*/
|
62 |
+
do_action( 'dokan_seller_registration_after_shopurl_field', ! empty( $postdata ) ? $postdata : [] );
|
63 |
+
?>
|
64 |
+
|
65 |
<?php do_action( 'register_form' ); ?>
|
66 |
|
67 |
<?php
|
templates/admin-notice-dependencies.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin View: Dep notice
|
4 |
+
*/
|
5 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
|
9 |
+
/**
|
10 |
+
* @var bool $has_woocommerce
|
11 |
+
* @var bool $woocommerce_installed
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php if ( ! $has_woocommerce ): ?>
|
15 |
+
<div id="message" class="error">
|
16 |
+
<h3><?php _e( 'WooCommerce Missing', 'dokan-lite' ); ?></h3>
|
17 |
+
<p>
|
18 |
+
<?php
|
19 |
+
$install_url = wp_nonce_url( add_query_arg( array( 'action' => 'install-plugin', 'plugin' => 'woocommerce' ), admin_url( 'update.php' ) ), 'install-plugin_woocommerce' );
|
20 |
+
// translators: 1$-2$: opening and closing <strong> tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin
|
21 |
+
$text = sprintf( esc_html__( '%1$sDokan is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for Dokan to work. Please %5$sinstall WooCommerce »%6$s', 'dokan-lite' ), '<strong>', '</strong>', '<a href="https://wordpress.org/plugins/woocommerce/">', '</a>', '<a href="' . esc_url( $install_url ) . '">', '</a>' );
|
22 |
+
|
23 |
+
if ( $woocommerce_installed ) {
|
24 |
+
$install_url = wp_nonce_url( add_query_arg( array( 'action' => 'activate', 'plugin' => urlencode( 'woocommerce/woocommerce.php' ) ), admin_url( 'plugins.php' ) ), 'activate-plugin_woocommerce/woocommerce.php' );
|
25 |
+
$is_install = false;
|
26 |
+
// translators: 1$-2$: opening and closing <strong> tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin
|
27 |
+
$text = sprintf( esc_html__( '%1$sDokan is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for Dokan to work. Please %5$sactivate WooCommerce »%6$s', 'dokan-lite' ), '<strong>', '</strong>', '<a href="https://wordpress.org/plugins/woocommerce/">', '</a>', '<a href="' . esc_url( $install_url ) . '">', '</a>' );
|
28 |
+
}
|
29 |
+
echo $text;
|
30 |
+
?>
|
31 |
+
</p>
|
32 |
+
</div>
|
33 |
+
<?php endif; ?>
|
templates/global/seller-registration-form.php
CHANGED
@@ -32,6 +32,13 @@
|
|
32 |
<small><?php echo esc_url( home_url() . '/' . dokan_get_option( 'custom_store_url', 'dokan_general', 'store' ) ); ?>/<strong id="url-alart"></strong></small>
|
33 |
</p>
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<p class="form-row form-group form-row-wide">
|
36 |
<label for="shop-phone"><?php esc_html_e( 'Phone Number', 'dokan-lite' ); ?><span class="required">*</span></label>
|
37 |
<input type="text" class="input-text form-control" name="phone" id="shop-phone" value="<?php if ( ! empty( $postdata['phone'] ) ) { echo esc_attr( $postdata['phone'] ); } ?>" required="required" />
|
@@ -55,7 +62,7 @@
|
|
55 |
<?php do_action( 'dokan_reg_form_field' ); ?>
|
56 |
|
57 |
<p class="form-row form-group user-role vendor-customer-registration">
|
58 |
-
|
59 |
<label class="radio">
|
60 |
<input type="radio" name="role" value="customer"<?php checked( $role, 'customer' ); ?>>
|
61 |
<?php esc_html_e( 'I am a customer', 'dokan-lite' ); ?>
|
@@ -67,4 +74,4 @@
|
|
67 |
</label>
|
68 |
<?php do_action( 'dokan_registration_form_role', $role ); ?>
|
69 |
|
70 |
-
</p>
|
32 |
<small><?php echo esc_url( home_url() . '/' . dokan_get_option( 'custom_store_url', 'dokan_general', 'store' ) ); ?>/<strong id="url-alart"></strong></small>
|
33 |
</p>
|
34 |
|
35 |
+
<?php
|
36 |
+
/**
|
37 |
+
* @since 3.2.8
|
38 |
+
*/
|
39 |
+
do_action( 'dokan_seller_registration_after_shopurl_field', ! empty( $postdata ) ? $postdata : [] );
|
40 |
+
?>
|
41 |
+
|
42 |
<p class="form-row form-group form-row-wide">
|
43 |
<label for="shop-phone"><?php esc_html_e( 'Phone Number', 'dokan-lite' ); ?><span class="required">*</span></label>
|
44 |
<input type="text" class="input-text form-control" name="phone" id="shop-phone" value="<?php if ( ! empty( $postdata['phone'] ) ) { echo esc_attr( $postdata['phone'] ); } ?>" required="required" />
|
62 |
<?php do_action( 'dokan_reg_form_field' ); ?>
|
63 |
|
64 |
<p class="form-row form-group user-role vendor-customer-registration">
|
65 |
+
|
66 |
<label class="radio">
|
67 |
<input type="radio" name="role" value="customer"<?php checked( $role, 'customer' ); ?>>
|
68 |
<?php esc_html_e( 'I am a customer', 'dokan-lite' ); ?>
|
74 |
</label>
|
75 |
<?php do_action( 'dokan_registration_form_role', $role ); ?>
|
76 |
|
77 |
+
</p>
|
templates/products/new-product.php
CHANGED
@@ -145,6 +145,7 @@ use WeDevs\Dokan\Walkers\TaxonomyDropdown;
|
|
145 |
</div>
|
146 |
</div>
|
147 |
</div> <!-- .product-gallery -->
|
|
|
148 |
</div>
|
149 |
|
150 |
<div class="content-half-part dokan-product-meta">
|
@@ -268,7 +269,17 @@ use WeDevs\Dokan\Walkers\TaxonomyDropdown;
|
|
268 |
|
269 |
<div class="dokan-form-group dokan-right">
|
270 |
<?php wp_nonce_field( 'dokan_add_new_product', 'dokan_add_new_product_nonce' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
<button type="submit" name="add_product" class="dokan-btn dokan-btn-default" value="create_and_add_new"><?php esc_attr_e( 'Create & Add New', 'dokan-lite' ); ?></button>
|
|
|
272 |
<button type="submit" name="add_product" class="dokan-btn dokan-btn-default dokan-btn-theme" value="create_new"><?php esc_attr_e( 'Create Product', 'dokan-lite' ); ?></button>
|
273 |
</div>
|
274 |
|
145 |
</div>
|
146 |
</div>
|
147 |
</div> <!-- .product-gallery -->
|
148 |
+
<?php do_action( 'dokan_product_gallery_image_count' ); ?>
|
149 |
</div>
|
150 |
|
151 |
<div class="content-half-part dokan-product-meta">
|
269 |
|
270 |
<div class="dokan-form-group dokan-right">
|
271 |
<?php wp_nonce_field( 'dokan_add_new_product', 'dokan_add_new_product_nonce' ); ?>
|
272 |
+
<?php
|
273 |
+
$display_create_and_add_new_button = true;
|
274 |
+
if ( function_exists( 'dokan_pro' ) && dokan_pro()->module->is_active( 'product_subscription' ) ) {
|
275 |
+
if ( \DokanPro\Modules\Subscription\Helper::get_vendor_remaining_products( dokan_get_current_user_id() ) === 1 ) {
|
276 |
+
$display_create_and_add_new_button = false;
|
277 |
+
}
|
278 |
+
}
|
279 |
+
if ( $display_create_and_add_new_button ) :
|
280 |
+
?>
|
281 |
<button type="submit" name="add_product" class="dokan-btn dokan-btn-default" value="create_and_add_new"><?php esc_attr_e( 'Create & Add New', 'dokan-lite' ); ?></button>
|
282 |
+
<?php endif; ?>
|
283 |
<button type="submit" name="add_product" class="dokan-btn dokan-btn-default dokan-btn-theme" value="create_new"><?php esc_attr_e( 'Create Product', 'dokan-lite' ); ?></button>
|
284 |
</div>
|
285 |
|
templates/products/tmpl-add-product-popup.php
CHANGED
@@ -157,7 +157,17 @@ use WeDevs\Dokan\Walkers\TaxonomyDropdown;
|
|
157 |
<span class="dokan-show-add-product-success"></span>
|
158 |
<span class="dokan-spinner dokan-add-new-product-spinner dokan-hide"></span>
|
159 |
<input type="submit" id="dokan-create-new-product-btn" class="dokan-btn dokan-btn-default" data-btn_id="create_new" value="<?php esc_attr_e( 'Create product', 'dokan-lite' ) ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
<input type="submit" id="dokan-create-and-add-new-product-btn" class="dokan-btn dokan-btn-theme" data-btn_id="create_and_new" value="<?php esc_attr_e( 'Create & add new', 'dokan-lite' ) ?>">
|
|
|
161 |
</div>
|
162 |
</form>
|
163 |
</div>
|
157 |
<span class="dokan-show-add-product-success"></span>
|
158 |
<span class="dokan-spinner dokan-add-new-product-spinner dokan-hide"></span>
|
159 |
<input type="submit" id="dokan-create-new-product-btn" class="dokan-btn dokan-btn-default" data-btn_id="create_new" value="<?php esc_attr_e( 'Create product', 'dokan-lite' ) ?>">
|
160 |
+
<?php
|
161 |
+
$display_create_and_add_new_button = true;
|
162 |
+
if ( function_exists( 'dokan_pro' ) && dokan_pro()->module->is_active( 'product_subscription' ) ) {
|
163 |
+
if ( \DokanPro\Modules\Subscription\Helper::get_vendor_remaining_products( dokan_get_current_user_id() ) === 1 ) {
|
164 |
+
$display_create_and_add_new_button = false;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
if ( $display_create_and_add_new_button ) :
|
168 |
+
?>
|
169 |
<input type="submit" id="dokan-create-and-add-new-product-btn" class="dokan-btn dokan-btn-theme" data-btn_id="create_and_new" value="<?php esc_attr_e( 'Create & add new', 'dokan-lite' ) ?>">
|
170 |
+
<?php endif; ?>
|
171 |
</div>
|
172 |
</form>
|
173 |
</div>
|
templates/settings/store-form.php
CHANGED
@@ -151,6 +151,10 @@
|
|
151 |
</div>
|
152 |
</div>
|
153 |
|
|
|
|
|
|
|
|
|
154 |
<div class="dokan-form-group">
|
155 |
<label class="dokan-w3 dokan-control-label"><?php esc_html_e( 'Email', 'dokan-lite' ); ?></label>
|
156 |
<div class="dokan-w5 dokan-text-left">
|
151 |
</div>
|
152 |
</div>
|
153 |
|
154 |
+
<?php do_action( 'dokan_settings_after_store_phone', $current_user, $profile_info ); ?>
|
155 |
+
|
156 |
+
<?php do_action( 'dokan_settings_before_store_email', $current_user, $profile_info ); ?>
|
157 |
+
|
158 |
<div class="dokan-form-group">
|
159 |
<label class="dokan-w3 dokan-control-label"><?php esc_html_e( 'Email', 'dokan-lite' ); ?></label>
|
160 |
<div class="dokan-w5 dokan-text-left">
|
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 ComposerAutoloaderInit389596c2c08da7b5970bd9cc22480955::getLoader();
|
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 ComposerAutoloaderInitd8ba1b20c587b95adb8b08bb521cb651
|
|
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) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitd8ba1b20c587b95adb8b08bb521cb651
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit389596c2c08da7b5970bd9cc22480955
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit389596c2c08da7b5970bd9cc22480955', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit389596c2c08da7b5970bd9cc22480955', '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\ComposerStaticInit389596c2c08da7b5970bd9cc22480955::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit389596c2c08da7b5970bd9cc22480955::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire389596c2c08da7b5970bd9cc22480955($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire389596c2c08da7b5970bd9cc22480955($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
|
@@ -182,9 +182,9 @@ class ComposerStaticInitd8ba1b20c587b95adb8b08bb521cb651
|
|
182 |
public static function getInitializer(ClassLoader $loader)
|
183 |
{
|
184 |
return \Closure::bind(function () use ($loader) {
|
185 |
-
$loader->prefixLengthsPsr4 =
|
186 |
-
$loader->prefixDirsPsr4 =
|
187 |
-
$loader->classMap =
|
188 |
|
189 |
}, null, ClassLoader::class);
|
190 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit389596c2c08da7b5970bd9cc22480955
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
|
182 |
public static function getInitializer(ClassLoader $loader)
|
183 |
{
|
184 |
return \Closure::bind(function () use ($loader) {
|
185 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit389596c2c08da7b5970bd9cc22480955::$prefixLengthsPsr4;
|
186 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit389596c2c08da7b5970bd9cc22480955::$prefixDirsPsr4;
|
187 |
+
$loader->classMap = ComposerStaticInit389596c2c08da7b5970bd9cc22480955::$classMap;
|
188 |
|
189 |
}, null, ClassLoader::class);
|
190 |
}
|
vendor/composer/installed.json
CHANGED
@@ -41,7 +41,11 @@
|
|
41 |
"plugin",
|
42 |
"theme",
|
43 |
"wordpress"
|
44 |
-
]
|
|
|
|
|
|
|
|
|
45 |
},
|
46 |
{
|
47 |
"name": "jakeasmith/http_build_url",
|
@@ -76,6 +80,10 @@
|
|
76 |
"email": "theman@jakeasmith.com"
|
77 |
}
|
78 |
],
|
79 |
-
"description": "Provides functionality for http_build_url() to environments without pecl_http."
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
]
|
41 |
"plugin",
|
42 |
"theme",
|
43 |
"wordpress"
|
44 |
+
],
|
45 |
+
"support": {
|
46 |
+
"issues": "https://github.com/Appsero/client/issues",
|
47 |
+
"source": "https://github.com/Appsero/client/tree/v1.2.0"
|
48 |
+
}
|
49 |
},
|
50 |
{
|
51 |
"name": "jakeasmith/http_build_url",
|
80 |
"email": "theman@jakeasmith.com"
|
81 |
}
|
82 |
],
|
83 |
+
"description": "Provides functionality for http_build_url() to environments without pecl_http.",
|
84 |
+
"support": {
|
85 |
+
"issues": "https://github.com/jakeasmith/http_build_url/issues",
|
86 |
+
"source": "https://github.com/jakeasmith/http_build_url"
|
87 |
+
}
|
88 |
}
|
89 |
]
|