Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy - Version 3.3.2

Version Description

Download this release

Release Info

Developer tareq1988
Plugin Icon wp plugin Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy
Version 3.3.2
Comparing to
See all releases

Code changes from version 3.3.1 to 3.3.2

assets/css/admin.css CHANGED
@@ -354,6 +354,27 @@
354
  padding-right: 10px;
355
  background: #fff;
356
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  .wc_error_tip {
358
  max-width: 20em;
359
  line-height: 1.8em;
354
  padding-right: 10px;
355
  background: #fff;
356
  }
357
+ td.tooltips-data {
358
+ display: flex;
359
+ justify-content: center;
360
+ align-items: center;
361
+ margin-top: 4px;
362
+ padding-right: 0;
363
+ }
364
+ .tooltips-data span {
365
+ width: 20px;
366
+ }
367
+ ul.dokan-settings-repeatable-list {
368
+ margin: 0;
369
+ }
370
+ .form-table tr td.dokan_checkbox_up {
371
+ vertical-align: top;
372
+ margin-top: 0.45em !important;
373
+ }
374
+ td.combine-tips-style {
375
+ display: table-cell;
376
+ vertical-align: top;
377
+ }
378
  .wc_error_tip {
379
  max-width: 20em;
380
  line-height: 1.8em;
assets/js/dokan.js CHANGED
@@ -1486,6 +1486,7 @@ jQuery(function($) {
1486
  var product_type = $( '#product_type' ).val();
1487
  var is_virtual = $( 'input#_virtual:checked' ).length;
1488
  var is_downloadable = $( 'input#_downloadable:checked' ).length;
 
1489
 
1490
  // Hide/Show all with rules.
1491
  var hide_classes = '.hide_if_downloadable, .hide_if_virtual';
@@ -1515,6 +1516,18 @@ jQuery(function($) {
1515
  }
1516
  if ( is_virtual ) {
1517
  $( '.hide_if_virtual' ).hide();
 
 
 
 
 
 
 
 
 
 
 
 
1518
  }
1519
 
1520
  $( '.hide_if_' + product_type ).hide();
1486
  var product_type = $( '#product_type' ).val();
1487
  var is_virtual = $( 'input#_virtual:checked' ).length;
1488
  var is_downloadable = $( 'input#_downloadable:checked' ).length;
1489
+ let shippingTaxContainer = $( '.dokan-product-shipping-tax' );
1490
 
1491
  // Hide/Show all with rules.
1492
  var hide_classes = '.hide_if_downloadable, .hide_if_virtual';
1516
  }
1517
  if ( is_virtual ) {
1518
  $( '.hide_if_virtual' ).hide();
1519
+
1520
+ if ( 1 === $( '.dokan-product-shipping-tax .dokan-section-content' ).first().children().length ) {
1521
+ shippingTaxContainer.hide();
1522
+ } else {
1523
+ if ( shippingTaxContainer.hasClass('hide_if_virtual') ) {
1524
+ shippingTaxContainer.removeClass('hide_if_virtual');
1525
+ }
1526
+
1527
+ shippingTaxContainer.show();
1528
+ }
1529
+ } else {
1530
+ shippingTaxContainer.show();
1531
  }
1532
 
1533
  $( '.hide_if_' + product_type ).hide();
assets/js/vue-admin.js CHANGED
@@ -5766,6 +5766,91 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5766
 
5767
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_defineProperty___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5768
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5769
  //
5770
  //
5771
  //
@@ -9840,7 +9925,9 @@ var render = function() {
9840
  attrs: { colspan: "2" }
9841
  },
9842
  [_c("label", [_vm._v(_vm._s(_vm.fieldData.label))])]
9843
- )
 
 
9844
  ]
9845
  : _vm._e(),
9846
  _vm._v(" "),
@@ -9858,259 +9945,334 @@ var render = function() {
9858
  )
9859
  ]),
9860
  _vm._v(" "),
9861
- _c("td", [
9862
- (_vm.fieldData.type || "text") === "checkbox"
9863
- ? _c("input", {
9864
- directives: [
9865
- {
9866
- name: "model",
9867
- rawName: "v-model",
9868
- value: _vm.fieldValue[_vm.fieldData.name],
9869
- expression: "fieldValue[fieldData.name]"
9870
- }
9871
- ],
9872
- staticClass: "regular-text",
9873
- class: [
9874
- {
9875
- "dokan-input-validation-error": _vm.hasValidationError(
9876
- _vm.fieldData.name
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9877
  )
 
 
 
 
 
9878
  },
9879
- _vm.fieldData.class
9880
- ],
9881
- attrs: {
9882
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9883
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9884
- type: "checkbox"
9885
- },
9886
- domProps: {
9887
- checked: Array.isArray(
9888
- _vm.fieldValue[_vm.fieldData.name]
9889
- )
9890
- ? _vm._i(_vm.fieldValue[_vm.fieldData.name], null) >
9891
- -1
9892
- : _vm.fieldValue[_vm.fieldData.name]
9893
- },
9894
- on: {
9895
- change: function($event) {
9896
- var $$a = _vm.fieldValue[_vm.fieldData.name],
9897
- $$el = $event.target,
9898
- $$c = $$el.checked ? true : false
9899
- if (Array.isArray($$a)) {
9900
- var $$v = null,
9901
- $$i = _vm._i($$a, $$v)
9902
- if ($$el.checked) {
9903
- $$i < 0 &&
9904
- _vm.$set(
9905
- _vm.fieldValue,
9906
- _vm.fieldData.name,
9907
- $$a.concat([$$v])
9908
- )
9909
  } else {
9910
- $$i > -1 &&
9911
- _vm.$set(
9912
- _vm.fieldValue,
9913
- _vm.fieldData.name,
9914
- $$a.slice(0, $$i).concat($$a.slice($$i + 1))
9915
- )
9916
  }
9917
- } else {
9918
- _vm.$set(_vm.fieldValue, _vm.fieldData.name, $$c)
9919
  }
9920
  }
9921
- }
9922
- })
9923
- : (_vm.fieldData.type || "text") === "radio"
9924
- ? _c("input", {
9925
- directives: [
9926
- {
9927
- name: "model",
9928
- rawName: "v-model",
9929
- value: _vm.fieldValue[_vm.fieldData.name],
9930
- expression: "fieldValue[fieldData.name]"
9931
- }
9932
- ],
9933
- staticClass: "regular-text",
9934
- class: [
9935
- {
9936
- "dokan-input-validation-error": _vm.hasValidationError(
9937
- _vm.fieldData.name
9938
- )
 
 
 
 
 
 
 
9939
  },
9940
- _vm.fieldData.class
9941
- ],
9942
- attrs: {
9943
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9944
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9945
- type: "radio"
9946
- },
9947
- domProps: {
9948
- checked: _vm._q(
9949
- _vm.fieldValue[_vm.fieldData.name],
9950
- null
9951
- )
9952
- },
9953
- on: {
9954
- change: function($event) {
9955
- return _vm.$set(
9956
- _vm.fieldValue,
9957
- _vm.fieldData.name,
9958
  null
9959
  )
9960
- }
9961
- }
9962
- })
9963
- : _c("input", {
9964
- directives: [
9965
- {
9966
- name: "model",
9967
- rawName: "v-model",
9968
- value: _vm.fieldValue[_vm.fieldData.name],
9969
- expression: "fieldValue[fieldData.name]"
9970
- }
9971
- ],
9972
- staticClass: "regular-text",
9973
- class: [
9974
- {
9975
- "dokan-input-validation-error": _vm.hasValidationError(
9976
- _vm.fieldData.name
9977
- )
9978
  },
9979
- _vm.fieldData.class
9980
- ],
9981
- attrs: {
9982
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9983
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9984
- type: _vm.fieldData.type || "text"
9985
- },
9986
- domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
9987
- on: {
9988
- input: function($event) {
9989
- if ($event.target.composing) {
9990
- return
9991
  }
9992
- _vm.$set(
9993
- _vm.fieldValue,
9994
- _vm.fieldData.name,
9995
- $event.target.value
9996
- )
9997
  }
9998
- }
9999
- }),
10000
- _vm._v(" "),
10001
- _vm.hasError(_vm.fieldData.name)
10002
- ? _c("p", { staticClass: "dokan-error" }, [
10003
- _vm._v(
10004
- "\n " +
10005
- _vm._s(_vm.getError(_vm.fieldData.label)) +
10006
- "\n "
10007
- )
10008
- ])
10009
- : _vm._e(),
10010
- _vm._v(" "),
10011
- _vm.hasValidationError(_vm.fieldData.name)
10012
- ? _c("p", { staticClass: "dokan-error" }, [
10013
- _vm._v(
10014
- "\n " +
10015
- _vm._s(
10016
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10017
- ) +
10018
- "\n "
10019
- )
10020
- ])
10021
- : _vm._e(),
10022
- _vm._v(" "),
10023
- _c("p", {
10024
- staticClass: "description",
10025
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10026
- })
10027
- ])
10028
- ]
10029
- : _vm._e(),
10030
- _vm._v(" "),
10031
- "number" === _vm.fieldData.type
10032
- ? [
10033
- _c("th", { attrs: { scope: "row" } }, [
10034
- _c(
10035
- "label",
10036
- {
10037
- attrs: {
10038
- for: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10039
- }
10040
- },
10041
- [_vm._v(_vm._s(_vm.fieldData.label))]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10042
  )
10043
  ]),
10044
  _vm._v(" "),
10045
- _c("td", [
10046
- _c("input", {
10047
- directives: [
10048
- {
10049
- name: "model",
10050
- rawName: "v-model",
10051
- value: _vm.fieldValue[_vm.fieldData.name],
10052
- expression: "fieldValue[fieldData.name]"
10053
- }
10054
- ],
10055
- staticClass: "regular-text",
 
 
 
 
 
 
 
 
 
 
 
10056
  class: [
10057
- {
10058
- "dokan-input-validation-error": _vm.hasValidationError(
10059
- _vm.fieldData.name
10060
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10061
  },
10062
- _vm.fieldData.class
10063
- ],
10064
- attrs: {
10065
- type: "number",
10066
- min: _vm.fieldData.min,
10067
- max: _vm.fieldData.max,
10068
- step: _vm.fieldData.step,
10069
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10070
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10071
- },
10072
- domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10073
- on: {
10074
- input: function($event) {
10075
- if ($event.target.composing) {
10076
- return
10077
  }
10078
- _vm.$set(
10079
- _vm.fieldValue,
10080
- _vm.fieldData.name,
10081
- $event.target.value
10082
- )
10083
  }
10084
- }
10085
- }),
10086
- _vm._v(" "),
10087
- _vm.hasError(_vm.fieldData.name)
10088
- ? _c("p", { staticClass: "dokan-error" }, [
10089
- _vm._v(
10090
- "\n " +
10091
- _vm._s(_vm.getError(_vm.fieldData.label)) +
10092
- "\n "
10093
- )
10094
- ])
10095
- : _vm._e(),
10096
- _vm._v(" "),
10097
- _vm.hasValidationError(_vm.fieldData.name)
10098
- ? _c("p", { staticClass: "dokan-error" }, [
10099
- _vm._v(
10100
- "\n " +
10101
- _vm._s(
10102
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10103
- ) +
10104
- "\n "
10105
- )
10106
- ])
10107
- : _vm._e(),
10108
- _vm._v(" "),
10109
- _c("p", {
10110
- staticClass: "description",
10111
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10112
- })
10113
- ])
 
 
10114
  ]
10115
  : _vm._e(),
10116
  _vm._v(" "),
@@ -10130,73 +10292,87 @@ var render = function() {
10130
  )
10131
  ]),
10132
  _vm._v(" "),
10133
- _c("td", [
10134
- _c("input", {
10135
- directives: [
10136
- {
10137
- name: "model",
10138
- rawName: "v-model",
10139
- value: _vm.fieldValue[_vm.fieldData.name],
10140
- expression: "fieldValue[fieldData.name]"
10141
- }
10142
- ],
10143
- staticClass: "regular-text",
10144
- class: {
10145
- wc_input_decimal:
10146
- _vm.allSettingsValues.dokan_selling.commission_type ==
10147
- "percentage",
10148
- wc_input_price:
10149
- _vm.allSettingsValues.dokan_selling.commission_type ==
10150
- "flat"
10151
- },
10152
- attrs: {
10153
- type: "text",
10154
- min: _vm.fieldData.min,
10155
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10156
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10157
- },
10158
- domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10159
- on: {
10160
- input: function($event) {
10161
- if ($event.target.composing) {
10162
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10163
  }
10164
- _vm.$set(
10165
- _vm.fieldValue,
10166
- _vm.fieldData.name,
10167
- $event.target.value
10168
- )
10169
  }
10170
- }
10171
- }),
10172
- _vm._v(" "),
10173
- _vm.hasError(_vm.fieldData.name)
10174
- ? _c("p", { staticClass: "dokan-error" }, [
10175
- _vm._v(
10176
- "\n " +
10177
- _vm._s(_vm.getError(_vm.fieldData.label)) +
10178
- "\n "
10179
- )
10180
- ])
10181
- : _vm._e(),
10182
- _vm._v(" "),
10183
- _vm.hasValidationError(_vm.fieldData.name)
10184
- ? _c("p", { staticClass: "dokan-error" }, [
10185
- _vm._v(
10186
- "\n " +
10187
- _vm._s(
10188
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10189
- ) +
10190
- "\n "
10191
- )
10192
- ])
10193
- : _vm._e(),
10194
- _vm._v(" "),
10195
- _c("p", {
10196
- staticClass: "description",
10197
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10198
- })
10199
- ])
 
 
10200
  ]
10201
  : _vm._e(),
10202
  _vm._v(" "),
@@ -10217,6 +10393,8 @@ var render = function() {
10217
  )
10218
  ]),
10219
  _vm._v(" "),
 
 
10220
  _c("td", { staticClass: "percent_fee" }, [
10221
  _c("input", {
10222
  directives: [
@@ -10263,13 +10441,11 @@ var render = function() {
10263
  }
10264
  }
10265
  }),
10266
- _vm._v("\n " + _vm._s("%") + "\n ")
10267
  ]),
10268
  _vm._v(" "),
10269
  _c("td", { staticClass: "fixed_fee" }, [
10270
- _vm._v(
10271
- "\n " + _vm._s("+") + "\n "
10272
- ),
10273
  _c("input", {
10274
  directives: [
10275
  {
@@ -10320,34 +10496,34 @@ var render = function() {
10320
  _vm.hasError(_vm.fieldData.fields.fixed_fee.name)
10321
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10322
  _vm._v(
10323
- "\n " +
10324
  _vm._s(
10325
  _vm.__(
10326
  "Both percentage and fixed fee is required.",
10327
  "dokan-lite"
10328
  )
10329
  ) +
10330
- "\n "
10331
  )
10332
  ])
10333
  : _vm.hasError(_vm.fieldData.fields.percent_fee.name)
10334
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10335
  _vm._v(
10336
- "\n " +
10337
  _vm._s(
10338
  _vm.getError(_vm.fieldData.fields.percent_fee.label)
10339
  ) +
10340
- "\n "
10341
  )
10342
  ])
10343
  : _vm.hasError(_vm.fieldData.fields.fixed_fee.name)
10344
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10345
  _vm._v(
10346
- "\n " +
10347
  _vm._s(
10348
  _vm.getError(_vm.fieldData.fields.fixed_fee.label)
10349
  ) +
10350
- "\n "
10351
  )
10352
  ])
10353
  : _vm._e(),
@@ -10373,66 +10549,97 @@ var render = function() {
10373
  )
10374
  ]),
10375
  _vm._v(" "),
10376
- _c("td", [
10377
- _c("textarea", {
10378
- directives: [
10379
- {
10380
- name: "model",
10381
- rawName: "v-model",
10382
- value: _vm.fieldValue[_vm.fieldData.name],
10383
- expression: "fieldValue[fieldData.name]"
10384
- }
10385
- ],
10386
- staticClass: "regular-text",
10387
- attrs: {
10388
- type: "textarea",
10389
- rows: _vm.fieldData.rows,
10390
- cols: _vm.fieldData.cols,
10391
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10392
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10393
- },
10394
- domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10395
- on: {
10396
- input: function($event) {
10397
- if ($event.target.composing) {
10398
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10399
  }
10400
- _vm.$set(
10401
- _vm.fieldValue,
10402
- _vm.fieldData.name,
10403
- $event.target.value
10404
- )
10405
  }
10406
- }
10407
- }),
10408
- _vm._v(" "),
10409
- _vm.hasError(_vm.fieldData.name)
10410
- ? _c("p", { staticClass: "dokan-error" }, [
10411
- _vm._v(
10412
- "\n " +
10413
- _vm._s(_vm.getError(_vm.fieldData.label)) +
10414
- "\n "
10415
- )
10416
- ])
10417
- : _vm._e(),
10418
- _vm._v(" "),
10419
- _vm.hasValidationError(_vm.fieldData.name)
10420
- ? _c("p", { staticClass: "dokan-error" }, [
10421
- _vm._v(
10422
- "\n " +
10423
- _vm._s(
10424
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10425
- ) +
10426
- "\n "
10427
- )
10428
- ])
10429
- : _vm._e(),
10430
- _vm._v(" "),
10431
- _c("p", {
10432
- staticClass: "description",
10433
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10434
- })
10435
- ])
 
 
10436
  ]
10437
  : _vm._e(),
10438
  _vm._v(" "),
@@ -10450,100 +10657,135 @@ var render = function() {
10450
  )
10451
  ]),
10452
  _vm._v(" "),
10453
- _c("td", [
10454
- _c("fieldset", [
10455
- _c(
10456
- "label",
10457
- {
10458
- attrs: {
10459
- for: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10460
- }
10461
- },
10462
- [
10463
- _c("input", {
10464
  directives: [
10465
  {
10466
- name: "model",
10467
- rawName: "v-model",
10468
- value: _vm.fieldValue[_vm.fieldData.name],
10469
- expression: "fieldValue[fieldData.name]"
10470
  }
10471
  ],
10472
- staticClass: "checkbox",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10473
  attrs: {
10474
- type: "checkbox",
10475
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10476
- name:
10477
- _vm.sectionId + "[" + _vm.fieldData.name + "]",
10478
- "true-value": "on",
10479
- "false-value": "off"
10480
- },
10481
- domProps: {
10482
- checked: Array.isArray(
10483
- _vm.fieldValue[_vm.fieldData.name]
10484
- )
10485
- ? _vm._i(
10486
- _vm.fieldValue[_vm.fieldData.name],
10487
- null
10488
- ) > -1
10489
- : _vm._q(_vm.fieldValue[_vm.fieldData.name], "on")
10490
- },
10491
- on: {
10492
- change: function($event) {
10493
- var $$a = _vm.fieldValue[_vm.fieldData.name],
10494
- $$el = $event.target,
10495
- $$c = $$el.checked ? "on" : "off"
10496
- if (Array.isArray($$a)) {
10497
- var $$v = null,
10498
- $$i = _vm._i($$a, $$v)
10499
- if ($$el.checked) {
10500
- $$i < 0 &&
10501
- _vm.$set(
10502
- _vm.fieldValue,
10503
- _vm.fieldData.name,
10504
- $$a.concat([$$v])
10505
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10506
  } else {
10507
- $$i > -1 &&
10508
- _vm.$set(
10509
- _vm.fieldValue,
10510
- _vm.fieldData.name,
10511
- $$a
10512
- .slice(0, $$i)
10513
- .concat($$a.slice($$i + 1))
10514
- )
10515
  }
10516
- } else {
10517
- _vm.$set(
10518
- _vm.fieldValue,
10519
- _vm.fieldData.name,
10520
- $$c
10521
- )
10522
  }
10523
  }
10524
- }
10525
- }),
10526
- _vm._v(
10527
- "\n " +
10528
- _vm._s(_vm.fieldData.desc) +
10529
- "\n "
10530
- )
10531
- ]
10532
- )
10533
- ]),
10534
- _vm._v(" "),
10535
- _vm.hasValidationError(_vm.fieldData.name)
10536
- ? _c("p", { staticClass: "dokan-error" }, [
10537
- _vm._v(
10538
- "\n " +
10539
- _vm._s(
10540
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10541
- ) +
10542
- "\n "
10543
- )
10544
- ])
10545
- : _vm._e()
10546
- ])
 
 
10547
  ]
10548
  : _vm._e(),
10549
  _vm._v(" "),
@@ -10561,146 +10803,181 @@ var render = function() {
10561
  )
10562
  ]),
10563
  _vm._v(" "),
10564
- _c("td", [
10565
- _c(
10566
- "fieldset",
10567
- [
10568
- _vm._l(_vm.fieldData.options, function(
10569
- optionVal,
10570
- optionKey
10571
- ) {
10572
- return [
10573
- _c(
10574
- "label",
10575
  {
10576
- attrs: {
10577
- for:
10578
- _vm.sectionId +
10579
- "[" +
10580
- _vm.fieldData.name +
10581
- "][" +
10582
- optionKey +
10583
- "]"
10584
- }
10585
- },
10586
- [
10587
- _c("input", {
10588
- directives: [
10589
- {
10590
- name: "model",
10591
- rawName: "v-model",
10592
- value:
10593
- _vm.fieldValue[_vm.fieldData.name][
10594
- optionKey
10595
- ],
10596
- expression:
10597
- "fieldValue[fieldData.name][optionKey]"
10598
- }
10599
- ],
10600
- staticClass: "checkbox",
 
 
 
 
 
 
 
 
 
10601
  attrs: {
10602
- type: "checkbox",
10603
- id:
10604
- _vm.sectionId +
10605
- "[" +
10606
- _vm.fieldData.name +
10607
- "][" +
10608
- optionKey +
10609
- "]",
10610
- name:
10611
  _vm.sectionId +
10612
  "[" +
10613
  _vm.fieldData.name +
10614
  "][" +
10615
  optionKey +
10616
- "]",
10617
- "true-value": optionKey,
10618
- "false-value": ""
10619
- },
10620
- domProps: {
10621
- checked: Array.isArray(
10622
- _vm.fieldValue[_vm.fieldData.name][
10623
- optionKey
10624
- ]
10625
- )
10626
- ? _vm._i(
10627
- _vm.fieldValue[_vm.fieldData.name][
10628
- optionKey
10629
- ],
10630
- null
10631
- ) > -1
10632
- : _vm._q(
10633
  _vm.fieldValue[_vm.fieldData.name][
10634
  optionKey
10635
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10636
  optionKey
10637
- )
10638
- },
10639
- on: {
10640
- change: function($event) {
10641
- var $$a =
10642
- _vm.fieldValue[_vm.fieldData.name][
 
 
 
 
 
 
10643
  optionKey
10644
- ],
10645
- $$el = $event.target,
10646
- $$c = $$el.checked ? optionKey : ""
10647
- if (Array.isArray($$a)) {
10648
- var $$v = null,
10649
- $$i = _vm._i($$a, $$v)
10650
- if ($$el.checked) {
10651
- $$i < 0 &&
10652
- _vm.$set(
10653
- _vm.fieldValue[_vm.fieldData.name],
10654
- optionKey,
10655
- $$a.concat([$$v])
10656
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10657
  } else {
10658
- $$i > -1 &&
10659
- _vm.$set(
10660
- _vm.fieldValue[_vm.fieldData.name],
10661
- optionKey,
10662
- $$a
10663
- .slice(0, $$i)
10664
- .concat($$a.slice($$i + 1))
10665
- )
10666
  }
10667
- } else {
10668
- _vm.$set(
10669
- _vm.fieldValue[_vm.fieldData.name],
10670
- optionKey,
10671
- $$c
10672
- )
10673
  }
10674
  }
10675
- }
10676
- }),
10677
- _vm._v(
10678
- "\n " +
10679
- _vm._s(optionVal) +
10680
- "\n "
10681
- )
10682
- ]
10683
- ),
10684
- _vm._v(" "),
10685
- _c("br")
10686
- ]
10687
- })
10688
- ],
10689
- 2
10690
- ),
10691
- _vm._v(" "),
10692
- _vm.hasValidationError(_vm.fieldData.name)
10693
- ? _c("p", { staticClass: "dokan-error" }, [
10694
- _vm._v(
10695
- "\n " +
10696
- _vm._s(
10697
- _vm.getValidationErrorMessage(_vm.fieldData.name)
10698
- ) +
10699
- "\n "
10700
- )
10701
- ])
10702
- : _vm._e()
10703
- ])
 
 
10704
  ]
10705
  : _vm._e(),
10706
  _vm._v(" "),
@@ -10720,6 +10997,42 @@ var render = function() {
10720
  _vm._v(" "),
10721
  _c(
10722
  "td",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10723
  [
10724
  !_vm.fieldData.grouped
10725
  ? _c(
@@ -10866,7 +11179,7 @@ var render = function() {
10866
  _vm.hasValidationError(_vm.fieldData.name)
10867
  ? _c("p", { staticClass: "dokan-error" }, [
10868
  _vm._v(
10869
- "\n " +
10870
  _vm._s(
10871
  _vm.getValidationErrorMessage(
10872
  _vm.fieldData.name
@@ -10901,70 +11214,82 @@ var render = function() {
10901
  )
10902
  ]),
10903
  _vm._v(" "),
10904
- _c("td", [
10905
- _c("input", {
10906
- directives: [
10907
- {
10908
- name: "model",
10909
- rawName: "v-model",
10910
- value: _vm.fieldValue[_vm.fieldData.name],
10911
- expression: "fieldValue[fieldData.name]"
10912
- }
10913
- ],
10914
- staticClass: "regular-text wpsa-url",
10915
- attrs: {
10916
- type: "text",
10917
- id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10918
- name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10919
- },
10920
- domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10921
- on: {
10922
- input: function($event) {
10923
- if ($event.target.composing) {
10924
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10925
  }
10926
- _vm.$set(
10927
- _vm.fieldValue,
10928
- _vm.fieldData.name,
10929
- $event.target.value
10930
- )
10931
  }
10932
- }
10933
- }),
10934
- _vm._v(" "),
10935
- _c("input", {
10936
- staticClass: "button wpsa-browse",
10937
- attrs: { type: "button", value: "Choose File" },
10938
- on: {
10939
- click: function($event) {
10940
- $event.preventDefault()
10941
- return _vm.$emit(
10942
- "openMedia",
10943
- {
10944
- sectionId: _vm.sectionId,
10945
- name: _vm.fieldData.name
10946
- },
10947
- $event
10948
- )
10949
  }
10950
- }
10951
- }),
10952
- _vm._v(" "),
10953
- _vm.hasError(_vm.fieldData.name)
10954
- ? _c("p", { staticClass: "dokan-error" }, [
10955
- _vm._v(
10956
- "\n " +
10957
- _vm._s(_vm.getError(_vm.fieldData.label)) +
10958
- "\n "
10959
- )
10960
- ])
10961
- : _vm._e(),
10962
- _vm._v(" "),
10963
- _c("p", {
10964
- staticClass: "description",
10965
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10966
- })
10967
- ])
10968
  ]
10969
  : _vm._e(),
10970
  _vm._v(" "),
@@ -10982,8 +11307,17 @@ var render = function() {
10982
  )
10983
  ]),
10984
  _vm._v(" "),
 
 
10985
  _c(
10986
  "td",
 
 
 
 
 
 
 
10987
  [
10988
  _c("color-picker", {
10989
  model: {
@@ -11029,22 +11363,51 @@ var render = function() {
11029
  )
11030
  ]),
11031
  _vm._v(" "),
11032
- _c("td", [
11033
- _vm.hasError(_vm.fieldData.name)
11034
- ? _c("p", { staticClass: "dokan-error" }, [
11035
- _vm._v(
11036
- "\n " +
11037
- _vm._s(_vm.getError(_vm.fieldData.label)) +
11038
- "\n "
11039
- )
 
 
 
 
 
 
 
11040
  ])
11041
- : _vm._e(),
11042
- _vm._v(" "),
11043
- _c("p", {
11044
- staticClass: "description",
11045
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11046
- })
11047
- ])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11048
  ]
11049
  : _vm._e(),
11050
  _vm._v(" "),
@@ -11086,7 +11449,9 @@ var render = function() {
11086
  )
11087
  ])
11088
  ]
11089
- )
 
 
11090
  ]
11091
  : _vm._e(),
11092
  _vm._v(" "),
@@ -11104,85 +11469,98 @@ var render = function() {
11104
  )
11105
  ]),
11106
  _vm._v(" "),
11107
- _c("td", { staticClass: "dokan-settings-field-type-radio" }, [
11108
- _c(
11109
- "fieldset",
11110
- [
11111
- _vm._l(_vm.fieldData.options, function(
11112
- optionVal,
11113
- optionKey
11114
- ) {
11115
- return [
11116
- _c(
11117
- "label",
11118
- {
11119
- attrs: {
11120
- for:
11121
- _vm.sectionId +
11122
- "[" +
11123
- _vm.fieldData.name +
11124
- "][" +
11125
- optionKey +
11126
- "]"
11127
- }
11128
- },
11129
- [
11130
- _c("input", {
11131
- directives: [
11132
- {
11133
- name: "model",
11134
- rawName: "v-model",
11135
- value: _vm.fieldValue[_vm.fieldData.name],
11136
- expression: "fieldValue[fieldData.name]"
11137
- }
11138
- ],
11139
- staticClass: "radio",
11140
  attrs: {
11141
- type: "radio",
11142
- id:
11143
  _vm.sectionId +
11144
  "[" +
11145
  _vm.fieldData.name +
11146
  "][" +
11147
  optionKey +
11148
- "]",
11149
- name: optionKey
11150
- },
11151
- domProps: {
11152
- value: optionKey,
11153
- checked: _vm._q(
11154
- _vm.fieldValue[_vm.fieldData.name],
11155
- optionKey
11156
- )
11157
- },
11158
- on: {
11159
- change: function($event) {
11160
- return _vm.$set(
11161
- _vm.fieldValue,
11162
- _vm.fieldData.name,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11163
  optionKey
11164
  )
 
 
 
 
 
 
 
 
 
11165
  }
11166
- }
11167
- }),
11168
- _vm._v(
11169
- " " +
11170
- _vm._s(optionVal) +
11171
- "\n "
11172
- )
11173
- ]
11174
- )
11175
- ]
11176
- })
11177
- ],
11178
- 2
11179
- ),
11180
- _vm._v(" "),
11181
- _c("p", {
11182
- staticClass: "description",
11183
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11184
- })
11185
- ])
11186
  ]
11187
  : _vm._e(),
11188
  _vm._v(" "),
@@ -11200,9 +11578,35 @@ var render = function() {
11200
  )
11201
  ]),
11202
  _vm._v(" "),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11203
  _c(
11204
  "td",
11205
- { attrs: { width: "72%" } },
 
 
 
 
 
 
 
11206
  [
11207
  _c("text-editor", {
11208
  model: {
@@ -11238,96 +11642,128 @@ var render = function() {
11238
  )
11239
  ]),
11240
  _vm._v(" "),
11241
- _c("td", { attrs: { width: "72%" } }, [
11242
- _c(
11243
- "ul",
11244
- { staticClass: "dokan-settings-repeatable-list" },
11245
- _vm._l(_vm.fieldValue[_vm.fieldData.name], function(
11246
- optionVal,
11247
- optionKey
11248
- ) {
11249
- return _vm.fieldValue[_vm.fieldData.name]
11250
- ? _c("li", [
11251
- _vm._v(
11252
- "\n " +
11253
- _vm._s(optionVal.value) +
11254
- " "
11255
- ),
11256
- !optionVal.must_use
11257
- ? _c("span", {
11258
- staticClass:
11259
- "dashicons dashicons-no-alt remove-item",
11260
- on: {
11261
- click: function($event) {
11262
- $event.preventDefault()
11263
- return _vm.removeItem(
11264
- optionKey,
11265
- _vm.fieldData.name
11266
- )
11267
- }
11268
- }
11269
- })
11270
- : _vm._e(),
11271
- _vm._v(" "),
11272
- _c("span", {
11273
- staticClass: "repeatable-item-description",
11274
- domProps: { innerHTML: _vm._s(optionVal.desc) }
11275
- })
11276
- ])
11277
- : _vm._e()
11278
- }),
11279
- 0
11280
- ),
11281
- _vm._v(" "),
11282
- _c("input", {
11283
- directives: [
11284
- {
11285
- name: "model",
11286
- rawName: "v-model",
11287
- value: _vm.repeatableItem[_vm.fieldData.name],
11288
- expression: "repeatableItem[fieldData.name]"
11289
- }
11290
  ],
11291
- staticClass: "regular-text",
11292
- attrs: { type: "text" },
11293
- domProps: { value: _vm.repeatableItem[_vm.fieldData.name] },
11294
- on: {
11295
- input: function($event) {
11296
- if ($event.target.composing) {
11297
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11298
  }
11299
- _vm.$set(
11300
- _vm.repeatableItem,
11301
- _vm.fieldData.name,
11302
- $event.target.value
11303
- )
11304
- }
11305
- }
11306
- }),
11307
- _vm._v(" "),
11308
- _c(
11309
- "a",
11310
- {
11311
- staticClass: "button dokan-repetable-add-item-btn",
11312
- attrs: { href: "#" },
11313
  on: {
11314
- click: function($event) {
11315
- $event.preventDefault()
11316
- return _vm.addItem(
11317
- _vm.fieldData.type,
11318
- _vm.fieldData.name
 
 
 
11319
  )
11320
  }
11321
  }
11322
- },
11323
- [_vm._v("+")]
11324
- ),
11325
- _vm._v(" "),
11326
- _c("p", {
11327
- staticClass: "description",
11328
- domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11329
- })
11330
- ])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11331
  ]
11332
  : _vm._e(),
11333
  _vm._v(" "),
@@ -11345,105 +11781,120 @@ var render = function() {
11345
  )
11346
  ]),
11347
  _vm._v(" "),
11348
- _c("td", [
11349
- _c(
11350
- "div",
11351
- { staticClass: "radio-image-container" },
11352
- [
11353
- _vm._l(_vm.fieldData.options, function(image, name) {
11354
- return [
11355
- _c(
11356
- "label",
11357
- {
11358
- staticClass: "radio-image",
11359
- class: {
11360
- active:
11361
- _vm.fieldValue[_vm.fieldData.name] === name,
11362
- "not-active":
11363
- _vm.fieldValue[_vm.fieldData.name] !== name
11364
- }
11365
- },
11366
- [
11367
- _c("input", {
11368
- directives: [
11369
- {
11370
- name: "model",
11371
- rawName: "v-model",
11372
- value: _vm.fieldValue[_vm.fieldData.name],
11373
- expression: "fieldValue[fieldData.name]"
11374
- }
11375
- ],
11376
- staticClass: "radio",
11377
- attrs: {
11378
- type: "radio",
11379
- name: _vm.fieldData.name
11380
- },
11381
- domProps: {
11382
- value: name,
11383
- checked: _vm._q(
11384
- _vm.fieldValue[_vm.fieldData.name],
11385
- name
11386
- )
11387
- },
11388
- on: {
11389
- change: function($event) {
11390
- return _vm.$set(
11391
- _vm.fieldValue,
11392
- _vm.fieldData.name,
 
 
 
11393
  name
11394
  )
 
 
 
 
 
 
 
 
 
11395
  }
11396
- }
11397
- }),
11398
- _vm._v(" "),
11399
- _c(
11400
- "span",
11401
- { staticClass: "current-option-indicator" },
11402
- [
11403
- _c("span", {
11404
- staticClass: "dashicons dashicons-yes"
11405
- }),
11406
- _vm._v(
11407
- " " + _vm._s(_vm.__("Active", "dokan-lite"))
11408
- )
11409
- ]
11410
- ),
11411
- _vm._v(" "),
11412
- _c("img", { attrs: { src: image } }),
11413
- _vm._v(" "),
11414
- _c("span", { staticClass: "active-option" }, [
11415
  _c(
11416
- "button",
11417
- {
11418
- staticClass:
11419
- "button button-primary button-hero",
11420
- attrs: { type: "button" },
11421
- on: {
11422
- click: function($event) {
11423
- $event.preventDefault()
11424
- _vm.fieldValue[
11425
- _vm.fieldData.name
11426
- ] = name
11427
- }
11428
- }
11429
- },
11430
  [
 
 
 
11431
  _vm._v(
11432
- "\n " +
11433
- _vm._s(_vm.__("Select", "dokan-lite")) +
11434
- "\n "
11435
  )
11436
  ]
11437
- )
11438
- ])
11439
- ]
11440
- )
11441
- ]
11442
- })
11443
- ],
11444
- 2
11445
- )
11446
- ])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11447
  ]
11448
  : _vm._e(),
11449
  _vm._v(" "),
@@ -11461,8 +11912,17 @@ var render = function() {
11461
  )
11462
  ]),
11463
  _vm._v(" "),
 
 
11464
  _c(
11465
  "td",
 
 
 
 
 
 
 
11466
  [
11467
  _c("input", {
11468
  attrs: {
5766
 
5767
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_defineProperty___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5768
 
5769
+ //
5770
+ //
5771
+ //
5772
+ //
5773
+ //
5774
+ //
5775
+ //
5776
+ //
5777
+ //
5778
+ //
5779
+ //
5780
+ //
5781
+ //
5782
+ //
5783
+ //
5784
+ //
5785
+ //
5786
+ //
5787
+ //
5788
+ //
5789
+ //
5790
+ //
5791
+ //
5792
+ //
5793
+ //
5794
+ //
5795
+ //
5796
+ //
5797
+ //
5798
+ //
5799
+ //
5800
+ //
5801
+ //
5802
+ //
5803
+ //
5804
+ //
5805
+ //
5806
+ //
5807
+ //
5808
+ //
5809
+ //
5810
+ //
5811
+ //
5812
+ //
5813
+ //
5814
+ //
5815
+ //
5816
+ //
5817
+ //
5818
+ //
5819
+ //
5820
+ //
5821
+ //
5822
+ //
5823
+ //
5824
+ //
5825
+ //
5826
+ //
5827
+ //
5828
+ //
5829
+ //
5830
+ //
5831
+ //
5832
+ //
5833
+ //
5834
+ //
5835
+ //
5836
+ //
5837
+ //
5838
+ //
5839
+ //
5840
+ //
5841
+ //
5842
+ //
5843
+ //
5844
+ //
5845
+ //
5846
+ //
5847
+ //
5848
+ //
5849
+ //
5850
+ //
5851
+ //
5852
+ //
5853
+ //
5854
  //
5855
  //
5856
  //
9925
  attrs: { colspan: "2" }
9926
  },
9927
  [_c("label", [_vm._v(_vm._s(_vm.fieldData.label))])]
9928
+ ),
9929
+ _vm._v(" "),
9930
+ _c("td", { staticClass: "tooltips-data" })
9931
  ]
9932
  : _vm._e(),
9933
  _vm._v(" "),
9945
  )
9946
  ]),
9947
  _vm._v(" "),
9948
+ _c("td", { staticClass: "tooltips-data" }, [
9949
+ _vm.fieldData.tooltip
9950
+ ? _c("span", [
9951
+ _c("i", {
9952
+ directives: [
9953
+ {
9954
+ name: "tooltip",
9955
+ rawName: "v-tooltip",
9956
+ value: _vm.fieldData.tooltip,
9957
+ expression: "fieldData.tooltip"
9958
+ }
9959
+ ],
9960
+ staticClass: "dashicons dashicons-editor-help tips",
9961
+ attrs: { title: _vm.fieldData.tooltip }
9962
+ })
9963
+ ])
9964
+ : _vm._e()
9965
+ ]),
9966
+ _vm._v(" "),
9967
+ _c(
9968
+ "td",
9969
+ {
9970
+ class: [
9971
+ _vm.fieldData.content_class
9972
+ ? _vm.fieldData.content_class
9973
+ : ""
9974
+ ]
9975
+ },
9976
+ [
9977
+ (_vm.fieldData.type || "text") === "checkbox"
9978
+ ? _c("input", {
9979
+ directives: [
9980
+ {
9981
+ name: "model",
9982
+ rawName: "v-model",
9983
+ value: _vm.fieldValue[_vm.fieldData.name],
9984
+ expression: "fieldValue[fieldData.name]"
9985
+ }
9986
+ ],
9987
+ staticClass: "regular-text",
9988
+ class: [
9989
+ {
9990
+ "dokan-input-validation-error": _vm.hasValidationError(
9991
+ _vm.fieldData.name
9992
+ )
9993
+ },
9994
+ _vm.fieldData.class
9995
+ ],
9996
+ attrs: {
9997
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
9998
+ name:
9999
+ _vm.sectionId + "[" + _vm.fieldData.name + "]",
10000
+ type: "checkbox"
10001
+ },
10002
+ domProps: {
10003
+ checked: Array.isArray(
10004
+ _vm.fieldValue[_vm.fieldData.name]
10005
  )
10006
+ ? _vm._i(
10007
+ _vm.fieldValue[_vm.fieldData.name],
10008
+ null
10009
+ ) > -1
10010
+ : _vm.fieldValue[_vm.fieldData.name]
10011
  },
10012
+ on: {
10013
+ change: function($event) {
10014
+ var $$a = _vm.fieldValue[_vm.fieldData.name],
10015
+ $$el = $event.target,
10016
+ $$c = $$el.checked ? true : false
10017
+ if (Array.isArray($$a)) {
10018
+ var $$v = null,
10019
+ $$i = _vm._i($$a, $$v)
10020
+ if ($$el.checked) {
10021
+ $$i < 0 &&
10022
+ _vm.$set(
10023
+ _vm.fieldValue,
10024
+ _vm.fieldData.name,
10025
+ $$a.concat([$$v])
10026
+ )
10027
+ } else {
10028
+ $$i > -1 &&
10029
+ _vm.$set(
10030
+ _vm.fieldValue,
10031
+ _vm.fieldData.name,
10032
+ $$a
10033
+ .slice(0, $$i)
10034
+ .concat($$a.slice($$i + 1))
10035
+ )
10036
+ }
 
 
 
 
 
10037
  } else {
10038
+ _vm.$set(
10039
+ _vm.fieldValue,
10040
+ _vm.fieldData.name,
10041
+ $$c
10042
+ )
 
10043
  }
 
 
10044
  }
10045
  }
10046
+ })
10047
+ : (_vm.fieldData.type || "text") === "radio"
10048
+ ? _c("input", {
10049
+ directives: [
10050
+ {
10051
+ name: "model",
10052
+ rawName: "v-model",
10053
+ value: _vm.fieldValue[_vm.fieldData.name],
10054
+ expression: "fieldValue[fieldData.name]"
10055
+ }
10056
+ ],
10057
+ staticClass: "regular-text",
10058
+ class: [
10059
+ {
10060
+ "dokan-input-validation-error": _vm.hasValidationError(
10061
+ _vm.fieldData.name
10062
+ )
10063
+ },
10064
+ _vm.fieldData.class
10065
+ ],
10066
+ attrs: {
10067
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10068
+ name:
10069
+ _vm.sectionId + "[" + _vm.fieldData.name + "]",
10070
+ type: "radio"
10071
  },
10072
+ domProps: {
10073
+ checked: _vm._q(
10074
+ _vm.fieldValue[_vm.fieldData.name],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10075
  null
10076
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10077
  },
10078
+ on: {
10079
+ change: function($event) {
10080
+ return _vm.$set(
10081
+ _vm.fieldValue,
10082
+ _vm.fieldData.name,
10083
+ null
10084
+ )
 
 
 
 
 
10085
  }
 
 
 
 
 
10086
  }
10087
+ })
10088
+ : _c("input", {
10089
+ directives: [
10090
+ {
10091
+ name: "model",
10092
+ rawName: "v-model",
10093
+ value: _vm.fieldValue[_vm.fieldData.name],
10094
+ expression: "fieldValue[fieldData.name]"
10095
+ }
10096
+ ],
10097
+ staticClass: "regular-text",
10098
+ class: [
10099
+ {
10100
+ "dokan-input-validation-error": _vm.hasValidationError(
10101
+ _vm.fieldData.name
10102
+ )
10103
+ },
10104
+ _vm.fieldData.class
10105
+ ],
10106
+ attrs: {
10107
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10108
+ name:
10109
+ _vm.sectionId + "[" + _vm.fieldData.name + "]",
10110
+ type: _vm.fieldData.type || "text"
10111
+ },
10112
+ domProps: {
10113
+ value: _vm.fieldValue[_vm.fieldData.name]
10114
+ },
10115
+ on: {
10116
+ input: function($event) {
10117
+ if ($event.target.composing) {
10118
+ return
10119
+ }
10120
+ _vm.$set(
10121
+ _vm.fieldValue,
10122
+ _vm.fieldData.name,
10123
+ $event.target.value
10124
+ )
10125
+ }
10126
+ }
10127
+ }),
10128
+ _vm._v(" "),
10129
+ _vm.hasError(_vm.fieldData.name)
10130
+ ? _c("p", { staticClass: "dokan-error" }, [
10131
+ _vm._v(
10132
+ "\n " +
10133
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
10134
+ "\n "
10135
+ )
10136
+ ])
10137
+ : _vm._e(),
10138
+ _vm._v(" "),
10139
+ _vm.hasValidationError(_vm.fieldData.name)
10140
+ ? _c("p", { staticClass: "dokan-error" }, [
10141
+ _vm._v(
10142
+ "\n " +
10143
+ _vm._s(
10144
+ _vm.getValidationErrorMessage(
10145
+ _vm.fieldData.name
10146
+ )
10147
+ ) +
10148
+ "\n "
10149
+ )
10150
+ ])
10151
+ : _vm._e(),
10152
+ _vm._v(" "),
10153
+ _c("p", {
10154
+ staticClass: "description",
10155
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10156
+ })
10157
+ ]
10158
+ )
10159
+ ]
10160
+ : _vm._e(),
10161
+ _vm._v(" "),
10162
+ "number" === _vm.fieldData.type
10163
+ ? [
10164
+ _c("th", { attrs: { scope: "row" } }, [
10165
+ _c(
10166
+ "label",
10167
+ {
10168
+ attrs: {
10169
+ for: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10170
+ }
10171
+ },
10172
+ [_vm._v(_vm._s(_vm.fieldData.label))]
10173
  )
10174
  ]),
10175
  _vm._v(" "),
10176
+ _c("td", { staticClass: "tooltips-data" }, [
10177
+ _vm.fieldData.tooltip
10178
+ ? _c("span", [
10179
+ _c("i", {
10180
+ directives: [
10181
+ {
10182
+ name: "tooltip",
10183
+ rawName: "v-tooltip",
10184
+ value: _vm.fieldData.tooltip,
10185
+ expression: "fieldData.tooltip"
10186
+ }
10187
+ ],
10188
+ staticClass: "dashicons dashicons-editor-help tips",
10189
+ attrs: { title: _vm.fieldData.tooltip }
10190
+ })
10191
+ ])
10192
+ : _vm._e()
10193
+ ]),
10194
+ _vm._v(" "),
10195
+ _c(
10196
+ "td",
10197
+ {
10198
  class: [
10199
+ _vm.fieldData.content_class
10200
+ ? _vm.fieldData.content_class
10201
+ : ""
10202
+ ]
10203
+ },
10204
+ [
10205
+ _c("input", {
10206
+ directives: [
10207
+ {
10208
+ name: "model",
10209
+ rawName: "v-model",
10210
+ value: _vm.fieldValue[_vm.fieldData.name],
10211
+ expression: "fieldValue[fieldData.name]"
10212
+ }
10213
+ ],
10214
+ staticClass: "regular-text",
10215
+ class: [
10216
+ {
10217
+ "dokan-input-validation-error": _vm.hasValidationError(
10218
+ _vm.fieldData.name
10219
+ )
10220
+ },
10221
+ _vm.fieldData.class
10222
+ ],
10223
+ attrs: {
10224
+ type: "number",
10225
+ min: _vm.fieldData.min,
10226
+ max: _vm.fieldData.max,
10227
+ step: _vm.fieldData.step,
10228
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10229
+ name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10230
  },
10231
+ domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10232
+ on: {
10233
+ input: function($event) {
10234
+ if ($event.target.composing) {
10235
+ return
10236
+ }
10237
+ _vm.$set(
10238
+ _vm.fieldValue,
10239
+ _vm.fieldData.name,
10240
+ $event.target.value
10241
+ )
 
 
 
 
10242
  }
 
 
 
 
 
10243
  }
10244
+ }),
10245
+ _vm._v(" "),
10246
+ _vm.hasError(_vm.fieldData.name)
10247
+ ? _c("p", { staticClass: "dokan-error" }, [
10248
+ _vm._v(
10249
+ "\n " +
10250
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
10251
+ "\n "
10252
+ )
10253
+ ])
10254
+ : _vm._e(),
10255
+ _vm._v(" "),
10256
+ _vm.hasValidationError(_vm.fieldData.name)
10257
+ ? _c("p", { staticClass: "dokan-error" }, [
10258
+ _vm._v(
10259
+ "\n " +
10260
+ _vm._s(
10261
+ _vm.getValidationErrorMessage(
10262
+ _vm.fieldData.name
10263
+ )
10264
+ ) +
10265
+ "\n "
10266
+ )
10267
+ ])
10268
+ : _vm._e(),
10269
+ _vm._v(" "),
10270
+ _c("p", {
10271
+ staticClass: "description",
10272
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10273
+ })
10274
+ ]
10275
+ )
10276
  ]
10277
  : _vm._e(),
10278
  _vm._v(" "),
10292
  )
10293
  ]),
10294
  _vm._v(" "),
10295
+ _c("td", { staticClass: "tooltips-data" }),
10296
+ _vm._v(" "),
10297
+ _c(
10298
+ "td",
10299
+ {
10300
+ class: [
10301
+ _vm.fieldData.content_class
10302
+ ? _vm.fieldData.content_class
10303
+ : ""
10304
+ ]
10305
+ },
10306
+ [
10307
+ _c("input", {
10308
+ directives: [
10309
+ {
10310
+ name: "model",
10311
+ rawName: "v-model",
10312
+ value: _vm.fieldValue[_vm.fieldData.name],
10313
+ expression: "fieldValue[fieldData.name]"
10314
+ }
10315
+ ],
10316
+ staticClass: "regular-text",
10317
+ class: {
10318
+ wc_input_decimal:
10319
+ _vm.allSettingsValues.dokan_selling.commission_type ==
10320
+ "percentage",
10321
+ wc_input_price:
10322
+ _vm.allSettingsValues.dokan_selling.commission_type ==
10323
+ "flat"
10324
+ },
10325
+ attrs: {
10326
+ type: "text",
10327
+ min: _vm.fieldData.min,
10328
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10329
+ name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10330
+ },
10331
+ domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10332
+ on: {
10333
+ input: function($event) {
10334
+ if ($event.target.composing) {
10335
+ return
10336
+ }
10337
+ _vm.$set(
10338
+ _vm.fieldValue,
10339
+ _vm.fieldData.name,
10340
+ $event.target.value
10341
+ )
10342
  }
 
 
 
 
 
10343
  }
10344
+ }),
10345
+ _vm._v(" "),
10346
+ _vm.hasError(_vm.fieldData.name)
10347
+ ? _c("p", { staticClass: "dokan-error" }, [
10348
+ _vm._v(
10349
+ "\n " +
10350
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
10351
+ "\n "
10352
+ )
10353
+ ])
10354
+ : _vm._e(),
10355
+ _vm._v(" "),
10356
+ _vm.hasValidationError(_vm.fieldData.name)
10357
+ ? _c("p", { staticClass: "dokan-error" }, [
10358
+ _vm._v(
10359
+ "\n " +
10360
+ _vm._s(
10361
+ _vm.getValidationErrorMessage(
10362
+ _vm.fieldData.name
10363
+ )
10364
+ ) +
10365
+ "\n "
10366
+ )
10367
+ ])
10368
+ : _vm._e(),
10369
+ _vm._v(" "),
10370
+ _c("p", {
10371
+ staticClass: "description",
10372
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10373
+ })
10374
+ ]
10375
+ )
10376
  ]
10377
  : _vm._e(),
10378
  _vm._v(" "),
10393
  )
10394
  ]),
10395
  _vm._v(" "),
10396
+ _c("td", { staticClass: "tooltips-data combine-tips-style" }),
10397
+ _vm._v(" "),
10398
  _c("td", { staticClass: "percent_fee" }, [
10399
  _c("input", {
10400
  directives: [
10441
  }
10442
  }
10443
  }),
10444
+ _vm._v("\n " + _vm._s("%") + "\n ")
10445
  ]),
10446
  _vm._v(" "),
10447
  _c("td", { staticClass: "fixed_fee" }, [
10448
+ _vm._v("\n " + _vm._s("+") + "\n "),
 
 
10449
  _c("input", {
10450
  directives: [
10451
  {
10496
  _vm.hasError(_vm.fieldData.fields.fixed_fee.name)
10497
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10498
  _vm._v(
10499
+ "\n " +
10500
  _vm._s(
10501
  _vm.__(
10502
  "Both percentage and fixed fee is required.",
10503
  "dokan-lite"
10504
  )
10505
  ) +
10506
+ "\n "
10507
  )
10508
  ])
10509
  : _vm.hasError(_vm.fieldData.fields.percent_fee.name)
10510
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10511
  _vm._v(
10512
+ "\n " +
10513
  _vm._s(
10514
  _vm.getError(_vm.fieldData.fields.percent_fee.label)
10515
  ) +
10516
+ "\n "
10517
  )
10518
  ])
10519
  : _vm.hasError(_vm.fieldData.fields.fixed_fee.name)
10520
  ? _c("p", { staticClass: "dokan-error combine-commission" }, [
10521
  _vm._v(
10522
+ "\n " +
10523
  _vm._s(
10524
  _vm.getError(_vm.fieldData.fields.fixed_fee.label)
10525
  ) +
10526
+ "\n "
10527
  )
10528
  ])
10529
  : _vm._e(),
10549
  )
10550
  ]),
10551
  _vm._v(" "),
10552
+ _c("td", { staticClass: "tooltips-data" }, [
10553
+ _vm.fieldData.tooltip
10554
+ ? _c("span", [
10555
+ _c("i", {
10556
+ directives: [
10557
+ {
10558
+ name: "tooltip",
10559
+ rawName: "v-tooltip",
10560
+ value: _vm.fieldData.tooltip,
10561
+ expression: "fieldData.tooltip"
10562
+ }
10563
+ ],
10564
+ staticClass: "dashicons dashicons-editor-help tips",
10565
+ attrs: { title: _vm.fieldData.tooltip }
10566
+ })
10567
+ ])
10568
+ : _vm._e()
10569
+ ]),
10570
+ _vm._v(" "),
10571
+ _c(
10572
+ "td",
10573
+ {
10574
+ class: [
10575
+ _vm.fieldData.content_class
10576
+ ? _vm.fieldData.content_class
10577
+ : ""
10578
+ ]
10579
+ },
10580
+ [
10581
+ _c("textarea", {
10582
+ directives: [
10583
+ {
10584
+ name: "model",
10585
+ rawName: "v-model",
10586
+ value: _vm.fieldValue[_vm.fieldData.name],
10587
+ expression: "fieldValue[fieldData.name]"
10588
+ }
10589
+ ],
10590
+ staticClass: "regular-text",
10591
+ attrs: {
10592
+ type: "textarea",
10593
+ rows: _vm.fieldData.rows,
10594
+ cols: _vm.fieldData.cols,
10595
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
10596
+ name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10597
+ },
10598
+ domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
10599
+ on: {
10600
+ input: function($event) {
10601
+ if ($event.target.composing) {
10602
+ return
10603
+ }
10604
+ _vm.$set(
10605
+ _vm.fieldValue,
10606
+ _vm.fieldData.name,
10607
+ $event.target.value
10608
+ )
10609
  }
 
 
 
 
 
10610
  }
10611
+ }),
10612
+ _vm._v(" "),
10613
+ _vm.hasError(_vm.fieldData.name)
10614
+ ? _c("p", { staticClass: "dokan-error" }, [
10615
+ _vm._v(
10616
+ "\n " +
10617
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
10618
+ "\n "
10619
+ )
10620
+ ])
10621
+ : _vm._e(),
10622
+ _vm._v(" "),
10623
+ _vm.hasValidationError(_vm.fieldData.name)
10624
+ ? _c("p", { staticClass: "dokan-error" }, [
10625
+ _vm._v(
10626
+ "\n " +
10627
+ _vm._s(
10628
+ _vm.getValidationErrorMessage(
10629
+ _vm.fieldData.name
10630
+ )
10631
+ ) +
10632
+ "\n "
10633
+ )
10634
+ ])
10635
+ : _vm._e(),
10636
+ _vm._v(" "),
10637
+ _c("p", {
10638
+ staticClass: "description",
10639
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
10640
+ })
10641
+ ]
10642
+ )
10643
  ]
10644
  : _vm._e(),
10645
  _vm._v(" "),
10657
  )
10658
  ]),
10659
  _vm._v(" "),
10660
+ _c("td", { staticClass: "tooltips-data" }, [
10661
+ _vm.fieldData.tooltip
10662
+ ? _c("span", [
10663
+ _c("i", {
 
 
 
 
 
 
 
10664
  directives: [
10665
  {
10666
+ name: "tooltip",
10667
+ rawName: "v-tooltip",
10668
+ value: _vm.fieldData.tooltip,
10669
+ expression: "fieldData.tooltip"
10670
  }
10671
  ],
10672
+ staticClass: "dashicons dashicons-editor-help tips",
10673
+ attrs: { title: _vm.fieldData.tooltip }
10674
+ })
10675
+ ])
10676
+ : _vm._e()
10677
+ ]),
10678
+ _vm._v(" "),
10679
+ _c(
10680
+ "td",
10681
+ {
10682
+ class: [
10683
+ _vm.fieldData.content_class
10684
+ ? _vm.fieldData.content_class
10685
+ : ""
10686
+ ]
10687
+ },
10688
+ [
10689
+ _c("fieldset", [
10690
+ _c(
10691
+ "label",
10692
+ {
10693
  attrs: {
10694
+ for: _vm.sectionId + "[" + _vm.fieldData.name + "]"
10695
+ }
10696
+ },
10697
+ [
10698
+ _c("input", {
10699
+ directives: [
10700
+ {
10701
+ name: "model",
10702
+ rawName: "v-model",
10703
+ value: _vm.fieldValue[_vm.fieldData.name],
10704
+ expression: "fieldValue[fieldData.name]"
10705
+ }
10706
+ ],
10707
+ staticClass: "checkbox",
10708
+ attrs: {
10709
+ type: "checkbox",
10710
+ id:
10711
+ _vm.sectionId + "[" + _vm.fieldData.name + "]",
10712
+ name:
10713
+ _vm.sectionId + "[" + _vm.fieldData.name + "]",
10714
+ "true-value": "on",
10715
+ "false-value": "off"
10716
+ },
10717
+ domProps: {
10718
+ checked: Array.isArray(
10719
+ _vm.fieldValue[_vm.fieldData.name]
10720
+ )
10721
+ ? _vm._i(
10722
+ _vm.fieldValue[_vm.fieldData.name],
10723
+ null
10724
+ ) > -1
10725
+ : _vm._q(
10726
+ _vm.fieldValue[_vm.fieldData.name],
10727
+ "on"
10728
+ )
10729
+ },
10730
+ on: {
10731
+ change: function($event) {
10732
+ var $$a = _vm.fieldValue[_vm.fieldData.name],
10733
+ $$el = $event.target,
10734
+ $$c = $$el.checked ? "on" : "off"
10735
+ if (Array.isArray($$a)) {
10736
+ var $$v = null,
10737
+ $$i = _vm._i($$a, $$v)
10738
+ if ($$el.checked) {
10739
+ $$i < 0 &&
10740
+ _vm.$set(
10741
+ _vm.fieldValue,
10742
+ _vm.fieldData.name,
10743
+ $$a.concat([$$v])
10744
+ )
10745
+ } else {
10746
+ $$i > -1 &&
10747
+ _vm.$set(
10748
+ _vm.fieldValue,
10749
+ _vm.fieldData.name,
10750
+ $$a
10751
+ .slice(0, $$i)
10752
+ .concat($$a.slice($$i + 1))
10753
+ )
10754
+ }
10755
  } else {
10756
+ _vm.$set(
10757
+ _vm.fieldValue,
10758
+ _vm.fieldData.name,
10759
+ $$c
10760
+ )
 
 
 
10761
  }
 
 
 
 
 
 
10762
  }
10763
  }
10764
+ }),
10765
+ _vm._v(
10766
+ "\n " +
10767
+ _vm._s(_vm.fieldData.desc) +
10768
+ "\n "
10769
+ )
10770
+ ]
10771
+ )
10772
+ ]),
10773
+ _vm._v(" "),
10774
+ _vm.hasValidationError(_vm.fieldData.name)
10775
+ ? _c("p", { staticClass: "dokan-error" }, [
10776
+ _vm._v(
10777
+ "\n " +
10778
+ _vm._s(
10779
+ _vm.getValidationErrorMessage(
10780
+ _vm.fieldData.name
10781
+ )
10782
+ ) +
10783
+ "\n "
10784
+ )
10785
+ ])
10786
+ : _vm._e()
10787
+ ]
10788
+ )
10789
  ]
10790
  : _vm._e(),
10791
  _vm._v(" "),
10803
  )
10804
  ]),
10805
  _vm._v(" "),
10806
+ _c("td", { staticClass: "tooltips-data" }, [
10807
+ _vm.fieldData.tooltip
10808
+ ? _c("span", [
10809
+ _c("i", {
10810
+ directives: [
 
 
 
 
 
 
10811
  {
10812
+ name: "tooltip",
10813
+ rawName: "v-tooltip",
10814
+ value: _vm.fieldData.tooltip,
10815
+ expression: "fieldData.tooltip"
10816
+ }
10817
+ ],
10818
+ staticClass: "dashicons dashicons-editor-help tips",
10819
+ attrs: { title: _vm.fieldData.tooltip }
10820
+ })
10821
+ ])
10822
+ : _vm._e()
10823
+ ]),
10824
+ _vm._v(" "),
10825
+ _c(
10826
+ "td",
10827
+ {
10828
+ class: [
10829
+ _vm.fieldData.content_class
10830
+ ? _vm.fieldData.content_class
10831
+ : ""
10832
+ ]
10833
+ },
10834
+ [
10835
+ _c(
10836
+ "fieldset",
10837
+ [
10838
+ _vm._l(_vm.fieldData.options, function(
10839
+ optionVal,
10840
+ optionKey
10841
+ ) {
10842
+ return [
10843
+ _c(
10844
+ "label",
10845
+ {
10846
  attrs: {
10847
+ for:
 
 
 
 
 
 
 
 
10848
  _vm.sectionId +
10849
  "[" +
10850
  _vm.fieldData.name +
10851
  "][" +
10852
  optionKey +
10853
+ "]"
10854
+ }
10855
+ },
10856
+ [
10857
+ _c("input", {
10858
+ directives: [
10859
+ {
10860
+ name: "model",
10861
+ rawName: "v-model",
10862
+ value:
 
 
 
 
 
 
 
10863
  _vm.fieldValue[_vm.fieldData.name][
10864
  optionKey
10865
  ],
10866
+ expression:
10867
+ "fieldValue[fieldData.name][optionKey]"
10868
+ }
10869
+ ],
10870
+ staticClass: "checkbox",
10871
+ attrs: {
10872
+ type: "checkbox",
10873
+ id:
10874
+ _vm.sectionId +
10875
+ "[" +
10876
+ _vm.fieldData.name +
10877
+ "][" +
10878
+ optionKey +
10879
+ "]",
10880
+ name:
10881
+ _vm.sectionId +
10882
+ "[" +
10883
+ _vm.fieldData.name +
10884
+ "][" +
10885
+ optionKey +
10886
+ "]",
10887
+ "true-value": optionKey,
10888
+ "false-value": ""
10889
+ },
10890
+ domProps: {
10891
+ checked: Array.isArray(
10892
+ _vm.fieldValue[_vm.fieldData.name][
10893
  optionKey
10894
+ ]
10895
+ )
10896
+ ? _vm._i(
10897
+ _vm.fieldValue[_vm.fieldData.name][
10898
+ optionKey
10899
+ ],
10900
+ null
10901
+ ) > -1
10902
+ : _vm._q(
10903
+ _vm.fieldValue[_vm.fieldData.name][
10904
+ optionKey
10905
+ ],
10906
  optionKey
10907
+ )
10908
+ },
10909
+ on: {
10910
+ change: function($event) {
10911
+ var $$a =
10912
+ _vm.fieldValue[_vm.fieldData.name][
10913
+ optionKey
10914
+ ],
10915
+ $$el = $event.target,
10916
+ $$c = $$el.checked ? optionKey : ""
10917
+ if (Array.isArray($$a)) {
10918
+ var $$v = null,
10919
+ $$i = _vm._i($$a, $$v)
10920
+ if ($$el.checked) {
10921
+ $$i < 0 &&
10922
+ _vm.$set(
10923
+ _vm.fieldValue[
10924
+ _vm.fieldData.name
10925
+ ],
10926
+ optionKey,
10927
+ $$a.concat([$$v])
10928
+ )
10929
+ } else {
10930
+ $$i > -1 &&
10931
+ _vm.$set(
10932
+ _vm.fieldValue[
10933
+ _vm.fieldData.name
10934
+ ],
10935
+ optionKey,
10936
+ $$a
10937
+ .slice(0, $$i)
10938
+ .concat($$a.slice($$i + 1))
10939
+ )
10940
+ }
10941
  } else {
10942
+ _vm.$set(
10943
+ _vm.fieldValue[_vm.fieldData.name],
10944
+ optionKey,
10945
+ $$c
10946
+ )
 
 
 
10947
  }
 
 
 
 
 
 
10948
  }
10949
  }
10950
+ }),
10951
+ _vm._v(
10952
+ "\n " +
10953
+ _vm._s(optionVal) +
10954
+ "\n "
10955
+ )
10956
+ ]
10957
+ ),
10958
+ _vm._v(" "),
10959
+ _c("br")
10960
+ ]
10961
+ })
10962
+ ],
10963
+ 2
10964
+ ),
10965
+ _vm._v(" "),
10966
+ _vm.hasValidationError(_vm.fieldData.name)
10967
+ ? _c("p", { staticClass: "dokan-error" }, [
10968
+ _vm._v(
10969
+ "\n " +
10970
+ _vm._s(
10971
+ _vm.getValidationErrorMessage(
10972
+ _vm.fieldData.name
10973
+ )
10974
+ ) +
10975
+ "\n "
10976
+ )
10977
+ ])
10978
+ : _vm._e()
10979
+ ]
10980
+ )
10981
  ]
10982
  : _vm._e(),
10983
  _vm._v(" "),
10997
  _vm._v(" "),
10998
  _c(
10999
  "td",
11000
+ {
11001
+ class: [
11002
+ "combine" === _vm.fieldData.type
11003
+ ? "tooltips-data combine-tips-style"
11004
+ : "tooltips-data"
11005
+ ]
11006
+ },
11007
+ [
11008
+ _vm.fieldData.tooltip
11009
+ ? _c("span", [
11010
+ _c("i", {
11011
+ directives: [
11012
+ {
11013
+ name: "tooltip",
11014
+ rawName: "v-tooltip",
11015
+ value: _vm.fieldData.tooltip,
11016
+ expression: "fieldData.tooltip"
11017
+ }
11018
+ ],
11019
+ staticClass: "dashicons dashicons-editor-help tips",
11020
+ attrs: { title: _vm.fieldData.tooltip }
11021
+ })
11022
+ ])
11023
+ : _vm._e()
11024
+ ]
11025
+ ),
11026
+ _vm._v(" "),
11027
+ _c(
11028
+ "td",
11029
+ {
11030
+ class: [
11031
+ _vm.fieldData.content_class
11032
+ ? _vm.fieldData.content_class
11033
+ : ""
11034
+ ]
11035
+ },
11036
  [
11037
  !_vm.fieldData.grouped
11038
  ? _c(
11179
  _vm.hasValidationError(_vm.fieldData.name)
11180
  ? _c("p", { staticClass: "dokan-error" }, [
11181
  _vm._v(
11182
+ "\n " +
11183
  _vm._s(
11184
  _vm.getValidationErrorMessage(
11185
  _vm.fieldData.name
11214
  )
11215
  ]),
11216
  _vm._v(" "),
11217
+ _c("td", { staticClass: "tooltips-data" }),
11218
+ _vm._v(" "),
11219
+ _c(
11220
+ "td",
11221
+ {
11222
+ class: [
11223
+ _vm.fieldData.content_class
11224
+ ? _vm.fieldData.content_class
11225
+ : ""
11226
+ ]
11227
+ },
11228
+ [
11229
+ _c("input", {
11230
+ directives: [
11231
+ {
11232
+ name: "model",
11233
+ rawName: "v-model",
11234
+ value: _vm.fieldValue[_vm.fieldData.name],
11235
+ expression: "fieldValue[fieldData.name]"
11236
+ }
11237
+ ],
11238
+ staticClass: "regular-text wpsa-url",
11239
+ attrs: {
11240
+ type: "text",
11241
+ id: _vm.sectionId + "[" + _vm.fieldData.name + "]",
11242
+ name: _vm.sectionId + "[" + _vm.fieldData.name + "]"
11243
+ },
11244
+ domProps: { value: _vm.fieldValue[_vm.fieldData.name] },
11245
+ on: {
11246
+ input: function($event) {
11247
+ if ($event.target.composing) {
11248
+ return
11249
+ }
11250
+ _vm.$set(
11251
+ _vm.fieldValue,
11252
+ _vm.fieldData.name,
11253
+ $event.target.value
11254
+ )
11255
  }
 
 
 
 
 
11256
  }
11257
+ }),
11258
+ _vm._v(" "),
11259
+ _c("input", {
11260
+ staticClass: "button wpsa-browse",
11261
+ attrs: { type: "button", value: "Choose File" },
11262
+ on: {
11263
+ click: function($event) {
11264
+ $event.preventDefault()
11265
+ return _vm.$emit(
11266
+ "openMedia",
11267
+ {
11268
+ sectionId: _vm.sectionId,
11269
+ name: _vm.fieldData.name
11270
+ },
11271
+ $event
11272
+ )
11273
+ }
11274
  }
11275
+ }),
11276
+ _vm._v(" "),
11277
+ _vm.hasError(_vm.fieldData.name)
11278
+ ? _c("p", { staticClass: "dokan-error" }, [
11279
+ _vm._v(
11280
+ "\n " +
11281
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
11282
+ "\n "
11283
+ )
11284
+ ])
11285
+ : _vm._e(),
11286
+ _vm._v(" "),
11287
+ _c("p", {
11288
+ staticClass: "description",
11289
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11290
+ })
11291
+ ]
11292
+ )
11293
  ]
11294
  : _vm._e(),
11295
  _vm._v(" "),
11307
  )
11308
  ]),
11309
  _vm._v(" "),
11310
+ _c("td", { staticClass: "tooltips-data" }),
11311
+ _vm._v(" "),
11312
  _c(
11313
  "td",
11314
+ {
11315
+ class: [
11316
+ _vm.fieldData.content_class
11317
+ ? _vm.fieldData.content_class
11318
+ : ""
11319
+ ]
11320
+ },
11321
  [
11322
  _c("color-picker", {
11323
  model: {
11363
  )
11364
  ]),
11365
  _vm._v(" "),
11366
+ _c("td", { staticClass: "tooltips-data" }, [
11367
+ _vm.fieldData.tooltip
11368
+ ? _c("span", [
11369
+ _c("i", {
11370
+ directives: [
11371
+ {
11372
+ name: "tooltip",
11373
+ rawName: "v-tooltip",
11374
+ value: _vm.fieldData.tooltip,
11375
+ expression: "fieldData.tooltip"
11376
+ }
11377
+ ],
11378
+ staticClass: "dashicons dashicons-editor-help tips",
11379
+ attrs: { title: _vm.fieldData.tooltip }
11380
+ })
11381
  ])
11382
+ : _vm._e()
11383
+ ]),
11384
+ _vm._v(" "),
11385
+ _c(
11386
+ "td",
11387
+ {
11388
+ class: [
11389
+ _vm.fieldData.content_class
11390
+ ? _vm.fieldData.content_class
11391
+ : ""
11392
+ ]
11393
+ },
11394
+ [
11395
+ _vm.hasError(_vm.fieldData.name)
11396
+ ? _c("p", { staticClass: "dokan-error" }, [
11397
+ _vm._v(
11398
+ "\n " +
11399
+ _vm._s(_vm.getError(_vm.fieldData.label)) +
11400
+ "\n "
11401
+ )
11402
+ ])
11403
+ : _vm._e(),
11404
+ _vm._v(" "),
11405
+ _c("p", {
11406
+ staticClass: "description",
11407
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11408
+ })
11409
+ ]
11410
+ )
11411
  ]
11412
  : _vm._e(),
11413
  _vm._v(" "),
11449
  )
11450
  ])
11451
  ]
11452
+ ),
11453
+ _vm._v(" "),
11454
+ _c("td", { staticClass: "tooltips-data" })
11455
  ]
11456
  : _vm._e(),
11457
  _vm._v(" "),
11469
  )
11470
  ]),
11471
  _vm._v(" "),
11472
+ _c("td", { staticClass: "tooltips-data" }),
11473
+ _vm._v(" "),
11474
+ _c(
11475
+ "td",
11476
+ {
11477
+ class: [
11478
+ _vm.fieldData.content_class
11479
+ ? _vm.fieldData.content_class
11480
+ : "",
11481
+ "dokan-settings-field-type-radio"
11482
+ ]
11483
+ },
11484
+ [
11485
+ _c(
11486
+ "fieldset",
11487
+ [
11488
+ _vm._l(_vm.fieldData.options, function(
11489
+ optionVal,
11490
+ optionKey
11491
+ ) {
11492
+ return [
11493
+ _c(
11494
+ "label",
11495
+ {
 
 
 
 
 
 
 
 
 
11496
  attrs: {
11497
+ for:
 
11498
  _vm.sectionId +
11499
  "[" +
11500
  _vm.fieldData.name +
11501
  "][" +
11502
  optionKey +
11503
+ "]"
11504
+ }
11505
+ },
11506
+ [
11507
+ _c("input", {
11508
+ directives: [
11509
+ {
11510
+ name: "model",
11511
+ rawName: "v-model",
11512
+ value: _vm.fieldValue[_vm.fieldData.name],
11513
+ expression: "fieldValue[fieldData.name]"
11514
+ }
11515
+ ],
11516
+ staticClass: "radio",
11517
+ attrs: {
11518
+ type: "radio",
11519
+ id:
11520
+ _vm.sectionId +
11521
+ "[" +
11522
+ _vm.fieldData.name +
11523
+ "][" +
11524
+ optionKey +
11525
+ "]",
11526
+ name: optionKey
11527
+ },
11528
+ domProps: {
11529
+ value: optionKey,
11530
+ checked: _vm._q(
11531
+ _vm.fieldValue[_vm.fieldData.name],
11532
  optionKey
11533
  )
11534
+ },
11535
+ on: {
11536
+ change: function($event) {
11537
+ return _vm.$set(
11538
+ _vm.fieldValue,
11539
+ _vm.fieldData.name,
11540
+ optionKey
11541
+ )
11542
+ }
11543
  }
11544
+ }),
11545
+ _vm._v(
11546
+ " " +
11547
+ _vm._s(optionVal) +
11548
+ "\n "
11549
+ )
11550
+ ]
11551
+ )
11552
+ ]
11553
+ })
11554
+ ],
11555
+ 2
11556
+ ),
11557
+ _vm._v(" "),
11558
+ _c("p", {
11559
+ staticClass: "description",
11560
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11561
+ })
11562
+ ]
11563
+ )
11564
  ]
11565
  : _vm._e(),
11566
  _vm._v(" "),
11578
  )
11579
  ]),
11580
  _vm._v(" "),
11581
+ _c("td", { staticClass: "tooltips-data" }, [
11582
+ _vm.fieldData.tooltip
11583
+ ? _c("span", [
11584
+ _c("i", {
11585
+ directives: [
11586
+ {
11587
+ name: "tooltip",
11588
+ rawName: "v-tooltip",
11589
+ value: _vm.fieldData.tooltip,
11590
+ expression: "fieldData.tooltip"
11591
+ }
11592
+ ],
11593
+ staticClass: "dashicons dashicons-editor-help tips",
11594
+ attrs: { title: _vm.fieldData.tooltip }
11595
+ })
11596
+ ])
11597
+ : _vm._e()
11598
+ ]),
11599
+ _vm._v(" "),
11600
  _c(
11601
  "td",
11602
+ {
11603
+ class: [
11604
+ _vm.fieldData.content_class
11605
+ ? _vm.fieldData.content_class
11606
+ : ""
11607
+ ],
11608
+ attrs: { width: "72%" }
11609
+ },
11610
  [
11611
  _c("text-editor", {
11612
  model: {
11642
  )
11643
  ]),
11644
  _vm._v(" "),
11645
+ _c("td", { staticClass: "tooltips-data" }, [
11646
+ _vm.fieldData.tooltip
11647
+ ? _c("span", [
11648
+ _c("i", {
11649
+ directives: [
11650
+ {
11651
+ name: "tooltip",
11652
+ rawName: "v-tooltip",
11653
+ value: _vm.fieldData.tooltip,
11654
+ expression: "fieldData.tooltip"
11655
+ }
11656
+ ],
11657
+ staticClass: "dashicons dashicons-editor-help tips",
11658
+ attrs: { title: _vm.fieldData.tooltip }
11659
+ })
11660
+ ])
11661
+ : _vm._e()
11662
+ ]),
11663
+ _vm._v(" "),
11664
+ _c(
11665
+ "td",
11666
+ {
11667
+ class: [
11668
+ _vm.fieldData.content_class
11669
+ ? _vm.fieldData.content_class
11670
+ : ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11671
  ],
11672
+ attrs: { width: "72%" }
11673
+ },
11674
+ [
11675
+ _c(
11676
+ "ul",
11677
+ { staticClass: "dokan-settings-repeatable-list" },
11678
+ _vm._l(_vm.fieldValue[_vm.fieldData.name], function(
11679
+ optionVal,
11680
+ optionKey
11681
+ ) {
11682
+ return _vm.fieldValue[_vm.fieldData.name]
11683
+ ? _c("li", [
11684
+ _vm._v(
11685
+ "\n " +
11686
+ _vm._s(optionVal.value) +
11687
+ " "
11688
+ ),
11689
+ !optionVal.must_use
11690
+ ? _c("span", {
11691
+ staticClass:
11692
+ "dashicons dashicons-no-alt remove-item",
11693
+ on: {
11694
+ click: function($event) {
11695
+ $event.preventDefault()
11696
+ return _vm.removeItem(
11697
+ optionKey,
11698
+ _vm.fieldData.name
11699
+ )
11700
+ }
11701
+ }
11702
+ })
11703
+ : _vm._e(),
11704
+ _vm._v(" "),
11705
+ _c("span", {
11706
+ staticClass: "repeatable-item-description",
11707
+ domProps: { innerHTML: _vm._s(optionVal.desc) }
11708
+ })
11709
+ ])
11710
+ : _vm._e()
11711
+ }),
11712
+ 0
11713
+ ),
11714
+ _vm._v(" "),
11715
+ _c("input", {
11716
+ directives: [
11717
+ {
11718
+ name: "model",
11719
+ rawName: "v-model",
11720
+ value: _vm.repeatableItem[_vm.fieldData.name],
11721
+ expression: "repeatableItem[fieldData.name]"
11722
  }
11723
+ ],
11724
+ staticClass: "regular-text",
11725
+ attrs: { type: "text" },
11726
+ domProps: {
11727
+ value: _vm.repeatableItem[_vm.fieldData.name]
11728
+ },
 
 
 
 
 
 
 
 
11729
  on: {
11730
+ input: function($event) {
11731
+ if ($event.target.composing) {
11732
+ return
11733
+ }
11734
+ _vm.$set(
11735
+ _vm.repeatableItem,
11736
+ _vm.fieldData.name,
11737
+ $event.target.value
11738
  )
11739
  }
11740
  }
11741
+ }),
11742
+ _vm._v(" "),
11743
+ _c(
11744
+ "a",
11745
+ {
11746
+ staticClass: "button dokan-repetable-add-item-btn",
11747
+ attrs: { href: "#" },
11748
+ on: {
11749
+ click: function($event) {
11750
+ $event.preventDefault()
11751
+ return _vm.addItem(
11752
+ _vm.fieldData.type,
11753
+ _vm.fieldData.name
11754
+ )
11755
+ }
11756
+ }
11757
+ },
11758
+ [_vm._v("+")]
11759
+ ),
11760
+ _vm._v(" "),
11761
+ _c("p", {
11762
+ staticClass: "description",
11763
+ domProps: { innerHTML: _vm._s(_vm.fieldData.desc) }
11764
+ })
11765
+ ]
11766
+ )
11767
  ]
11768
  : _vm._e(),
11769
  _vm._v(" "),
11781
  )
11782
  ]),
11783
  _vm._v(" "),
11784
+ _c("td", { staticClass: "tooltips-data" }),
11785
+ _vm._v(" "),
11786
+ _c(
11787
+ "td",
11788
+ {
11789
+ class: [
11790
+ _vm.fieldData.content_class
11791
+ ? _vm.fieldData.content_class
11792
+ : ""
11793
+ ]
11794
+ },
11795
+ [
11796
+ _c(
11797
+ "div",
11798
+ { staticClass: "radio-image-container" },
11799
+ [
11800
+ _vm._l(_vm.fieldData.options, function(image, name) {
11801
+ return [
11802
+ _c(
11803
+ "label",
11804
+ {
11805
+ staticClass: "radio-image",
11806
+ class: {
11807
+ active:
11808
+ _vm.fieldValue[_vm.fieldData.name] === name,
11809
+ "not-active":
11810
+ _vm.fieldValue[_vm.fieldData.name] !== name
11811
+ }
11812
+ },
11813
+ [
11814
+ _c("input", {
11815
+ directives: [
11816
+ {
11817
+ name: "model",
11818
+ rawName: "v-model",
11819
+ value: _vm.fieldValue[_vm.fieldData.name],
11820
+ expression: "fieldValue[fieldData.name]"
11821
+ }
11822
+ ],
11823
+ staticClass: "radio",
11824
+ attrs: {
11825
+ type: "radio",
11826
+ name: _vm.fieldData.name
11827
+ },
11828
+ domProps: {
11829
+ value: name,
11830
+ checked: _vm._q(
11831
+ _vm.fieldValue[_vm.fieldData.name],
11832
  name
11833
  )
11834
+ },
11835
+ on: {
11836
+ change: function($event) {
11837
+ return _vm.$set(
11838
+ _vm.fieldValue,
11839
+ _vm.fieldData.name,
11840
+ name
11841
+ )
11842
+ }
11843
  }
11844
+ }),
11845
+ _vm._v(" "),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11846
  _c(
11847
+ "span",
11848
+ { staticClass: "current-option-indicator" },
 
 
 
 
 
 
 
 
 
 
 
 
11849
  [
11850
+ _c("span", {
11851
+ staticClass: "dashicons dashicons-yes"
11852
+ }),
11853
  _vm._v(
11854
+ " " +
11855
+ _vm._s(_vm.__("Active", "dokan-lite"))
 
11856
  )
11857
  ]
11858
+ ),
11859
+ _vm._v(" "),
11860
+ _c("img", { attrs: { src: image } }),
11861
+ _vm._v(" "),
11862
+ _c("span", { staticClass: "active-option" }, [
11863
+ _c(
11864
+ "button",
11865
+ {
11866
+ staticClass:
11867
+ "button button-primary button-hero",
11868
+ attrs: { type: "button" },
11869
+ on: {
11870
+ click: function($event) {
11871
+ $event.preventDefault()
11872
+ _vm.fieldValue[
11873
+ _vm.fieldData.name
11874
+ ] = name
11875
+ }
11876
+ }
11877
+ },
11878
+ [
11879
+ _vm._v(
11880
+ "\n " +
11881
+ _vm._s(
11882
+ _vm.__("Select", "dokan-lite")
11883
+ ) +
11884
+ "\n "
11885
+ )
11886
+ ]
11887
+ )
11888
+ ])
11889
+ ]
11890
+ )
11891
+ ]
11892
+ })
11893
+ ],
11894
+ 2
11895
+ )
11896
+ ]
11897
+ )
11898
  ]
11899
  : _vm._e(),
11900
  _vm._v(" "),
11912
  )
11913
  ]),
11914
  _vm._v(" "),
11915
+ _c("td", { staticClass: "tooltips-data" }),
11916
+ _vm._v(" "),
11917
  _c(
11918
  "td",
11919
+ {
11920
+ class: [
11921
+ _vm.fieldData.content_class
11922
+ ? _vm.fieldData.content_class
11923
+ : ""
11924
+ ]
11925
+ },
11926
  [
11927
  _c("input", {
11928
  attrs: {
assets/js/vue-admin.min.js CHANGED
@@ -1 +1 @@
1
- dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(11),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(17);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(118),i=!1;var o=function(e){i||a(117)},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){e.exports=jQuery},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(19),o=a(20);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(12),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(13),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,a){"use strict";var s=a(9),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(10),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 picture 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(14),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(15),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(22),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(8),n=a.n(s),i=a(7),o=dokan_get_lib("ListTable"),r=dokan_get_lib("Modal"),l=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:o,Modal:r,Currency:l,UpgradeBanner:i.a},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,filter:{user_id: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.filter.user_id=0,this.clearSelection("#filter-vendors"),this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()},"$route.query.user_id":function(){this.fetchRequests()},"filter.user_id":function(e){0===e&&this.clearSelection("#filter-vendors"),this.goTo(this.query)}},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()},mounted:function(){var e=this;n()("#filter-vendors").selectWoo({ajax:{url:"".concat(dokan.rest.root,"dokan/v1/stores"),dataType:"json",headers:{"X-WP-Nonce":dokan.rest.nonce},data:function(e){return{search:e.term}},processResults:function(e){return{results:e.map(function(e){return{id:e.id,text:e.store_name}})}}}}),n()("#filter-vendors").on("select2:select",function(t){e.filter.user_id=t.params.data.id})},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;var t="/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus;parseInt(this.filter.user_id)>0&&(t+="&user_id="+this.filter.user_id),dokan.api.get(t).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,user_id:this.filter.user_id}})},goTo:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,user_id:this.filter.user_id}})},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}})},clearSelection:function(e){n()(e).val(null).trigger("change")}}}},function(e,t,a){"use strict";var s=a(49),n=a(127),i=(a.n(n),a(130));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(126),i=!1;var o=function(e){i||a(125)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/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(137),n=a(167),i=a(7),o=a(8),r=a.n(o),l=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:l,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},handleDataClearCheckboxEvent:function(){var e=this;r()(".data_clear_on_uninstall").on("change","#dokan_general\\[data_clear_on_uninstall\\]",function(t){r()(this).is(":checked")&&e.$swal({title:e.__("Are you sure?","dokan-lite"),type:"warning",html:e.__("All data and tables related to Dokan and Dokan Pro will be deleted permanently after deleting the Dokan plugin. You will not be able to recover your lost data unless you keep a backup. Do you want to continue?","dokan-lite"),showCancelButton:!0,confirmButtonText:e.__("Okay","dokan-lite"),cancelButtonText:e.__("Cancel","dokan-lite")}).then(function(t){t.dismiss&&(e.settingValues.dokan_general.data_clear_on_uninstall="off")})})}},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},updated:function(){this.handleDataClearCheckboxEvent()}}},function(e,t,a){"use strict";var s=a(139),n=a.n(s),i=a(140),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(173),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(182);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(107),n=a(110),i=a(186);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(109),i=!1;var o=function(e){i||a(108)},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(111),n=a.n(s),i=a(112),o=a(120),r=a(123),l=a(132),d=a(135),c=a(171),u=a(177),p=a(180),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(119),i=!1;var o=function(e){i||a(113)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/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(122),i=!1;var o=function(e){i||a(121)},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",{class:{current:"pending"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[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",{class:{current:"approved"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"approved"}}}},[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",{class:{current:"cancelled"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"cancelled"}}}},[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:"vendor",fn:function(t){var s=t.row;return[a("router-link",{attrs:{to:"/vendors/"+s.vendor.id}},[e._v("\n "+e._s(s.vendor.name?s.vendor.name:e.__("(no name)","dokan-lite"))+"\n ")])]}},{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.details))}})]}},{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"})])])]]}}])},[e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),a("template",{slot:"filters"},[a("select",{staticStyle:{width:"190px"},attrs:{id:"filter-vendors","data-placeholder":e.__("Filter by vendor","dokan-lite")}}),e._v(" "),e.filter.user_id?a("button",{staticClass:"button",attrs:{type:"button"},on:{click:function(t){e.filter.user_id=0}}},[e._v("×")]):e._e()])],2)],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(131),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/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(134),i=!1;var o=function(e){i||a(133)},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(170),i=!1;var o=function(e){i||a(136)},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(166),i=!1;var o=function(e){i||a(138)},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(169),i=!1;var o=function(e){i||a(168)},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(176),i=!1;var o=function(e){i||a(172)},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(175),i=!1;var o=function(e){i||a(174)},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(179),i=!1;var o=function(e){i||a(178)},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(185),i=!1;var o=function(e){i||a(181)},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(184),i=!1;var o=function(e){i||a(183)},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")})}}],[106]);
1
+ dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(11),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(17);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(118),i=!1;var o=function(e){i||a(117)},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){e.exports=jQuery},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(19),o=a(20);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(12),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(13),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,a){"use strict";var s=a(9),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(10),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 picture 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(14),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(15),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(22),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(8),n=a.n(s),i=a(7),o=dokan_get_lib("ListTable"),r=dokan_get_lib("Modal"),l=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:o,Modal:r,Currency:l,UpgradeBanner:i.a},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,filter:{user_id: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.filter.user_id=0,this.clearSelection("#filter-vendors"),this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()},"$route.query.user_id":function(){this.fetchRequests()},"filter.user_id":function(e){0===e&&this.clearSelection("#filter-vendors"),this.goTo(this.query)}},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()},mounted:function(){var e=this;n()("#filter-vendors").selectWoo({ajax:{url:"".concat(dokan.rest.root,"dokan/v1/stores"),dataType:"json",headers:{"X-WP-Nonce":dokan.rest.nonce},data:function(e){return{search:e.term}},processResults:function(e){return{results:e.map(function(e){return{id:e.id,text:e.store_name}})}}}}),n()("#filter-vendors").on("select2:select",function(t){e.filter.user_id=t.params.data.id})},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;var t="/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus;parseInt(this.filter.user_id)>0&&(t+="&user_id="+this.filter.user_id),dokan.api.get(t).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,user_id:this.filter.user_id}})},goTo:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,user_id:this.filter.user_id}})},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}})},clearSelection:function(e){n()(e).val(null).trigger("change")}}}},function(e,t,a){"use strict";var s=a(49),n=a(127),i=(a.n(n),a(130));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(126),i=!1;var o=function(e){i||a(125)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/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(137),n=a(167),i=a(7),o=a(8),r=a.n(o),l=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:l,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},handleDataClearCheckboxEvent:function(){var e=this;r()(".data_clear_on_uninstall").on("change","#dokan_general\\[data_clear_on_uninstall\\]",function(t){r()(this).is(":checked")&&e.$swal({title:e.__("Are you sure?","dokan-lite"),type:"warning",html:e.__("All data and tables related to Dokan and Dokan Pro will be deleted permanently after deleting the Dokan plugin. You will not be able to recover your lost data unless you keep a backup. Do you want to continue?","dokan-lite"),showCancelButton:!0,confirmButtonText:e.__("Okay","dokan-lite"),cancelButtonText:e.__("Cancel","dokan-lite")}).then(function(t){t.dismiss&&(e.settingValues.dokan_general.data_clear_on_uninstall="off")})})}},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},updated:function(){this.handleDataClearCheckboxEvent()}}},function(e,t,a){"use strict";var s=a(139),n=a.n(s),i=a(140),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(173),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(182);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(107),n=a(110),i=a(186);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(109),i=!1;var o=function(e){i||a(108)},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(111),n=a.n(s),i=a(112),o=a(120),r=a(123),l=a(132),d=a(135),c=a(171),u=a(177),p=a(180),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(119),i=!1;var o=function(e){i||a(113)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/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(122),i=!1;var o=function(e){i||a(121)},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",{class:{current:"pending"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[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",{class:{current:"approved"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"approved"}}}},[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",{class:{current:"cancelled"===e.currentStatus},attrs:{to:{name:"Withdraw",query:{status:"cancelled"}}}},[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:"vendor",fn:function(t){var s=t.row;return[a("router-link",{attrs:{to:"/vendors/"+s.vendor.id}},[e._v("\n "+e._s(s.vendor.name?s.vendor.name:e.__("(no name)","dokan-lite"))+"\n ")])]}},{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.details))}})]}},{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"})])])]]}}])},[e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),a("template",{slot:"filters"},[a("select",{staticStyle:{width:"190px"},attrs:{id:"filter-vendors","data-placeholder":e.__("Filter by vendor","dokan-lite")}}),e._v(" "),e.filter.user_id?a("button",{staticClass:"button",attrs:{type:"button"},on:{click:function(t){e.filter.user_id=0}}},[e._v("×")]):e._e()])],2)],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(131),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/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(134),i=!1;var o=function(e){i||a(133)},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(170),i=!1;var o=function(e){i||a(136)},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(166),i=!1;var o=function(e){i||a(138)},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._v(" "),a("td",{staticClass:"tooltips-data"})]: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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},["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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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:"tooltips-data combine-tips-style"}),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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{class:["combine"===e.fieldData.type?"tooltips-data combine-tips-style":"tooltips-data"]},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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._v(" "),a("td",{staticClass:"tooltips-data"})]: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:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:"","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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""],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",{staticClass:"tooltips-data"},[e.fieldData.tooltip?a("span",[a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fieldData.tooltip,expression:"fieldData.tooltip"}],staticClass:"dashicons dashicons-editor-help tips",attrs:{title:e.fieldData.tooltip}})]):e._e()]),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""],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",{staticClass:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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",{staticClass:"tooltips-data"}),e._v(" "),a("td",{class:[e.fieldData.content_class?e.fieldData.content_class:""]},[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(169),i=!1;var o=function(e){i||a(168)},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(176),i=!1;var o=function(e){i||a(172)},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(175),i=!1;var o=function(e){i||a(174)},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(179),i=!1;var o=function(e){i||a(178)},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(185),i=!1;var o=function(e){i||a(181)},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(184),i=!1;var o=function(e){i||a(183)},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")})}}],[106]);
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.3.1
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.3.1';
60
 
61
  /**
62
  * Instance of self
@@ -340,8 +340,10 @@ final class WeDevs_Dokan {
340
  new \WeDevs\Dokan\Withdraw\Hooks();
341
  new \WeDevs\Dokan\Order\Hooks();
342
  new \WeDevs\Dokan\Product\Hooks();
 
343
  new \WeDevs\Dokan\Upgrade\Hooks();
344
  new \WeDevs\Dokan\Vendor\UserSwitch();
 
345
 
346
  if ( is_admin() ) {
347
  new \WeDevs\Dokan\Admin\Hooks();
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.3.2
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
56
  *
57
  * @var string
58
  */
59
+ public $version = '3.3.2';
60
 
61
  /**
62
  * Instance of self
340
  new \WeDevs\Dokan\Withdraw\Hooks();
341
  new \WeDevs\Dokan\Order\Hooks();
342
  new \WeDevs\Dokan\Product\Hooks();
343
+ new \WeDevs\Dokan\Vendor\Hooks();
344
  new \WeDevs\Dokan\Upgrade\Hooks();
345
  new \WeDevs\Dokan\Vendor\UserSwitch();
346
+ new \WeDevs\Dokan\CacheInvalidate();
347
 
348
  if ( is_admin() ) {
349
  new \WeDevs\Dokan\Admin\Hooks();
includes/Abstracts/DokanCache.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Abstracts;
4
+
5
+ use WeDevs\Dokan\Traits\ObjectCache;
6
+ use WeDevs\Dokan\Traits\TransientCache;
7
+
8
+ /**
9
+ * Dokan Cache class.
10
+ *
11
+ * Manage all of the caches of your WordPress plugin and handles it beautifully.
12
+ *
13
+ * @since 3.3.2
14
+ *
15
+ * @package WeDevs\Dokan\Abstracts\Cache
16
+ */
17
+ abstract class DokanCache {
18
+
19
+ use ObjectCache, TransientCache;
20
+
21
+ /**
22
+ * Get Cache Group Prefix.
23
+ *
24
+ * @since 3.3.2
25
+ *
26
+ * @return string
27
+ */
28
+ abstract protected static function get_cache_group_prefix();
29
+
30
+ /**
31
+ * Get Cache Key Prefix.
32
+ *
33
+ * @since 3.3.2
34
+ *
35
+ * @return string
36
+ */
37
+ abstract protected static function get_cache_prefix();
38
+
39
+ /**
40
+ * Add Cache Group Prefix to group.
41
+ *
42
+ * @since 3.3.2
43
+ *
44
+ * @param string $group
45
+ *
46
+ * @return string
47
+ */
48
+ private static function get_cache_group_with_prefix( $group ) {
49
+ // Add prefix to group.
50
+ return empty( $group ) ? '' : static::get_cache_group_prefix() . '_' . sanitize_key( $group );
51
+ }
52
+
53
+ /**
54
+ * Get Microtime value as prefix.
55
+ *
56
+ * This will Replace microtime() value's dot => '.' and space => ' '
57
+ * characters with underscore => '_' character
58
+ *
59
+ * @since 3.3.2
60
+ *
61
+ * @return string
62
+ */
63
+ private static function get_time_prefix() {
64
+ return str_replace( [ '.', ' ' ], '_', microtime() );
65
+ }
66
+ }
includes/Admin/Settings.php CHANGED
@@ -8,12 +8,12 @@ use WeDevs\Dokan\Exceptions\DokanException;
8
  use WeDevs\Dokan\Traits\AjaxResponseError;
9
 
10
  /**
11
- * Admin Settings Class
12
- *
13
- * @package dokan
14
- *
15
- * @since 3.0.0
16
- */
17
  class Settings {
18
 
19
  use AjaxResponseError;
@@ -356,6 +356,7 @@ class Settings {
356
  'desc' => __( 'Disable welcome wizard for newly registered vendors', 'dokan-lite' ),
357
  'type' => 'checkbox',
358
  'default' => 'off',
 
359
  ],
360
  ]
361
  );
@@ -373,6 +374,7 @@ class Settings {
373
  'desc' => __( 'Enable Terms and Conditions for vendor stores', 'dokan-lite' ),
374
  'type' => 'checkbox',
375
  'default' => 'off',
 
376
  ],
377
  'store_products_per_page' => [
378
  'name' => 'store_products_per_page',
@@ -380,6 +382,7 @@ class Settings {
380
  'desc' => __( 'Set how many products to display per page on the vendor store page. It will affect only if the vendor isn\'t set this value on their vendor setting page.', 'dokan-lite' ),
381
  'type' => 'number',
382
  'default' => '12',
 
383
  ],
384
  ]
385
  );
@@ -398,6 +401,7 @@ class Settings {
398
  'type' => 'select',
399
  'options' => $commission_types,
400
  'default' => 'percentage',
 
401
  ],
402
  'admin_percentage' => [
403
  'name' => 'admin_percentage',
@@ -448,6 +452,7 @@ class Settings {
448
  'desc' => __( 'Allow newly registered vendors to add products', 'dokan-lite' ),
449
  'type' => 'checkbox',
450
  'default' => 'on',
 
451
  ],
452
  'disable_product_popup' => [
453
  'name' => 'disable_product_popup',
@@ -455,6 +460,7 @@ class Settings {
455
  'desc' => __( 'Disable add new product in popup view', 'dokan-lite' ),
456
  'type' => 'checkbox',
457
  'default' => 'off',
 
458
  ],
459
  'order_status_change' => [
460
  'name' => 'order_status_change',
@@ -462,6 +468,7 @@ class Settings {
462
  'desc' => __( 'Allow vendor to update order status', 'dokan-lite' ),
463
  'type' => 'checkbox',
464
  'default' => 'on',
 
465
  ],
466
  ]
467
  );
@@ -483,6 +490,7 @@ class Settings {
483
  'type' => 'multicheck',
484
  'default' => [ 'paypal' => 'paypal' ],
485
  'options' => dokan_withdraw_get_methods(),
 
486
  ],
487
  'withdraw_limit' => [
488
  'name' => 'withdraw_limit',
@@ -503,6 +511,7 @@ class Settings {
503
  'wc-completed' => 'wc-completed',
504
  ),
505
  'options' => $withdraw_order_status_options,
 
506
  ],
507
  'exclude_cod_payment' => [
508
  'name' => 'exclude_cod_payment',
@@ -545,6 +554,7 @@ class Settings {
545
  'options' => $pages_array,
546
  /* translators: %s: dokan pages */
547
  'desc' => sprintf( __( 'Select where you want to add Dokan pages <a target="_blank" href="%s"> Learn More </a>', 'dokan-lite' ), 'https://wedevs.com/docs/dokan/settings/page-settings-2/' ),
 
548
  ],
549
  ],
550
  'dokan_appearance' => [
@@ -569,25 +579,17 @@ class Settings {
569
  ],
570
  'gmap_api_key' => [
571
  'name' => 'gmap_api_key',
572
- 'show_if' => [
573
- 'map_api_source' => [
574
- 'equal' => 'google_maps',
575
- ],
576
- ],
577
  'label' => __( 'Google Map API Key', 'dokan-lite' ),
578
  'desc' => __( '<a href="https://developers.google.com/maps/documentation/javascript/" target="_blank" rel="noopener noreferrer">API Key</a> is needed to display map on store page', 'dokan-lite' ),
579
  'type' => 'text',
 
580
  ],
581
  'mapbox_access_token' => [
582
  'name' => 'mapbox_access_token',
583
- 'show_if' => [
584
- 'map_api_source' => [
585
- 'equal' => 'mapbox',
586
- ],
587
- ],
588
  'label' => __( 'Mapbox Access Token', 'dokan-lite' ),
589
  'desc' => __( '<a href="https://docs.mapbox.com/help/how-mapbox-works/access-tokens/" target="_blank" rel="noopener noreferrer">Access Token</a> is needed to display map on store page', 'dokan-lite' ),
590
  'type' => 'text',
 
591
  ],
592
  'contact_seller' => [
593
  'name' => 'contact_seller',
@@ -607,6 +609,7 @@ class Settings {
607
  'layout3' => DOKAN_PLUGIN_ASSEST . '/images/store-header-templates/layout3.png',
608
  ],
609
  'default' => 'default',
 
610
  ],
611
  'store_open_close' => [
612
  'name' => 'store_open_close',
@@ -660,6 +663,7 @@ class Settings {
660
  'type' => 'textarea',
661
  'rows' => 5,
662
  'default' => __( 'Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our [dokan_privacy_policy]', 'dokan-lite' ),
 
663
  ],
664
  ],
665
  ];
@@ -806,6 +810,7 @@ class Settings {
806
  'desc' => __( 'Delete all data and tables related to Dokan and Dokan Pro plugin while deleting the Dokan plugin.', 'dokan-lite' ),
807
  'type' => 'checkbox',
808
  'default' => 'off',
 
809
  ];
810
 
811
  return $settings_fields;
8
  use WeDevs\Dokan\Traits\AjaxResponseError;
9
 
10
  /**
11
+ * Admin Settings Class
12
+ *
13
+ * @package dokan
14
+ *
15
+ * @since 3.0.0
16
+ */
17
  class Settings {
18
 
19
  use AjaxResponseError;
356
  'desc' => __( 'Disable welcome wizard for newly registered vendors', 'dokan-lite' ),
357
  'type' => 'checkbox',
358
  'default' => 'off',
359
+ 'tooltip' => __( 'If checked, vendors will not be prompted through a guided setup process but redirected straight to the vendor dashboard.', 'dokan-lite' ),
360
  ],
361
  ]
362
  );
374
  'desc' => __( 'Enable Terms and Conditions for vendor stores', 'dokan-lite' ),
375
  'type' => 'checkbox',
376
  'default' => 'off',
377
+ 'tooltip' => __( 'Prompt Terms and Condition check for Vendors when creating store on your site', 'dokan-lite' ),
378
  ],
379
  'store_products_per_page' => [
380
  'name' => 'store_products_per_page',
382
  'desc' => __( 'Set how many products to display per page on the vendor store page. It will affect only if the vendor isn\'t set this value on their vendor setting page.', 'dokan-lite' ),
383
  'type' => 'number',
384
  'default' => '12',
385
+ 'tooltip' => __( 'It will affect the vendor only if they havent set a value on their settings page.', 'dokan-lite' ),
386
  ],
387
  ]
388
  );
401
  'type' => 'select',
402
  'options' => $commission_types,
403
  'default' => 'percentage',
404
+ 'tooltip' => __( 'Select a commission type', 'dokan-lite' ),
405
  ],
406
  'admin_percentage' => [
407
  'name' => 'admin_percentage',
452
  'desc' => __( 'Allow newly registered vendors to add products', 'dokan-lite' ),
453
  'type' => 'checkbox',
454
  'default' => 'on',
455
+ 'tooltip' => __( 'If checked, vendors will have permission to sell immediately after registration. If unchecked, newly registered vendors cannot add products until selling capability is activated manually from Dashboard -> Vendors.', 'dokan-lite' ),
456
  ],
457
  'disable_product_popup' => [
458
  'name' => 'disable_product_popup',
460
  'desc' => __( 'Disable add new product in popup view', 'dokan-lite' ),
461
  'type' => 'checkbox',
462
  'default' => 'off',
463
+ 'tooltip' => __( 'If disabled, instead of a pop up window vendor will redirect to product page when adding new product.', 'dokan-lite' ),
464
  ],
465
  'order_status_change' => [
466
  'name' => 'order_status_change',
468
  'desc' => __( 'Allow vendor to update order status', 'dokan-lite' ),
469
  'type' => 'checkbox',
470
  'default' => 'on',
471
+ 'tooltip' => __( 'Checking this will enable sellers to change the order status. If unchecked, only admin can change the order status.', 'dokan-lite' ),
472
  ],
473
  ]
474
  );
490
  'type' => 'multicheck',
491
  'default' => [ 'paypal' => 'paypal' ],
492
  'options' => dokan_withdraw_get_methods(),
493
+ 'tooltip' => __( 'Check to add available payment methods for vendors to withdraw money.', 'dokan-lite' ),
494
  ],
495
  'withdraw_limit' => [
496
  'name' => 'withdraw_limit',
511
  'wc-completed' => 'wc-completed',
512
  ),
513
  'options' => $withdraw_order_status_options,
514
+ 'tooltip' => __( 'Select the order status that will allow vendors to make withdraw request. We prefer you select "completed", "processing".', 'dokan-lite' ),
515
  ],
516
  'exclude_cod_payment' => [
517
  'name' => 'exclude_cod_payment',
554
  'options' => $pages_array,
555
  /* translators: %s: dokan pages */
556
  'desc' => sprintf( __( 'Select where you want to add Dokan pages <a target="_blank" href="%s"> Learn More </a>', 'dokan-lite' ), 'https://wedevs.com/docs/dokan/settings/page-settings-2/' ),
557
+ 'tooltip' => __( 'Select a page to display the Terms and Conditions of your store for Vendors.', 'dokan-lite' ),
558
  ],
559
  ],
560
  'dokan_appearance' => [
579
  ],
580
  'gmap_api_key' => [
581
  'name' => 'gmap_api_key',
 
 
 
 
 
582
  'label' => __( 'Google Map API Key', 'dokan-lite' ),
583
  'desc' => __( '<a href="https://developers.google.com/maps/documentation/javascript/" target="_blank" rel="noopener noreferrer">API Key</a> is needed to display map on store page', 'dokan-lite' ),
584
  'type' => 'text',
585
+ 'tooltip' => __( 'Insert Google API Key (with hyperlink) to display store map.', 'dokan-lite' ),
586
  ],
587
  'mapbox_access_token' => [
588
  'name' => 'mapbox_access_token',
 
 
 
 
 
589
  'label' => __( 'Mapbox Access Token', 'dokan-lite' ),
590
  'desc' => __( '<a href="https://docs.mapbox.com/help/how-mapbox-works/access-tokens/" target="_blank" rel="noopener noreferrer">Access Token</a> is needed to display map on store page', 'dokan-lite' ),
591
  'type' => 'text',
592
+ 'tooltip' => __( 'Insert Mapbox Access Token (with hyperlink) to display store map.', 'dokan-lite' ),
593
  ],
594
  'contact_seller' => [
595
  'name' => 'contact_seller',
609
  'layout3' => DOKAN_PLUGIN_ASSEST . '/images/store-header-templates/layout3.png',
610
  ],
611
  'default' => 'default',
612
+ 'tooltip' => __( 'Choose your header design from any of the templates provided. You can change it again anytime.', 'dokan-lite' ),
613
  ],
614
  'store_open_close' => [
615
  'name' => 'store_open_close',
663
  'type' => 'textarea',
664
  'rows' => 5,
665
  'default' => __( 'Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our [dokan_privacy_policy]', 'dokan-lite' ),
666
+ 'tooltip' => __( 'Customize the Privacy Policy text that will be displayed on your store.', 'dokan-lite' ),
667
  ],
668
  ],
669
  ];
810
  'desc' => __( 'Delete all data and tables related to Dokan and Dokan Pro plugin while deleting the Dokan plugin.', 'dokan-lite' ),
811
  'type' => 'checkbox',
812
  'default' => 'off',
813
+ 'tooltip' => __( 'Check this to remove Dokan related data and table from the database upon deleting the plugin. When you delete the Dokan lite version, it will also delete all the data related to Dokan Pro as well. This won\'t happen when the plugins are deactivated..', 'dokan-lite' ),
814
  ];
815
 
816
  return $settings_fields;
includes/Cache.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan;
4
+
5
+ use WeDevs\Dokan\Abstracts\DokanCache;
6
+
7
+ /**
8
+ * Cache Helper class.
9
+ *
10
+ * Manage all of the caches of Dokan and handles it beautifully.
11
+ *
12
+ * @since 3.3.2
13
+ */
14
+ class Cache extends DokanCache {
15
+
16
+ /**
17
+ * Set Cache Group Prefix.
18
+ *
19
+ * @since 3.3.2
20
+ *
21
+ * @param string $cache_group_prefix
22
+ *
23
+ * @return string
24
+ */
25
+ protected static function get_cache_group_prefix() {
26
+ return 'dokan_cache';
27
+ }
28
+
29
+ /**
30
+ * Get Cache Key Prefix.
31
+ *
32
+ * @since 3.3.2
33
+ *
34
+ * @return string
35
+ */
36
+ protected static function get_cache_prefix() {
37
+ return 'dokan';
38
+ }
39
+ }
includes/CacheInvalidate.php ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan;
4
+
5
+ /**
6
+ * Cache Invalidate class.
7
+ *
8
+ * Handles all of the common caches.
9
+ *
10
+ * @since 3.3.2
11
+ */
12
+ class CacheInvalidate {
13
+
14
+ /**
15
+ * Constructor
16
+ *
17
+ * @since 3.3.2
18
+ */
19
+ public function __construct() {
20
+ // Clear global comment related caches.
21
+ add_action( 'comment_post', [ $this, 'comment_created' ], 10, 3 );
22
+ add_action( 'edit_comment', [ $this, 'comment_updated' ], 10, 2 );
23
+ add_action( 'delete_comment', [ $this, 'comment_deleted' ], 10, 1 );
24
+ add_action( 'wp_set_comment_status', [ $this, 'comment_status_change' ], 10, 2 );
25
+ }
26
+
27
+ /**
28
+ * Invalidate comments cache group of the specific post type.
29
+ *
30
+ * @since 3.3.2
31
+ *
32
+ * @param string $group
33
+ * @param int $user_id
34
+ *
35
+ * @return void
36
+ */
37
+ public function clear_comment_cache( $post_type, $user_id ) {
38
+ $group = "count_{$post_type}_comments_{$user_id}";
39
+
40
+ Cache::invalidate_group( $group );
41
+ }
42
+
43
+ /**
44
+ * Fires after new comment is being added.
45
+ *
46
+ * @since 3.3.2
47
+ *
48
+ * @param int $comment_id
49
+ * @param int|string $comment_approved
50
+ * @param array $comment_data
51
+ *
52
+ * @return void
53
+ */
54
+ public function comment_created( $comment_id, $comment_approved, $comment_data ) {
55
+ $post_type = get_post_type( $comment_data['comment_post_ID'] );
56
+ $seller_id = get_post_field( 'post_author', $comment_data['comment_post_ID'] );
57
+
58
+ $this->clear_comment_cache( $post_type, $seller_id );
59
+ }
60
+
61
+ /**
62
+ * Fires after comment is being updated.
63
+ *
64
+ * @since 3.3.2
65
+ *
66
+ * @param int $comment_id
67
+ * @param array $comment_data
68
+ *
69
+ * @return void
70
+ */
71
+ public function comment_updated( $comment_id, $comment_data ) {
72
+ $post_type = get_post_type( $comment_data['comment_post_ID'] );
73
+ $seller_id = get_post_field( 'post_author', $comment_data['comment_post_ID'] );
74
+
75
+ $this->clear_comment_cache( $post_type, $seller_id );
76
+ }
77
+
78
+ /**
79
+ * Fires before a comment is being deleted.
80
+ *
81
+ * @since 3.3.2
82
+ *
83
+ * @param int $comment_id
84
+ * @param \WP_Comment $comment
85
+ *
86
+ * @return void
87
+ */
88
+ public function comment_deleted( $comment_id ) {
89
+ // get comment via comment id
90
+ $comment = get_comment( $comment_id );
91
+ if ( ! $comment ) {
92
+ return false;
93
+ }
94
+
95
+ $post_type = get_post_type( $comment->comment_post_ID );
96
+ $seller_id = get_post_field( 'post_author', $comment->comment_post_ID );
97
+
98
+ $this->clear_comment_cache( $post_type, $seller_id );
99
+ }
100
+
101
+ /**
102
+ * Fires after a comment status is being changed.
103
+ *
104
+ * @since 3.3.2
105
+ *
106
+ * @param int $comment_id Comment ID.
107
+ * @param string $comment_status Current comment status. Possible values include
108
+ * 'hold', '0', 'approve', '1', 'spam', and 'trash'.
109
+ *
110
+ * @return void
111
+ */
112
+ public function comment_status_change( $comment_id, $comment_status ) {
113
+ $this->comment_deleted( $comment_id );
114
+ }
115
+ }
includes/Commission.php CHANGED
@@ -99,11 +99,12 @@ class Commission {
99
  $tmp_order->save_meta_data();
100
 
101
  //remove cache for seller earning
102
- $cache_key = 'dokan_get_earning_from_order_table' . $tmp_order->get_id() . 'seller';
103
- wp_cache_delete( $cache_key );
 
104
  // remove cache for seller earning
105
- $cache_key = 'dokan_get_earning_from_order_table' . $tmp_order->get_id() . 'admin';
106
- wp_cache_delete( $cache_key );
107
  }
108
  }
109
 
@@ -690,8 +691,8 @@ class Commission {
690
  public function get_earning_from_order_table( $order_id, $context = 'seller' ) {
691
  global $wpdb;
692
 
693
- $cache_key = 'dokan_get_earning_from_order_table' . $order_id . $context;
694
- $earning = wp_cache_get( $cache_key );
695
 
696
  if ( false !== $earning ) {
697
  return $earning;
@@ -709,7 +710,7 @@ class Commission {
709
  }
710
 
711
  $earning = 'seller' === $context ? (float) $result->net_amount : (float) $result->order_total - (float) $result->net_amount;
712
- wp_cache_set( $cache_key, $earning );
713
 
714
  return $earning;
715
  }
99
  $tmp_order->save_meta_data();
100
 
101
  //remove cache for seller earning
102
+ $cache_key = "get_earning_from_order_table_{$tmp_order->get_id()}_seller";
103
+ Cache::delete( $cache_key );
104
+
105
  // remove cache for seller earning
106
+ $cache_key = "get_earning_from_order_table_{$tmp_order->get_id()}_admin";
107
+ Cache::delete( $cache_key );
108
  }
109
  }
110
 
691
  public function get_earning_from_order_table( $order_id, $context = 'seller' ) {
692
  global $wpdb;
693
 
694
+ $cache_key = "get_earning_from_order_table_{$order_id}_{$context}";
695
+ $earning = Cache::get( $cache_key );
696
 
697
  if ( false !== $earning ) {
698
  return $earning;
710
  }
711
 
712
  $earning = 'seller' === $context ? (float) $result->net_amount : (float) $result->order_total - (float) $result->net_amount;
713
+ Cache::set( $cache_key, $earning );
714
 
715
  return $earning;
716
  }
includes/Order/Hooks.php CHANGED
@@ -54,6 +54,9 @@ class Hooks {
54
 
55
  // remove customer info from order export based on setting
56
  add_filter( 'dokan_csv_export_headers', [ $this, 'hide_customer_info_from_vendor_order_export' ], 20, 1 );
 
 
 
57
  }
58
 
59
  /**
54
 
55
  // remove customer info from order export based on setting
56
  add_filter( 'dokan_csv_export_headers', [ $this, 'hide_customer_info_from_vendor_order_export' ], 20, 1 );
57
+
58
+ // Init Order Cache Class
59
+ new OrderCache();
60
  }
61
 
62
  /**
includes/Order/Manager.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  namespace WeDevs\Dokan\Order;
4
 
 
 
5
  /**
6
  * Order Management API
7
  *
@@ -31,17 +33,14 @@ class Manager {
31
  $args = wp_parse_args( $args, $default );
32
 
33
  $offset = ( $args['paged'] - 1 ) * $args['limit'];
34
- $cache_group = 'dokan_seller_data_' . $args['seller_id'];
35
-
36
- // Use all arguments to create a hash used as cache key
37
- $cache_key = 'dokan_seller_orders-' . md5( json_encode( $args ) );
38
-
39
- $orders = wp_cache_get( $cache_key, $cache_group );
40
 
41
- $join = $args['customer_id'] ? "LEFT JOIN $wpdb->postmeta pm ON p.ID = pm.post_id" : '';
42
- $where = $args['customer_id'] ? sprintf( "pm.meta_key = '_customer_user' AND pm.meta_value = %d AND", $args['customer_id'] ) : '';
43
 
44
- if ( $orders === false ) {
 
 
45
  $status_where = ( $args['status'] == 'all' ) ? '' : $wpdb->prepare( ' AND order_status = %s', $args['status'] );
46
  $date_query = ( $args['date'] ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $args['date'] ) : '';
47
 
@@ -69,8 +68,7 @@ class Manager {
69
  }, $orders
70
  );
71
 
72
- wp_cache_set( $cache_key, $orders, $cache_group );
73
- dokan_cache_update_group( $cache_key, $cache_group );
74
  }
75
 
76
  return $orders;
2
 
3
  namespace WeDevs\Dokan\Order;
4
 
5
+ use WeDevs\Dokan\Cache;
6
+
7
  /**
8
  * Order Management API
9
  *
33
  $args = wp_parse_args( $args, $default );
34
 
35
  $offset = ( $args['paged'] - 1 ) * $args['limit'];
36
+ $cache_group = "seller_order_data_{$args['seller_id']}";
37
+ $cache_key = 'seller_orders_all_' . md5( wp_json_encode( $args ) ); // Use all arguments to create a hash used as cache key
 
 
 
 
38
 
39
+ $orders = Cache::get( $cache_key, $cache_group );
 
40
 
41
+ if ( false === $orders ) {
42
+ $join = $args['customer_id'] ? "LEFT JOIN $wpdb->postmeta pm ON p.ID = pm.post_id" : '';
43
+ $where = $args['customer_id'] ? sprintf( "pm.meta_key = '_customer_user' AND pm.meta_value = %d AND", $args['customer_id'] ) : '';
44
  $status_where = ( $args['status'] == 'all' ) ? '' : $wpdb->prepare( ' AND order_status = %s', $args['status'] );
45
  $date_query = ( $args['date'] ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $args['date'] ) : '';
46
 
68
  }, $orders
69
  );
70
 
71
+ Cache::set( $cache_key, $orders, $cache_group );
 
72
  }
73
 
74
  return $orders;
includes/Order/OrderCache.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Order;
4
+
5
+ use WeDevs\Dokan\Cache;
6
+ use WeDevs\Dokan\Withdraw\WithdrawCache;
7
+
8
+ /**
9
+ * Order Cache class.
10
+ *
11
+ * Manage all caches for order related functionalities.
12
+ *
13
+ * @since 3.3.2
14
+ *
15
+ * @see \WeDevs\Dokan\Cache
16
+ */
17
+ class OrderCache {
18
+
19
+ public function __construct() {
20
+ add_action( 'dokan_checkout_update_order_meta', [ $this, 'reset_seller_order_data' ], 10, 2 );
21
+ add_action( 'woocommerce_order_status_changed', [ $this, 'reset_order_cache' ], 10 );
22
+ add_action( 'woocommerce_new_order', [ $this, 'reset_order_cache' ], 10, 1 );
23
+ add_action( 'woocommerce_update_order', [ $this, 'reset_order_cache' ], 10 );
24
+ add_action( 'woocommerce_order_refunded', [ $this, 'reset_order_cache' ], 10 );
25
+
26
+ add_action( 'wp_trash_post', [ $this, 'reset_cache_before_deleting_order' ], 20 );
27
+ add_action( 'before_delete_post', [ $this, 'reset_cache_before_deleting_order' ], 20 );
28
+ }
29
+
30
+ /**
31
+ * Delete order cache
32
+ *
33
+ * @since 3.3.2
34
+ *
35
+ * @param int $seller_id
36
+ * @param int|null $order_id
37
+ *
38
+ * @return void
39
+ */
40
+ public static function delete( $seller_id, $order_id = null ) {
41
+ Cache::invalidate_group( "seller_order_data_{$seller_id}" );
42
+
43
+ // Remove cached seller_id after an woocommerce order
44
+ if ( ! empty( $order_id ) ) {
45
+ Cache::delete( "get_seller_id_by_order_{$order_id}" );
46
+ }
47
+
48
+ // Remove withdraw cache
49
+ WithdrawCache::delete( $seller_id );
50
+
51
+ // delete report cache
52
+ Cache::invalidate_transient_group( "report_data_seller_{$seller_id}" );
53
+ }
54
+
55
+ /**
56
+ * Reset cache group related to seller orders.
57
+ *
58
+ * @since 3.3.2
59
+ *
60
+ * @param int $order_id
61
+ * @param int $seller_id
62
+ *
63
+ * @return void
64
+ */
65
+ public function reset_seller_order_data( $order_id, $seller_id ) {
66
+ self::delete( $seller_id, $order_id );
67
+ }
68
+
69
+ /**
70
+ * Reset cache data on update WooCommerce order.
71
+ *
72
+ * @since 3.3.2
73
+ *
74
+ * @param int $order_id
75
+ *
76
+ * @return void
77
+ */
78
+ public function reset_order_cache( $order_id ) {
79
+ $seller_id = dokan_get_seller_id_by_order( $order_id );
80
+ self::delete( $seller_id, $order_id );
81
+ }
82
+
83
+ /**
84
+ * Reset cache data on deleting WooCommerce order.
85
+ *
86
+ * @since 3.3.2
87
+ *
88
+ * @param int $order_id
89
+ *
90
+ * @return void
91
+ */
92
+ public function reset_cache_before_deleting_order( $order_id ) {
93
+ // wp_trash_post and delete_post is generic hooks and will be called for each product delete
94
+ // we are making sure $order_id is a valid order
95
+ $order = wc_get_order( $order_id );
96
+ if ( ! $order ) {
97
+ return;
98
+ }
99
+
100
+ $seller_id = dokan_get_seller_id_by_order( $order_id );
101
+
102
+ self::delete( $seller_id, $order_id );
103
+ }
104
+ }
includes/Order/functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * Dokan get seller amount from order total
4
  *
@@ -50,26 +53,30 @@ function dokan_get_seller_amount_from_order( $order_id, $get_array = false ) {
50
  * @return array
51
  */
52
  function dokan_get_seller_orders( $seller_id, $status = 'all', $order_date = null, $limit = 10, $offset = 0, $customer_id = null ) {
 
 
 
53
  global $wpdb;
54
 
55
  $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
56
- $cache_group = "dokan_seller_data_{$seller_id}";
57
- $cache_key = "dokan-seller-orders-{$status}-{$seller_id}-page-{$pagenum}";
58
- $orders = wp_cache_get( $cache_key, $cache_group );
59
- $getdata = wp_unslash( $_GET );
60
- $order = empty( $getdata['order'] ) ? 'DESC' : sanitize_text_field( $getdata['order'] );
61
- $order_by = 'p.post_date';
62
- $exclude = ! empty( $getdata['exclude'] ) ? ' AND do.order_id NOT IN (' . esc_sql( $getdata['exclude'] ) . ')' : '';
63
-
64
- if ( ! empty( $getdata['orderby'] ) &&
65
- in_array( sanitize_text_field( $getdata['orderby'] ), [ 'id', 'order_id', 'seller_id', 'order_total', 'net_amount', 'order_status' ], true ) ) {
66
- $order_by = 'do.' . sanitize_text_field( $getdata['orderby'] );
67
- }
 
 
68
 
69
- $join = $customer_id ? "LEFT JOIN $wpdb->postmeta pm ON p.ID = pm.post_id" : '';
70
- $where = $customer_id ? sprintf( "pm.meta_key = '_customer_user' AND pm.meta_value = %d AND", $customer_id ) : '';
71
 
72
- if ( $orders === false ) {
73
  $status_where = ( $status === 'all' ) ? '' : $wpdb->prepare( ' AND order_status = %s', $status );
74
  $date_query = ( $order_date ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $order_date ) : '';
75
 
@@ -92,8 +99,7 @@ function dokan_get_seller_orders( $seller_id, $status = 'all', $order_date = nul
92
  )
93
  );
94
 
95
- wp_cache_set( $cache_key, $orders, $cache_group );
96
- dokan_cache_update_group( $cache_key, $cache_group );
97
  }
98
 
99
  return $orders;
@@ -108,20 +114,22 @@ function dokan_get_seller_orders( $seller_id, $status = 'all', $order_date = nul
108
  * @return array
109
  */
110
  function dokan_get_seller_orders_by_date( $start_date, $end_date, $seller_id = false, $status = 'all' ) {
 
 
 
111
  global $wpdb;
112
 
113
  $seller_id = ! $seller_id ? dokan_get_current_user_id() : intval( $seller_id );
 
 
 
114
 
115
- $end_date = date( 'Y-m-d 00:00:00', strtotime( $end_date ) );
116
- $end_date = date( 'Y-m-d h:i:s', strtotime( $end_date . '-1 minute' ) );
117
- $start_date = date( 'Y-m-d', strtotime( $start_date ) );
118
-
119
- $cache_group = 'dokan_seller_data_' . $seller_id;
120
- $cache_key = md5( 'dokan-seller-orders-' . $end_date . '-' . $end_date . '-' . $seller_id );
121
- $orders = wp_cache_get( $cache_key, $cache_group );
122
-
123
- if ( $orders === false ) {
124
- $status_where = '';
125
 
126
  if ( is_array( $status ) ) {
127
  $status_where = sprintf( " AND order_status IN ('%s')", implode( "', '", $status ) );
@@ -129,7 +137,7 @@ function dokan_get_seller_orders_by_date( $start_date, $end_date, $seller_id = f
129
  $status_where = $wpdb->prepare( ' AND order_status = %s', $status );
130
  }
131
 
132
- $date_query = $wpdb->prepare( ' AND DATE( p.post_date ) >= %s AND DATE( p.post_date ) <= %s', $start_date, $end_date );
133
 
134
  $orders = $wpdb->get_results(
135
  $wpdb->prepare(
@@ -146,8 +154,7 @@ function dokan_get_seller_orders_by_date( $start_date, $end_date, $seller_id = f
146
  )
147
  );
148
 
149
- wp_cache_set( $cache_key, $orders, $cache_group, 3600 * 2 );
150
- dokan_cache_update_group( $cache_key, $cache_group );
151
  }
152
 
153
  return $orders;
@@ -194,12 +201,12 @@ function dokan_get_seller_orders_number( $args = [] ) {
194
 
195
  $seller_id = ! empty( $args['seller_id'] ) ? $args['seller_id'] : 0;
196
  $status = ! empty( $args['status'] ) ? $args['status'] : 'all';
197
- $cache_group = 'dokan_seller_data_' . $seller_id;
198
- $cache_key = 'dokan-seller-orders-count-' . md5( json_encode( $args ) );
199
- $count = wp_cache_get( $cache_key, $cache_group );
200
 
201
- // if ( $count === false ) {
202
- $status_where = ( $status == 'all' ) ? '' : $wpdb->prepare( ' AND order_status = %s', $status );
203
  $join = '';
204
  $customer_where = '';
205
  if ( ! empty( $args['customer_id'] ) ) {
@@ -208,7 +215,7 @@ function dokan_get_seller_orders_number( $args = [] ) {
208
  }
209
  $date_where = ! empty( $args['date'] ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $args['date'] ) : '';
210
 
211
- $result = $wpdb->get_row(
212
  $wpdb->prepare(
213
  "SELECT COUNT(do.order_id) as count
214
  FROM {$wpdb->prefix}dokan_orders AS do
@@ -223,11 +230,8 @@ function dokan_get_seller_orders_number( $args = [] ) {
223
  )
224
  );
225
 
226
- $count = $result->count;
227
-
228
- // wp_cache_set( $cache_key, $count, $cache_group );
229
- // dokan_cache_update_group( $cache_key, $cache_group );
230
- // }
231
 
232
  return $count;
233
  }
@@ -265,11 +269,11 @@ function dokan_is_seller_has_order( $seller_id, $order_id ) {
265
  function dokan_count_orders( $user_id ) {
266
  global $wpdb;
267
 
268
- $cache_group = 'dokan_seller_data_' . $user_id;
269
- $cache_key = 'dokan-count-orders-' . $user_id;
270
- $counts = wp_cache_get( $cache_key, $cache_group );
271
 
272
- if ( $counts === false ) {
273
  $counts = [
274
  'wc-pending' => 0,
275
  'wc-completed' => 0,
@@ -296,8 +300,6 @@ function dokan_count_orders( $user_id ) {
296
  );
297
 
298
  if ( $results ) {
299
- $total = 0;
300
-
301
  foreach ( $results as $order ) {
302
  if ( isset( $counts[ $order->order_status ] ) ) {
303
  $counts[ $order->order_status ] += 1;
@@ -307,8 +309,7 @@ function dokan_count_orders( $user_id ) {
307
  }
308
 
309
  $counts = (object) $counts;
310
- wp_cache_set( $cache_key, $counts, $cache_group );
311
- dokan_cache_update_group( $cache_key, $cache_group );
312
  }
313
 
314
  return $counts;
@@ -442,9 +443,8 @@ function dokan_sync_insert_order( $order_id ) {
442
  function dokan_get_seller_id_by_order( $order_id ) {
443
  global $wpdb;
444
 
445
- $cache_key = 'dokan_get_seller_id_' . $order_id;
446
- $cache_group = 'dokan_get_seller_id_by_order';
447
- $seller_id = wp_cache_get( $cache_key, $cache_group );
448
  $items = [];
449
 
450
  // hack: delete old cached data, will delete this code later version of dokan lite
@@ -453,28 +453,26 @@ function dokan_get_seller_id_by_order( $order_id ) {
453
  }
454
 
455
  if ( false === $seller_id ) {
456
- $seller_id = absint(
457
- $wpdb->get_var(
458
- $wpdb->prepare( "SELECT seller_id FROM {$wpdb->prefix}dokan_orders WHERE order_id = %d LIMIT 1", $order_id )
459
- )
460
  );
461
- wp_cache_set( $cache_key, $seller_id, $cache_group );
462
  }
463
 
464
  if ( ! empty( $seller_id ) ) {
465
- return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
466
  }
467
 
468
  // get order instance
469
- $order = dokan()->order->get( $order_id );
470
 
471
  if ( ! $order instanceof WC_Abstract_Order ) {
472
- return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
473
  }
474
 
475
  // if order has suborder, return 0
476
  if ( $order->get_meta( 'has_sub_order' ) ) {
477
- return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
478
  }
479
 
480
  // check order meta to get vendor id
@@ -486,18 +484,18 @@ function dokan_get_seller_id_by_order( $order_id ) {
486
  // finally get vendor id from line items
487
  $items = $order->get_items( 'line_item' );
488
  if ( ! $items ) {
489
- return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
490
  }
491
 
492
  foreach ( $items as $item ) {
493
  $product_id = $item->get_product_id();
494
  $seller_id = absint( get_post_field( 'post_author', $product_id ) );
495
  if ( $seller_id ) {
496
- break;
497
  }
498
  }
499
 
500
- return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
501
  }
502
 
503
  /**
1
  <?php
2
+
3
+ use WeDevs\Dokan\Cache;
4
+
5
  /**
6
  * Dokan get seller amount from order total
7
  *
53
  * @return array
54
  */
55
  function dokan_get_seller_orders( $seller_id, $status = 'all', $order_date = null, $limit = 10, $offset = 0, $customer_id = null ) {
56
+ // get all function arguments as key => value pairs
57
+ $args = get_defined_vars();
58
+
59
  global $wpdb;
60
 
61
  $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
62
+ $cache_group = "seller_order_data_{$seller_id}";
63
+ $cache_key = 'get_seller_orders_' . md5( wp_json_encode( array_merge( $args, [ 'page' => $pagenum ] ) ) );
64
+ $orders = Cache::get( $cache_key, $cache_group );
65
+
66
+ if ( false === $orders ) {
67
+ $getdata = wp_unslash( $_GET );
68
+ $order = empty( $getdata['order'] ) ? 'DESC' : sanitize_text_field( $getdata['order'] );
69
+ $order_by = 'p.post_date';
70
+ $exclude = ! empty( $getdata['exclude'] ) ? ' AND do.order_id NOT IN (' . esc_sql( $getdata['exclude'] ) . ')' : '';
71
+
72
+ if ( ! empty( $getdata['orderby'] ) &&
73
+ in_array( sanitize_text_field( $getdata['orderby'] ), [ 'id', 'order_id', 'seller_id', 'order_total', 'net_amount', 'order_status' ], true ) ) {
74
+ $order_by = 'do.' . sanitize_text_field( $getdata['orderby'] );
75
+ }
76
 
77
+ $join = $customer_id ? "LEFT JOIN $wpdb->postmeta pm ON p.ID = pm.post_id" : '';
78
+ $where = $customer_id ? sprintf( "pm.meta_key = '_customer_user' AND pm.meta_value = %d AND", $customer_id ) : '';
79
 
 
80
  $status_where = ( $status === 'all' ) ? '' : $wpdb->prepare( ' AND order_status = %s', $status );
81
  $date_query = ( $order_date ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $order_date ) : '';
82
 
99
  )
100
  );
101
 
102
+ Cache::set( $cache_key, $orders, $cache_group );
 
103
  }
104
 
105
  return $orders;
114
  * @return array
115
  */
116
  function dokan_get_seller_orders_by_date( $start_date, $end_date, $seller_id = false, $status = 'all' ) {
117
+ // get all function arguments as key => value pairs
118
+ $args = get_defined_vars();
119
+
120
  global $wpdb;
121
 
122
  $seller_id = ! $seller_id ? dokan_get_current_user_id() : intval( $seller_id );
123
+ $cache_group = 'seller_order_data_' . $seller_id;
124
+ $cache_key = 'get_seller_orders_by_date_' . md5( wp_json_encode( $args ) );
125
+ $orders = Cache::get( $cache_key, $cache_group );
126
 
127
+ if ( false === $orders ) {
128
+ // format start and end date
129
+ $date_start = dokan_current_datetime()->setTime( 0, 0, 0);
130
+ $date_end = $date_start->setTime( 23, 59, 59 );
131
+ $start_date = strtotime( $start_date ) ? $date_start->modify( $start_date ) : $date_start; // strtotime is needed because modify() method can return false
132
+ $end_date = strtotime( $end_date ) ? $date_end->modify( $end_date ) : $date_end;
 
 
 
 
133
 
134
  if ( is_array( $status ) ) {
135
  $status_where = sprintf( " AND order_status IN ('%s')", implode( "', '", $status ) );
137
  $status_where = $wpdb->prepare( ' AND order_status = %s', $status );
138
  }
139
 
140
+ $date_query = $wpdb->prepare( ' AND DATE( p.post_date ) >= %s AND DATE( p.post_date ) <= %s', $start_date->format( 'Y-m-d H:i:s' ), $end_date->format( 'Y-m-d H:i:s' ) );
141
 
142
  $orders = $wpdb->get_results(
143
  $wpdb->prepare(
154
  )
155
  );
156
 
157
+ Cache::set( $cache_key, $orders, $cache_group );
 
158
  }
159
 
160
  return $orders;
201
 
202
  $seller_id = ! empty( $args['seller_id'] ) ? $args['seller_id'] : 0;
203
  $status = ! empty( $args['status'] ) ? $args['status'] : 'all';
204
+ $cache_group = "seller_order_data_{$seller_id}";
205
+ $cache_key = 'get_seller_orders_number_' . md5( wp_json_encode( $args ) );
206
+ $count = Cache::get( $cache_key, $cache_group );
207
 
208
+ if ( false === $count ) {
209
+ $status_where = ( 'all' === $status ) ? '' : $wpdb->prepare( ' AND order_status = %s', $status );
210
  $join = '';
211
  $customer_where = '';
212
  if ( ! empty( $args['customer_id'] ) ) {
215
  }
216
  $date_where = ! empty( $args['date'] ) ? $wpdb->prepare( ' AND DATE( p.post_date ) = %s', $args['date'] ) : '';
217
 
218
+ $count = (int) $wpdb->get_var(
219
  $wpdb->prepare(
220
  "SELECT COUNT(do.order_id) as count
221
  FROM {$wpdb->prefix}dokan_orders AS do
230
  )
231
  );
232
 
233
+ Cache::set( $cache_key, $count, $cache_group );
234
+ }
 
 
 
235
 
236
  return $count;
237
  }
269
  function dokan_count_orders( $user_id ) {
270
  global $wpdb;
271
 
272
+ $cache_group = "seller_order_data_{$user_id}";
273
+ $cache_key = "count_orders_{$user_id}";
274
+ $counts = Cache::get( $cache_key, $cache_group );
275
 
276
+ if ( false === $counts ) {
277
  $counts = [
278
  'wc-pending' => 0,
279
  'wc-completed' => 0,
300
  );
301
 
302
  if ( $results ) {
 
 
303
  foreach ( $results as $order ) {
304
  if ( isset( $counts[ $order->order_status ] ) ) {
305
  $counts[ $order->order_status ] += 1;
309
  }
310
 
311
  $counts = (object) $counts;
312
+ Cache::set( $cache_key, $counts, $cache_group );
 
313
  }
314
 
315
  return $counts;
443
  function dokan_get_seller_id_by_order( $order_id ) {
444
  global $wpdb;
445
 
446
+ $cache_key = 'get_seller_id_by_order_' . $order_id;
447
+ $seller_id = Cache::get( $cache_key );
 
448
  $items = [];
449
 
450
  // hack: delete old cached data, will delete this code later version of dokan lite
453
  }
454
 
455
  if ( false === $seller_id ) {
456
+ $seller_id = (int) $wpdb->get_var(
457
+ $wpdb->prepare( "SELECT seller_id FROM {$wpdb->prefix}dokan_orders WHERE order_id = %d LIMIT 1", $order_id )
 
 
458
  );
459
+ Cache::set( $cache_key, $seller_id );
460
  }
461
 
462
  if ( ! empty( $seller_id ) ) {
463
+ return apply_filters( 'dokan_get_seller_id_by_order', (int) $seller_id, $items );
464
  }
465
 
466
  // get order instance
467
+ $order = wc_get_order( $order_id );
468
 
469
  if ( ! $order instanceof WC_Abstract_Order ) {
470
+ return apply_filters( 'dokan_get_seller_id_by_order', 0, $items );
471
  }
472
 
473
  // if order has suborder, return 0
474
  if ( $order->get_meta( 'has_sub_order' ) ) {
475
+ return apply_filters( 'dokan_get_seller_id_by_order', 0, $items );
476
  }
477
 
478
  // check order meta to get vendor id
484
  // finally get vendor id from line items
485
  $items = $order->get_items( 'line_item' );
486
  if ( ! $items ) {
487
+ return apply_filters( 'dokan_get_seller_id_by_order', 0, $items );
488
  }
489
 
490
  foreach ( $items as $item ) {
491
  $product_id = $item->get_product_id();
492
  $seller_id = absint( get_post_field( 'post_author', $product_id ) );
493
  if ( $seller_id ) {
494
+ return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
495
  }
496
  }
497
 
498
+ return apply_filters( 'dokan_get_seller_id_by_order', 0, $items );
499
  }
500
 
501
  /**
includes/PageViews.php CHANGED
@@ -63,6 +63,8 @@ class PageViews {
63
  $new_views = absint( $old_views ) + 1;
64
 
65
  update_post_meta( $post_id, $this->meta_key, $new_views, $old_views );
 
 
66
  }
67
  }
68
 
63
  $new_views = absint( $old_views ) + 1;
64
 
65
  update_post_meta( $post_id, $this->meta_key, $new_views, $old_views );
66
+ $seller_id = get_post_field( 'post_author', $post_id );
67
+ Cache::delete( "pageview_{$seller_id}" );
68
  }
69
  }
70
 
includes/Product/Hooks.php CHANGED
@@ -22,6 +22,9 @@ class Hooks {
22
  add_action( 'dokan_store_profile_frame_after', [ $this, 'store_products_orderby' ], 10, 2 );
23
  add_action( 'wp_ajax_dokan_store_product_search_action', [ $this, 'store_product_search_action' ], 10, 2 );
24
  add_action( 'wp_ajax_nopriv_dokan_store_product_search_action', [ $this, 'store_product_search_action' ], 10, 2 );
 
 
 
25
  }
26
 
27
  /**
@@ -187,30 +190,28 @@ class Hooks {
187
  *
188
  * @since 2.8.6
189
  *
190
- * @return string
191
  */
192
  public function bulk_product_status_change() {
193
  if ( ! current_user_can( 'dokan_delete_product' ) ) {
194
  return;
195
  }
196
 
197
- $post_data = wp_unslash( $_POST );
198
-
199
- if ( ! isset( $post_data['security'] ) || ! wp_verify_nonce( sanitize_key( $post_data['security'] ), 'bulk_product_status_change' ) ) {
200
  return;
201
  }
202
- if ( ! isset( $post_data['status'] ) || ! isset( $post_data['bulk_products'] ) ) {
203
  return;
204
  }
205
 
206
- $status = $post_data['status'];
207
- $products = $post_data['bulk_products'];
208
-
209
  // -1 means bluk action option value
210
- if ( $status === '-1' ) {
211
  return;
212
  }
213
 
 
 
214
  do_action( 'dokan_bulk_product_status_change', $status, $products );
215
  }
216
 
22
  add_action( 'dokan_store_profile_frame_after', [ $this, 'store_products_orderby' ], 10, 2 );
23
  add_action( 'wp_ajax_dokan_store_product_search_action', [ $this, 'store_product_search_action' ], 10, 2 );
24
  add_action( 'wp_ajax_nopriv_dokan_store_product_search_action', [ $this, 'store_product_search_action' ], 10, 2 );
25
+
26
+ // Init Product Cache Class
27
+ new ProductCache();
28
  }
29
 
30
  /**
190
  *
191
  * @since 2.8.6
192
  *
193
+ * @return void
194
  */
195
  public function bulk_product_status_change() {
196
  if ( ! current_user_can( 'dokan_delete_product' ) ) {
197
  return;
198
  }
199
 
200
+ if ( ! isset( $_POST['security'] ) || ! wp_verify_nonce( sanitize_key( $_POST['security'] ), 'bulk_product_status_change' ) ) {
 
 
201
  return;
202
  }
203
+ if ( ! isset( $_POST['status'] ) || ! isset( $_POST['bulk_products'] ) ) {
204
  return;
205
  }
206
 
207
+ $status = sanitize_text_field( wp_unslash( $_POST['status'] ) );
 
 
208
  // -1 means bluk action option value
209
+ if ( '-1' === $status ) {
210
  return;
211
  }
212
 
213
+ $products = array_map( 'absint', wp_unslash( $_POST['bulk_products'] ) );
214
+
215
  do_action( 'dokan_bulk_product_status_change', $status, $products );
216
  }
217
 
includes/Product/Manager.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace WeDevs\Dokan\Product;
4
 
 
5
  use WP_Query;
6
  use WP_Error;
7
 
@@ -32,8 +33,20 @@ class Manager {
32
  ];
33
 
34
  $args = wp_parse_args( $args, $defaults );
 
 
 
 
35
 
36
- return new WP_Query( apply_filters( 'dokan_all_products_query', $args ) );
 
 
 
 
 
 
 
 
37
  }
38
 
39
  /**
@@ -449,7 +462,7 @@ class Manager {
449
  $id = isset( $args['id'] ) ? absint( $args['id'] ) : 0;
450
 
451
  if ( empty( $id ) ) {
452
- return new WP_Error( 'no-id-found', __( 'No product ID found for updating' ), [ 'status' => 401 ] );
453
  }
454
 
455
  return $this->create( $args );
2
 
3
  namespace WeDevs\Dokan\Product;
4
 
5
+ use WeDevs\Dokan\Cache;
6
  use WP_Query;
7
  use WP_Error;
8
 
33
  ];
34
 
35
  $args = wp_parse_args( $args, $defaults );
36
+ $args = apply_filters( 'dokan_all_products_query', $args );
37
+ // get cache group and key
38
+ $cache_group = ! empty( $args['author'] ) ? "seller_product_data_{$args['author']}" : 'product_data';
39
+ $cache_key = 'product_manager_all_' . md5( wp_json_encode( $args ) );
40
 
41
+ $products = Cache::get( $cache_key, $cache_group );
42
+
43
+ if ( false === $products ) {
44
+ $products = new WP_Query( $args );
45
+
46
+ Cache::set( $cache_key, $products, $cache_group );
47
+ }
48
+
49
+ return $products;
50
  }
51
 
52
  /**
462
  $id = isset( $args['id'] ) ? absint( $args['id'] ) : 0;
463
 
464
  if ( empty( $id ) ) {
465
+ return new WP_Error( 'no-id-found', __( 'No product ID found for updating', 'dokan-lite' ), [ 'status' => 401 ] );
466
  }
467
 
468
  return $this->create( $args );
includes/Product/ProductCache.php ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Product;
4
+
5
+ use WeDevs\Dokan\Cache;
6
+
7
+ /**
8
+ * Product Cache class.
9
+ *
10
+ * Manage all caches for products.
11
+ *
12
+ * @since 3.3.2
13
+ *
14
+ * @see \WeDevs\Dokan\Cache
15
+ */
16
+ class ProductCache {
17
+
18
+ public function __construct() {
19
+ add_action( 'dokan_new_product_added', [ $this, 'clear_seller_product_caches' ], 20 );
20
+ add_action( 'dokan_product_updated', [ $this, 'clear_seller_product_caches' ], 20 );
21
+ add_action( 'dokan_product_deleted', [ $this, 'clear_seller_product_caches' ], 20 );
22
+ add_action( 'dokan_product_duplicate_after_save', [ $this, 'clear_seller_product_caches' ], 20 );
23
+
24
+ add_action( 'woocommerce_new_product', [ $this, 'clear_seller_product_caches' ], 20 );
25
+ add_action( 'woocommerce_update_product', [ $this, 'clear_seller_product_caches' ], 20 );
26
+ add_action( 'woocommerce_product_duplicate', [ $this, 'clear_seller_product_caches' ], 20 );
27
+ add_action( 'woocommerce_product_import_inserted_product_object', [ $this, 'clear_seller_product_caches' ], 20 );
28
+
29
+ add_action( 'wp_trash_post', [ $this, 'clear_seller_product_caches' ], 20 );
30
+ add_action( 'delete_post', [ $this, 'clear_seller_product_caches' ], 20 );
31
+
32
+ add_action( 'dokan_product_updated', [ $this, 'clear_single_product_caches' ], 20 );
33
+ add_action( 'dokan_bulk_product_status_change', [ $this, 'cache_clear_bulk_product_status_change' ], 20, 2 );
34
+ }
35
+
36
+ /**
37
+ * Reset cache group related to seller products.
38
+ *
39
+ * @since 3.3.2
40
+ *
41
+ * @param int|\WC_Product $product
42
+ *
43
+ * @return void
44
+ */
45
+ public function clear_seller_product_caches( $product ) {
46
+ // some hooks can return product object also, making sure we are getting id only
47
+ if ( ! $product instanceof \WC_Product ) {
48
+ $product = wc_get_product( $product );
49
+ }
50
+
51
+ if ( ! $product instanceof \WC_Product ) {
52
+ return;
53
+ }
54
+
55
+ $seller_id = get_post_field( 'post_author', $product->get_id() );
56
+ self::delete( $seller_id );
57
+ }
58
+
59
+ /**
60
+ * Delete cache group related to seller products.
61
+ *
62
+ * @since 3.3.2
63
+ *
64
+ * @param int $seller_id
65
+ *
66
+ * @return void
67
+ */
68
+ public static function delete( $seller_id ) {
69
+ Cache::invalidate_group( 'product_data' );
70
+ Cache::invalidate_group( "seller_product_data_{$seller_id}" );
71
+ Cache::invalidate_group( "seller_product_stock_data_{$seller_id}" );
72
+ Cache::invalidate_transient_group( "seller_product_data_{$seller_id}" );
73
+ }
74
+
75
+ /**
76
+ * Clear Single Product Caches.
77
+ *
78
+ * We'll be calling `WC_Product_Data_Store_CPT::clear_caches()` to clear product caches.
79
+ *
80
+ * @since 3.3.2
81
+ *
82
+ * @param int|\WC_Product $product
83
+ *
84
+ * @return void
85
+ */
86
+ public function clear_single_product_caches( $product ) {
87
+ if ( ! $product instanceof \WC_Product ) {
88
+ $product = wc_get_product( $product );
89
+ }
90
+
91
+ if ( ! $product instanceof \WC_Product ) {
92
+ return;
93
+ }
94
+
95
+ // Delete caches for wp-post and post-meta for this product.
96
+ wp_cache_delete( $product->get_id(), 'posts' );
97
+ wp_cache_delete( $product->get_id(), 'post_meta' );
98
+
99
+ try {
100
+ $store = \WC_Data_Store::load( 'product-' . $product->get_type() );
101
+ $class = $store->get_current_class_name();
102
+ $class = is_object( $class ) ? $class : new $class();
103
+ $reflection = new \ReflectionClass( $class );
104
+ $method_name = 'clear_caches';
105
+
106
+ if ( ! $reflection->hasMethod( $method_name ) ) {
107
+ return;
108
+ }
109
+
110
+ $method = $reflection->getMethod( $method_name );
111
+ $method->setAccessible( true );
112
+ $method->invokeArgs( $class, [ &$product ] );
113
+ } catch ( \Exception $e ) {
114
+ return;
115
+ }
116
+ }
117
+
118
+ /**
119
+ * Clear Cache on bulk product status change.
120
+ *
121
+ * @since 3.3.2
122
+ *
123
+ * @param string $status
124
+ * @param array $products
125
+ *
126
+ * @return void
127
+ */
128
+ public function cache_clear_bulk_product_status_change( $status, $products ) {
129
+ // for delete action, separate hooks will be called
130
+ if ( 'delete' === $status || empty( $products ) ) {
131
+ return;
132
+ }
133
+
134
+ foreach ( $products as $product_id ) {
135
+ $this->clear_single_product_caches( $product_id );
136
+ $this->clear_seller_product_caches( $product_id );
137
+ }
138
+ }
139
+ }
includes/Product/functions.php CHANGED
@@ -61,7 +61,7 @@ function dokan_save_product( $args ) {
61
  $post_arr['ID'] = absint( $data['ID'] );
62
 
63
  if ( ! dokan_is_product_author( $post_arr['ID'] ) ) {
64
- return new WP_Error( 'not-own', __( 'I swear this is not your product!', 'dokan-lite' ) );
65
  }
66
 
67
  $is_updating = true;
@@ -519,14 +519,14 @@ function dokan_product_get_row_action( $post ) {
519
  * Dokan get vendor by product
520
  *
521
  * @param int|WC_Product $product Product ID or Product Object
522
- * @param bool $id return true to get vendor id
523
  *
524
  * @since 2.9.8
525
  * @since 3.2.16 added $id parameter
526
  *
527
  * @return int|\WeDevs\Dokan\Vendor\Vendor|false on failure
528
  */
529
- function dokan_get_vendor_by_product( $product, $id = false ) {
530
  if ( ! $product instanceof WC_Product ) {
531
  $product = wc_get_product( $product );
532
  }
@@ -543,7 +543,7 @@ function dokan_get_vendor_by_product( $product, $id = false ) {
543
 
544
  $vendor_id = apply_filters( 'dokan_get_vendor_by_product', $vendor_id, $product );
545
 
546
- return false === $id ? dokan()->vendor->get( $vendor_id ) : (int) $vendor_id;
547
  }
548
 
549
  /**
61
  $post_arr['ID'] = absint( $data['ID'] );
62
 
63
  if ( ! dokan_is_product_author( $post_arr['ID'] ) ) {
64
+ return new WP_Error( 'not-own', __( 'Sorry, You can not modify another vendor\'s product !', 'dokan-lite' ) );
65
  }
66
 
67
  $is_updating = true;
519
  * Dokan get vendor by product
520
  *
521
  * @param int|WC_Product $product Product ID or Product Object
522
+ * @param bool $get_vendor return true to get vendor id, otherwise it will return \WeDevs\Dokan\Vendor\Vendor object
523
  *
524
  * @since 2.9.8
525
  * @since 3.2.16 added $id parameter
526
  *
527
  * @return int|\WeDevs\Dokan\Vendor\Vendor|false on failure
528
  */
529
+ function dokan_get_vendor_by_product( $product, $get_vendor = false ) {
530
  if ( ! $product instanceof WC_Product ) {
531
  $product = wc_get_product( $product );
532
  }
543
 
544
  $vendor_id = apply_filters( 'dokan_get_vendor_by_product', $vendor_id, $product );
545
 
546
+ return false === $get_vendor ? dokan()->vendor->get( $vendor_id ) : (int) $vendor_id;
547
  }
548
 
549
  /**
includes/REST/ProductController.php CHANGED
@@ -275,6 +275,10 @@ class ProductController extends DokanRESTController {
275
  return new WP_Error( 'no_store_found', __( 'No seller found', 'dokan-lite' ), [ 'status' => 404 ] );
276
  }
277
 
 
 
 
 
278
  if ( ! empty( $request['id'] ) ) {
279
  /* translators: %s: product */
280
  return new WP_Error( "woocommerce_rest_{$this->post_type}_exists", sprintf( __( 'Cannot create existing %s.', 'dokan-lite' ), 'product' ), [ 'status' => 400 ] );
275
  return new WP_Error( 'no_store_found', __( 'No seller found', 'dokan-lite' ), [ 'status' => 404 ] );
276
  }
277
 
278
+ if ( ! dokan_is_seller_enabled( $store_id ) ) {
279
+ return new WP_Error( 'invalid_request', __( 'Error! Your account is not enabled for selling, please contact the admin', 'dokan-lite' ), [ 'status' => 400 ] );
280
+ }
281
+
282
  if ( ! empty( $request['id'] ) ) {
283
  /* translators: %s: product */
284
  return new WP_Error( "woocommerce_rest_{$this->post_type}_exists", sprintf( __( 'Cannot create existing %s.', 'dokan-lite' ), 'product' ), [ 'status' => 400 ] );
includes/REST/WithdrawController.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace WeDevs\Dokan\REST;
4
 
5
  use Exception;
 
6
  use WP_Error;
7
  use WP_REST_Controller;
8
  use WP_REST_Server;
@@ -268,7 +269,15 @@ class WithdrawController extends WP_REST_Controller {
268
  $args['ids'] = $request['ids'];
269
  }
270
 
271
- $withdraws = dokan()->withdraw->all( $args );
 
 
 
 
 
 
 
 
272
 
273
  $data = [];
274
  foreach ( $withdraws->withdraws as $withdraw ) {
@@ -295,7 +304,7 @@ class WithdrawController extends WP_REST_Controller {
295
  public function get_balance() {
296
  $data = [];
297
 
298
- $data ['current_balance'] = dokan_get_seller_balance( dokan_get_current_user_id(), false );
299
  $data['withdraw_limit'] = dokan_get_option( 'withdraw_limit', 'dokan_withdraw', - 1 );
300
  $data['withdraw_threshold'] = dokan_get_withdraw_threshold( dokan_get_current_user_id() );
301
 
@@ -587,7 +596,11 @@ class WithdrawController extends WP_REST_Controller {
587
 
588
  $methods = dokan_withdraw_get_methods();
589
  $get_details = ! empty( $withdraw->get_details() ) ? maybe_unserialize( $withdraw->get_details() ) : array();
590
- $details = [ $withdraw->get_method() => $get_details ];
 
 
 
 
591
 
592
  $data = [
593
  'id' => absint( $withdraw->get_id() ),
@@ -598,7 +611,7 @@ class WithdrawController extends WP_REST_Controller {
598
  'method' => $withdraw->get_method(),
599
  'method_title' => array_key_exists( $withdraw->get_method(), $methods ) ? $methods[ $withdraw->get_method() ] : $withdraw->get_method(),
600
  'note' => $withdraw->get_note(),
601
- 'details' => version_compare( DOKAN_PLUGIN_VERSION, '3.2.11', '>' ) ? $details : $vendor['payment'],
602
  'ip' => $withdraw->get_ip(),
603
  ];
604
 
3
  namespace WeDevs\Dokan\REST;
4
 
5
  use Exception;
6
+ use WeDevs\Dokan\Cache;
7
  use WP_Error;
8
  use WP_REST_Controller;
9
  use WP_REST_Server;
269
  $args['ids'] = $request['ids'];
270
  }
271
 
272
+ $cache_group = 'withdraws';
273
+ $cache_key = 'withdraw_requests_' . md5( wp_json_encode( $args ) );
274
+ $withdraws = Cache::get( $cache_key, $cache_group );
275
+
276
+ if ( false === $withdraws ) {
277
+ $withdraws = dokan()->withdraw->all( $args );
278
+
279
+ Cache::set( $cache_key, $withdraws, $cache_group );
280
+ }
281
 
282
  $data = [];
283
  foreach ( $withdraws->withdraws as $withdraw ) {
304
  public function get_balance() {
305
  $data = [];
306
 
307
+ $data['current_balance'] = dokan_get_seller_balance( dokan_get_current_user_id(), false );
308
  $data['withdraw_limit'] = dokan_get_option( 'withdraw_limit', 'dokan_withdraw', - 1 );
309
  $data['withdraw_threshold'] = dokan_get_withdraw_threshold( dokan_get_current_user_id() );
310
 
596
 
597
  $methods = dokan_withdraw_get_methods();
598
  $get_details = ! empty( $withdraw->get_details() ) ? maybe_unserialize( $withdraw->get_details() ) : array();
599
+ $details = $vendor['payment'];
600
+
601
+ if ( version_compare( DOKAN_PLUGIN_VERSION, '3.2.11', '>' ) && ! empty( $get_details ) ) {
602
+ $details = [ $withdraw->get_method() => $get_details ];
603
+ }
604
 
605
  $data = [
606
  'id' => absint( $withdraw->get_id() ),
611
  'method' => $withdraw->get_method(),
612
  'method_title' => array_key_exists( $withdraw->get_method(), $methods ) ? $methods[ $withdraw->get_method() ] : $withdraw->get_method(),
613
  'note' => $withdraw->get_note(),
614
+ 'details' => $details,
615
  'ip' => $withdraw->get_ip(),
616
  ];
617
 
includes/Traits/ObjectCache.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Traits;
4
+
5
+ /**
6
+ * Object Cache trait.
7
+ *
8
+ * Handles Caching underneath functionalities with the help of this Cacheable trait.
9
+ *
10
+ * @since 3.3.2
11
+ *
12
+ * @package WeDevs\Dokan\Abstracts\Traits
13
+ */
14
+ trait ObjectCache {
15
+
16
+ /**
17
+ * Add Cache Prefix to key.
18
+ *
19
+ * @since 3.3.2
20
+ *
21
+ * @param string $key
22
+ * @param string $group default: ''
23
+ *
24
+ * @return string processed key
25
+ */
26
+ private static function get_cache_key_with_prefix( $key, $group = '' ) {
27
+ // Don't add prefix to non-cacheable groups.
28
+ if ( empty( $group ) ) {
29
+ return static::get_cache_prefix() . '_' . sanitize_key( $key );
30
+ }
31
+
32
+ $group = static::get_cache_group_with_prefix( $group );
33
+
34
+ $prefix = wp_cache_get( $group . '_prefix', $group );
35
+
36
+ if ( false === $prefix ) {
37
+ $prefix = static::get_time_prefix();
38
+ wp_cache_set( $group . '_prefix', $prefix, $group );
39
+ }
40
+
41
+ return static::get_cache_prefix() . '_' . $prefix . '_' . sanitize_key( $key );
42
+ }
43
+
44
+ /**
45
+ * Get Cache.
46
+ *
47
+ * Example:
48
+ * ```
49
+ * $cache_key = 'cache_key_name',
50
+ * $cache_group = 'cache_group_name';
51
+ *
52
+ * Cache::get( $cache_key, $cache_group );
53
+ * ```
54
+ *
55
+ * @since 3.3.2
56
+ *
57
+ * @param string $key
58
+ * @param string $group Optional. Where the cache contents are grouped. Default empty.
59
+ * @param bool $forced Optional. Whether to force an update of the local cache from the persistent cache. Default false.
60
+ *
61
+ * @return mixed|false
62
+ */
63
+ public static function get( $key, $group = '', $forced = false ) {
64
+ extract( static::get_key_and_group( $key, $group ) ); //phpcs:ignore WordPress.PHP.DontExtract.extract_extract
65
+
66
+ return wp_cache_get( $key, $group, $forced );
67
+ }
68
+
69
+ /**
70
+ * Set Cache.
71
+ *
72
+ * Update the cache. We've added some defaults to set the cache.
73
+ * Like, We set default expiry time, cache group to remove some redundant assign of those data.
74
+ *
75
+ * Example:
76
+ * ```
77
+ * $cache_key = 'cache_key_name',
78
+ * $cache_group = 'cache_group_name';
79
+ * $cache_result = Cache::get( $cache_key, $cache_group );
80
+ *
81
+ * if ( false === $cache_result ) {
82
+ * $cache_result = []; // Calculate & set to to $cache_result
83
+ * Cache::set( $cache_key, $cache_result, $cache_group );
84
+ * }
85
+ * ```
86
+ *
87
+ * @since 3.3.2
88
+ *
89
+ * @param string $key
90
+ * @param mixed $value
91
+ * @param string $group default: ``; eg: `products`, `employees`
92
+ * @param int $expire default: `WEEK_IN_SECONDS * 2`; eg: 120, DAY_IN_SECONDS
93
+ *
94
+ * @return bool
95
+ */
96
+ public static function set( $key, $value, $group = '', $expire = WEEK_IN_SECONDS * 2 ) {
97
+ extract( static::get_key_and_group( $key, $group ) ); //phpcs:ignore WordPress.PHP.DontExtract.extract_extract
98
+
99
+ return wp_cache_set( $key, $value, $group, $expire );
100
+ }
101
+
102
+ /**
103
+ * Delete Cache by key and group.
104
+ *
105
+ * Example:
106
+ * ```
107
+ * Cache::delete( 'cache_key_name', 'cache_group_name' );
108
+ * ```
109
+ *
110
+ * @since 3.3.2
111
+ *
112
+ * @param string $key The key under which to store the value.
113
+ * @param string $group The group value appended to the $key.
114
+ * @param int $time The amount of time the server will wait to delete the item in seconds.
115
+ *
116
+ * @return bool
117
+ */
118
+ public static function delete( $key, $group = '', $time = 0 ) {
119
+ extract( static::get_key_and_group( $key, $group ) ); //phpcs:ignore WordPress.PHP.DontExtract.extract_extract
120
+
121
+ return wp_cache_delete( $key, $group, $time );
122
+ }
123
+
124
+ /**
125
+ * Invalidate cache group at once by group name.
126
+ *
127
+ * Example:
128
+ * ```
129
+ * Cache::invalidate_group( 'group_name' );
130
+ * ```
131
+ *
132
+ * @since 3.3.2
133
+ *
134
+ * @param string $group Group of cache to clear.
135
+ *
136
+ * @return bool
137
+ */
138
+ public static function invalidate_group( $group ) {
139
+ $group = static::get_cache_group_with_prefix( $group );
140
+
141
+ return wp_cache_set( $group . '_prefix', static::get_time_prefix(), $group );
142
+ }
143
+
144
+ /**
145
+ * Get Cache Key and Group with Prefix added.
146
+ *
147
+ * @param string $key
148
+ * @param string $group
149
+ *
150
+ * @since 3.3.2
151
+ *
152
+ * @return array
153
+ */
154
+ private static function get_key_and_group( $key, $group ) {
155
+ $key = static::get_cache_key_with_prefix( $key, $group );
156
+ $group = static::get_cache_group_with_prefix( $group );
157
+
158
+ return [
159
+ 'key' => $key,
160
+ 'group' => $group,
161
+ ];
162
+ }
163
+ }
includes/Traits/TransientCache.php ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Traits;
4
+
5
+ /**
6
+ * Transient trait.
7
+ *
8
+ * Handles Transient underneath functionalities with the help of this TransientTrait trait.
9
+ *
10
+ * @since 3.3.2
11
+ *
12
+ * @package WeDevs\Dokan\Abstracts\Traits
13
+ */
14
+ trait TransientCache {
15
+
16
+ /**
17
+ * Get transient version.
18
+ *
19
+ * When using transients with unpredictable names, e.g. those containing an md5
20
+ * hash in the name, we need a way to invalidate them all at once.
21
+ *
22
+ * With external cache however, this isn't possible. Instead, this function is used
23
+ * to append a unique string (based on time()) to each transient. When transients
24
+ * are invalidated, the transient version will increment and data will be regenerated
25
+ *
26
+ * @since 3.3.2
27
+ *
28
+ * @param string $group Name for the group of transients we need to invalidate.
29
+ * @param bool $refresh true to force a new version.
30
+ *
31
+ * @return string transient version based on microtime().
32
+ */
33
+ private static function get_transient_version( $group, $refresh = false ) {
34
+ $transient_name = static::get_cache_group_with_prefix( $group ) . '-transient-version';
35
+ $transient_value = get_transient( $transient_name );
36
+
37
+ // If no transient value found,
38
+ // Set a new version number by replacing some characters to underscores.
39
+ if ( false === $transient_value || true === $refresh ) {
40
+ $transient_value = static::get_time_prefix();
41
+
42
+ set_transient( $transient_name, $transient_value );
43
+ }
44
+
45
+ return $transient_value;
46
+ }
47
+
48
+ /**
49
+ * Add Cache Prefix to key.
50
+ *
51
+ * @since 3.3.2
52
+ *
53
+ * @param string $key
54
+ * @param string $group; default: ''
55
+ *
56
+ * @return string processed key
57
+ */
58
+ private static function get_formatted_transient_key( $key, $group = '' ) {
59
+ // Don't add prefix to non-cacheable groups.
60
+ if ( empty( $group ) ) {
61
+ return static::get_cache_prefix() . '_' . sanitize_key( $key );
62
+ }
63
+
64
+ $prefix = static::get_transient_version( $group );
65
+
66
+ return static::get_cache_prefix() . '_' . $prefix . '_' . sanitize_key( $key );
67
+ }
68
+
69
+ /**
70
+ * Get Transient value from a key.
71
+ *
72
+ * It applies for oth from Object & Normal data
73
+ * If needs only key value, just pass `$transient_key`
74
+ * If the transient value is an object, and need to get the params of that object
75
+ * then pass the second args `$param`.
76
+ *
77
+ * Examples:
78
+ *
79
+ * Get transient value for a normal key.
80
+ * ```
81
+ * Cache::get_transient( 'transient_key' ); // returns only `transient_key`'s value
82
+ * ```
83
+ *
84
+ * Get transient value for a group.
85
+ * ```
86
+ * Cache::get_transient( 'transient_key', 'group_name' );
87
+ * ```
88
+ *
89
+ * @since 3.3.2
90
+ *
91
+ * @param string $key eg: seller_data_[id]
92
+ * @param string $group eg: null, seller_earnings
93
+ *
94
+ * @return mixed|false Transient value or false
95
+ */
96
+ public static function get_transient( $key, $group = '' ) {
97
+ // get formatted transient key
98
+ $key = static::get_formatted_transient_key( $key, $group );
99
+
100
+ // if group is empty, we don't need to check transient version
101
+ if ( empty( $group ) ) {
102
+ return get_transient( $key );
103
+ }
104
+
105
+ $transient_version = static::get_transient_version( $group );
106
+ $transient_value = get_transient( $key );
107
+
108
+ if (
109
+ isset( $transient_value['value'], $transient_value['version'] ) &&
110
+ $transient_value['version'] === $transient_version
111
+ ) {
112
+ return $transient_value['value'];
113
+ }
114
+
115
+ return false;
116
+ }
117
+
118
+ /**
119
+ * Set Transient value for a key.
120
+ *
121
+ * @since 3.3.2
122
+ *
123
+ * @param string $key eg: seller_data_[id]
124
+ * @param string $value eg: 6000, ['earning' => 1]
125
+ * @param string $group eg: seller_earnings
126
+ * @param int $expiration default: 1 Week => WEEK_IN_SECONDS
127
+ *
128
+ * @return bool True if the value was set, false otherwise
129
+ */
130
+ public static function set_transient( $key, $value, $group = '', $expiration = WEEK_IN_SECONDS ) {
131
+ // get formatted transient key
132
+ $key = static::get_formatted_transient_key( $key, $group );
133
+
134
+ // if group is empty, set transient without version number
135
+ if ( empty( $group ) ) {
136
+ return set_transient( $key, $value, $expiration );
137
+ }
138
+
139
+ $transient_version = static::get_transient_version( $group );
140
+
141
+ $transient_value = [
142
+ 'version' => $transient_version,
143
+ 'value' => $value,
144
+ ];
145
+
146
+ return set_transient( $key, $transient_value, $expiration );
147
+ }
148
+
149
+ /**
150
+ * Delete transient.
151
+ *
152
+ * @since 3.3.2
153
+ *
154
+ * @param string $key eg: seller_data_[id]
155
+ * @param string $group eg: seller_earnings
156
+ *
157
+ * @return bool True if the transient was deleted otherwise false.
158
+ */
159
+ public static function delete_transient( $key, $group = '' ) {
160
+ // get formatted transient key
161
+ $key = static::get_formatted_transient_key( $key, $group );
162
+
163
+ return delete_transient( $key );
164
+ }
165
+
166
+ /**
167
+ * Invalidate transient group at once by group name.
168
+ *
169
+ * Example:
170
+ * ```
171
+ * Cache::invalidate_transient_group( 'group_name' );
172
+ * ```
173
+ *
174
+ * @since 3.3.2
175
+ *
176
+ * @param string $group Group of transients data to clear.
177
+ *
178
+ * @return string
179
+ */
180
+ public static function invalidate_transient_group( $group ) {
181
+ return static::get_transient_version( $group, true );
182
+ }
183
+ }
includes/Vendor/Hooks.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Vendor;
4
+
5
+ class Hooks {
6
+
7
+ /**
8
+ * Class constructor
9
+ *
10
+ * @since 3.3.2 Added Cache
11
+ *
12
+ * @return void
13
+ */
14
+ public function __construct() {
15
+ // Init Vendor Cache Class
16
+ new VendorCache();
17
+ }
18
+ }
includes/Vendor/Manager.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace WeDevs\Dokan\Vendor;
4
 
 
5
  use WP_Error;
6
  use WP_User_Query;
7
  use WeDevs\Dokan\Vendor\Vendor;
@@ -93,8 +94,17 @@ class Manager {
93
  unset( $args['status'] );
94
  unset( $args['featured'] );
95
 
96
- $user_query = new WP_User_Query( $args );
97
- $results = $user_query->get_results();
 
 
 
 
 
 
 
 
 
98
 
99
  $this->total_users = $user_query->total_users;
100
 
@@ -102,7 +112,7 @@ class Manager {
102
  return $results;
103
  }
104
 
105
- foreach ( $results as $key => $result ) {
106
  $vendors[] = $this->get( $result );
107
  }
108
 
@@ -452,6 +462,8 @@ class Manager {
452
  require_once ABSPATH . 'wp-admin/includes/user.php';
453
  wp_delete_user( $vendor_id, $reassign );
454
 
 
 
455
  return $vendor;
456
  }
457
 
2
 
3
  namespace WeDevs\Dokan\Vendor;
4
 
5
+ use WeDevs\Dokan\Cache;
6
  use WP_Error;
7
  use WP_User_Query;
8
  use WeDevs\Dokan\Vendor\Vendor;
94
  unset( $args['status'] );
95
  unset( $args['featured'] );
96
 
97
+ $cache_group = 'vendors';
98
+ $cache_key = 'vendors_' . md5( wp_json_encode( $args ) );
99
+ $user_query = Cache::get( $cache_key, $cache_group );
100
+
101
+ if ( false === $user_query ) {
102
+ $user_query = new WP_User_Query( $args );
103
+
104
+ Cache::set( $cache_key, $user_query, $cache_group );
105
+ }
106
+
107
+ $results = $user_query->get_results();
108
 
109
  $this->total_users = $user_query->total_users;
110
 
112
  return $results;
113
  }
114
 
115
+ foreach ( $results as $result ) {
116
  $vendors[] = $this->get( $result );
117
  }
118
 
462
  require_once ABSPATH . 'wp-admin/includes/user.php';
463
  wp_delete_user( $vendor_id, $reassign );
464
 
465
+ do_action( 'dokan_delete_vendor', $vendor_id );
466
+
467
  return $vendor;
468
  }
469
 
includes/Vendor/Vendor.php CHANGED
@@ -2,7 +2,11 @@
2
 
3
  namespace WeDevs\Dokan\Vendor;
4
 
 
 
 
5
  use WP_Query;
 
6
 
7
  /**
8
  * Dokan Vendor
@@ -261,7 +265,7 @@ class Vendor {
261
  *
262
  * @since 3.0.0
263
  *
264
- * @return void
265
  */
266
  public function get_id() {
267
  return $this->id;
@@ -536,16 +540,17 @@ class Vendor {
536
  * @return array
537
  */
538
  public function get_published_products() {
539
- $transient_key = 'dokan_vendor_get_published_products_' . $this->id;
 
540
 
541
- if ( false === ( $products = get_transient( $transient_key ) ) ) {
542
  $products = dokan()->product->all( [
543
  'author' => $this->id,
544
  'post_status' => 'publish',
545
  'fields' => 'ids'
546
  ] );
547
  $products = $products->posts;
548
- set_transient( $transient_key, $products, WEEK_IN_SECONDS );
549
  }
550
 
551
  return $products;
@@ -559,9 +564,10 @@ class Vendor {
559
  * @return array
560
  */
561
  public function get_best_selling_products() {
562
- $transient_key = 'dokan_vendor_get_best_selling_products_' . $this->id;
 
563
 
564
- if ( false === ( $products = get_transient( $transient_key ) ) ) {
565
  $args = [
566
  'author' => $this->id,
567
  'post_status' => 'publish',
@@ -579,7 +585,7 @@ class Vendor {
579
 
580
  $products = dokan()->product->best_selling( $args );
581
  $products = $products->posts;
582
- set_transient( $transient_key, $products, WEEK_IN_SECONDS );
583
  }
584
 
585
  return $products;
@@ -595,12 +601,13 @@ class Vendor {
595
  * @return array
596
  */
597
  public function get_store_categories( $best_selling = false ) {
598
- $transient_key = function_exists( 'wpml_get_current_language' ) ? 'dokan_vendor_get_store_categories_' . wpml_get_current_language() . '_' . $this->id : 'dokan_vendor_get_store_categories_' . $this->id;
 
599
  if ( $best_selling ) {
600
- $transient_key = function_exists( 'wpml_get_current_language' ) ? 'dokan_vendor_get_best_selling_categories_' . wpml_get_current_language() . '_' . $this->id : 'dokan_vendor_get_best_selling_categories_' . $this->id;
601
  }
602
 
603
- if ( false === ( $all_categories = get_transient( $transient_key ) ) ) {
604
  $products = true === $best_selling ? $this->get_best_selling_products() : $this->get_published_products();
605
  if ( empty( $products ) ) {
606
  return [];
@@ -655,7 +662,7 @@ class Vendor {
655
  }
656
  }
657
 
658
- set_transient( $transient_key, $all_categories, WEEK_IN_SECONDS );
659
  }
660
 
661
  return $all_categories;
@@ -698,37 +705,34 @@ class Vendor {
698
  public function get_earnings( $formatted = true, $on_date = '' ) {
699
  global $wpdb;
700
 
701
- $status = dokan_withdraw_get_active_order_status_in_comma();
702
- $cache_group = 'dokan_seller_data_'.$this->id;
703
- $cache_key = 'dokan_seller_earnings_' . $this->id;
704
- $earning = wp_cache_get( $cache_key, $cache_group );
705
- $on_date = $on_date ? date( 'Y-m-d', strtotime( $on_date ) ) : current_time( 'mysql' );
706
- $trn_type = 'dokan_refund';
707
- $refund_status = 'approved';
708
 
709
  if ( false === $earning ) {
710
  $installed_version = get_option( 'dokan_theme_version' );
 
711
 
712
  if ( ! $installed_version || version_compare( $installed_version, '2.8.2', '>' ) ) {
713
- $debit_balance = $wpdb->get_row( $wpdb->prepare(
714
  "SELECT SUM(debit) AS earnings
715
  FROM {$wpdb->prefix}dokan_vendor_balance
716
  WHERE
717
  vendor_id = %d AND DATE(balance_date) <= %s AND status IN ($status) AND trn_type = 'dokan_orders'",
718
  $this->id, $on_date ) );
719
 
720
- $credit_balance = $wpdb->get_row( $wpdb->prepare(
721
  "SELECT SUM(credit) AS earnings
722
  FROM {$wpdb->prefix}dokan_vendor_balance
723
  WHERE
724
  vendor_id = %d AND DATE(balance_date) <= %s AND trn_type = %s AND status = %s",
725
- $this->id, $on_date, $trn_type, $refund_status ) );
726
 
727
- $earnings = $debit_balance->earnings - $credit_balance->earnings;
728
- $result = new \stdClass;
729
- $result->earnings = $earnings;
730
  } else {
731
- $result = $wpdb->get_row( $wpdb->prepare(
732
  "SELECT
733
  SUM(net_amount) as earnings
734
  FROM
@@ -738,10 +742,7 @@ class Vendor {
738
  $this->id, $on_date ) );
739
  }
740
 
741
- $earning = (float) $result->earnings;
742
-
743
- wp_cache_set( $cache_key, $earning, $cache_group );
744
- dokan_cache_update_group( $cache_key , $cache_group );
745
  }
746
 
747
  if ( $formatted ) {
@@ -756,41 +757,47 @@ class Vendor {
756
  *
757
  * @since 3.0.0
758
  *
759
- * @return void
 
 
 
760
  */
761
- public function get_balance( $formatted = true, $on_date= '' ) {
762
  global $wpdb;
763
 
764
- $status = dokan_withdraw_get_active_order_status_in_comma();
765
- $cache_group = 'dokan_seller_data_'.$this->id;
766
- $cache_key = $on_date ? "dokan_seller_balance_on_{$on_date}_$this->id" : 'dokan_seller_balance_' . $this->id;
767
- $earning = wp_cache_get( $cache_key, $cache_group );
768
- $threshold_day = dokan_get_withdraw_threshold( dokan_get_current_user_id() );
769
- $on_date = $on_date ? date( 'Y-m-d', strtotime( $on_date ) ) : current_time( 'mysql' );
770
- $date = date( 'Y-m-d', strtotime( $on_date . ' -'.$threshold_day.' days' ) );
 
 
771
 
772
  if ( false === $earning ) {
773
  $installed_version = get_option( 'dokan_theme_version' );
 
 
774
  if ( ! $installed_version || version_compare( $installed_version, '2.8.2', '>' ) ) {
775
  $result = $wpdb->get_row( $wpdb->prepare(
776
  "SELECT SUM(debit) as earnings,
777
  ( SELECT SUM(credit) FROM {$wpdb->prefix}dokan_vendor_balance WHERE vendor_id = %d AND DATE(balance_date) <= %s ) as withdraw
778
  from {$wpdb->prefix}dokan_vendor_balance
779
  WHERE vendor_id = %d AND DATE(balance_date) <= %s AND status IN($status)",
780
- $this->id, $on_date, $this->id, $on_date ) );
781
  } else {
782
  $result = $wpdb->get_row( $wpdb->prepare(
783
  "SELECT SUM(net_amount) as earnings,
784
  (SELECT SUM(amount) FROM {$wpdb->prefix}dokan_withdraw WHERE user_id = %d AND status = 1 AND DATE(`date`) <= %s) as withdraw
785
  FROM {$wpdb->prefix}dokan_orders as do LEFT JOIN {$wpdb->prefix}posts as p ON do.order_id = p.ID
786
  WHERE seller_id = %d AND DATE(p.post_date) <= %s AND order_status IN ($status)",
787
- $this->id, $on_date, $this->id, $date ) );
788
  }
789
 
790
- $earning = (float) $result->earnings - (float) round( $result->withdraw, wc_get_rounding_precision() );
791
 
792
- wp_cache_set( $cache_key, $earning, $cache_group );
793
- dokan_cache_update_group( $cache_key , $cache_group );
794
  }
795
 
796
  if ( $formatted ) {
@@ -809,7 +816,7 @@ class Vendor {
809
  *
810
  * @since 3.0.0
811
  *
812
- * @return void
813
  */
814
  public function get_rating() {
815
  global $wpdb;
@@ -941,6 +948,8 @@ class Vendor {
941
 
942
  wp_update_post( array( 'ID' => $pro->ID, 'post_status' => $status ) );
943
  }
 
 
944
  }
945
  }
946
 
2
 
3
  namespace WeDevs\Dokan\Vendor;
4
 
5
+ use Automattic\WooCommerce\Utilities\NumberUtil;
6
+ use WeDevs\Dokan\Cache;
7
+ use WeDevs\Dokan\Product\ProductCache;
8
  use WP_Query;
9
+ use WP_User;
10
 
11
  /**
12
  * Dokan Vendor
265
  *
266
  * @since 3.0.0
267
  *
268
+ * @return int
269
  */
270
  public function get_id() {
271
  return $this->id;
540
  * @return array
541
  */
542
  public function get_published_products() {
543
+ $transient_group = "seller_product_data_{$this->get_id()}";
544
+ $transient_key = "get_published_products_{$this->get_id()}";
545
 
546
+ if ( false === ( $products = Cache::get_transient( $transient_key, $transient_group ) ) ) {
547
  $products = dokan()->product->all( [
548
  'author' => $this->id,
549
  'post_status' => 'publish',
550
  'fields' => 'ids'
551
  ] );
552
  $products = $products->posts;
553
+ Cache::set_transient( $transient_key, $products, $transient_group );
554
  }
555
 
556
  return $products;
564
  * @return array
565
  */
566
  public function get_best_selling_products() {
567
+ $transient_group = "seller_product_data_{$this->get_id()}";
568
+ $transient_key = "get_best_selling_products_{$this->get_id()}";
569
 
570
+ if ( false === ( $products = Cache::get_transient( $transient_key, $transient_group ) ) ) {
571
  $args = [
572
  'author' => $this->id,
573
  'post_status' => 'publish',
585
 
586
  $products = dokan()->product->best_selling( $args );
587
  $products = $products->posts;
588
+ Cache::set_transient( $transient_key, $products, $transient_group );
589
  }
590
 
591
  return $products;
601
  * @return array
602
  */
603
  public function get_store_categories( $best_selling = false ) {
604
+ $transient_group = "seller_product_data_{$this->get_id()}";
605
+ $transient_key = function_exists( 'wpml_get_current_language' ) ? 'get_store_categories_' . wpml_get_current_language() . '_' . $this->get_id() : 'get_store_categories_' . $this->get_id();
606
  if ( $best_selling ) {
607
+ $transient_key = function_exists( 'wpml_get_current_language' ) ? 'get_best_selling_categories_' . wpml_get_current_language() . '_' . $this->get_id() : 'get_best_selling_categories_' . $this->get_id();
608
  }
609
 
610
+ if ( false === ( $all_categories = Cache::get_transient( $transient_key, $transient_group ) ) ) {
611
  $products = true === $best_selling ? $this->get_best_selling_products() : $this->get_published_products();
612
  if ( empty( $products ) ) {
613
  return [];
662
  }
663
  }
664
 
665
+ Cache::set_transient( $transient_key, $all_categories, $transient_group );
666
  }
667
 
668
  return $all_categories;
705
  public function get_earnings( $formatted = true, $on_date = '' ) {
706
  global $wpdb;
707
 
708
+ $on_date = $on_date && strtotime( $on_date ) ? dokan_current_datetime()->modify( $on_date ) : dokan_current_datetime();
709
+ $cache_group = "seller_order_data_{$this->get_id()}";
710
+ $cache_key = "seller_earnings_{$this->get_id()}_{$on_date->format('Y_m_d')}";
711
+ $earning = Cache::get( $cache_key, $cache_group );
712
+ $on_date = $on_date->format( 'Y-m-d H:i:s' );
 
 
713
 
714
  if ( false === $earning ) {
715
  $installed_version = get_option( 'dokan_theme_version' );
716
+ $status = dokan_withdraw_get_active_order_status_in_comma();
717
 
718
  if ( ! $installed_version || version_compare( $installed_version, '2.8.2', '>' ) ) {
719
+ $debit_balance = $wpdb->get_var( $wpdb->prepare(
720
  "SELECT SUM(debit) AS earnings
721
  FROM {$wpdb->prefix}dokan_vendor_balance
722
  WHERE
723
  vendor_id = %d AND DATE(balance_date) <= %s AND status IN ($status) AND trn_type = 'dokan_orders'",
724
  $this->id, $on_date ) );
725
 
726
+ $credit_balance = $wpdb->get_var( $wpdb->prepare(
727
  "SELECT SUM(credit) AS earnings
728
  FROM {$wpdb->prefix}dokan_vendor_balance
729
  WHERE
730
  vendor_id = %d AND DATE(balance_date) <= %s AND trn_type = %s AND status = %s",
731
+ $this->id, $on_date, 'dokan_refund', 'approved' ) );
732
 
733
+ $earning = floatval( $debit_balance - $credit_balance );
 
 
734
  } else {
735
+ $earning = (float) $wpdb->get_var( $wpdb->prepare(
736
  "SELECT
737
  SUM(net_amount) as earnings
738
  FROM
742
  $this->id, $on_date ) );
743
  }
744
 
745
+ Cache::set( $cache_key, $earning, $cache_group );
 
 
 
746
  }
747
 
748
  if ( $formatted ) {
757
  *
758
  * @since 3.0.0
759
  *
760
+ * @param bool $formatted
761
+ * @param string $on_date
762
+ *
763
+ * @return float|string float if formatted is false, string otherwise
764
  */
765
+ public function get_balance( $formatted = true, $on_date = '' ) {
766
  global $wpdb;
767
 
768
+ $seller_id = $this->get_id() ? $this->get_id() : dokan_get_current_user_id();
769
+ $threshold_day = dokan_get_withdraw_threshold( $seller_id );
770
+ $on_date = $on_date && strtotime( $on_date ) ? dokan_current_datetime()->modify( $on_date ) : dokan_current_datetime();
771
+ $date = $on_date->modify( "- $threshold_day days" )->format( 'Y-m-d' );
772
+ $cache_group = "withdraws_seller_{$seller_id}";
773
+ $cache_key = "seller_balance_{$seller_id}_{$on_date->format( 'Y_m_d' )}";
774
+ $earning = Cache::get( $cache_key, $cache_group );
775
+ $on_date = $on_date->format( 'Y-m-d H:i:s' );
776
+
777
 
778
  if ( false === $earning ) {
779
  $installed_version = get_option( 'dokan_theme_version' );
780
+ $status = dokan_withdraw_get_active_order_status_in_comma();
781
+
782
  if ( ! $installed_version || version_compare( $installed_version, '2.8.2', '>' ) ) {
783
  $result = $wpdb->get_row( $wpdb->prepare(
784
  "SELECT SUM(debit) as earnings,
785
  ( SELECT SUM(credit) FROM {$wpdb->prefix}dokan_vendor_balance WHERE vendor_id = %d AND DATE(balance_date) <= %s ) as withdraw
786
  from {$wpdb->prefix}dokan_vendor_balance
787
  WHERE vendor_id = %d AND DATE(balance_date) <= %s AND status IN($status)",
788
+ $seller_id, $on_date, $seller_id, $on_date ) );
789
  } else {
790
  $result = $wpdb->get_row( $wpdb->prepare(
791
  "SELECT SUM(net_amount) as earnings,
792
  (SELECT SUM(amount) FROM {$wpdb->prefix}dokan_withdraw WHERE user_id = %d AND status = 1 AND DATE(`date`) <= %s) as withdraw
793
  FROM {$wpdb->prefix}dokan_orders as do LEFT JOIN {$wpdb->prefix}posts as p ON do.order_id = p.ID
794
  WHERE seller_id = %d AND DATE(p.post_date) <= %s AND order_status IN ($status)",
795
+ $seller_id, $on_date, $seller_id, $date ) );
796
  }
797
 
798
+ $earning = (float) $result->earnings - (float) NumberUtil::round( $result->withdraw, wc_get_rounding_precision() );
799
 
800
+ Cache::set( $cache_key, $earning, $cache_group );
 
801
  }
802
 
803
  if ( $formatted ) {
816
  *
817
  * @since 3.0.0
818
  *
819
+ * @return array
820
  */
821
  public function get_rating() {
822
  global $wpdb;
948
 
949
  wp_update_post( array( 'ID' => $pro->ID, 'post_status' => $status ) );
950
  }
951
+ // delete product cache
952
+ ProductCache::delete( $this->get_id() );
953
  }
954
  }
955
 
includes/Vendor/VendorCache.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Vendor;
4
+
5
+ use WeDevs\Dokan\Cache;
6
+ use WeDevs\Dokan\Product\ProductCache;
7
+
8
+ /**
9
+ * Vendor Cache class.
10
+ *
11
+ * Manage all of the caches for vendor.
12
+ *
13
+ * @since 3.3.2
14
+ *
15
+ * @see \WeDevs\Dokan\Cache
16
+ */
17
+ class VendorCache {
18
+
19
+ public function __construct() {
20
+ add_action( 'dokan_new_vendor', [ $this, 'clear_cache_group' ], 10 );
21
+ add_action( 'dokan_update_vendor', [ $this, 'clear_cache_group' ], 10 );
22
+ add_action( 'dokan_delete_vendor', [ $this, 'clear_cache_group' ], 10 );
23
+ add_action( 'dokan_vendor_enabled', [ $this, 'clear_cache_group' ], 10 );
24
+ add_action( 'dokan_vendor_disabled', [ $this, 'clear_cache_group' ], 10 );
25
+ add_action( 'dokan_store_profile_saved', [ $this, 'after_update_vendor_profile' ], 10, 2 );
26
+ add_action( 'user_register', [ $this, 'after_created_new_wp_user' ], 10, 2 );
27
+ }
28
+
29
+ /**
30
+ * Clear vendor cache group.
31
+ *
32
+ * @since 3.3.2
33
+ *
34
+ * @return void
35
+ */
36
+ public static function delete() {
37
+ Cache::invalidate_group( 'vendors' );
38
+ }
39
+
40
+ /**
41
+ * Clear Vendor Cache Group.
42
+ *
43
+ * @since 3.3.2
44
+ *
45
+ * @param int $vendor_id
46
+ *
47
+ * @return void
48
+ */
49
+ public function clear_cache_group( $vendor_id ) {
50
+ // Delete vendor cache group
51
+ self::delete();
52
+
53
+ // delete product cache for this vendor
54
+ ProductCache::delete( $vendor_id );
55
+ }
56
+
57
+ /**
58
+ * Clear Vendor Cache Group after vendor profile update.
59
+ *
60
+ * @since 3.3.2
61
+ *
62
+ * @param int $store_id
63
+ * @param array $dokan_settings
64
+ *
65
+ * @return void
66
+ */
67
+ public function after_update_vendor_profile( $store_id, $dokan_settings ) {
68
+ // We'll just delete vendor cache group,
69
+ // no need to delete product caches
70
+ self::delete();
71
+ }
72
+
73
+ /**
74
+ * Clear Vendor Cache Group after new user added to wp user.
75
+ *
76
+ * @since 3.3.2
77
+ *
78
+ * @param int $user_id
79
+ * @param array $userdata
80
+ *
81
+ * @return void
82
+ */
83
+ public function after_created_new_wp_user( $user_id, $userdata ) {
84
+ // If a user is created with seller role, then delete vendor cache.
85
+ if ( ! empty( $userdata['role'] && 'seller' === $userdata['role'] ) ) {
86
+ self::delete();
87
+ }
88
+ }
89
+ }
includes/Withdraw/Hooks.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  namespace WeDevs\Dokan\Withdraw;
4
 
 
 
5
  class Hooks {
6
 
7
  /**
@@ -12,29 +14,14 @@ class Hooks {
12
  * @return void
13
  */
14
  public function __construct() {
15
- add_action( 'dokan_withdraw_status_updated', [ self::class, 'delete_seller_balance_cache' ], 10, 3 );
16
- add_action( 'dokan_withdraw_request_approved', [ self::class, 'update_vendor_balance' ], 11 );
17
- }
18
 
19
- /**
20
- * Delete seller balance cache after a withdraw update
21
- *
22
- * @since 3.0.0
23
- *
24
- * @param string $status
25
- * @param int $user_id
26
- * @param int $id
27
- *
28
- * @return void
29
- */
30
- public static function delete_seller_balance_cache( $status, $user_id, $id ) {
31
- $cache_group = 'dokan_seller_data_' . $user_id;
32
- $cache_key = 'dokan_seller_balance_' . $user_id;
33
- wp_cache_delete( $cache_key, $cache_group );
34
  }
35
 
36
  /**
37
- * Update vendor balance after approve a request
38
  *
39
  * @since 3.0.0
40
  *
@@ -42,10 +29,10 @@ class Hooks {
42
  *
43
  * @return void
44
  */
45
- public static function update_vendor_balance( $withdraw ) {
46
  global $wpdb;
47
 
48
- if ( round( dokan_get_seller_balance( $withdraw->get_user_id(), false ), 2 ) < round( $withdraw->get_amount(), 2 ) ) {
49
  return;
50
  }
51
 
@@ -84,7 +71,5 @@ class Hooks {
84
  )
85
  );
86
  }
87
-
88
- self::delete_seller_balance_cache( $withdraw->get_status(), $withdraw->get_user_id(), $withdraw->get_id() );
89
  }
90
  }
2
 
3
  namespace WeDevs\Dokan\Withdraw;
4
 
5
+ use Automattic\WooCommerce\Utilities\NumberUtil;
6
+
7
  class Hooks {
8
 
9
  /**
14
  * @return void
15
  */
16
  public function __construct() {
17
+ add_action( 'dokan_withdraw_request_approved', [ $this, 'update_vendor_balance' ], 11 );
 
 
18
 
19
+ // Init Withdraw Cache Class
20
+ new WithdrawCache();
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
  /**
24
+ * Update vendor balance after approve a request.
25
  *
26
  * @since 3.0.0
27
  *
29
  *
30
  * @return void
31
  */
32
+ public function update_vendor_balance( $withdraw ) {
33
  global $wpdb;
34
 
35
+ if ( NumberUtil::round( dokan_get_seller_balance( $withdraw->get_user_id(), false ), 2 ) < NumberUtil::round( $withdraw->get_amount(), 2 ) ) {
36
  return;
37
  }
38
 
71
  )
72
  );
73
  }
 
 
74
  }
75
  }
includes/Withdraw/Manager.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace WeDevs\Dokan\Withdraw;
4
 
 
5
  use WP_Error;
6
  use WeDevs\Dokan\Withdraw\Withdraws;
7
 
@@ -230,12 +231,22 @@ class Manager {
230
  * @return array
231
  */
232
  public function get_withdraw_requests( $user_id = '', $status = 0, $limit = 10, $offset = 0 ) {
233
- global $wpdb;
 
 
 
 
 
 
 
 
 
 
 
 
 
234
 
235
- if ( empty( $user_id ) ) {
236
- $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->dokan_withdraw} WHERE status = %d LIMIT %d, %d", $status, $offset, $limit ) );
237
- } else {
238
- $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->dokan_withdraw} WHERE user_id = %d AND status = %d LIMIT %d, %d", $user_id, $status, $offset, $limit ) );
239
  }
240
 
241
  return $result;
2
 
3
  namespace WeDevs\Dokan\Withdraw;
4
 
5
+ use WeDevs\Dokan\Cache;
6
  use WP_Error;
7
  use WeDevs\Dokan\Withdraw\Withdraws;
8
 
231
  * @return array
232
  */
233
  public function get_withdraw_requests( $user_id = '', $status = 0, $limit = 10, $offset = 0 ) {
234
+ // get all function arguments as key => value pairs
235
+ $args = get_defined_vars();
236
+
237
+ $cache_group = empty( $user_id ) ? 'withdraws' : "withdraws_seller_{$user_id}";
238
+ $cache_key = 'withdraw_requests_' . md5( wp_json_encode( $args ) );
239
+ $result = Cache::get( $cache_key, $cache_group );
240
+
241
+ if ( false === $result ) {
242
+ global $wpdb;
243
+ if ( empty( $user_id ) ) {
244
+ $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->dokan_withdraw} WHERE status = %d LIMIT %d, %d", $status, $offset, $limit ) );
245
+ } else {
246
+ $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->dokan_withdraw} WHERE user_id = %d AND status = %d LIMIT %d, %d", $user_id, $status, $offset, $limit ) );
247
+ }
248
 
249
+ Cache::set( $cache_key, $result, $cache_group );
 
 
 
250
  }
251
 
252
  return $result;
includes/Withdraw/WithdrawCache.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WeDevs\Dokan\Withdraw;
4
+
5
+ use WeDevs\Dokan\Cache;
6
+
7
+ /**
8
+ * Withdraw Cache class.
9
+ *
10
+ * Manage all of the caches for vendor and admin withdrawal functionalities.
11
+ *
12
+ * @since 3.3.2
13
+ *
14
+ * @see \WeDevs\Dokan\Cache
15
+ */
16
+ class WithdrawCache {
17
+
18
+ public function __construct() {
19
+ // after withdraw request is created
20
+ add_action( 'dokan_after_withdraw_request', [ $this, 'withdraw_request_created' ], 10, 3 );
21
+ // after withdraw status is updated
22
+ add_action( 'dokan_withdraw_status_updated', [ $this, 'withdraw_status_updated' ], 10, 3 );
23
+
24
+ // this will handle dokan_withdraw_request_(pending/approved/cancelled) hooks
25
+ add_action( 'dokan_withdraw_updated', [ $this, 'invalidate_withdraw_cache' ], 10 );
26
+ // after withdraw request is deleted
27
+ add_action( 'dokan_withdraw_deleted', [ $this, 'invalidate_withdraw_cache' ], 10 );
28
+ }
29
+
30
+ /**
31
+ * Clear Withdraw Cache Group for Seller.
32
+ *
33
+ * @since 3.3.2
34
+ *
35
+ * @param int $seller_id
36
+ *
37
+ * @return void
38
+ */
39
+ public static function delete( $seller_id ) {
40
+ $cache_group = "withdraws_seller_$seller_id";
41
+ Cache::invalidate_group( $cache_group );
42
+ Cache::invalidate_group( 'withdraws' );
43
+ }
44
+
45
+ /**
46
+ * Clear Cache After Seller Withdraw request.
47
+ *
48
+ * @since 3.3.2
49
+ *
50
+ * @param int $seller_id
51
+ * @param float $amount
52
+ * @param string $method
53
+ *
54
+ * @return void
55
+ */
56
+ public function withdraw_request_created( $seller_id, $amount, $method ) {
57
+ static::delete( $seller_id );
58
+ }
59
+
60
+ /**
61
+ * Delete seller balance cache after a withdraw status is update.
62
+ *
63
+ * @since 3.3.2
64
+ *
65
+ * @param string $status
66
+ * @param int $seller_id
67
+ * @param int $id
68
+ *
69
+ * @return void
70
+ */
71
+ public function withdraw_status_updated( $status, $seller_id, $id ) {
72
+ static::delete( $seller_id );
73
+ }
74
+
75
+ /**
76
+ * Handle cache on Approve/Reject withdraw request.
77
+ *
78
+ * @since 3.3.2
79
+ *
80
+ * @param Withdraw $withdraw
81
+ *
82
+ * @return void
83
+ */
84
+ public function invalidate_withdraw_cache( $withdraw ) {
85
+ $seller_id = $withdraw->get_user_id();
86
+ static::delete( $seller_id );
87
+ }
88
+ }
includes/Withdraw/functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * Get default withdraw methods for vendor
4
  *
@@ -226,8 +229,9 @@ function dokan_withdraw_method_bank( $store_settings ) {
226
  function dokan_get_withdraw_count( $user_id = null ) {
227
  global $wpdb;
228
 
229
- $cache_key = 'dokan_withdraw_count-' . $user_id;
230
- $counts = wp_cache_get( $cache_key );
 
231
 
232
  if ( false === $counts ) {
233
  $counts = [
@@ -253,6 +257,8 @@ function dokan_get_withdraw_count( $user_id = null ) {
253
  }
254
  }
255
  }
 
 
256
  }
257
 
258
  return $counts;
1
  <?php
2
+
3
+ use WeDevs\Dokan\Cache;
4
+
5
  /**
6
  * Get default withdraw methods for vendor
7
  *
229
  function dokan_get_withdraw_count( $user_id = null ) {
230
  global $wpdb;
231
 
232
+ $cache_group = empty( $user_id ) ? 'withdraws' : "withdraws_seller_$user_id";
233
+ $cache_key = "get_withdraw_count_{$user_id}";
234
+ $counts = Cache::get( $cache_key, $cache_group );
235
 
236
  if ( false === $counts ) {
237
  $counts = [
257
  }
258
  }
259
  }
260
+
261
+ Cache::set( $cache_key, $counts, $cache_group );
262
  }
263
 
264
  return $counts;
includes/functions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /**
3
  * Dokan Admin menu position
4
  *
@@ -31,7 +34,7 @@ function dokana_admin_menu_capability() {
31
  function dokan_get_current_user_id() {
32
  if ( current_user_can( 'vendor_staff' ) ) {
33
  $staff_id = get_current_user_id();
34
- $vendor_id = get_user_meta( $staff_id, '_vendor_id', true );
35
 
36
  if ( empty( $vendor_id ) ) {
37
  return $staff_id;
@@ -188,25 +191,21 @@ function dokan_redirect_if_not_seller( $redirect = '' ) {
188
  * @return array
189
  */
190
  function dokan_count_posts( $post_type, $user_id, $exclude_product_types = array( 'booking' ) ) {
191
- global $wpdb;
 
192
 
193
- $exclude_product_types = esc_sql( $exclude_product_types );
194
- $exclude_product_types_text = "'" . implode( "', '", $exclude_product_types ) . "'";
195
- $exclude_product_types_key = implode( '-', $exclude_product_types );
196
- $cache_group = 'dokan_cache_seller_product_data_' . $user_id;
197
- $cache_key = 'dokan-count-' . $post_type . '-' . $exclude_product_types_key . '-' . $user_id;
198
- $counts = wp_cache_get( $cache_key, $cache_group );
199
- $tracked_cache_keys = get_option( $cache_group, [] );
200
-
201
- if ( ! in_array( $cache_key, $tracked_cache_keys, true ) ) {
202
- $tracked_cache_keys[] = $cache_key;
203
- update_option( $cache_group, $tracked_cache_keys );
204
- }
205
 
206
  if ( false === $counts ) {
207
  $results = apply_filters( 'dokan_count_posts', null, $post_type, $user_id );
208
 
209
  if ( ! $results ) {
 
 
 
 
210
  $results = $wpdb->get_results(
211
  $wpdb->prepare(
212
  "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} as posts
@@ -242,7 +241,7 @@ function dokan_count_posts( $post_type, $user_id, $exclude_product_types = array
242
  $counts['total'] = $total;
243
  $counts = (object) $counts;
244
 
245
- wp_cache_set( $cache_key, $counts, $cache_group, 3600 * 6 );
246
  }
247
 
248
  return $counts;
@@ -264,16 +263,9 @@ function dokan_count_posts( $post_type, $user_id, $exclude_product_types = array
264
  function dokan_count_stock_posts( $post_type, $user_id, $stock_type ) {
265
  global $wpdb;
266
 
267
- $cache_group = 'dokan_cache_seller_product_stock_data_' . $user_id;
268
- $cache_key = 'dokan-count-' . $post_type . '_' . $stock_type . '-' . $user_id;
269
- $counts = wp_cache_get( $cache_key, $cache_group );
270
- $get_old_cache = get_option( $cache_group, [] );
271
-
272
- if ( ! in_array( $cache_key, $get_old_cache, true ) ) {
273
- $get_old_cache[] = $cache_key;
274
- }
275
-
276
- update_option( $cache_group, $get_old_cache );
277
 
278
  if ( false === $counts ) {
279
  $results = apply_filters( 'dokan_count_posts_' . $stock_type, null, $post_type, $user_id );
@@ -309,7 +301,7 @@ function dokan_count_stock_posts( $post_type, $user_id, $stock_type ) {
309
 
310
  $counts = $total;
311
 
312
- wp_cache_set( $cache_key, $counts, $cache_group, 3600 * 6 );
313
  }
314
 
315
  return $counts;
@@ -329,8 +321,9 @@ function dokan_count_stock_posts( $post_type, $user_id, $stock_type ) {
329
  function dokan_count_comments( $post_type, $user_id ) {
330
  global $wpdb;
331
 
332
- $cache_key = 'dokan-count-comments-' . $post_type . '-' . $user_id;
333
- $counts = wp_cache_get( $cache_key, 'dokan-lite' );
 
334
 
335
  if ( $counts === false ) {
336
  $count = $wpdb->get_results(
@@ -373,7 +366,7 @@ function dokan_count_comments( $post_type, $user_id ) {
373
  $counts['total'] = $total;
374
 
375
  $counts = (object) $counts;
376
- wp_cache_set( $cache_key, $counts, 'dokan-lite', 3600 * 2 );
377
  }
378
 
379
  return $counts;
@@ -391,10 +384,10 @@ function dokan_count_comments( $post_type, $user_id ) {
391
  function dokan_author_pageviews( $seller_id ) {
392
  global $wpdb;
393
 
394
- $cache_key = 'dokan-pageview-' . $seller_id;
395
- $pageview = wp_cache_get( $cache_key, 'dokan_page_view' );
396
 
397
- if ( $pageview === false ) {
398
  $count = $wpdb->get_row(
399
  $wpdb->prepare(
400
  "SELECT SUM(meta_value) as pageview
@@ -407,7 +400,7 @@ function dokan_author_pageviews( $seller_id ) {
407
 
408
  $pageview = $count->pageview;
409
 
410
- wp_cache_set( $cache_key, $pageview, 'dokan_page_view', 3600 * 4 );
411
  }
412
 
413
  return $pageview;
@@ -425,22 +418,19 @@ function dokan_author_pageviews( $seller_id ) {
425
  function dokan_author_total_sales( $seller_id ) {
426
  global $wpdb;
427
 
428
- $cache_group = 'dokan_seller_data_' . $seller_id;
429
- $cache_key = 'dokan-earning-' . $seller_id;
430
- $earnings = wp_cache_get( $cache_key, $cache_group );
431
 
432
- if ( $earnings === false ) {
433
- $count = $wpdb->get_row(
434
  $wpdb->prepare( "SELECT SUM(order_total) as earnings FROM {$wpdb->prefix}dokan_orders WHERE seller_id = %d AND order_status IN('wc-completed', 'wc-processing', 'wc-on-hold')", $seller_id )
435
  );
436
 
437
- $earnings = $count->earnings;
438
-
439
- wp_cache_set( $cache_key, $earnings, $cache_group );
440
- dokan_cache_update_group( $cache_key, $cache_group );
441
  }
442
 
443
- return apply_filters( 'dokan_seller_total_sales', $earnings );
444
  }
445
 
446
  /**
@@ -1635,8 +1625,8 @@ function dokan_get_product_count( $from = null, $to = null, $seller_id = null )
1635
  [
1636
  'date_query' => [
1637
  [
1638
- 'year' => date( 'Y' ),
1639
- 'month' => date( 'm' ),
1640
  ],
1641
  ],
1642
  'author' => $seller_id ? $seller_id : '',
@@ -1648,8 +1638,8 @@ function dokan_get_product_count( $from = null, $to = null, $seller_id = null )
1648
  [
1649
  'date_query' => [
1650
  [
1651
- 'year' => date( 'Y', strtotime( 'last month' ) ),
1652
- 'month' => date( 'm', strtotime( 'last month' ) ),
1653
  ],
1654
  ],
1655
  'author' => $seller_id ? $seller_id : '',
@@ -2806,79 +2796,6 @@ function dokan_get_category_wise_seller_commission_type( $product_id, $category_
2806
  return $category_commision;
2807
  }
2808
 
2809
- /**
2810
- * Keep record of keys by group name
2811
- *
2812
- * @since 2.6.9
2813
- *
2814
- * @param string $key
2815
- * @param string $group
2816
- *
2817
- * @return void
2818
- */
2819
- function dokan_cache_update_group( $key, $group ) {
2820
- $keys = get_option( $group, [] );
2821
-
2822
- if ( in_array( $key, $keys ) ) {
2823
- return;
2824
- }
2825
-
2826
- $keys[] = $key;
2827
- update_option( $group, $keys );
2828
- }
2829
-
2830
- /**
2831
- * Bulk clear cache values by group name
2832
- *
2833
- * @since 2.6.9
2834
- *
2835
- * @param string $group
2836
- *
2837
- * @return void
2838
- */
2839
- function dokan_cache_clear_group( $group ) {
2840
- $keys = get_option( $group, [] );
2841
-
2842
- if ( ! empty( $keys ) ) {
2843
- foreach ( $keys as $key ) {
2844
- wp_cache_delete( $key, $group );
2845
- unset( $keys[ $key ] );
2846
- }
2847
- }
2848
-
2849
- update_option( $group, $keys );
2850
- }
2851
-
2852
- //cache reset actions
2853
- add_action( 'dokan_checkout_update_order_meta', 'dokan_cache_reset_seller_order_data', 10, 2 );
2854
- add_action( 'woocommerce_order_status_changed', 'dokan_cache_reset_order_data_on_status', 10, 4 );
2855
- add_action( 'dokan_new_product_added', 'dokan_cache_clear_seller_product_data', 20, 2 );
2856
- add_action( 'dokan_product_updated', 'dokan_cache_clear_seller_product_data', 20 );
2857
-
2858
- /**
2859
- * Reset cache group related to seller orders
2860
- */
2861
- function dokan_cache_reset_seller_order_data( $order_id, $seller_id ) {
2862
- dokan_cache_clear_group( 'dokan_seller_data_' . $seller_id );
2863
- }
2864
-
2865
- function dokan_cache_reset_order_data_on_status( $order_id, $from_status, $to_status, $order ) {
2866
- $seller_id = dokan_get_seller_id_by_order( $order_id );
2867
- dokan_cache_clear_group( 'dokan_seller_data_' . $seller_id );
2868
- }
2869
-
2870
- /**
2871
- * Reset cache group related to seller products
2872
- */
2873
- function dokan_cache_clear_seller_product_data( $product_id, $post_data = [] ) {
2874
- $seller_id = dokan_get_current_user_id();
2875
-
2876
- dokan_clear_product_caches( $product_id );
2877
- dokan_cache_clear_group( 'dokan_seller_product_data_' . $seller_id );
2878
- dokan_cache_clear_group( 'dokan_cache_seller_product_data_' . $seller_id );
2879
- dokan_cache_clear_group( 'dokan_cache_seller_product_stock_data_' . $seller_id );
2880
- }
2881
-
2882
  /**
2883
  * Get seller earning for a given product
2884
  *
1
  <?php
2
+
3
+ use WeDevs\Dokan\Cache;
4
+
5
  /**
6
  * Dokan Admin menu position
7
  *
34
  function dokan_get_current_user_id() {
35
  if ( current_user_can( 'vendor_staff' ) ) {
36
  $staff_id = get_current_user_id();
37
+ $vendor_id = (int) get_user_meta( $staff_id, '_vendor_id', true );
38
 
39
  if ( empty( $vendor_id ) ) {
40
  return $staff_id;
191
  * @return array
192
  */
193
  function dokan_count_posts( $post_type, $user_id, $exclude_product_types = array( 'booking' ) ) {
194
+ // get all function arguments as key => value pairs
195
+ $args = get_defined_vars();
196
 
197
+ $cache_group = "seller_product_data_$user_id";
198
+ $cache_key = 'count_posts_' . md5( wp_json_encode( $args ) );
199
+ $counts = Cache::get( $cache_key, $cache_group );
 
 
 
 
 
 
 
 
 
200
 
201
  if ( false === $counts ) {
202
  $results = apply_filters( 'dokan_count_posts', null, $post_type, $user_id );
203
 
204
  if ( ! $results ) {
205
+ global $wpdb;
206
+ $exclude_product_types = esc_sql( $exclude_product_types );
207
+ $exclude_product_types_text = "'" . implode( "', '", $exclude_product_types ) . "'";
208
+
209
  $results = $wpdb->get_results(
210
  $wpdb->prepare(
211
  "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} as posts
241
  $counts['total'] = $total;
242
  $counts = (object) $counts;
243
 
244
+ Cache::set( $cache_key, $counts, $cache_group );
245
  }
246
 
247
  return $counts;
263
  function dokan_count_stock_posts( $post_type, $user_id, $stock_type ) {
264
  global $wpdb;
265
 
266
+ $cache_group = 'seller_product_stock_data_' . $user_id;
267
+ $cache_key = "count_stock_posts_{$user_id}_{$post_type}_{$stock_type}";
268
+ $counts = Cache::get( $cache_key, $cache_group );
 
 
 
 
 
 
 
269
 
270
  if ( false === $counts ) {
271
  $results = apply_filters( 'dokan_count_posts_' . $stock_type, null, $post_type, $user_id );
301
 
302
  $counts = $total;
303
 
304
+ Cache::set( $cache_key, $counts, $cache_group );
305
  }
306
 
307
  return $counts;
321
  function dokan_count_comments( $post_type, $user_id ) {
322
  global $wpdb;
323
 
324
+ $cache_group = "count_{$post_type}_comments_{$user_id}";
325
+ $cache_key = 'comments';
326
+ $counts = Cache::get( $cache_key, $cache_group );
327
 
328
  if ( $counts === false ) {
329
  $count = $wpdb->get_results(
366
  $counts['total'] = $total;
367
 
368
  $counts = (object) $counts;
369
+ Cache::set( $cache_key, $counts, $cache_group );
370
  }
371
 
372
  return $counts;
384
  function dokan_author_pageviews( $seller_id ) {
385
  global $wpdb;
386
 
387
+ $cache_key = "pageview_{$seller_id}";
388
+ $pageview = Cache::get( $cache_key );
389
 
390
+ if ( false === $pageview ) {
391
  $count = $wpdb->get_row(
392
  $wpdb->prepare(
393
  "SELECT SUM(meta_value) as pageview
400
 
401
  $pageview = $count->pageview;
402
 
403
+ Cache::set( $cache_key, $pageview );
404
  }
405
 
406
  return $pageview;
418
  function dokan_author_total_sales( $seller_id ) {
419
  global $wpdb;
420
 
421
+ $cache_group = "seller_order_data_{$seller_id}";
422
+ $cache_key = "earning_{$seller_id}";
423
+ $earnings = Cache::get( $cache_key, $cache_group );
424
 
425
+ if ( false === $earnings ) {
426
+ $earnings = (int) $wpdb->get_var(
427
  $wpdb->prepare( "SELECT SUM(order_total) as earnings FROM {$wpdb->prefix}dokan_orders WHERE seller_id = %d AND order_status IN('wc-completed', 'wc-processing', 'wc-on-hold')", $seller_id )
428
  );
429
 
430
+ Cache::set( $cache_key, $earnings, $cache_group );
 
 
 
431
  }
432
 
433
+ return apply_filters( 'dokan_seller_total_sales', $earnings, $seller_id );
434
  }
435
 
436
  /**
1625
  [
1626
  'date_query' => [
1627
  [
1628
+ 'year' => dokan_current_datetime()->format( 'Y' ),
1629
+ 'month' => dokan_current_datetime()->format( 'm' ),
1630
  ],
1631
  ],
1632
  'author' => $seller_id ? $seller_id : '',
1638
  [
1639
  'date_query' => [
1640
  [
1641
+ 'year' => dokan_current_datetime()->modify( 'last month' )->format( 'Y' ),
1642
+ 'month' => dokan_current_datetime()->modify( 'last month' )->format( 'm' ),
1643
  ],
1644
  ],
1645
  'author' => $seller_id ? $seller_id : '',
2796
  return $category_commision;
2797
  }
2798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2799
  /**
2800
  * Get seller earning for a given product
2801
  *
includes/reports.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
 
 
 
3
  if ( ! function_exists( 'dokan_get_order_report_data' ) ) :
4
  /**
5
  * Generate SQL query and fetch the report data based on the arguments passed
@@ -220,7 +222,11 @@ if ( ! function_exists( 'dokan_get_order_report_data' ) ) :
220
  error_log( '<pre>%s</pre>', print_r( $query, true ) );
221
  }
222
 
223
- if ( $debug || $nocache || ( false === ( $result = get_transient( 'dokan_wc_report_' . $query_hash ) ) ) ) {
 
 
 
 
224
  $result = apply_filters( 'dokan_reports_get_order_report_data', $wpdb->$query_type( $query ), $data );
225
 
226
  if ( $filter_range ) {
@@ -233,7 +239,7 @@ if ( ! function_exists( 'dokan_get_order_report_data' ) ) :
233
  $expiration = 60 * 60 * 24; // 24 hour
234
  }
235
 
236
- set_transient( 'dokan_wc_report_' . $query_hash, $result, $expiration );
237
  }
238
 
239
  return $result;
1
  <?php
2
 
3
+ use WeDevs\Dokan\Cache;
4
+
5
  if ( ! function_exists( 'dokan_get_order_report_data' ) ) :
6
  /**
7
  * Generate SQL query and fetch the report data based on the arguments passed
222
  error_log( '<pre>%s</pre>', print_r( $query, true ) );
223
  }
224
 
225
+ $cache_group = "report_data_seller_{$current_user}";
226
+ $cache_key = 'wc_report_' . $query_hash;
227
+
228
+ $result = Cache::get_transient( $cache_key, $cache_group );
229
+ if ( $debug || $nocache || ( false === $result ) ) {
230
  $result = apply_filters( 'dokan_reports_get_order_report_data', $wpdb->$query_type( $query ), $data );
231
 
232
  if ( $filter_range ) {
239
  $expiration = 60 * 60 * 24; // 24 hour
240
  }
241
 
242
+ Cache::set_transient( $cache_key, $result, $cache_group, $expiration );
243
  }
244
 
245
  return $result;
includes/wc-functions.php CHANGED
@@ -943,42 +943,6 @@ function dokan_save_account_details() {
943
 
944
  add_action( 'template_redirect', 'dokan_save_account_details' );
945
 
946
-
947
- /**
948
- * This method will delete product/category related cache for a particular vendor
949
- *
950
- * @param int $post_id
951
- */
952
- function dokan_clear_product_category_cache( $post_id ) {
953
- $product = wc_get_product( $post_id );
954
-
955
- if ( ! $product ) {
956
- return;
957
- }
958
-
959
- $seller_id = get_post_field( 'post_author', $post_id );
960
-
961
- delete_transient( 'dokan-store-category-' . $seller_id );
962
-
963
- // delete vendor get_published_products() method transient
964
- delete_transient( 'dokan_vendor_get_published_products_' . $seller_id );
965
- delete_transient( 'dokan_vendor_get_best_selling_products_' . $seller_id );
966
-
967
- if ( function_exists( 'wpml_get_active_languages' ) ) {
968
- foreach ( wpml_get_active_languages() as $active_language ) {
969
- delete_transient( 'dokan_vendor_get_store_categories_' . $active_language['code'] . '_' . $seller_id );
970
- delete_transient( 'dokan_vendor_get_best_selling_categories_' . $active_language['code'] . '_' . $seller_id );
971
- }
972
- }
973
-
974
- delete_transient( 'dokan_vendor_get_store_categories_' . $seller_id );
975
- delete_transient( 'dokan_vendor_get_best_selling_categories_' . $seller_id );
976
- }
977
- add_action( 'wp_trash_post', 'dokan_clear_product_category_cache', 10, 1 );
978
- add_action( 'delete_post', 'dokan_clear_product_category_cache', 10, 1 );
979
- add_action( 'woocommerce_new_product', 'dokan_clear_product_category_cache', 10, 1 );
980
- add_action( 'woocommerce_update_product', 'dokan_clear_product_category_cache', 10, 1 );
981
-
982
  /**
983
  * This method will delete vendors best selling product cache after a new order has been made
984
  *
943
 
944
  add_action( 'template_redirect', 'dokan_save_account_details' );
945
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
946
  /**
947
  * This method will delete vendors best selling product cache after a new order has been made
948
  *
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.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2021-11-12 09:47:07+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -46,18 +46,18 @@ msgid ""
46
  "Running PHP %2$s"
47
  msgstr ""
48
 
49
- #: dokan.php:466
50
  msgid "Get Pro"
51
  msgstr ""
52
 
53
- #: dokan.php:469 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:470 src/admin/pages/ProModules.vue:33
61
  msgid "Documentation"
62
  msgstr ""
63
 
@@ -89,7 +89,7 @@ msgid "Method '%s' not implemented. Must be overridden in subclass."
89
  msgstr ""
90
 
91
  #: includes/Abstracts/DokanRESTController.php:69
92
- #: includes/REST/ProductController.php:836
93
  msgid ""
94
  "To manipulate product variations you should use the "
95
  "/products/&lt;product_id&gt;/variations/&lt;id&gt; endpoint."
@@ -97,8 +97,8 @@ msgstr ""
97
 
98
  #: includes/Abstracts/DokanRESTController.php:71
99
  #: includes/REST/OrderController.php:211
100
- #: includes/REST/ProductController.php:321
101
- #: includes/REST/ProductController.php:346
102
  msgid "Invalid ID."
103
  msgstr ""
104
 
@@ -116,14 +116,14 @@ msgid "Dokan"
116
  msgstr ""
117
 
118
  #: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
119
- #: includes/Admin/Settings.php:518 includes/Install/Installer.php:172
120
  #: includes/template-tags.php:386 src/admin/pages/Dashboard.vue:5
121
  msgid "Dashboard"
122
  msgstr ""
123
 
124
  #: includes/Admin/AdminBar.php:63 includes/Admin/Menu.php:32
125
  #: includes/Admin/Menu.php:44 includes/Admin/SetupWizard.php:160
126
- #: includes/functions.php:3061 includes/template-tags.php:408
127
  #: templates/withdraw/header.php:11
128
  msgid "Withdraw"
129
  msgstr ""
@@ -146,7 +146,7 @@ msgstr ""
146
 
147
  #: includes/Admin/Hooks.php:64 includes/Admin/Hooks.php:70
148
  #: includes/Admin/Hooks.php:365 includes/Admin/Hooks.php:387
149
- #: includes/Admin/Settings.php:419 includes/Admin/Settings.php:430
150
  #: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:108
151
  #: includes/wc-template.php:17 includes/wc-template.php:167
152
  #: includes/wc-template.php:316 src/admin/pages/Dashboard.vue:38
@@ -352,7 +352,7 @@ msgstr ""
352
  msgid "You have no permission to get settings value"
353
  msgstr ""
354
 
355
- #: includes/Admin/Settings.php:96 includes/Admin/Settings.php:723
356
  msgid "You are not authorized to perform this action."
357
  msgstr ""
358
 
@@ -376,24 +376,24 @@ msgstr ""
376
  msgid "Appearance"
377
  msgstr ""
378
 
379
- #: includes/Admin/Settings.php:297 includes/Admin/Settings.php:659
380
  msgid "Privacy Policy"
381
  msgstr ""
382
 
383
  #: includes/Admin/Settings.php:319 includes/Admin/SetupWizard.php:524
384
  #: includes/Dashboard/Templates/Dashboard.php:101
385
- #: includes/Order/functions.php:562 templates/dashboard/orders-widget.php:26
386
  msgid "Completed"
387
  msgstr ""
388
 
389
  #: includes/Admin/Settings.php:320 includes/Admin/SetupWizard.php:530
390
  #: includes/Dashboard/Templates/Dashboard.php:111
391
- #: includes/Order/functions.php:577 templates/dashboard/orders-widget.php:36
392
  #: templates/orders/listing.php:151
393
  msgid "Processing"
394
  msgstr ""
395
 
396
- #: includes/Admin/Settings.php:321 includes/Order/functions.php:572
397
  msgid "On-hold"
398
  msgstr ""
399
 
@@ -437,222 +437,281 @@ msgstr ""
437
  msgid "Disable welcome wizard for newly registered vendors"
438
  msgstr ""
439
 
440
- #: includes/Admin/Settings.php:367
 
 
 
 
 
 
441
  msgid "Vendor Store Options"
442
  msgstr ""
443
 
444
- #: includes/Admin/Settings.php:372
445
  msgid "Store Terms and Conditions"
446
  msgstr ""
447
 
448
- #: includes/Admin/Settings.php:373
449
  msgid "Enable Terms and Conditions for vendor stores"
450
  msgstr ""
451
 
452
- #: includes/Admin/Settings.php:379 includes/Vendor/SetupWizard.php:185
 
 
 
 
 
 
453
  #: templates/settings/store-form.php:125
454
  msgid "Store Products Per Page"
455
  msgstr ""
456
 
457
- #: includes/Admin/Settings.php:380
458
  msgid ""
459
  "Set how many products to display per page on the vendor store page. It will "
460
  "affect only if the vendor isn't set this value on their vendor setting page."
461
  msgstr ""
462
 
463
- #: includes/Admin/Settings.php:391
 
 
 
 
 
 
464
  msgid "Commission"
465
  msgstr ""
466
 
467
- #: includes/Admin/Settings.php:396
468
  msgid "Commission Type "
469
  msgstr ""
470
 
471
- #: includes/Admin/Settings.php:397
472
  msgid "Select a commission type for Vendor"
473
  msgstr ""
474
 
475
- #: includes/Admin/Settings.php:404 src/admin/pages/VendorPaymentFields.vue:69
 
 
 
 
476
  #: src/admin/pages/VendorPaymentFields.vue:78
477
  #: templates/admin-setup-wizard/step-selling.php:31
478
  msgid "Admin Commission"
479
  msgstr ""
480
 
481
- #: includes/Admin/Settings.php:405
482
  msgid "Amount you get from each sale"
483
  msgstr ""
484
 
485
- #: includes/Admin/Settings.php:415
486
  #: templates/admin-setup-wizard/step-store.php:14
487
  msgid "Shipping Fee Recipient"
488
  msgstr ""
489
 
490
- #: includes/Admin/Settings.php:416
491
  msgid "Who will be receiving the Shipping fees"
492
  msgstr ""
493
 
494
- #: includes/Admin/Settings.php:420 includes/Admin/Settings.php:431
495
  #: includes/Admin/SetupWizard.php:346
496
  msgid "Admin"
497
  msgstr ""
498
 
499
- #: includes/Admin/Settings.php:426
500
  #: templates/admin-setup-wizard/step-store.php:28
501
  msgid "Tax Fee Recipient"
502
  msgstr ""
503
 
504
- #: includes/Admin/Settings.php:427
505
  msgid "Who will be receiving the Tax fees"
506
  msgstr ""
507
 
508
- #: includes/Admin/Settings.php:442
509
  msgid "Vendor Capability"
510
  msgstr ""
511
 
512
- #: includes/Admin/Settings.php:447
513
  msgid "New Vendor Product Upload"
514
  msgstr ""
515
 
516
- #: includes/Admin/Settings.php:448
517
  msgid "Allow newly registered vendors to add products"
518
  msgstr ""
519
 
520
- #: includes/Admin/Settings.php:454
 
 
 
 
 
 
 
521
  msgid "Disable Product Popup"
522
  msgstr ""
523
 
524
- #: includes/Admin/Settings.php:455
525
  msgid "Disable add new product in popup view"
526
  msgstr ""
527
 
528
- #: includes/Admin/Settings.php:461 src/admin/pages/VendorCapabilities.vue:89
 
 
 
 
 
 
529
  #: templates/admin-setup-wizard/step-selling.php:39
530
  msgid "Order Status Change"
531
  msgstr ""
532
 
533
- #: includes/Admin/Settings.php:462
534
  msgid "Allow vendor to update order status"
535
  msgstr ""
536
 
537
- #: includes/Admin/Settings.php:481 includes/Admin/SetupWizard.php:474
 
 
 
 
 
 
538
  msgid "Withdraw Methods"
539
  msgstr ""
540
 
541
- #: includes/Admin/Settings.php:482
542
  msgid "Select suitable Withdraw methods for Vendors"
543
  msgstr ""
544
 
545
- #: includes/Admin/Settings.php:489 includes/Admin/SetupWizard.php:511
 
 
 
 
546
  msgid "Minimum Withdraw Limit"
547
  msgstr ""
548
 
549
- #: includes/Admin/Settings.php:490
550
  msgid ""
551
  "Minimum balance required to make a withdraw request. Leave blank to set no "
552
  "minimum limits."
553
  msgstr ""
554
 
555
- #: includes/Admin/Settings.php:499 includes/Admin/SetupWizard.php:518
556
  msgid "Order Status for Withdraw"
557
  msgstr ""
558
 
559
- #: includes/Admin/Settings.php:500 includes/Admin/SetupWizard.php:535
560
  msgid "Order status for which vendor can make a withdraw request."
561
  msgstr ""
562
 
563
- #: includes/Admin/Settings.php:509
 
 
 
 
 
 
564
  msgid "Exclude COD Payments"
565
  msgstr ""
566
 
567
- #: includes/Admin/Settings.php:510
568
  msgid ""
569
  "If an order is paid with Cash on Delivery (COD), then exclude that payment "
570
  "from vendor balance."
571
  msgstr ""
572
 
573
- #: includes/Admin/Settings.php:519
574
  msgid "Select a page to show Vendor Dashboard"
575
  msgstr ""
576
 
577
- #: includes/Admin/Settings.php:521 includes/Admin/Settings.php:529
578
- #: includes/Admin/Settings.php:537 includes/Admin/Settings.php:544
579
- #: includes/Admin/Settings.php:654
580
  msgid "Select page"
581
  msgstr ""
582
 
583
- #: includes/Admin/Settings.php:526 includes/Install/Installer.php:184
584
  #: templates/global/header-menu.php:46
585
  msgid "My Orders"
586
  msgstr ""
587
 
588
- #: includes/Admin/Settings.php:527
589
  msgid "Select a page to show My Orders"
590
  msgstr ""
591
 
592
- #: includes/Admin/Settings.php:534
593
  msgid "Store Listing"
594
  msgstr ""
595
 
596
- #: includes/Admin/Settings.php:535
597
  msgid "Select a page to show all Stores"
598
  msgstr ""
599
 
600
- #: includes/Admin/Settings.php:542
601
  msgid "Terms and Conditions Page"
602
  msgstr ""
603
 
604
- #: includes/Admin/Settings.php:547
605
  #. translators: %s: dokan pages
606
  msgid ""
607
  "Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
608
  "Learn More </a>"
609
  msgstr ""
610
 
611
- #: includes/Admin/Settings.php:553
 
 
 
 
612
  msgid "Show Map on Store Page"
613
  msgstr ""
614
 
615
- #: includes/Admin/Settings.php:554
616
  msgid "Enable Map of the Store Location in the store sidebar"
617
  msgstr ""
618
 
619
- #: includes/Admin/Settings.php:560
620
  #: templates/admin-setup-wizard/step-store.php:42
621
  msgid "Map API Source"
622
  msgstr ""
623
 
624
- #: includes/Admin/Settings.php:561
625
  #: templates/admin-setup-wizard/step-store.php:52
626
  msgid "Which Map API source you want to use in your site?"
627
  msgstr ""
628
 
629
- #: includes/Admin/Settings.php:566 includes/Admin/SetupWizard.php:359
630
  #: src/admin/pages/Premium.vue:388
631
  msgid "Google Maps"
632
  msgstr ""
633
 
634
- #: includes/Admin/Settings.php:567 includes/Admin/SetupWizard.php:360
635
  msgid "Mapbox"
636
  msgstr ""
637
 
638
- #: includes/Admin/Settings.php:577
639
  #: templates/admin-setup-wizard/step-store.php:56
640
  msgid "Google Map API Key"
641
  msgstr ""
642
 
643
- #: includes/Admin/Settings.php:578
644
  msgid ""
645
  "<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
646
  "target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
647
  "display map on store page"
648
  msgstr ""
649
 
650
- #: includes/Admin/Settings.php:588
 
 
 
 
651
  #: templates/admin-setup-wizard/step-store.php:71
652
  msgid "Mapbox Access Token"
653
  msgstr ""
654
 
655
- #: includes/Admin/Settings.php:589
656
  #: templates/admin-setup-wizard/step-store.php:75
657
  msgid ""
658
  "<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
@@ -660,102 +719,124 @@ msgid ""
660
  "display map on store page"
661
  msgstr ""
662
 
663
- #: includes/Admin/Settings.php:594
 
 
 
 
664
  msgid "Show Contact Form on Store Page"
665
  msgstr ""
666
 
667
- #: includes/Admin/Settings.php:595
668
  msgid "Display a vendor contact form in the store sidebar"
669
  msgstr ""
670
 
671
- #: includes/Admin/Settings.php:601
672
  msgid "Store Header Template"
673
  msgstr ""
674
 
675
- #: includes/Admin/Settings.php:613
 
 
 
 
 
 
676
  msgid "Store Opening Closing Time Widget"
677
  msgstr ""
678
 
679
- #: includes/Admin/Settings.php:614
680
  msgid "Enable store opening & closing time widget in the store sidebar"
681
  msgstr ""
682
 
683
- #: includes/Admin/Settings.php:620
684
  msgid "Enable Store Sidebar From Theme"
685
  msgstr ""
686
 
687
- #: includes/Admin/Settings.php:621
688
  msgid "Enable showing Store Sidebar From Your Theme."
689
  msgstr ""
690
 
691
- #: includes/Admin/Settings.php:627
692
  msgid "Hide Vendor Info"
693
  msgstr ""
694
 
695
- #: includes/Admin/Settings.php:635
696
  msgid "Email Address"
697
  msgstr ""
698
 
699
- #: includes/Admin/Settings.php:636 includes/Admin/UserProfile.php:211
700
  #: src/admin/pages/VendorAccountFields.vue:65
701
  #: templates/account/vendor-registration.php:33
702
  #: templates/global/seller-registration-form.php:43
703
  msgid "Phone Number"
704
  msgstr ""
705
 
706
- #: includes/Admin/Settings.php:637
707
  msgid "Store Address"
708
  msgstr ""
709
 
710
- #: includes/Admin/Settings.php:644
711
  msgid "Enable Privacy Policy"
712
  msgstr ""
713
 
714
- #: includes/Admin/Settings.php:646
715
  msgid "Enable privacy policy for Vendor store contact form"
716
  msgstr ""
717
 
718
- #: includes/Admin/Settings.php:651
719
  msgid "Privacy Page"
720
  msgstr ""
721
 
722
- #: includes/Admin/Settings.php:653
723
  msgid "Select a page to show your privacy policy"
724
  msgstr ""
725
 
726
- #: includes/Admin/Settings.php:662 includes/functions.php:3633
727
  msgid ""
728
  "Your personal data will be used to support your experience throughout this "
729
  "website, to manage access to your account, and for other purposes described "
730
  "in our [dokan_privacy_policy]"
731
  msgstr ""
732
 
733
- #: includes/Admin/Settings.php:735
 
 
 
 
734
  msgid "Both section and field params are required."
735
  msgstr ""
736
 
737
- #: includes/Admin/Settings.php:744
738
  msgid "No filter found to refresh the setting options"
739
  msgstr ""
740
 
741
- #: includes/Admin/Settings.php:776
742
  msgid "Minimum Withdraw Limit can't be negative value."
743
  msgstr ""
744
 
745
- #: includes/Admin/Settings.php:787
746
  msgid "Validation error"
747
  msgstr ""
748
 
749
- #: includes/Admin/Settings.php:805
750
  msgid "Data Clear"
751
  msgstr ""
752
 
753
- #: includes/Admin/Settings.php:806
754
  msgid ""
755
  "Delete all data and tables related to Dokan and Dokan Pro plugin while "
756
  "deleting the Dokan plugin."
757
  msgstr ""
758
 
 
 
 
 
 
 
 
 
759
  #: includes/Admin/SetupWizard.php:146 includes/Vendor/SetupWizard.php:70
760
  msgid "Introduction"
761
  msgstr ""
@@ -1167,7 +1248,7 @@ msgid "Total: "
1167
  msgstr ""
1168
 
1169
  #: includes/Admin/functions.php:223 includes/Admin/functions.php:496
1170
- #: includes/REST/AdminReportController.php:146 includes/reports.php:363
1171
  msgid "Number of orders"
1172
  msgstr ""
1173
 
@@ -1261,7 +1342,7 @@ msgstr ""
1261
  msgid "Delete"
1262
  msgstr ""
1263
 
1264
- #: includes/Ajax.php:520 includes/Product/Hooks.php:36
1265
  msgid "Error: Nonce verification failed"
1266
  msgstr ""
1267
 
@@ -1632,11 +1713,11 @@ msgstr ""
1632
  msgid "Payment gateway processing fee %s"
1633
  msgstr ""
1634
 
1635
- #: includes/Commission.php:197
1636
  msgid "Product not found"
1637
  msgstr ""
1638
 
1639
- #: includes/Commission.php:225
1640
  msgid "Order not found"
1641
  msgstr ""
1642
 
@@ -1735,13 +1816,13 @@ msgid "Pending"
1735
  msgstr ""
1736
 
1737
  #: includes/Dashboard/Templates/Dashboard.php:116
1738
- #: includes/Order/functions.php:587 src/admin/pages/Withdraw.vue:25
1739
  #: templates/dashboard/orders-widget.php:41
1740
  msgid "Cancelled"
1741
  msgstr ""
1742
 
1743
  #: includes/Dashboard/Templates/Dashboard.php:121
1744
- #: includes/Order/functions.php:582 templates/dashboard/orders-widget.php:46
1745
  msgid "Refunded"
1746
  msgstr ""
1747
 
@@ -1797,7 +1878,6 @@ msgid "No product found!"
1797
  msgstr ""
1798
 
1799
  #: includes/Dashboard/Templates/Products.php:426
1800
- #: includes/Product/functions.php:64
1801
  msgid "I swear this is not your product!"
1802
  msgstr ""
1803
 
@@ -2258,165 +2338,165 @@ msgstr ""
2258
  msgid "Store List"
2259
  msgstr ""
2260
 
2261
- #: includes/Order/Hooks.php:254
2262
  msgid "Mark parent order completed when all child orders are completed."
2263
  msgstr ""
2264
 
2265
- #: includes/Order/Hooks.php:302
2266
  msgid "This coupon is invalid for multiple vendors."
2267
  msgstr ""
2268
 
2269
- #: includes/Order/Hooks.php:316
2270
  msgid "A coupon must be restricted with a vendor product."
2271
  msgstr ""
2272
 
2273
- #: includes/Order/Hooks.php:368
2274
  #. translators: %s item name.
2275
  msgid "Unable to restore stock for item %s."
2276
  msgstr ""
2277
 
2278
- #: includes/Order/Hooks.php:445 includes/Order/Hooks.php:464
2279
  msgid "Stock levels reduced:"
2280
  msgstr ""
2281
 
2282
- #: includes/Order/functions.php:567
2283
  msgid "Pending Payment"
2284
  msgstr ""
2285
 
2286
- #: includes/Order/functions.php:592
2287
  msgid "Failed"
2288
  msgstr ""
2289
 
2290
- #: includes/Order/functions.php:844
2291
  msgid "Order No"
2292
  msgstr ""
2293
 
2294
- #: includes/Order/functions.php:845 templates/orders/details.php:22
2295
  msgid "Order Items"
2296
  msgstr ""
2297
 
2298
- #: includes/Order/functions.php:846
2299
  msgid "Shipping method"
2300
  msgstr ""
2301
 
2302
- #: includes/Order/functions.php:847
2303
  msgid "Shipping Cost"
2304
  msgstr ""
2305
 
2306
- #: includes/Order/functions.php:848
2307
  msgid "Payment method"
2308
  msgstr ""
2309
 
2310
- #: includes/Order/functions.php:849 templates/orders/listing.php:55
2311
  #: templates/orders/listing.php:86
2312
  msgid "Order Total"
2313
  msgstr ""
2314
 
2315
- #: includes/Order/functions.php:850
2316
  msgid "Earnings"
2317
  msgstr ""
2318
 
2319
- #: includes/Order/functions.php:851 includes/REST/OrderController.php:102
2320
  msgid "Order Status"
2321
  msgstr ""
2322
 
2323
- #: includes/Order/functions.php:852
2324
  msgid "Order Date"
2325
  msgstr ""
2326
 
2327
- #: includes/Order/functions.php:853
2328
  msgid "Billing Company"
2329
  msgstr ""
2330
 
2331
- #: includes/Order/functions.php:854
2332
  msgid "Billing First Name"
2333
  msgstr ""
2334
 
2335
- #: includes/Order/functions.php:855
2336
  msgid "Billing Last Name"
2337
  msgstr ""
2338
 
2339
- #: includes/Order/functions.php:856
2340
  msgid "Billing Full Name"
2341
  msgstr ""
2342
 
2343
- #: includes/Order/functions.php:857
2344
  msgid "Billing Email"
2345
  msgstr ""
2346
 
2347
- #: includes/Order/functions.php:858
2348
  msgid "Billing Phone"
2349
  msgstr ""
2350
 
2351
- #: includes/Order/functions.php:859
2352
  msgid "Billing Address 1"
2353
  msgstr ""
2354
 
2355
- #: includes/Order/functions.php:860
2356
  msgid "Billing Address 2"
2357
  msgstr ""
2358
 
2359
- #: includes/Order/functions.php:861
2360
  msgid "Billing City"
2361
  msgstr ""
2362
 
2363
- #: includes/Order/functions.php:862
2364
  msgid "Billing State"
2365
  msgstr ""
2366
 
2367
- #: includes/Order/functions.php:863
2368
  msgid "Billing Postcode"
2369
  msgstr ""
2370
 
2371
- #: includes/Order/functions.php:864
2372
  msgid "Billing Country"
2373
  msgstr ""
2374
 
2375
- #: includes/Order/functions.php:865
2376
  msgid "Shipping Company"
2377
  msgstr ""
2378
 
2379
- #: includes/Order/functions.php:866
2380
  msgid "Shipping First Name"
2381
  msgstr ""
2382
 
2383
- #: includes/Order/functions.php:867
2384
  msgid "Shipping Last Name"
2385
  msgstr ""
2386
 
2387
- #: includes/Order/functions.php:868
2388
  msgid "Shipping Full Name"
2389
  msgstr ""
2390
 
2391
- #: includes/Order/functions.php:869
2392
  msgid "Shipping Address 1"
2393
  msgstr ""
2394
 
2395
- #: includes/Order/functions.php:870
2396
  msgid "Shipping Address 2"
2397
  msgstr ""
2398
 
2399
- #: includes/Order/functions.php:871
2400
  msgid "Shipping City"
2401
  msgstr ""
2402
 
2403
- #: includes/Order/functions.php:872
2404
  msgid "Shipping State"
2405
  msgstr ""
2406
 
2407
- #: includes/Order/functions.php:873
2408
  msgid "Shipping Postcode"
2409
  msgstr ""
2410
 
2411
- #: includes/Order/functions.php:874
2412
  msgid "Shipping Country"
2413
  msgstr ""
2414
 
2415
- #: includes/Order/functions.php:875
2416
  msgid "Customer IP"
2417
  msgstr ""
2418
 
2419
- #: includes/Order/functions.php:876
2420
  msgid "Customer Note"
2421
  msgstr ""
2422
 
@@ -2654,17 +2734,17 @@ msgstr ""
2654
  msgid "Gravatar Url"
2655
  msgstr ""
2656
 
2657
- #: includes/Privacy.php:201 includes/functions.php:2441
2658
  #: src/admin/pages/VendorSocialFields.vue:11
2659
  msgid "Facebook"
2660
  msgstr ""
2661
 
2662
- #: includes/Privacy.php:202 includes/functions.php:2445
2663
  #: src/admin/pages/VendorSocialFields.vue:21
2664
  msgid "Twitter"
2665
  msgstr ""
2666
 
2667
- #: includes/Privacy.php:203 includes/functions.php:2449
2668
  #: src/admin/pages/VendorSocialFields.vue:36
2669
  msgid "Pinterest"
2670
  msgstr ""
@@ -2673,17 +2753,17 @@ msgstr ""
2673
  msgid "Linkedin"
2674
  msgstr ""
2675
 
2676
- #: includes/Privacy.php:205 includes/functions.php:2457
2677
  #: src/admin/pages/VendorSocialFields.vue:26
2678
  msgid "Youtube"
2679
  msgstr ""
2680
 
2681
- #: includes/Privacy.php:206 includes/functions.php:2461
2682
  #: src/admin/pages/VendorSocialFields.vue:41
2683
  msgid "Instagram"
2684
  msgstr ""
2685
 
2686
- #: includes/Privacy.php:207 includes/functions.php:2465
2687
  #: src/admin/pages/VendorSocialFields.vue:16
2688
  msgid "Flickr"
2689
  msgstr ""
@@ -2731,7 +2811,7 @@ msgstr ""
2731
  msgid "Bank Address"
2732
  msgstr ""
2733
 
2734
- #: includes/Privacy.php:279 includes/Withdraw/functions.php:207
2735
  #: src/admin/pages/VendorPaymentFields.vue:35
2736
  msgid "IBAN"
2737
  msgstr ""
@@ -2753,31 +2833,35 @@ msgstr ""
2753
  msgid "Vendor %s data is removed."
2754
  msgstr ""
2755
 
2756
- #: includes/Product/Hooks.php:43
2757
  msgid "Products not found with this search"
2758
  msgstr ""
2759
 
2760
- #: includes/Product/Hooks.php:131
2761
  msgid "SKU:"
2762
  msgstr ""
2763
 
2764
- #: includes/Product/Hooks.php:168
2765
  msgid "Enter product name"
2766
  msgstr ""
2767
 
2768
- #: includes/Product/Hooks.php:170 includes/Product/functions.php:350
2769
  #: templates/products/listing-filter.php:69
2770
  msgid "Search"
2771
  msgstr ""
2772
 
2773
- #: includes/Product/Hooks.php:173
2774
  msgid "Shop order"
2775
  msgstr ""
2776
 
2777
- #: includes/Product/Manager.php:452
2778
  msgid "No product ID found for updating"
2779
  msgstr ""
2780
 
 
 
 
 
2781
  #: includes/Product/functions.php:189
2782
  msgid ""
2783
  "Before you can add a variation you need to add some variation attributes on "
@@ -3044,8 +3128,8 @@ msgstr ""
3044
  #: includes/REST/StoreController.php:94 includes/REST/StoreController.php:111
3045
  #: includes/REST/StoreController.php:138 includes/REST/StoreController.php:172
3046
  #: includes/REST/StoreController.php:204
3047
- #: includes/REST/WithdrawController.php:78
3048
- #: includes/REST/WithdrawController.php:692
3049
  msgid "Unique identifier for the object."
3050
  msgstr ""
3051
 
@@ -3059,13 +3143,13 @@ msgstr ""
3059
 
3060
  #: includes/REST/OrderController.php:205
3061
  #: includes/REST/ProductController.php:275
3062
- #: includes/REST/ProductController.php:315
3063
  msgid "No seller found"
3064
  msgstr ""
3065
 
3066
  #: includes/REST/OrderController.php:217
3067
- #: includes/REST/ProductController.php:327
3068
- #: includes/REST/ProductController.php:352
3069
  msgid "Sorry, you have no permission to do this. Since it's not your product."
3070
  msgstr ""
3071
 
@@ -3096,7 +3180,7 @@ msgid "Invalid order ID."
3096
  msgstr ""
3097
 
3098
  #: includes/REST/OrderController.php:583
3099
- #: includes/REST/ProductController.php:280
3100
  #. translators: %s: product
3101
  msgid "Cannot create existing %s."
3102
  msgstr ""
@@ -3114,7 +3198,7 @@ msgid "Invalid resource ID."
3114
  msgstr ""
3115
 
3116
  #: includes/REST/OrderController.php:860
3117
- #: includes/REST/ProductController.php:1750
3118
  msgid "Unique identifier for the resource."
3119
  msgstr ""
3120
 
@@ -3315,7 +3399,7 @@ msgstr ""
3315
  #: includes/REST/OrderController.php:1459
3316
  #: includes/REST/OrderController.php:1557
3317
  #: includes/REST/OrderController.php:1615
3318
- #: includes/REST/ProductController.php:2327
3319
  msgid "Meta data."
3320
  msgstr ""
3321
 
@@ -3325,7 +3409,7 @@ msgstr ""
3325
  #: includes/REST/OrderController.php:1466
3326
  #: includes/REST/OrderController.php:1564
3327
  #: includes/REST/OrderController.php:1622
3328
- #: includes/REST/ProductController.php:2334
3329
  msgid "Meta ID."
3330
  msgstr ""
3331
 
@@ -3335,7 +3419,7 @@ msgstr ""
3335
  #: includes/REST/OrderController.php:1472
3336
  #: includes/REST/OrderController.php:1570
3337
  #: includes/REST/OrderController.php:1628
3338
- #: includes/REST/ProductController.php:2340
3339
  msgid "Meta key."
3340
  msgstr ""
3341
 
@@ -3345,7 +3429,7 @@ msgstr ""
3345
  #: includes/REST/OrderController.php:1477
3346
  #: includes/REST/OrderController.php:1575
3347
  #: includes/REST/OrderController.php:1633
3348
- #: includes/REST/ProductController.php:2345
3349
  msgid "Meta value."
3350
  msgstr ""
3351
 
@@ -3362,7 +3446,7 @@ msgid "Item ID."
3362
  msgstr ""
3363
 
3364
  #: includes/REST/OrderController.php:1209
3365
- #: includes/REST/ProductController.php:1756
3366
  msgid "Product name."
3367
  msgstr ""
3368
 
@@ -3564,395 +3648,399 @@ msgstr ""
3564
  msgid "Top rated product for specific vendor"
3565
  msgstr ""
3566
 
3567
- #: includes/REST/ProductController.php:284
 
 
 
 
3568
  msgid "Product title must be required"
3569
  msgstr ""
3570
 
3571
- #: includes/REST/ProductController.php:290
3572
  msgid "Category must be required"
3573
  msgstr ""
3574
 
3575
- #: includes/REST/ProductController.php:295
3576
  msgid "You can not select more than category"
3577
  msgstr ""
3578
 
3579
- #: includes/REST/ProductController.php:1311
3580
- #: includes/REST/ProductController.php:1312
3581
  msgid "Placeholder"
3582
  msgstr ""
3583
 
3584
- #: includes/REST/ProductController.php:1537
3585
  #. translators: %s: attachment id
3586
  msgid "#%s is an invalid image ID."
3587
  msgstr ""
3588
 
3589
- #: includes/REST/ProductController.php:1761
3590
  msgid "Product slug."
3591
  msgstr ""
3592
 
3593
- #: includes/REST/ProductController.php:1766
3594
  msgid "Product URL."
3595
  msgstr ""
3596
 
3597
- #: includes/REST/ProductController.php:1773
3598
  msgid "The date the product was created, in the site's timezone."
3599
  msgstr ""
3600
 
3601
- #: includes/REST/ProductController.php:1779
3602
  msgid "The date the product was created, as GMT."
3603
  msgstr ""
3604
 
3605
- #: includes/REST/ProductController.php:1785
3606
  msgid "The date the product was last modified, in the site's timezone."
3607
  msgstr ""
3608
 
3609
- #: includes/REST/ProductController.php:1791
3610
  msgid "The date the product was last modified, as GMT."
3611
  msgstr ""
3612
 
3613
- #: includes/REST/ProductController.php:1797
3614
  msgid "Product type."
3615
  msgstr ""
3616
 
3617
- #: includes/REST/ProductController.php:1804
3618
  msgid "Product status (post status)."
3619
  msgstr ""
3620
 
3621
- #: includes/REST/ProductController.php:1811
3622
  msgid "Featured product."
3623
  msgstr ""
3624
 
3625
- #: includes/REST/ProductController.php:1817
3626
  msgid "Catalog visibility."
3627
  msgstr ""
3628
 
3629
- #: includes/REST/ProductController.php:1824
3630
  msgid "Product description."
3631
  msgstr ""
3632
 
3633
- #: includes/REST/ProductController.php:1829
3634
  msgid "Product short description."
3635
  msgstr ""
3636
 
3637
- #: includes/REST/ProductController.php:1834
3638
  msgid "Unique identifier."
3639
  msgstr ""
3640
 
3641
- #: includes/REST/ProductController.php:1839
3642
  msgid "Current product price."
3643
  msgstr ""
3644
 
3645
- #: includes/REST/ProductController.php:1845
3646
  msgid "Product regular price."
3647
  msgstr ""
3648
 
3649
- #: includes/REST/ProductController.php:1850
3650
  msgid "Product sale price."
3651
  msgstr ""
3652
 
3653
- #: includes/REST/ProductController.php:1855
3654
  msgid "Start date of sale price, in the site's timezone."
3655
  msgstr ""
3656
 
3657
- #: includes/REST/ProductController.php:1860
3658
  msgid "Start date of sale price, as GMT."
3659
  msgstr ""
3660
 
3661
- #: includes/REST/ProductController.php:1865
3662
  msgid "End date of sale price, in the site's timezone."
3663
  msgstr ""
3664
 
3665
- #: includes/REST/ProductController.php:1870
3666
  msgid "End date of sale price, as GMT."
3667
  msgstr ""
3668
 
3669
- #: includes/REST/ProductController.php:1875
3670
  msgid "Price formatted in HTML."
3671
  msgstr ""
3672
 
3673
- #: includes/REST/ProductController.php:1881
3674
  msgid "Shows if the product is on sale."
3675
  msgstr ""
3676
 
3677
- #: includes/REST/ProductController.php:1887
3678
  msgid "Shows if the product can be bought."
3679
  msgstr ""
3680
 
3681
- #: includes/REST/ProductController.php:1893
3682
  msgid "Amount of sales."
3683
  msgstr ""
3684
 
3685
- #: includes/REST/ProductController.php:1899
3686
  msgid "If the product is virtual."
3687
  msgstr ""
3688
 
3689
- #: includes/REST/ProductController.php:1905
3690
  msgid "If the product is downloadable."
3691
  msgstr ""
3692
 
3693
- #: includes/REST/ProductController.php:1911
3694
  msgid "List of downloadable files."
3695
  msgstr ""
3696
 
3697
- #: includes/REST/ProductController.php:1918
3698
  msgid "File MD5 hash."
3699
  msgstr ""
3700
 
3701
- #: includes/REST/ProductController.php:1924
3702
  msgid "File name."
3703
  msgstr ""
3704
 
3705
- #: includes/REST/ProductController.php:1929
3706
  msgid "File URL."
3707
  msgstr ""
3708
 
3709
- #: includes/REST/ProductController.php:1937
3710
  msgid "Number of times downloadable files can be downloaded after purchase."
3711
  msgstr ""
3712
 
3713
- #: includes/REST/ProductController.php:1943
3714
  msgid "Number of days until access to downloadable files expires."
3715
  msgstr ""
3716
 
3717
- #: includes/REST/ProductController.php:1949
3718
  msgid "Product external URL. Only for external products."
3719
  msgstr ""
3720
 
3721
- #: includes/REST/ProductController.php:1955
3722
  msgid "Product external button text. Only for external products."
3723
  msgstr ""
3724
 
3725
- #: includes/REST/ProductController.php:1960
3726
  msgid "Tax status."
3727
  msgstr ""
3728
 
3729
- #: includes/REST/ProductController.php:1967
3730
  msgid "Tax class."
3731
  msgstr ""
3732
 
3733
- #: includes/REST/ProductController.php:1972
3734
  msgid "Stock management at product level."
3735
  msgstr ""
3736
 
3737
- #: includes/REST/ProductController.php:1978
3738
  msgid "Stock quantity."
3739
  msgstr ""
3740
 
3741
- #: includes/REST/ProductController.php:1983
3742
  msgid ""
3743
  "Controls whether or not the product is listed as \"in stock\" or \"out of "
3744
  "stock\" on the frontend."
3745
  msgstr ""
3746
 
3747
- #: includes/REST/ProductController.php:1989
3748
  msgid "If managing stock, this controls if backorders are allowed."
3749
  msgstr ""
3750
 
3751
- #: includes/REST/ProductController.php:1996
3752
  msgid "Shows if backorders are allowed."
3753
  msgstr ""
3754
 
3755
- #: includes/REST/ProductController.php:2002
3756
  msgid "Shows if the product is on backordered."
3757
  msgstr ""
3758
 
3759
- #: includes/REST/ProductController.php:2008
3760
  msgid "Allow one item to be bought in a single order."
3761
  msgstr ""
3762
 
3763
- #: includes/REST/ProductController.php:2015
3764
  #. translators: %s: weight unit
3765
  msgid "Product weight (%s)."
3766
  msgstr ""
3767
 
3768
- #: includes/REST/ProductController.php:2020
3769
  msgid "Product dimensions."
3770
  msgstr ""
3771
 
3772
- #: includes/REST/ProductController.php:2026
3773
  #. translators: %s: dimension unit
3774
  msgid "Product length (%s)."
3775
  msgstr ""
3776
 
3777
- #: includes/REST/ProductController.php:2032
3778
  #. translators: %s: dimension unit
3779
  msgid "Product width (%s)."
3780
  msgstr ""
3781
 
3782
- #: includes/REST/ProductController.php:2038
3783
  #. translators: %s: dimension unit
3784
  msgid "Product height (%s)."
3785
  msgstr ""
3786
 
3787
- #: includes/REST/ProductController.php:2045
3788
  msgid "Shows if the product need to be shipped."
3789
  msgstr ""
3790
 
3791
- #: includes/REST/ProductController.php:2051
3792
  msgid "Shows whether or not the product shipping is taxable."
3793
  msgstr ""
3794
 
3795
- #: includes/REST/ProductController.php:2057
3796
  msgid "Shipping class slug."
3797
  msgstr ""
3798
 
3799
- #: includes/REST/ProductController.php:2062
3800
  msgid "Shipping class ID."
3801
  msgstr ""
3802
 
3803
- #: includes/REST/ProductController.php:2068
3804
  msgid "Allow reviews."
3805
  msgstr ""
3806
 
3807
- #: includes/REST/ProductController.php:2074
3808
  msgid "Reviews average rating."
3809
  msgstr ""
3810
 
3811
- #: includes/REST/ProductController.php:2080
3812
  msgid "Amount of reviews that the product have."
3813
  msgstr ""
3814
 
3815
- #: includes/REST/ProductController.php:2086
3816
  msgid "List of related products IDs."
3817
  msgstr ""
3818
 
3819
- #: includes/REST/ProductController.php:2095
3820
  msgid "List of up-sell products IDs."
3821
  msgstr ""
3822
 
3823
- #: includes/REST/ProductController.php:2103
3824
  msgid "List of cross-sell products IDs."
3825
  msgstr ""
3826
 
3827
- #: includes/REST/ProductController.php:2111
3828
  msgid "Product parent ID."
3829
  msgstr ""
3830
 
3831
- #: includes/REST/ProductController.php:2116
3832
  msgid "Optional note to send the customer after purchase."
3833
  msgstr ""
3834
 
3835
- #: includes/REST/ProductController.php:2121
3836
  msgid "List of categories."
3837
  msgstr ""
3838
 
3839
- #: includes/REST/ProductController.php:2128
3840
  msgid "Category ID."
3841
  msgstr ""
3842
 
3843
- #: includes/REST/ProductController.php:2133
3844
  msgid "Category name."
3845
  msgstr ""
3846
 
3847
- #: includes/REST/ProductController.php:2139
3848
  msgid "Category slug."
3849
  msgstr ""
3850
 
3851
- #: includes/REST/ProductController.php:2148
3852
  msgid "List of tags."
3853
  msgstr ""
3854
 
3855
- #: includes/REST/ProductController.php:2155
3856
  msgid "Tag ID."
3857
  msgstr ""
3858
 
3859
- #: includes/REST/ProductController.php:2160
3860
  msgid "Tag name."
3861
  msgstr ""
3862
 
3863
- #: includes/REST/ProductController.php:2166
3864
  msgid "Tag slug."
3865
  msgstr ""
3866
 
3867
- #: includes/REST/ProductController.php:2175
3868
  msgid "List of images."
3869
  msgstr ""
3870
 
3871
- #: includes/REST/ProductController.php:2182
3872
  msgid "Image ID."
3873
  msgstr ""
3874
 
3875
- #: includes/REST/ProductController.php:2187
3876
  msgid "The date the image was created, in the site's timezone."
3877
  msgstr ""
3878
 
3879
- #: includes/REST/ProductController.php:2193
3880
  msgid "The date the image was created, as GMT."
3881
  msgstr ""
3882
 
3883
- #: includes/REST/ProductController.php:2199
3884
  msgid "The date the image was last modified, in the site's timezone."
3885
  msgstr ""
3886
 
3887
- #: includes/REST/ProductController.php:2205
3888
  msgid "The date the image was last modified, as GMT."
3889
  msgstr ""
3890
 
3891
- #: includes/REST/ProductController.php:2211
3892
  msgid "Image URL."
3893
  msgstr ""
3894
 
3895
- #: includes/REST/ProductController.php:2217
3896
  msgid "Image name."
3897
  msgstr ""
3898
 
3899
- #: includes/REST/ProductController.php:2222
3900
  msgid "Image alternative text."
3901
  msgstr ""
3902
 
3903
- #: includes/REST/ProductController.php:2227
3904
  msgid "Image position. 0 means that the image is featured."
3905
  msgstr ""
3906
 
3907
- #: includes/REST/ProductController.php:2235
3908
  msgid "List of attributes."
3909
  msgstr ""
3910
 
3911
- #: includes/REST/ProductController.php:2242
3912
- #: includes/REST/ProductController.php:2287
3913
  msgid "Attribute ID."
3914
  msgstr ""
3915
 
3916
- #: includes/REST/ProductController.php:2247
3917
- #: includes/REST/ProductController.php:2292
3918
  msgid "Attribute name."
3919
  msgstr ""
3920
 
3921
- #: includes/REST/ProductController.php:2252
3922
  msgid "Attribute position."
3923
  msgstr ""
3924
 
3925
- #: includes/REST/ProductController.php:2257
3926
  msgid ""
3927
  "Define if the attribute is visible on the \"Additional information\" tab in "
3928
  "the product's page."
3929
  msgstr ""
3930
 
3931
- #: includes/REST/ProductController.php:2263
3932
  msgid "Define if the attribute can be used as variation."
3933
  msgstr ""
3934
 
3935
- #: includes/REST/ProductController.php:2269
3936
  msgid "List of available term names of the attribute."
3937
  msgstr ""
3938
 
3939
- #: includes/REST/ProductController.php:2280
3940
  msgid "Defaults variation attributes."
3941
  msgstr ""
3942
 
3943
- #: includes/REST/ProductController.php:2297
3944
  msgid "Selected attribute term name."
3945
  msgstr ""
3946
 
3947
- #: includes/REST/ProductController.php:2305
3948
  msgid "List of variations IDs."
3949
  msgstr ""
3950
 
3951
- #: includes/REST/ProductController.php:2314
3952
  msgid "List of grouped products ID."
3953
  msgstr ""
3954
 
3955
- #: includes/REST/ProductController.php:2322
3956
  msgid "Menu order, used to custom sort products."
3957
  msgstr ""
3958
 
@@ -4015,8 +4103,8 @@ msgid "No items found for bulk updating"
4015
  msgstr ""
4016
 
4017
  #: includes/REST/StoreSettingController.php:106
4018
- #: includes/REST/WithdrawController.php:256
4019
- #: includes/REST/WithdrawController.php:333
4020
  msgid "No vendor found"
4021
  msgstr ""
4022
 
@@ -4024,61 +4112,61 @@ msgstr ""
4024
  msgid "You are not logged in"
4025
  msgstr ""
4026
 
4027
- #: includes/REST/WithdrawController.php:44
4028
  msgid "IDs of withdraws"
4029
  msgstr ""
4030
 
4031
- #: includes/REST/WithdrawController.php:215
4032
  msgid "Withdraw not found"
4033
  msgstr ""
4034
 
4035
- #: includes/REST/WithdrawController.php:323
4036
  msgid "User does not have permission to withdraw"
4037
  msgstr ""
4038
 
4039
- #: includes/REST/WithdrawController.php:698
4040
  msgid "Requested User"
4041
  msgstr ""
4042
 
4043
- #: includes/REST/WithdrawController.php:705
4044
  msgid "Requested User ID"
4045
  msgstr ""
4046
 
4047
- #: includes/REST/WithdrawController.php:711
4048
  msgid ""
4049
  "The amount of discount. Should always be numeric, even if setting a "
4050
  "percentage."
4051
  msgstr ""
4052
 
4053
- #: includes/REST/WithdrawController.php:716
4054
  msgid "The date the withdraw request has beed created in the site's timezone."
4055
  msgstr ""
4056
 
4057
- #: includes/REST/WithdrawController.php:723
4058
  msgid "Withdraw status"
4059
  msgstr ""
4060
 
4061
- #: includes/REST/WithdrawController.php:731
4062
  msgid "Withdraw Method"
4063
  msgstr ""
4064
 
4065
- #: includes/REST/WithdrawController.php:738
4066
  msgid "Withdraw Notes"
4067
  msgstr ""
4068
 
4069
- #: includes/REST/WithdrawController.php:744
4070
  msgid "User IP"
4071
  msgstr ""
4072
 
4073
- #: includes/REST/WithdrawController.php:770
4074
  msgid "List of withdraw IDs to be approved"
4075
  msgstr ""
4076
 
4077
- #: includes/REST/WithdrawController.php:780
4078
  msgid "List of withdraw IDs to be cancelled"
4079
  msgstr ""
4080
 
4081
- #: includes/REST/WithdrawController.php:790
4082
  msgid "List of withdraw IDs to be deleted"
4083
  msgstr ""
4084
 
@@ -4139,11 +4227,11 @@ msgstr ""
4139
  msgid "Upgrading db fields error: "
4140
  msgstr ""
4141
 
4142
- #: includes/Vendor/Manager.php:198
4143
  msgid "Unable to create vendor"
4144
  msgstr ""
4145
 
4146
- #: includes/Vendor/Manager.php:288
4147
  msgid "Email is not valid"
4148
  msgstr ""
4149
 
@@ -4245,25 +4333,25 @@ msgstr ""
4245
  msgid "Switched back to %1$s (%2$s)."
4246
  msgstr ""
4247
 
4248
- #: includes/Vendor/Vendor.php:844
4249
  msgid "No ratings found yet!"
4250
  msgstr ""
4251
 
4252
- #: includes/Vendor/Vendor.php:846
4253
  msgid "%s rating from %d review"
4254
  msgid_plural "%s rating from %d reviews"
4255
  msgstr[0] ""
4256
  msgstr[1] ""
4257
 
4258
- #: includes/Vendor/Vendor.php:847
4259
  msgid "Rated %s out of %d"
4260
  msgstr ""
4261
 
4262
- #: includes/Vendor/Vendor.php:976 templates/settings/store-form.php:288
4263
  msgid "Store is open"
4264
  msgstr ""
4265
 
4266
- #: includes/Vendor/Vendor.php:990 templates/settings/store-form.php:296
4267
  msgid "Store is closed"
4268
  msgstr ""
4269
 
@@ -4367,44 +4455,44 @@ msgstr ""
4367
  msgid "Top Rated Product"
4368
  msgstr ""
4369
 
4370
- #: includes/Withdraw/Manager.php:37
4371
  msgid "Withdraw amount required "
4372
  msgstr ""
4373
 
4374
- #: includes/Withdraw/Manager.php:41
4375
  msgid "You don't have enough balance for this request"
4376
  msgstr ""
4377
 
4378
- #: includes/Withdraw/Manager.php:46
4379
  #. translators: %s: withdraw limit amount
4380
  msgid "Withdraw amount must be greater than %s"
4381
  msgstr ""
4382
 
4383
- #: includes/Withdraw/Manager.php:50
4384
  msgid "Withdraw method is not active."
4385
  msgstr ""
4386
 
4387
- #: includes/Withdraw/Manager.php:54
4388
  msgid "Vendor is not enabled for selling, please contact site admin"
4389
  msgstr ""
4390
 
4391
- #: includes/Withdraw/Manager.php:58
4392
  msgid "Withdraw is already approved."
4393
  msgstr ""
4394
 
4395
- #: includes/Withdraw/Manager.php:95
4396
  msgid "Invalid permission to cancel the request."
4397
  msgstr ""
4398
 
4399
- #: includes/Withdraw/Manager.php:101
4400
  msgid "Invalid cancel withdraw request"
4401
  msgstr ""
4402
 
4403
- #: includes/Withdraw/Manager.php:141
4404
  msgid "Could not update withdraw status"
4405
  msgstr ""
4406
 
4407
- #: includes/Withdraw/Manager.php:175
4408
  msgid "Could not add new withdraw approval request."
4409
  msgstr ""
4410
 
@@ -4420,447 +4508,447 @@ msgstr ""
4420
  msgid "Could not delete withdraw"
4421
  msgstr ""
4422
 
4423
- #: includes/Withdraw/functions.php:12
4424
  msgid "PayPal"
4425
  msgstr ""
4426
 
4427
- #: includes/Withdraw/functions.php:16
4428
  msgid "Bank Transfer"
4429
  msgstr ""
4430
 
4431
- #: includes/Withdraw/functions.php:128
4432
  msgid "E-mail"
4433
  msgstr ""
4434
 
4435
- #: includes/Withdraw/functions.php:177
4436
  msgid "Your bank account name"
4437
  msgstr ""
4438
 
4439
- #: includes/Withdraw/functions.php:183
4440
  msgid "Your bank account number"
4441
  msgstr ""
4442
 
4443
- #: includes/Withdraw/functions.php:189
4444
  msgid "Name of bank"
4445
  msgstr ""
4446
 
4447
- #: includes/Withdraw/functions.php:195
4448
  msgid "Address of your bank"
4449
  msgstr ""
4450
 
4451
- #: includes/Withdraw/functions.php:201
4452
  msgid "Routing number"
4453
  msgstr ""
4454
 
4455
- #: includes/Withdraw/functions.php:213
4456
  msgid "Swift code"
4457
  msgstr ""
4458
 
4459
- #: includes/functions.php:836 templates/products/others.php:16
4460
  msgid "Online"
4461
  msgstr ""
4462
 
4463
- #: includes/functions.php:837 templates/products/others.php:17
4464
  msgid "Draft"
4465
  msgstr ""
4466
 
4467
- #: includes/functions.php:838 templates/dashboard/products-widget.php:41
4468
  #: templates/withdraw/pending-request-listing.php:41
4469
  msgid "Pending Review"
4470
  msgstr ""
4471
 
4472
- #: includes/functions.php:839 templates/products/products-listing-row.php:166
4473
  msgid "Scheduled"
4474
  msgstr ""
4475
 
4476
- #: includes/functions.php:884
4477
  msgid "Simple Product"
4478
  msgstr ""
4479
 
4480
- #: includes/functions.php:885 src/admin/pages/VendorCapabilities.vue:99
4481
  msgid "Variable Product"
4482
  msgstr ""
4483
 
4484
- #: includes/functions.php:886
4485
  msgid "Grouped Product"
4486
  msgstr ""
4487
 
4488
- #: includes/functions.php:887
4489
  msgid "External/Affiliate Product"
4490
  msgstr ""
4491
 
4492
- #: includes/functions.php:1125
4493
  msgid "Author"
4494
  msgstr ""
4495
 
4496
- #: includes/functions.php:1310 includes/template-tags.php:393
4497
  #: src/admin/pages/Dashboard.vue:54 templates/dashboard/products-widget.php:16
4498
  msgid "Products"
4499
  msgstr ""
4500
 
4501
- #: includes/functions.php:1314 templates/settings/store-form.php:207
4502
  msgid "Terms and Conditions"
4503
  msgstr ""
4504
 
4505
- #: includes/functions.php:1353
4506
  msgid "Account Name: %s"
4507
  msgstr ""
4508
 
4509
- #: includes/functions.php:1357
4510
  msgid "Account Number: %s"
4511
  msgstr ""
4512
 
4513
- #: includes/functions.php:1361
4514
  msgid "Bank Name: %s"
4515
  msgstr ""
4516
 
4517
- #: includes/functions.php:1365
4518
  msgid "Address: %s"
4519
  msgstr ""
4520
 
4521
- #: includes/functions.php:1369
4522
  msgid "Routing Number: %s"
4523
  msgstr ""
4524
 
4525
- #: includes/functions.php:1373
4526
  msgid "IBAN: %s"
4527
  msgstr ""
4528
 
4529
- #: includes/functions.php:1377
4530
  msgid "SWIFT: %s"
4531
  msgstr ""
4532
 
4533
- #: includes/functions.php:1738
4534
  msgid "Date is not valid"
4535
  msgstr ""
4536
 
4537
- #: includes/functions.php:2187
4538
  msgid "- Select a location -"
4539
  msgstr ""
4540
 
4541
- #: includes/functions.php:2191 includes/functions.php:2215
4542
  msgid "Everywhere Else"
4543
  msgstr ""
4544
 
4545
- #: includes/functions.php:2211
4546
  msgid "- Select a State -"
4547
  msgstr ""
4548
 
4549
- #: includes/functions.php:2234
4550
  msgid "Ready to ship in..."
4551
  msgstr ""
4552
 
4553
- #: includes/functions.php:2235
4554
  msgid "1 business day"
4555
  msgstr ""
4556
 
4557
- #: includes/functions.php:2236
4558
  msgid "1-2 business days"
4559
  msgstr ""
4560
 
4561
- #: includes/functions.php:2237
4562
  msgid "1-3 business days"
4563
  msgstr ""
4564
 
4565
- #: includes/functions.php:2238
4566
  msgid "3-5 business days"
4567
  msgstr ""
4568
 
4569
- #: includes/functions.php:2239
4570
  msgid "1-2 weeks"
4571
  msgstr ""
4572
 
4573
- #: includes/functions.php:2240
4574
  msgid "2-3 weeks"
4575
  msgstr ""
4576
 
4577
- #: includes/functions.php:2241
4578
  msgid "3-4 weeks"
4579
  msgstr ""
4580
 
4581
- #: includes/functions.php:2242
4582
  msgid "4-6 weeks"
4583
  msgstr ""
4584
 
4585
- #: includes/functions.php:2243
4586
  msgid "6-8 weeks"
4587
  msgstr ""
4588
 
4589
- #: includes/functions.php:2352
4590
  msgid "All dates"
4591
  msgstr ""
4592
 
4593
- #: includes/functions.php:2367
4594
  #. translators: 1: month name, 2: 4-digit year
4595
  msgid "%1$s %2$d"
4596
  msgstr ""
4597
 
4598
- #: includes/functions.php:2453
4599
  msgid "LinkedIn"
4600
  msgstr ""
4601
 
4602
- #: includes/functions.php:2734
4603
  msgid "Dokan Store Sidebar"
4604
  msgstr ""
4605
 
4606
- #: includes/functions.php:2982
4607
  msgid "View sales overview"
4608
  msgstr ""
4609
 
4610
- #: includes/functions.php:2983
4611
  msgid "View sales report chart"
4612
  msgstr ""
4613
 
4614
- #: includes/functions.php:2984
4615
  msgid "View announcement"
4616
  msgstr ""
4617
 
4618
- #: includes/functions.php:2985
4619
  msgid "View order report"
4620
  msgstr ""
4621
 
4622
- #: includes/functions.php:2986
4623
  msgid "View review report"
4624
  msgstr ""
4625
 
4626
- #: includes/functions.php:2987
4627
  msgid "View product status report"
4628
  msgstr ""
4629
 
4630
- #: includes/functions.php:2990
4631
  msgid "View overview report"
4632
  msgstr ""
4633
 
4634
- #: includes/functions.php:2991
4635
  msgid "View daily sales report"
4636
  msgstr ""
4637
 
4638
- #: includes/functions.php:2992
4639
  msgid "View top selling report"
4640
  msgstr ""
4641
 
4642
- #: includes/functions.php:2993
4643
  msgid "View top earning report"
4644
  msgstr ""
4645
 
4646
- #: includes/functions.php:2994
4647
  msgid "View statement report"
4648
  msgstr ""
4649
 
4650
- #: includes/functions.php:2997
4651
  msgid "View order"
4652
  msgstr ""
4653
 
4654
- #: includes/functions.php:2998
4655
  msgid "Manage order"
4656
  msgstr ""
4657
 
4658
- #: includes/functions.php:2999
4659
  msgid "Manage order note"
4660
  msgstr ""
4661
 
4662
- #: includes/functions.php:3000
4663
  msgid "Manage refund"
4664
  msgstr ""
4665
 
4666
- #: includes/functions.php:3001
4667
  msgid "Export order"
4668
  msgstr ""
4669
 
4670
- #: includes/functions.php:3004
4671
  msgid "Add coupon"
4672
  msgstr ""
4673
 
4674
- #: includes/functions.php:3005
4675
  msgid "Edit coupon"
4676
  msgstr ""
4677
 
4678
- #: includes/functions.php:3006
4679
  msgid "Delete coupon"
4680
  msgstr ""
4681
 
4682
- #: includes/functions.php:3009
4683
  msgid "View reviews"
4684
  msgstr ""
4685
 
4686
- #: includes/functions.php:3010 src/admin/pages/Premium.vue:395
4687
  msgid "Manage reviews"
4688
  msgstr ""
4689
 
4690
- #: includes/functions.php:3014
4691
  msgid "Manage withdraw"
4692
  msgstr ""
4693
 
4694
- #: includes/functions.php:3017
4695
  msgid "Add product"
4696
  msgstr ""
4697
 
4698
- #: includes/functions.php:3018
4699
  msgid "Edit product"
4700
  msgstr ""
4701
 
4702
- #: includes/functions.php:3019
4703
  msgid "Delete product"
4704
  msgstr ""
4705
 
4706
- #: includes/functions.php:3020
4707
  msgid "View product"
4708
  msgstr ""
4709
 
4710
- #: includes/functions.php:3021
4711
  msgid "Duplicate product"
4712
  msgstr ""
4713
 
4714
- #: includes/functions.php:3022
4715
  msgid "Import product"
4716
  msgstr ""
4717
 
4718
- #: includes/functions.php:3023
4719
  msgid "Export product"
4720
  msgstr ""
4721
 
4722
- #: includes/functions.php:3026
4723
  msgid "View overview menu"
4724
  msgstr ""
4725
 
4726
- #: includes/functions.php:3027
4727
  msgid "View product menu"
4728
  msgstr ""
4729
 
4730
- #: includes/functions.php:3028
4731
  msgid "View order menu"
4732
  msgstr ""
4733
 
4734
- #: includes/functions.php:3029
4735
  msgid "View coupon menu"
4736
  msgstr ""
4737
 
4738
- #: includes/functions.php:3030
4739
  msgid "View report menu"
4740
  msgstr ""
4741
 
4742
- #: includes/functions.php:3031
4743
  msgid "View review menu"
4744
  msgstr ""
4745
 
4746
- #: includes/functions.php:3032
4747
  msgid "View withdraw menu"
4748
  msgstr ""
4749
 
4750
- #: includes/functions.php:3033
4751
  msgid "View store settings menu"
4752
  msgstr ""
4753
 
4754
- #: includes/functions.php:3034
4755
  msgid "View payment settings menu"
4756
  msgstr ""
4757
 
4758
- #: includes/functions.php:3035
4759
  msgid "View shipping settings menu"
4760
  msgstr ""
4761
 
4762
- #: includes/functions.php:3036
4763
  msgid "View social settings menu"
4764
  msgstr ""
4765
 
4766
- #: includes/functions.php:3037
4767
  msgid "View seo settings menu"
4768
  msgstr ""
4769
 
4770
- #: includes/functions.php:3056 src/admin/pages/Dashboard.vue:106
4771
  msgid "Overview"
4772
  msgstr ""
4773
 
4774
- #: includes/functions.php:3057
4775
  msgid "Report"
4776
  msgstr ""
4777
 
4778
- #: includes/functions.php:3058 templates/dashboard/big-counter-widget.php:29
4779
  #: templates/my-orders.php:27 templates/orders/details.php:22
4780
  #: templates/orders/listing.php:54 templates/orders/listing.php:77
4781
  #: templates/sub-orders.php:40
4782
  msgid "Order"
4783
  msgstr ""
4784
 
4785
- #: includes/functions.php:3059
4786
  msgid "Coupon"
4787
  msgstr ""
4788
 
4789
- #: includes/functions.php:3060
4790
  msgid "Review"
4791
  msgstr ""
4792
 
4793
- #: includes/functions.php:3062 templates/emails/vendor-completed-order.php:46
4794
  #: templates/emails/vendor-new-order.php:46
4795
  msgid "Product"
4796
  msgstr ""
4797
 
4798
- #: includes/functions.php:3063
4799
  msgid "Menu"
4800
  msgstr ""
4801
 
4802
- #: includes/functions.php:3240
4803
  msgid "Saturday"
4804
  msgstr ""
4805
 
4806
- #: includes/functions.php:3243
4807
  msgid "Sunday"
4808
  msgstr ""
4809
 
4810
- #: includes/functions.php:3246
4811
  msgid "Monday"
4812
  msgstr ""
4813
 
4814
- #: includes/functions.php:3249
4815
  msgid "Tuesday"
4816
  msgstr ""
4817
 
4818
- #: includes/functions.php:3252
4819
  msgid "Wednesday"
4820
  msgstr ""
4821
 
4822
- #: includes/functions.php:3255
4823
  msgid "Thursday"
4824
  msgstr ""
4825
 
4826
- #: includes/functions.php:3258
4827
  msgid "Friday"
4828
  msgstr ""
4829
 
4830
- #: includes/functions.php:3261
4831
  msgid "Off Day"
4832
  msgstr ""
4833
 
4834
- #: includes/functions.php:3613
4835
  msgid "privacy policy"
4836
  msgstr ""
4837
 
4838
- #: includes/functions.php:3658 src/admin/pages/VendorPaymentFields.vue:142
4839
  #: src/admin/pages/VendorPaymentFields.vue:155
4840
  msgid "Flat"
4841
  msgstr ""
4842
 
4843
- #: includes/functions.php:3659 src/admin/pages/VendorPaymentFields.vue:146
4844
  msgid "Percentage"
4845
  msgstr ""
4846
 
4847
- #: includes/functions.php:3678
4848
  msgid "Please Login to Continue"
4849
  msgstr ""
4850
 
4851
- #: includes/functions.php:3861
4852
  msgid "Unable to fetch plugin information from wordpress.org for %s."
4853
  msgstr ""
4854
 
4855
- #: includes/functions.php:3873
4856
  msgid "Unable to install %s from wordpress.org"
4857
  msgstr ""
4858
 
4859
- #: includes/reports.php:353
4860
  msgid "Sales total"
4861
  msgstr ""
4862
 
4863
- #: includes/reports.php:370 templates/dashboard/big-counter-widget.php:17
4864
  msgid "Sales"
4865
  msgstr ""
4866
 
@@ -5002,11 +5090,11 @@ msgstr ""
5002
  msgid "Account details changed successfully."
5003
  msgstr ""
5004
 
5005
- #: includes/wc-functions.php:1120
5006
  msgid "More Products"
5007
  msgstr ""
5008
 
5009
- #: includes/wc-functions.php:1174
5010
  msgid "No product has been found!"
5011
  msgstr ""
5012
 
@@ -5042,19 +5130,19 @@ msgstr ""
5042
  msgid "Clear"
5043
  msgstr ""
5044
 
5045
- #: src/admin/components/Fields.vue:83
5046
  msgid "Both percentage and fixed fee is required."
5047
  msgstr ""
5048
 
5049
- #: src/admin/components/Fields.vue:282
5050
  msgid "Active"
5051
  msgstr ""
5052
 
5053
- #: src/admin/components/Fields.vue:286 src/admin/pages/Settings.vue:203
5054
  msgid "Select"
5055
  msgstr ""
5056
 
5057
- #: src/admin/components/Fields.vue:519
5058
  msgid "is required."
5059
  msgstr ""
5060
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Dokan 3.3.2\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2021-11-30 12:46:04+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
46
  "Running PHP %2$s"
47
  msgstr ""
48
 
49
+ #: dokan.php:468
50
  msgid "Get Pro"
51
  msgstr ""
52
 
53
+ #: dokan.php:471 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:472 src/admin/pages/ProModules.vue:33
61
  msgid "Documentation"
62
  msgstr ""
63
 
89
  msgstr ""
90
 
91
  #: includes/Abstracts/DokanRESTController.php:69
92
+ #: includes/REST/ProductController.php:840
93
  msgid ""
94
  "To manipulate product variations you should use the "
95
  "/products/&lt;product_id&gt;/variations/&lt;id&gt; endpoint."
97
 
98
  #: includes/Abstracts/DokanRESTController.php:71
99
  #: includes/REST/OrderController.php:211
100
+ #: includes/REST/ProductController.php:325
101
+ #: includes/REST/ProductController.php:350
102
  msgid "Invalid ID."
103
  msgstr ""
104
 
116
  msgstr ""
117
 
118
  #: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
119
+ #: includes/Admin/Settings.php:527 includes/Install/Installer.php:172
120
  #: includes/template-tags.php:386 src/admin/pages/Dashboard.vue:5
121
  msgid "Dashboard"
122
  msgstr ""
123
 
124
  #: includes/Admin/AdminBar.php:63 includes/Admin/Menu.php:32
125
  #: includes/Admin/Menu.php:44 includes/Admin/SetupWizard.php:160
126
+ #: includes/functions.php:2978 includes/template-tags.php:408
127
  #: templates/withdraw/header.php:11
128
  msgid "Withdraw"
129
  msgstr ""
146
 
147
  #: includes/Admin/Hooks.php:64 includes/Admin/Hooks.php:70
148
  #: includes/Admin/Hooks.php:365 includes/Admin/Hooks.php:387
149
+ #: includes/Admin/Settings.php:423 includes/Admin/Settings.php:434
150
  #: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:108
151
  #: includes/wc-template.php:17 includes/wc-template.php:167
152
  #: includes/wc-template.php:316 src/admin/pages/Dashboard.vue:38
352
  msgid "You have no permission to get settings value"
353
  msgstr ""
354
 
355
+ #: includes/Admin/Settings.php:96 includes/Admin/Settings.php:727
356
  msgid "You are not authorized to perform this action."
357
  msgstr ""
358
 
376
  msgid "Appearance"
377
  msgstr ""
378
 
379
+ #: includes/Admin/Settings.php:297 includes/Admin/Settings.php:662
380
  msgid "Privacy Policy"
381
  msgstr ""
382
 
383
  #: includes/Admin/Settings.php:319 includes/Admin/SetupWizard.php:524
384
  #: includes/Dashboard/Templates/Dashboard.php:101
385
+ #: includes/Order/functions.php:560 templates/dashboard/orders-widget.php:26
386
  msgid "Completed"
387
  msgstr ""
388
 
389
  #: includes/Admin/Settings.php:320 includes/Admin/SetupWizard.php:530
390
  #: includes/Dashboard/Templates/Dashboard.php:111
391
+ #: includes/Order/functions.php:575 templates/dashboard/orders-widget.php:36
392
  #: templates/orders/listing.php:151
393
  msgid "Processing"
394
  msgstr ""
395
 
396
+ #: includes/Admin/Settings.php:321 includes/Order/functions.php:570
397
  msgid "On-hold"
398
  msgstr ""
399
 
437
  msgid "Disable welcome wizard for newly registered vendors"
438
  msgstr ""
439
 
440
+ #: includes/Admin/Settings.php:359
441
+ msgid ""
442
+ "If checked, vendors will not be prompted through a guided setup process but "
443
+ "redirected straight to the vendor dashboard."
444
+ msgstr ""
445
+
446
+ #: includes/Admin/Settings.php:368
447
  msgid "Vendor Store Options"
448
  msgstr ""
449
 
450
+ #: includes/Admin/Settings.php:373
451
  msgid "Store Terms and Conditions"
452
  msgstr ""
453
 
454
+ #: includes/Admin/Settings.php:374
455
  msgid "Enable Terms and Conditions for vendor stores"
456
  msgstr ""
457
 
458
+ #: includes/Admin/Settings.php:377
459
+ msgid ""
460
+ "Prompt Terms and Condition check for Vendors when creating store on your "
461
+ "site"
462
+ msgstr ""
463
+
464
+ #: includes/Admin/Settings.php:381 includes/Vendor/SetupWizard.php:185
465
  #: templates/settings/store-form.php:125
466
  msgid "Store Products Per Page"
467
  msgstr ""
468
 
469
+ #: includes/Admin/Settings.php:382
470
  msgid ""
471
  "Set how many products to display per page on the vendor store page. It will "
472
  "affect only if the vendor isn't set this value on their vendor setting page."
473
  msgstr ""
474
 
475
+ #: includes/Admin/Settings.php:385
476
+ msgid ""
477
+ "It will affect the vendor only if they havent set a value on their settings "
478
+ "page."
479
+ msgstr ""
480
+
481
+ #: includes/Admin/Settings.php:394
482
  msgid "Commission"
483
  msgstr ""
484
 
485
+ #: includes/Admin/Settings.php:399
486
  msgid "Commission Type "
487
  msgstr ""
488
 
489
+ #: includes/Admin/Settings.php:400
490
  msgid "Select a commission type for Vendor"
491
  msgstr ""
492
 
493
+ #: includes/Admin/Settings.php:404
494
+ msgid "Select a commission type"
495
+ msgstr ""
496
+
497
+ #: includes/Admin/Settings.php:408 src/admin/pages/VendorPaymentFields.vue:69
498
  #: src/admin/pages/VendorPaymentFields.vue:78
499
  #: templates/admin-setup-wizard/step-selling.php:31
500
  msgid "Admin Commission"
501
  msgstr ""
502
 
503
+ #: includes/Admin/Settings.php:409
504
  msgid "Amount you get from each sale"
505
  msgstr ""
506
 
507
+ #: includes/Admin/Settings.php:419
508
  #: templates/admin-setup-wizard/step-store.php:14
509
  msgid "Shipping Fee Recipient"
510
  msgstr ""
511
 
512
+ #: includes/Admin/Settings.php:420
513
  msgid "Who will be receiving the Shipping fees"
514
  msgstr ""
515
 
516
+ #: includes/Admin/Settings.php:424 includes/Admin/Settings.php:435
517
  #: includes/Admin/SetupWizard.php:346
518
  msgid "Admin"
519
  msgstr ""
520
 
521
+ #: includes/Admin/Settings.php:430
522
  #: templates/admin-setup-wizard/step-store.php:28
523
  msgid "Tax Fee Recipient"
524
  msgstr ""
525
 
526
+ #: includes/Admin/Settings.php:431
527
  msgid "Who will be receiving the Tax fees"
528
  msgstr ""
529
 
530
+ #: includes/Admin/Settings.php:446
531
  msgid "Vendor Capability"
532
  msgstr ""
533
 
534
+ #: includes/Admin/Settings.php:451
535
  msgid "New Vendor Product Upload"
536
  msgstr ""
537
 
538
+ #: includes/Admin/Settings.php:452
539
  msgid "Allow newly registered vendors to add products"
540
  msgstr ""
541
 
542
+ #: includes/Admin/Settings.php:455
543
+ msgid ""
544
+ "If checked, vendors will have permission to sell immediately after "
545
+ "registration. If unchecked, newly registered vendors cannot add products "
546
+ "until selling capability is activated manually from Dashboard -> Vendors."
547
+ msgstr ""
548
+
549
+ #: includes/Admin/Settings.php:459
550
  msgid "Disable Product Popup"
551
  msgstr ""
552
 
553
+ #: includes/Admin/Settings.php:460
554
  msgid "Disable add new product in popup view"
555
  msgstr ""
556
 
557
+ #: includes/Admin/Settings.php:463
558
+ msgid ""
559
+ "If disabled, instead of a pop up window vendor will redirect to product "
560
+ "page when adding new product."
561
+ msgstr ""
562
+
563
+ #: includes/Admin/Settings.php:467 src/admin/pages/VendorCapabilities.vue:89
564
  #: templates/admin-setup-wizard/step-selling.php:39
565
  msgid "Order Status Change"
566
  msgstr ""
567
 
568
+ #: includes/Admin/Settings.php:468
569
  msgid "Allow vendor to update order status"
570
  msgstr ""
571
 
572
+ #: includes/Admin/Settings.php:471
573
+ msgid ""
574
+ "Checking this will enable sellers to change the order status. If unchecked, "
575
+ "only admin can change the order status."
576
+ msgstr ""
577
+
578
+ #: includes/Admin/Settings.php:488 includes/Admin/SetupWizard.php:474
579
  msgid "Withdraw Methods"
580
  msgstr ""
581
 
582
+ #: includes/Admin/Settings.php:489
583
  msgid "Select suitable Withdraw methods for Vendors"
584
  msgstr ""
585
 
586
+ #: includes/Admin/Settings.php:493
587
+ msgid "Check to add available payment methods for vendors to withdraw money."
588
+ msgstr ""
589
+
590
+ #: includes/Admin/Settings.php:497 includes/Admin/SetupWizard.php:511
591
  msgid "Minimum Withdraw Limit"
592
  msgstr ""
593
 
594
+ #: includes/Admin/Settings.php:498
595
  msgid ""
596
  "Minimum balance required to make a withdraw request. Leave blank to set no "
597
  "minimum limits."
598
  msgstr ""
599
 
600
+ #: includes/Admin/Settings.php:507 includes/Admin/SetupWizard.php:518
601
  msgid "Order Status for Withdraw"
602
  msgstr ""
603
 
604
+ #: includes/Admin/Settings.php:508 includes/Admin/SetupWizard.php:535
605
  msgid "Order status for which vendor can make a withdraw request."
606
  msgstr ""
607
 
608
+ #: includes/Admin/Settings.php:514
609
+ msgid ""
610
+ "Select the order status that will allow vendors to make withdraw request. "
611
+ "We prefer you select \"completed\", \"processing\"."
612
+ msgstr ""
613
+
614
+ #: includes/Admin/Settings.php:518
615
  msgid "Exclude COD Payments"
616
  msgstr ""
617
 
618
+ #: includes/Admin/Settings.php:519
619
  msgid ""
620
  "If an order is paid with Cash on Delivery (COD), then exclude that payment "
621
  "from vendor balance."
622
  msgstr ""
623
 
624
+ #: includes/Admin/Settings.php:528
625
  msgid "Select a page to show Vendor Dashboard"
626
  msgstr ""
627
 
628
+ #: includes/Admin/Settings.php:530 includes/Admin/Settings.php:538
629
+ #: includes/Admin/Settings.php:546 includes/Admin/Settings.php:553
630
+ #: includes/Admin/Settings.php:657
631
  msgid "Select page"
632
  msgstr ""
633
 
634
+ #: includes/Admin/Settings.php:535 includes/Install/Installer.php:184
635
  #: templates/global/header-menu.php:46
636
  msgid "My Orders"
637
  msgstr ""
638
 
639
+ #: includes/Admin/Settings.php:536
640
  msgid "Select a page to show My Orders"
641
  msgstr ""
642
 
643
+ #: includes/Admin/Settings.php:543
644
  msgid "Store Listing"
645
  msgstr ""
646
 
647
+ #: includes/Admin/Settings.php:544
648
  msgid "Select a page to show all Stores"
649
  msgstr ""
650
 
651
+ #: includes/Admin/Settings.php:551
652
  msgid "Terms and Conditions Page"
653
  msgstr ""
654
 
655
+ #: includes/Admin/Settings.php:556
656
  #. translators: %s: dokan pages
657
  msgid ""
658
  "Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
659
  "Learn More </a>"
660
  msgstr ""
661
 
662
+ #: includes/Admin/Settings.php:557
663
+ msgid "Select a page to display the Terms and Conditions of your store for Vendors."
664
+ msgstr ""
665
+
666
+ #: includes/Admin/Settings.php:563
667
  msgid "Show Map on Store Page"
668
  msgstr ""
669
 
670
+ #: includes/Admin/Settings.php:564
671
  msgid "Enable Map of the Store Location in the store sidebar"
672
  msgstr ""
673
 
674
+ #: includes/Admin/Settings.php:570
675
  #: templates/admin-setup-wizard/step-store.php:42
676
  msgid "Map API Source"
677
  msgstr ""
678
 
679
+ #: includes/Admin/Settings.php:571
680
  #: templates/admin-setup-wizard/step-store.php:52
681
  msgid "Which Map API source you want to use in your site?"
682
  msgstr ""
683
 
684
+ #: includes/Admin/Settings.php:576 includes/Admin/SetupWizard.php:359
685
  #: src/admin/pages/Premium.vue:388
686
  msgid "Google Maps"
687
  msgstr ""
688
 
689
+ #: includes/Admin/Settings.php:577 includes/Admin/SetupWizard.php:360
690
  msgid "Mapbox"
691
  msgstr ""
692
 
693
+ #: includes/Admin/Settings.php:582
694
  #: templates/admin-setup-wizard/step-store.php:56
695
  msgid "Google Map API Key"
696
  msgstr ""
697
 
698
+ #: includes/Admin/Settings.php:583
699
  msgid ""
700
  "<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
701
  "target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
702
  "display map on store page"
703
  msgstr ""
704
 
705
+ #: includes/Admin/Settings.php:585
706
+ msgid "Insert Google API Key (with hyperlink) to display store map."
707
+ msgstr ""
708
+
709
+ #: includes/Admin/Settings.php:589
710
  #: templates/admin-setup-wizard/step-store.php:71
711
  msgid "Mapbox Access Token"
712
  msgstr ""
713
 
714
+ #: includes/Admin/Settings.php:590
715
  #: templates/admin-setup-wizard/step-store.php:75
716
  msgid ""
717
  "<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
719
  "display map on store page"
720
  msgstr ""
721
 
722
+ #: includes/Admin/Settings.php:592
723
+ msgid "Insert Mapbox Access Token (with hyperlink) to display store map."
724
+ msgstr ""
725
+
726
+ #: includes/Admin/Settings.php:596
727
  msgid "Show Contact Form on Store Page"
728
  msgstr ""
729
 
730
+ #: includes/Admin/Settings.php:597
731
  msgid "Display a vendor contact form in the store sidebar"
732
  msgstr ""
733
 
734
+ #: includes/Admin/Settings.php:603
735
  msgid "Store Header Template"
736
  msgstr ""
737
 
738
+ #: includes/Admin/Settings.php:612
739
+ msgid ""
740
+ "Choose your header design from any of the templates provided. You can "
741
+ "change it again anytime."
742
+ msgstr ""
743
+
744
+ #: includes/Admin/Settings.php:616
745
  msgid "Store Opening Closing Time Widget"
746
  msgstr ""
747
 
748
+ #: includes/Admin/Settings.php:617
749
  msgid "Enable store opening & closing time widget in the store sidebar"
750
  msgstr ""
751
 
752
+ #: includes/Admin/Settings.php:623
753
  msgid "Enable Store Sidebar From Theme"
754
  msgstr ""
755
 
756
+ #: includes/Admin/Settings.php:624
757
  msgid "Enable showing Store Sidebar From Your Theme."
758
  msgstr ""
759
 
760
+ #: includes/Admin/Settings.php:630
761
  msgid "Hide Vendor Info"
762
  msgstr ""
763
 
764
+ #: includes/Admin/Settings.php:638
765
  msgid "Email Address"
766
  msgstr ""
767
 
768
+ #: includes/Admin/Settings.php:639 includes/Admin/UserProfile.php:211
769
  #: src/admin/pages/VendorAccountFields.vue:65
770
  #: templates/account/vendor-registration.php:33
771
  #: templates/global/seller-registration-form.php:43
772
  msgid "Phone Number"
773
  msgstr ""
774
 
775
+ #: includes/Admin/Settings.php:640
776
  msgid "Store Address"
777
  msgstr ""
778
 
779
+ #: includes/Admin/Settings.php:647
780
  msgid "Enable Privacy Policy"
781
  msgstr ""
782
 
783
+ #: includes/Admin/Settings.php:649
784
  msgid "Enable privacy policy for Vendor store contact form"
785
  msgstr ""
786
 
787
+ #: includes/Admin/Settings.php:654
788
  msgid "Privacy Page"
789
  msgstr ""
790
 
791
+ #: includes/Admin/Settings.php:656
792
  msgid "Select a page to show your privacy policy"
793
  msgstr ""
794
 
795
+ #: includes/Admin/Settings.php:665 includes/functions.php:3550
796
  msgid ""
797
  "Your personal data will be used to support your experience throughout this "
798
  "website, to manage access to your account, and for other purposes described "
799
  "in our [dokan_privacy_policy]"
800
  msgstr ""
801
 
802
+ #: includes/Admin/Settings.php:666
803
+ msgid "Customize the Privacy Policy text that will be displayed on your store."
804
+ msgstr ""
805
+
806
+ #: includes/Admin/Settings.php:739
807
  msgid "Both section and field params are required."
808
  msgstr ""
809
 
810
+ #: includes/Admin/Settings.php:748
811
  msgid "No filter found to refresh the setting options"
812
  msgstr ""
813
 
814
+ #: includes/Admin/Settings.php:780
815
  msgid "Minimum Withdraw Limit can't be negative value."
816
  msgstr ""
817
 
818
+ #: includes/Admin/Settings.php:791
819
  msgid "Validation error"
820
  msgstr ""
821
 
822
+ #: includes/Admin/Settings.php:809
823
  msgid "Data Clear"
824
  msgstr ""
825
 
826
+ #: includes/Admin/Settings.php:810
827
  msgid ""
828
  "Delete all data and tables related to Dokan and Dokan Pro plugin while "
829
  "deleting the Dokan plugin."
830
  msgstr ""
831
 
832
+ #: includes/Admin/Settings.php:813
833
+ msgid ""
834
+ "Check this to remove Dokan related data and table from the database upon "
835
+ "deleting the plugin. When you delete the Dokan lite version, it will also "
836
+ "delete all the data related to Dokan Pro as well. This won't happen when "
837
+ "the plugins are deactivated.."
838
+ msgstr ""
839
+
840
  #: includes/Admin/SetupWizard.php:146 includes/Vendor/SetupWizard.php:70
841
  msgid "Introduction"
842
  msgstr ""
1248
  msgstr ""
1249
 
1250
  #: includes/Admin/functions.php:223 includes/Admin/functions.php:496
1251
+ #: includes/REST/AdminReportController.php:146 includes/reports.php:369
1252
  msgid "Number of orders"
1253
  msgstr ""
1254
 
1342
  msgid "Delete"
1343
  msgstr ""
1344
 
1345
+ #: includes/Ajax.php:520 includes/Product/Hooks.php:39
1346
  msgid "Error: Nonce verification failed"
1347
  msgstr ""
1348
 
1713
  msgid "Payment gateway processing fee %s"
1714
  msgstr ""
1715
 
1716
+ #: includes/Commission.php:198
1717
  msgid "Product not found"
1718
  msgstr ""
1719
 
1720
+ #: includes/Commission.php:226
1721
  msgid "Order not found"
1722
  msgstr ""
1723
 
1816
  msgstr ""
1817
 
1818
  #: includes/Dashboard/Templates/Dashboard.php:116
1819
+ #: includes/Order/functions.php:585 src/admin/pages/Withdraw.vue:25
1820
  #: templates/dashboard/orders-widget.php:41
1821
  msgid "Cancelled"
1822
  msgstr ""
1823
 
1824
  #: includes/Dashboard/Templates/Dashboard.php:121
1825
+ #: includes/Order/functions.php:580 templates/dashboard/orders-widget.php:46
1826
  msgid "Refunded"
1827
  msgstr ""
1828
 
1878
  msgstr ""
1879
 
1880
  #: includes/Dashboard/Templates/Products.php:426
 
1881
  msgid "I swear this is not your product!"
1882
  msgstr ""
1883
 
2338
  msgid "Store List"
2339
  msgstr ""
2340
 
2341
+ #: includes/Order/Hooks.php:257
2342
  msgid "Mark parent order completed when all child orders are completed."
2343
  msgstr ""
2344
 
2345
+ #: includes/Order/Hooks.php:305
2346
  msgid "This coupon is invalid for multiple vendors."
2347
  msgstr ""
2348
 
2349
+ #: includes/Order/Hooks.php:319
2350
  msgid "A coupon must be restricted with a vendor product."
2351
  msgstr ""
2352
 
2353
+ #: includes/Order/Hooks.php:371
2354
  #. translators: %s item name.
2355
  msgid "Unable to restore stock for item %s."
2356
  msgstr ""
2357
 
2358
+ #: includes/Order/Hooks.php:448 includes/Order/Hooks.php:467
2359
  msgid "Stock levels reduced:"
2360
  msgstr ""
2361
 
2362
+ #: includes/Order/functions.php:565
2363
  msgid "Pending Payment"
2364
  msgstr ""
2365
 
2366
+ #: includes/Order/functions.php:590
2367
  msgid "Failed"
2368
  msgstr ""
2369
 
2370
+ #: includes/Order/functions.php:842
2371
  msgid "Order No"
2372
  msgstr ""
2373
 
2374
+ #: includes/Order/functions.php:843 templates/orders/details.php:22
2375
  msgid "Order Items"
2376
  msgstr ""
2377
 
2378
+ #: includes/Order/functions.php:844
2379
  msgid "Shipping method"
2380
  msgstr ""
2381
 
2382
+ #: includes/Order/functions.php:845
2383
  msgid "Shipping Cost"
2384
  msgstr ""
2385
 
2386
+ #: includes/Order/functions.php:846
2387
  msgid "Payment method"
2388
  msgstr ""
2389
 
2390
+ #: includes/Order/functions.php:847 templates/orders/listing.php:55
2391
  #: templates/orders/listing.php:86
2392
  msgid "Order Total"
2393
  msgstr ""
2394
 
2395
+ #: includes/Order/functions.php:848
2396
  msgid "Earnings"
2397
  msgstr ""
2398
 
2399
+ #: includes/Order/functions.php:849 includes/REST/OrderController.php:102
2400
  msgid "Order Status"
2401
  msgstr ""
2402
 
2403
+ #: includes/Order/functions.php:850
2404
  msgid "Order Date"
2405
  msgstr ""
2406
 
2407
+ #: includes/Order/functions.php:851
2408
  msgid "Billing Company"
2409
  msgstr ""
2410
 
2411
+ #: includes/Order/functions.php:852
2412
  msgid "Billing First Name"
2413
  msgstr ""
2414
 
2415
+ #: includes/Order/functions.php:853
2416
  msgid "Billing Last Name"
2417
  msgstr ""
2418
 
2419
+ #: includes/Order/functions.php:854
2420
  msgid "Billing Full Name"
2421
  msgstr ""
2422
 
2423
+ #: includes/Order/functions.php:855
2424
  msgid "Billing Email"
2425
  msgstr ""
2426
 
2427
+ #: includes/Order/functions.php:856
2428
  msgid "Billing Phone"
2429
  msgstr ""
2430
 
2431
+ #: includes/Order/functions.php:857
2432
  msgid "Billing Address 1"
2433
  msgstr ""
2434
 
2435
+ #: includes/Order/functions.php:858
2436
  msgid "Billing Address 2"
2437
  msgstr ""
2438
 
2439
+ #: includes/Order/functions.php:859
2440
  msgid "Billing City"
2441
  msgstr ""
2442
 
2443
+ #: includes/Order/functions.php:860
2444
  msgid "Billing State"
2445
  msgstr ""
2446
 
2447
+ #: includes/Order/functions.php:861
2448
  msgid "Billing Postcode"
2449
  msgstr ""
2450
 
2451
+ #: includes/Order/functions.php:862
2452
  msgid "Billing Country"
2453
  msgstr ""
2454
 
2455
+ #: includes/Order/functions.php:863
2456
  msgid "Shipping Company"
2457
  msgstr ""
2458
 
2459
+ #: includes/Order/functions.php:864
2460
  msgid "Shipping First Name"
2461
  msgstr ""
2462
 
2463
+ #: includes/Order/functions.php:865
2464
  msgid "Shipping Last Name"
2465
  msgstr ""
2466
 
2467
+ #: includes/Order/functions.php:866
2468
  msgid "Shipping Full Name"
2469
  msgstr ""
2470
 
2471
+ #: includes/Order/functions.php:867
2472
  msgid "Shipping Address 1"
2473
  msgstr ""
2474
 
2475
+ #: includes/Order/functions.php:868
2476
  msgid "Shipping Address 2"
2477
  msgstr ""
2478
 
2479
+ #: includes/Order/functions.php:869
2480
  msgid "Shipping City"
2481
  msgstr ""
2482
 
2483
+ #: includes/Order/functions.php:870
2484
  msgid "Shipping State"
2485
  msgstr ""
2486
 
2487
+ #: includes/Order/functions.php:871
2488
  msgid "Shipping Postcode"
2489
  msgstr ""
2490
 
2491
+ #: includes/Order/functions.php:872
2492
  msgid "Shipping Country"
2493
  msgstr ""
2494
 
2495
+ #: includes/Order/functions.php:873
2496
  msgid "Customer IP"
2497
  msgstr ""
2498
 
2499
+ #: includes/Order/functions.php:874
2500
  msgid "Customer Note"
2501
  msgstr ""
2502
 
2734
  msgid "Gravatar Url"
2735
  msgstr ""
2736
 
2737
+ #: includes/Privacy.php:201 includes/functions.php:2431
2738
  #: src/admin/pages/VendorSocialFields.vue:11
2739
  msgid "Facebook"
2740
  msgstr ""
2741
 
2742
+ #: includes/Privacy.php:202 includes/functions.php:2435
2743
  #: src/admin/pages/VendorSocialFields.vue:21
2744
  msgid "Twitter"
2745
  msgstr ""
2746
 
2747
+ #: includes/Privacy.php:203 includes/functions.php:2439
2748
  #: src/admin/pages/VendorSocialFields.vue:36
2749
  msgid "Pinterest"
2750
  msgstr ""
2753
  msgid "Linkedin"
2754
  msgstr ""
2755
 
2756
+ #: includes/Privacy.php:205 includes/functions.php:2447
2757
  #: src/admin/pages/VendorSocialFields.vue:26
2758
  msgid "Youtube"
2759
  msgstr ""
2760
 
2761
+ #: includes/Privacy.php:206 includes/functions.php:2451
2762
  #: src/admin/pages/VendorSocialFields.vue:41
2763
  msgid "Instagram"
2764
  msgstr ""
2765
 
2766
+ #: includes/Privacy.php:207 includes/functions.php:2455
2767
  #: src/admin/pages/VendorSocialFields.vue:16
2768
  msgid "Flickr"
2769
  msgstr ""
2811
  msgid "Bank Address"
2812
  msgstr ""
2813
 
2814
+ #: includes/Privacy.php:279 includes/Withdraw/functions.php:210
2815
  #: src/admin/pages/VendorPaymentFields.vue:35
2816
  msgid "IBAN"
2817
  msgstr ""
2833
  msgid "Vendor %s data is removed."
2834
  msgstr ""
2835
 
2836
+ #: includes/Product/Hooks.php:46
2837
  msgid "Products not found with this search"
2838
  msgstr ""
2839
 
2840
+ #: includes/Product/Hooks.php:134
2841
  msgid "SKU:"
2842
  msgstr ""
2843
 
2844
+ #: includes/Product/Hooks.php:171
2845
  msgid "Enter product name"
2846
  msgstr ""
2847
 
2848
+ #: includes/Product/Hooks.php:173 includes/Product/functions.php:350
2849
  #: templates/products/listing-filter.php:69
2850
  msgid "Search"
2851
  msgstr ""
2852
 
2853
+ #: includes/Product/Hooks.php:176
2854
  msgid "Shop order"
2855
  msgstr ""
2856
 
2857
+ #: includes/Product/Manager.php:465
2858
  msgid "No product ID found for updating"
2859
  msgstr ""
2860
 
2861
+ #: includes/Product/functions.php:64
2862
+ msgid "Sorry, You can not modify another vendor's product !"
2863
+ msgstr ""
2864
+
2865
  #: includes/Product/functions.php:189
2866
  msgid ""
2867
  "Before you can add a variation you need to add some variation attributes on "
3128
  #: includes/REST/StoreController.php:94 includes/REST/StoreController.php:111
3129
  #: includes/REST/StoreController.php:138 includes/REST/StoreController.php:172
3130
  #: includes/REST/StoreController.php:204
3131
+ #: includes/REST/WithdrawController.php:79
3132
+ #: includes/REST/WithdrawController.php:705
3133
  msgid "Unique identifier for the object."
3134
  msgstr ""
3135
 
3143
 
3144
  #: includes/REST/OrderController.php:205
3145
  #: includes/REST/ProductController.php:275
3146
+ #: includes/REST/ProductController.php:319
3147
  msgid "No seller found"
3148
  msgstr ""
3149
 
3150
  #: includes/REST/OrderController.php:217
3151
+ #: includes/REST/ProductController.php:331
3152
+ #: includes/REST/ProductController.php:356
3153
  msgid "Sorry, you have no permission to do this. Since it's not your product."
3154
  msgstr ""
3155
 
3180
  msgstr ""
3181
 
3182
  #: includes/REST/OrderController.php:583
3183
+ #: includes/REST/ProductController.php:284
3184
  #. translators: %s: product
3185
  msgid "Cannot create existing %s."
3186
  msgstr ""
3198
  msgstr ""
3199
 
3200
  #: includes/REST/OrderController.php:860
3201
+ #: includes/REST/ProductController.php:1754
3202
  msgid "Unique identifier for the resource."
3203
  msgstr ""
3204
 
3399
  #: includes/REST/OrderController.php:1459
3400
  #: includes/REST/OrderController.php:1557
3401
  #: includes/REST/OrderController.php:1615
3402
+ #: includes/REST/ProductController.php:2331
3403
  msgid "Meta data."
3404
  msgstr ""
3405
 
3409
  #: includes/REST/OrderController.php:1466
3410
  #: includes/REST/OrderController.php:1564
3411
  #: includes/REST/OrderController.php:1622
3412
+ #: includes/REST/ProductController.php:2338
3413
  msgid "Meta ID."
3414
  msgstr ""
3415
 
3419
  #: includes/REST/OrderController.php:1472
3420
  #: includes/REST/OrderController.php:1570
3421
  #: includes/REST/OrderController.php:1628
3422
+ #: includes/REST/ProductController.php:2344
3423
  msgid "Meta key."
3424
  msgstr ""
3425
 
3429
  #: includes/REST/OrderController.php:1477
3430
  #: includes/REST/OrderController.php:1575
3431
  #: includes/REST/OrderController.php:1633
3432
+ #: includes/REST/ProductController.php:2349
3433
  msgid "Meta value."
3434
  msgstr ""
3435
 
3446
  msgstr ""
3447
 
3448
  #: includes/REST/OrderController.php:1209
3449
+ #: includes/REST/ProductController.php:1760
3450
  msgid "Product name."
3451
  msgstr ""
3452
 
3648
  msgid "Top rated product for specific vendor"
3649
  msgstr ""
3650
 
3651
+ #: includes/REST/ProductController.php:279
3652
+ msgid "Error! Your account is not enabled for selling, please contact the admin"
3653
+ msgstr ""
3654
+
3655
+ #: includes/REST/ProductController.php:288
3656
  msgid "Product title must be required"
3657
  msgstr ""
3658
 
3659
+ #: includes/REST/ProductController.php:294
3660
  msgid "Category must be required"
3661
  msgstr ""
3662
 
3663
+ #: includes/REST/ProductController.php:299
3664
  msgid "You can not select more than category"
3665
  msgstr ""
3666
 
3667
+ #: includes/REST/ProductController.php:1315
3668
+ #: includes/REST/ProductController.php:1316
3669
  msgid "Placeholder"
3670
  msgstr ""
3671
 
3672
+ #: includes/REST/ProductController.php:1541
3673
  #. translators: %s: attachment id
3674
  msgid "#%s is an invalid image ID."
3675
  msgstr ""
3676
 
3677
+ #: includes/REST/ProductController.php:1765
3678
  msgid "Product slug."
3679
  msgstr ""
3680
 
3681
+ #: includes/REST/ProductController.php:1770
3682
  msgid "Product URL."
3683
  msgstr ""
3684
 
3685
+ #: includes/REST/ProductController.php:1777
3686
  msgid "The date the product was created, in the site's timezone."
3687
  msgstr ""
3688
 
3689
+ #: includes/REST/ProductController.php:1783
3690
  msgid "The date the product was created, as GMT."
3691
  msgstr ""
3692
 
3693
+ #: includes/REST/ProductController.php:1789
3694
  msgid "The date the product was last modified, in the site's timezone."
3695
  msgstr ""
3696
 
3697
+ #: includes/REST/ProductController.php:1795
3698
  msgid "The date the product was last modified, as GMT."
3699
  msgstr ""
3700
 
3701
+ #: includes/REST/ProductController.php:1801
3702
  msgid "Product type."
3703
  msgstr ""
3704
 
3705
+ #: includes/REST/ProductController.php:1808
3706
  msgid "Product status (post status)."
3707
  msgstr ""
3708
 
3709
+ #: includes/REST/ProductController.php:1815
3710
  msgid "Featured product."
3711
  msgstr ""
3712
 
3713
+ #: includes/REST/ProductController.php:1821
3714
  msgid "Catalog visibility."
3715
  msgstr ""
3716
 
3717
+ #: includes/REST/ProductController.php:1828
3718
  msgid "Product description."
3719
  msgstr ""
3720
 
3721
+ #: includes/REST/ProductController.php:1833
3722
  msgid "Product short description."
3723
  msgstr ""
3724
 
3725
+ #: includes/REST/ProductController.php:1838
3726
  msgid "Unique identifier."
3727
  msgstr ""
3728
 
3729
+ #: includes/REST/ProductController.php:1843
3730
  msgid "Current product price."
3731
  msgstr ""
3732
 
3733
+ #: includes/REST/ProductController.php:1849
3734
  msgid "Product regular price."
3735
  msgstr ""
3736
 
3737
+ #: includes/REST/ProductController.php:1854
3738
  msgid "Product sale price."
3739
  msgstr ""
3740
 
3741
+ #: includes/REST/ProductController.php:1859
3742
  msgid "Start date of sale price, in the site's timezone."
3743
  msgstr ""
3744
 
3745
+ #: includes/REST/ProductController.php:1864
3746
  msgid "Start date of sale price, as GMT."
3747
  msgstr ""
3748
 
3749
+ #: includes/REST/ProductController.php:1869
3750
  msgid "End date of sale price, in the site's timezone."
3751
  msgstr ""
3752
 
3753
+ #: includes/REST/ProductController.php:1874
3754
  msgid "End date of sale price, as GMT."
3755
  msgstr ""
3756
 
3757
+ #: includes/REST/ProductController.php:1879
3758
  msgid "Price formatted in HTML."
3759
  msgstr ""
3760
 
3761
+ #: includes/REST/ProductController.php:1885
3762
  msgid "Shows if the product is on sale."
3763
  msgstr ""
3764
 
3765
+ #: includes/REST/ProductController.php:1891
3766
  msgid "Shows if the product can be bought."
3767
  msgstr ""
3768
 
3769
+ #: includes/REST/ProductController.php:1897
3770
  msgid "Amount of sales."
3771
  msgstr ""
3772
 
3773
+ #: includes/REST/ProductController.php:1903
3774
  msgid "If the product is virtual."
3775
  msgstr ""
3776
 
3777
+ #: includes/REST/ProductController.php:1909
3778
  msgid "If the product is downloadable."
3779
  msgstr ""
3780
 
3781
+ #: includes/REST/ProductController.php:1915
3782
  msgid "List of downloadable files."
3783
  msgstr ""
3784
 
3785
+ #: includes/REST/ProductController.php:1922
3786
  msgid "File MD5 hash."
3787
  msgstr ""
3788
 
3789
+ #: includes/REST/ProductController.php:1928
3790
  msgid "File name."
3791
  msgstr ""
3792
 
3793
+ #: includes/REST/ProductController.php:1933
3794
  msgid "File URL."
3795
  msgstr ""
3796
 
3797
+ #: includes/REST/ProductController.php:1941
3798
  msgid "Number of times downloadable files can be downloaded after purchase."
3799
  msgstr ""
3800
 
3801
+ #: includes/REST/ProductController.php:1947
3802
  msgid "Number of days until access to downloadable files expires."
3803
  msgstr ""
3804
 
3805
+ #: includes/REST/ProductController.php:1953
3806
  msgid "Product external URL. Only for external products."
3807
  msgstr ""
3808
 
3809
+ #: includes/REST/ProductController.php:1959
3810
  msgid "Product external button text. Only for external products."
3811
  msgstr ""
3812
 
3813
+ #: includes/REST/ProductController.php:1964
3814
  msgid "Tax status."
3815
  msgstr ""
3816
 
3817
+ #: includes/REST/ProductController.php:1971
3818
  msgid "Tax class."
3819
  msgstr ""
3820
 
3821
+ #: includes/REST/ProductController.php:1976
3822
  msgid "Stock management at product level."
3823
  msgstr ""
3824
 
3825
+ #: includes/REST/ProductController.php:1982
3826
  msgid "Stock quantity."
3827
  msgstr ""
3828
 
3829
+ #: includes/REST/ProductController.php:1987
3830
  msgid ""
3831
  "Controls whether or not the product is listed as \"in stock\" or \"out of "
3832
  "stock\" on the frontend."
3833
  msgstr ""
3834
 
3835
+ #: includes/REST/ProductController.php:1993
3836
  msgid "If managing stock, this controls if backorders are allowed."
3837
  msgstr ""
3838
 
3839
+ #: includes/REST/ProductController.php:2000
3840
  msgid "Shows if backorders are allowed."
3841
  msgstr ""
3842
 
3843
+ #: includes/REST/ProductController.php:2006
3844
  msgid "Shows if the product is on backordered."
3845
  msgstr ""
3846
 
3847
+ #: includes/REST/ProductController.php:2012
3848
  msgid "Allow one item to be bought in a single order."
3849
  msgstr ""
3850
 
3851
+ #: includes/REST/ProductController.php:2019
3852
  #. translators: %s: weight unit
3853
  msgid "Product weight (%s)."
3854
  msgstr ""
3855
 
3856
+ #: includes/REST/ProductController.php:2024
3857
  msgid "Product dimensions."
3858
  msgstr ""
3859
 
3860
+ #: includes/REST/ProductController.php:2030
3861
  #. translators: %s: dimension unit
3862
  msgid "Product length (%s)."
3863
  msgstr ""
3864
 
3865
+ #: includes/REST/ProductController.php:2036
3866
  #. translators: %s: dimension unit
3867
  msgid "Product width (%s)."
3868
  msgstr ""
3869
 
3870
+ #: includes/REST/ProductController.php:2042
3871
  #. translators: %s: dimension unit
3872
  msgid "Product height (%s)."
3873
  msgstr ""
3874
 
3875
+ #: includes/REST/ProductController.php:2049
3876
  msgid "Shows if the product need to be shipped."
3877
  msgstr ""
3878
 
3879
+ #: includes/REST/ProductController.php:2055
3880
  msgid "Shows whether or not the product shipping is taxable."
3881
  msgstr ""
3882
 
3883
+ #: includes/REST/ProductController.php:2061
3884
  msgid "Shipping class slug."
3885
  msgstr ""
3886
 
3887
+ #: includes/REST/ProductController.php:2066
3888
  msgid "Shipping class ID."
3889
  msgstr ""
3890
 
3891
+ #: includes/REST/ProductController.php:2072
3892
  msgid "Allow reviews."
3893
  msgstr ""
3894
 
3895
+ #: includes/REST/ProductController.php:2078
3896
  msgid "Reviews average rating."
3897
  msgstr ""
3898
 
3899
+ #: includes/REST/ProductController.php:2084
3900
  msgid "Amount of reviews that the product have."
3901
  msgstr ""
3902
 
3903
+ #: includes/REST/ProductController.php:2090
3904
  msgid "List of related products IDs."
3905
  msgstr ""
3906
 
3907
+ #: includes/REST/ProductController.php:2099
3908
  msgid "List of up-sell products IDs."
3909
  msgstr ""
3910
 
3911
+ #: includes/REST/ProductController.php:2107
3912
  msgid "List of cross-sell products IDs."
3913
  msgstr ""
3914
 
3915
+ #: includes/REST/ProductController.php:2115
3916
  msgid "Product parent ID."
3917
  msgstr ""
3918
 
3919
+ #: includes/REST/ProductController.php:2120
3920
  msgid "Optional note to send the customer after purchase."
3921
  msgstr ""
3922
 
3923
+ #: includes/REST/ProductController.php:2125
3924
  msgid "List of categories."
3925
  msgstr ""
3926
 
3927
+ #: includes/REST/ProductController.php:2132
3928
  msgid "Category ID."
3929
  msgstr ""
3930
 
3931
+ #: includes/REST/ProductController.php:2137
3932
  msgid "Category name."
3933
  msgstr ""
3934
 
3935
+ #: includes/REST/ProductController.php:2143
3936
  msgid "Category slug."
3937
  msgstr ""
3938
 
3939
+ #: includes/REST/ProductController.php:2152
3940
  msgid "List of tags."
3941
  msgstr ""
3942
 
3943
+ #: includes/REST/ProductController.php:2159
3944
  msgid "Tag ID."
3945
  msgstr ""
3946
 
3947
+ #: includes/REST/ProductController.php:2164
3948
  msgid "Tag name."
3949
  msgstr ""
3950
 
3951
+ #: includes/REST/ProductController.php:2170
3952
  msgid "Tag slug."
3953
  msgstr ""
3954
 
3955
+ #: includes/REST/ProductController.php:2179
3956
  msgid "List of images."
3957
  msgstr ""
3958
 
3959
+ #: includes/REST/ProductController.php:2186
3960
  msgid "Image ID."
3961
  msgstr ""
3962
 
3963
+ #: includes/REST/ProductController.php:2191
3964
  msgid "The date the image was created, in the site's timezone."
3965
  msgstr ""
3966
 
3967
+ #: includes/REST/ProductController.php:2197
3968
  msgid "The date the image was created, as GMT."
3969
  msgstr ""
3970
 
3971
+ #: includes/REST/ProductController.php:2203
3972
  msgid "The date the image was last modified, in the site's timezone."
3973
  msgstr ""
3974
 
3975
+ #: includes/REST/ProductController.php:2209
3976
  msgid "The date the image was last modified, as GMT."
3977
  msgstr ""
3978
 
3979
+ #: includes/REST/ProductController.php:2215
3980
  msgid "Image URL."
3981
  msgstr ""
3982
 
3983
+ #: includes/REST/ProductController.php:2221
3984
  msgid "Image name."
3985
  msgstr ""
3986
 
3987
+ #: includes/REST/ProductController.php:2226
3988
  msgid "Image alternative text."
3989
  msgstr ""
3990
 
3991
+ #: includes/REST/ProductController.php:2231
3992
  msgid "Image position. 0 means that the image is featured."
3993
  msgstr ""
3994
 
3995
+ #: includes/REST/ProductController.php:2239
3996
  msgid "List of attributes."
3997
  msgstr ""
3998
 
3999
+ #: includes/REST/ProductController.php:2246
4000
+ #: includes/REST/ProductController.php:2291
4001
  msgid "Attribute ID."
4002
  msgstr ""
4003
 
4004
+ #: includes/REST/ProductController.php:2251
4005
+ #: includes/REST/ProductController.php:2296
4006
  msgid "Attribute name."
4007
  msgstr ""
4008
 
4009
+ #: includes/REST/ProductController.php:2256
4010
  msgid "Attribute position."
4011
  msgstr ""
4012
 
4013
+ #: includes/REST/ProductController.php:2261
4014
  msgid ""
4015
  "Define if the attribute is visible on the \"Additional information\" tab in "
4016
  "the product's page."
4017
  msgstr ""
4018
 
4019
+ #: includes/REST/ProductController.php:2267
4020
  msgid "Define if the attribute can be used as variation."
4021
  msgstr ""
4022
 
4023
+ #: includes/REST/ProductController.php:2273
4024
  msgid "List of available term names of the attribute."
4025
  msgstr ""
4026
 
4027
+ #: includes/REST/ProductController.php:2284
4028
  msgid "Defaults variation attributes."
4029
  msgstr ""
4030
 
4031
+ #: includes/REST/ProductController.php:2301
4032
  msgid "Selected attribute term name."
4033
  msgstr ""
4034
 
4035
+ #: includes/REST/ProductController.php:2309
4036
  msgid "List of variations IDs."
4037
  msgstr ""
4038
 
4039
+ #: includes/REST/ProductController.php:2318
4040
  msgid "List of grouped products ID."
4041
  msgstr ""
4042
 
4043
+ #: includes/REST/ProductController.php:2326
4044
  msgid "Menu order, used to custom sort products."
4045
  msgstr ""
4046
 
4103
  msgstr ""
4104
 
4105
  #: includes/REST/StoreSettingController.php:106
4106
+ #: includes/REST/WithdrawController.php:257
4107
+ #: includes/REST/WithdrawController.php:342
4108
  msgid "No vendor found"
4109
  msgstr ""
4110
 
4112
  msgid "You are not logged in"
4113
  msgstr ""
4114
 
4115
+ #: includes/REST/WithdrawController.php:45
4116
  msgid "IDs of withdraws"
4117
  msgstr ""
4118
 
4119
+ #: includes/REST/WithdrawController.php:216
4120
  msgid "Withdraw not found"
4121
  msgstr ""
4122
 
4123
+ #: includes/REST/WithdrawController.php:332
4124
  msgid "User does not have permission to withdraw"
4125
  msgstr ""
4126
 
4127
+ #: includes/REST/WithdrawController.php:711
4128
  msgid "Requested User"
4129
  msgstr ""
4130
 
4131
+ #: includes/REST/WithdrawController.php:718
4132
  msgid "Requested User ID"
4133
  msgstr ""
4134
 
4135
+ #: includes/REST/WithdrawController.php:724
4136
  msgid ""
4137
  "The amount of discount. Should always be numeric, even if setting a "
4138
  "percentage."
4139
  msgstr ""
4140
 
4141
+ #: includes/REST/WithdrawController.php:729
4142
  msgid "The date the withdraw request has beed created in the site's timezone."
4143
  msgstr ""
4144
 
4145
+ #: includes/REST/WithdrawController.php:736
4146
  msgid "Withdraw status"
4147
  msgstr ""
4148
 
4149
+ #: includes/REST/WithdrawController.php:744
4150
  msgid "Withdraw Method"
4151
  msgstr ""
4152
 
4153
+ #: includes/REST/WithdrawController.php:751
4154
  msgid "Withdraw Notes"
4155
  msgstr ""
4156
 
4157
+ #: includes/REST/WithdrawController.php:757
4158
  msgid "User IP"
4159
  msgstr ""
4160
 
4161
+ #: includes/REST/WithdrawController.php:783
4162
  msgid "List of withdraw IDs to be approved"
4163
  msgstr ""
4164
 
4165
+ #: includes/REST/WithdrawController.php:793
4166
  msgid "List of withdraw IDs to be cancelled"
4167
  msgstr ""
4168
 
4169
+ #: includes/REST/WithdrawController.php:803
4170
  msgid "List of withdraw IDs to be deleted"
4171
  msgstr ""
4172
 
4227
  msgid "Upgrading db fields error: "
4228
  msgstr ""
4229
 
4230
+ #: includes/Vendor/Manager.php:208
4231
  msgid "Unable to create vendor"
4232
  msgstr ""
4233
 
4234
+ #: includes/Vendor/Manager.php:298
4235
  msgid "Email is not valid"
4236
  msgstr ""
4237
 
4333
  msgid "Switched back to %1$s (%2$s)."
4334
  msgstr ""
4335
 
4336
+ #: includes/Vendor/Vendor.php:851
4337
  msgid "No ratings found yet!"
4338
  msgstr ""
4339
 
4340
+ #: includes/Vendor/Vendor.php:853
4341
  msgid "%s rating from %d review"
4342
  msgid_plural "%s rating from %d reviews"
4343
  msgstr[0] ""
4344
  msgstr[1] ""
4345
 
4346
+ #: includes/Vendor/Vendor.php:854
4347
  msgid "Rated %s out of %d"
4348
  msgstr ""
4349
 
4350
+ #: includes/Vendor/Vendor.php:985 templates/settings/store-form.php:288
4351
  msgid "Store is open"
4352
  msgstr ""
4353
 
4354
+ #: includes/Vendor/Vendor.php:999 templates/settings/store-form.php:296
4355
  msgid "Store is closed"
4356
  msgstr ""
4357
 
4455
  msgid "Top Rated Product"
4456
  msgstr ""
4457
 
4458
+ #: includes/Withdraw/Manager.php:38
4459
  msgid "Withdraw amount required "
4460
  msgstr ""
4461
 
4462
+ #: includes/Withdraw/Manager.php:42
4463
  msgid "You don't have enough balance for this request"
4464
  msgstr ""
4465
 
4466
+ #: includes/Withdraw/Manager.php:47
4467
  #. translators: %s: withdraw limit amount
4468
  msgid "Withdraw amount must be greater than %s"
4469
  msgstr ""
4470
 
4471
+ #: includes/Withdraw/Manager.php:51
4472
  msgid "Withdraw method is not active."
4473
  msgstr ""
4474
 
4475
+ #: includes/Withdraw/Manager.php:55
4476
  msgid "Vendor is not enabled for selling, please contact site admin"
4477
  msgstr ""
4478
 
4479
+ #: includes/Withdraw/Manager.php:59
4480
  msgid "Withdraw is already approved."
4481
  msgstr ""
4482
 
4483
+ #: includes/Withdraw/Manager.php:96
4484
  msgid "Invalid permission to cancel the request."
4485
  msgstr ""
4486
 
4487
+ #: includes/Withdraw/Manager.php:102
4488
  msgid "Invalid cancel withdraw request"
4489
  msgstr ""
4490
 
4491
+ #: includes/Withdraw/Manager.php:142
4492
  msgid "Could not update withdraw status"
4493
  msgstr ""
4494
 
4495
+ #: includes/Withdraw/Manager.php:176
4496
  msgid "Could not add new withdraw approval request."
4497
  msgstr ""
4498
 
4508
  msgid "Could not delete withdraw"
4509
  msgstr ""
4510
 
4511
+ #: includes/Withdraw/functions.php:15
4512
  msgid "PayPal"
4513
  msgstr ""
4514
 
4515
+ #: includes/Withdraw/functions.php:19
4516
  msgid "Bank Transfer"
4517
  msgstr ""
4518
 
4519
+ #: includes/Withdraw/functions.php:131
4520
  msgid "E-mail"
4521
  msgstr ""
4522
 
4523
+ #: includes/Withdraw/functions.php:180
4524
  msgid "Your bank account name"
4525
  msgstr ""
4526
 
4527
+ #: includes/Withdraw/functions.php:186
4528
  msgid "Your bank account number"
4529
  msgstr ""
4530
 
4531
+ #: includes/Withdraw/functions.php:192
4532
  msgid "Name of bank"
4533
  msgstr ""
4534
 
4535
+ #: includes/Withdraw/functions.php:198
4536
  msgid "Address of your bank"
4537
  msgstr ""
4538
 
4539
+ #: includes/Withdraw/functions.php:204
4540
  msgid "Routing number"
4541
  msgstr ""
4542
 
4543
+ #: includes/Withdraw/functions.php:216
4544
  msgid "Swift code"
4545
  msgstr ""
4546
 
4547
+ #: includes/functions.php:826 templates/products/others.php:16
4548
  msgid "Online"
4549
  msgstr ""
4550
 
4551
+ #: includes/functions.php:827 templates/products/others.php:17
4552
  msgid "Draft"
4553
  msgstr ""
4554
 
4555
+ #: includes/functions.php:828 templates/dashboard/products-widget.php:41
4556
  #: templates/withdraw/pending-request-listing.php:41
4557
  msgid "Pending Review"
4558
  msgstr ""
4559
 
4560
+ #: includes/functions.php:829 templates/products/products-listing-row.php:166
4561
  msgid "Scheduled"
4562
  msgstr ""
4563
 
4564
+ #: includes/functions.php:874
4565
  msgid "Simple Product"
4566
  msgstr ""
4567
 
4568
+ #: includes/functions.php:875 src/admin/pages/VendorCapabilities.vue:99
4569
  msgid "Variable Product"
4570
  msgstr ""
4571
 
4572
+ #: includes/functions.php:876
4573
  msgid "Grouped Product"
4574
  msgstr ""
4575
 
4576
+ #: includes/functions.php:877
4577
  msgid "External/Affiliate Product"
4578
  msgstr ""
4579
 
4580
+ #: includes/functions.php:1115
4581
  msgid "Author"
4582
  msgstr ""
4583
 
4584
+ #: includes/functions.php:1300 includes/template-tags.php:393
4585
  #: src/admin/pages/Dashboard.vue:54 templates/dashboard/products-widget.php:16
4586
  msgid "Products"
4587
  msgstr ""
4588
 
4589
+ #: includes/functions.php:1304 templates/settings/store-form.php:207
4590
  msgid "Terms and Conditions"
4591
  msgstr ""
4592
 
4593
+ #: includes/functions.php:1343
4594
  msgid "Account Name: %s"
4595
  msgstr ""
4596
 
4597
+ #: includes/functions.php:1347
4598
  msgid "Account Number: %s"
4599
  msgstr ""
4600
 
4601
+ #: includes/functions.php:1351
4602
  msgid "Bank Name: %s"
4603
  msgstr ""
4604
 
4605
+ #: includes/functions.php:1355
4606
  msgid "Address: %s"
4607
  msgstr ""
4608
 
4609
+ #: includes/functions.php:1359
4610
  msgid "Routing Number: %s"
4611
  msgstr ""
4612
 
4613
+ #: includes/functions.php:1363
4614
  msgid "IBAN: %s"
4615
  msgstr ""
4616
 
4617
+ #: includes/functions.php:1367
4618
  msgid "SWIFT: %s"
4619
  msgstr ""
4620
 
4621
+ #: includes/functions.php:1728
4622
  msgid "Date is not valid"
4623
  msgstr ""
4624
 
4625
+ #: includes/functions.php:2177
4626
  msgid "- Select a location -"
4627
  msgstr ""
4628
 
4629
+ #: includes/functions.php:2181 includes/functions.php:2205
4630
  msgid "Everywhere Else"
4631
  msgstr ""
4632
 
4633
+ #: includes/functions.php:2201
4634
  msgid "- Select a State -"
4635
  msgstr ""
4636
 
4637
+ #: includes/functions.php:2224
4638
  msgid "Ready to ship in..."
4639
  msgstr ""
4640
 
4641
+ #: includes/functions.php:2225
4642
  msgid "1 business day"
4643
  msgstr ""
4644
 
4645
+ #: includes/functions.php:2226
4646
  msgid "1-2 business days"
4647
  msgstr ""
4648
 
4649
+ #: includes/functions.php:2227
4650
  msgid "1-3 business days"
4651
  msgstr ""
4652
 
4653
+ #: includes/functions.php:2228
4654
  msgid "3-5 business days"
4655
  msgstr ""
4656
 
4657
+ #: includes/functions.php:2229
4658
  msgid "1-2 weeks"
4659
  msgstr ""
4660
 
4661
+ #: includes/functions.php:2230
4662
  msgid "2-3 weeks"
4663
  msgstr ""
4664
 
4665
+ #: includes/functions.php:2231
4666
  msgid "3-4 weeks"
4667
  msgstr ""
4668
 
4669
+ #: includes/functions.php:2232
4670
  msgid "4-6 weeks"
4671
  msgstr ""
4672
 
4673
+ #: includes/functions.php:2233
4674
  msgid "6-8 weeks"
4675
  msgstr ""
4676
 
4677
+ #: includes/functions.php:2342
4678
  msgid "All dates"
4679
  msgstr ""
4680
 
4681
+ #: includes/functions.php:2357
4682
  #. translators: 1: month name, 2: 4-digit year
4683
  msgid "%1$s %2$d"
4684
  msgstr ""
4685
 
4686
+ #: includes/functions.php:2443
4687
  msgid "LinkedIn"
4688
  msgstr ""
4689
 
4690
+ #: includes/functions.php:2724
4691
  msgid "Dokan Store Sidebar"
4692
  msgstr ""
4693
 
4694
+ #: includes/functions.php:2899
4695
  msgid "View sales overview"
4696
  msgstr ""
4697
 
4698
+ #: includes/functions.php:2900
4699
  msgid "View sales report chart"
4700
  msgstr ""
4701
 
4702
+ #: includes/functions.php:2901
4703
  msgid "View announcement"
4704
  msgstr ""
4705
 
4706
+ #: includes/functions.php:2902
4707
  msgid "View order report"
4708
  msgstr ""
4709
 
4710
+ #: includes/functions.php:2903
4711
  msgid "View review report"
4712
  msgstr ""
4713
 
4714
+ #: includes/functions.php:2904
4715
  msgid "View product status report"
4716
  msgstr ""
4717
 
4718
+ #: includes/functions.php:2907
4719
  msgid "View overview report"
4720
  msgstr ""
4721
 
4722
+ #: includes/functions.php:2908
4723
  msgid "View daily sales report"
4724
  msgstr ""
4725
 
4726
+ #: includes/functions.php:2909
4727
  msgid "View top selling report"
4728
  msgstr ""
4729
 
4730
+ #: includes/functions.php:2910
4731
  msgid "View top earning report"
4732
  msgstr ""
4733
 
4734
+ #: includes/functions.php:2911
4735
  msgid "View statement report"
4736
  msgstr ""
4737
 
4738
+ #: includes/functions.php:2914
4739
  msgid "View order"
4740
  msgstr ""
4741
 
4742
+ #: includes/functions.php:2915
4743
  msgid "Manage order"
4744
  msgstr ""
4745
 
4746
+ #: includes/functions.php:2916
4747
  msgid "Manage order note"
4748
  msgstr ""
4749
 
4750
+ #: includes/functions.php:2917
4751
  msgid "Manage refund"
4752
  msgstr ""
4753
 
4754
+ #: includes/functions.php:2918
4755
  msgid "Export order"
4756
  msgstr ""
4757
 
4758
+ #: includes/functions.php:2921
4759
  msgid "Add coupon"
4760
  msgstr ""
4761
 
4762
+ #: includes/functions.php:2922
4763
  msgid "Edit coupon"
4764
  msgstr ""
4765
 
4766
+ #: includes/functions.php:2923
4767
  msgid "Delete coupon"
4768
  msgstr ""
4769
 
4770
+ #: includes/functions.php:2926
4771
  msgid "View reviews"
4772
  msgstr ""
4773
 
4774
+ #: includes/functions.php:2927 src/admin/pages/Premium.vue:395
4775
  msgid "Manage reviews"
4776
  msgstr ""
4777
 
4778
+ #: includes/functions.php:2931
4779
  msgid "Manage withdraw"
4780
  msgstr ""
4781
 
4782
+ #: includes/functions.php:2934
4783
  msgid "Add product"
4784
  msgstr ""
4785
 
4786
+ #: includes/functions.php:2935
4787
  msgid "Edit product"
4788
  msgstr ""
4789
 
4790
+ #: includes/functions.php:2936
4791
  msgid "Delete product"
4792
  msgstr ""
4793
 
4794
+ #: includes/functions.php:2937
4795
  msgid "View product"
4796
  msgstr ""
4797
 
4798
+ #: includes/functions.php:2938
4799
  msgid "Duplicate product"
4800
  msgstr ""
4801
 
4802
+ #: includes/functions.php:2939
4803
  msgid "Import product"
4804
  msgstr ""
4805
 
4806
+ #: includes/functions.php:2940
4807
  msgid "Export product"
4808
  msgstr ""
4809
 
4810
+ #: includes/functions.php:2943
4811
  msgid "View overview menu"
4812
  msgstr ""
4813
 
4814
+ #: includes/functions.php:2944
4815
  msgid "View product menu"
4816
  msgstr ""
4817
 
4818
+ #: includes/functions.php:2945
4819
  msgid "View order menu"
4820
  msgstr ""
4821
 
4822
+ #: includes/functions.php:2946
4823
  msgid "View coupon menu"
4824
  msgstr ""
4825
 
4826
+ #: includes/functions.php:2947
4827
  msgid "View report menu"
4828
  msgstr ""
4829
 
4830
+ #: includes/functions.php:2948
4831
  msgid "View review menu"
4832
  msgstr ""
4833
 
4834
+ #: includes/functions.php:2949
4835
  msgid "View withdraw menu"
4836
  msgstr ""
4837
 
4838
+ #: includes/functions.php:2950
4839
  msgid "View store settings menu"
4840
  msgstr ""
4841
 
4842
+ #: includes/functions.php:2951
4843
  msgid "View payment settings menu"
4844
  msgstr ""
4845
 
4846
+ #: includes/functions.php:2952
4847
  msgid "View shipping settings menu"
4848
  msgstr ""
4849
 
4850
+ #: includes/functions.php:2953
4851
  msgid "View social settings menu"
4852
  msgstr ""
4853
 
4854
+ #: includes/functions.php:2954
4855
  msgid "View seo settings menu"
4856
  msgstr ""
4857
 
4858
+ #: includes/functions.php:2973 src/admin/pages/Dashboard.vue:106
4859
  msgid "Overview"
4860
  msgstr ""
4861
 
4862
+ #: includes/functions.php:2974
4863
  msgid "Report"
4864
  msgstr ""
4865
 
4866
+ #: includes/functions.php:2975 templates/dashboard/big-counter-widget.php:29
4867
  #: templates/my-orders.php:27 templates/orders/details.php:22
4868
  #: templates/orders/listing.php:54 templates/orders/listing.php:77
4869
  #: templates/sub-orders.php:40
4870
  msgid "Order"
4871
  msgstr ""
4872
 
4873
+ #: includes/functions.php:2976
4874
  msgid "Coupon"
4875
  msgstr ""
4876
 
4877
+ #: includes/functions.php:2977
4878
  msgid "Review"
4879
  msgstr ""
4880
 
4881
+ #: includes/functions.php:2979 templates/emails/vendor-completed-order.php:46
4882
  #: templates/emails/vendor-new-order.php:46
4883
  msgid "Product"
4884
  msgstr ""
4885
 
4886
+ #: includes/functions.php:2980
4887
  msgid "Menu"
4888
  msgstr ""
4889
 
4890
+ #: includes/functions.php:3157
4891
  msgid "Saturday"
4892
  msgstr ""
4893
 
4894
+ #: includes/functions.php:3160
4895
  msgid "Sunday"
4896
  msgstr ""
4897
 
4898
+ #: includes/functions.php:3163
4899
  msgid "Monday"
4900
  msgstr ""
4901
 
4902
+ #: includes/functions.php:3166
4903
  msgid "Tuesday"
4904
  msgstr ""
4905
 
4906
+ #: includes/functions.php:3169
4907
  msgid "Wednesday"
4908
  msgstr ""
4909
 
4910
+ #: includes/functions.php:3172
4911
  msgid "Thursday"
4912
  msgstr ""
4913
 
4914
+ #: includes/functions.php:3175
4915
  msgid "Friday"
4916
  msgstr ""
4917
 
4918
+ #: includes/functions.php:3178
4919
  msgid "Off Day"
4920
  msgstr ""
4921
 
4922
+ #: includes/functions.php:3530
4923
  msgid "privacy policy"
4924
  msgstr ""
4925
 
4926
+ #: includes/functions.php:3575 src/admin/pages/VendorPaymentFields.vue:142
4927
  #: src/admin/pages/VendorPaymentFields.vue:155
4928
  msgid "Flat"
4929
  msgstr ""
4930
 
4931
+ #: includes/functions.php:3576 src/admin/pages/VendorPaymentFields.vue:146
4932
  msgid "Percentage"
4933
  msgstr ""
4934
 
4935
+ #: includes/functions.php:3595
4936
  msgid "Please Login to Continue"
4937
  msgstr ""
4938
 
4939
+ #: includes/functions.php:3778
4940
  msgid "Unable to fetch plugin information from wordpress.org for %s."
4941
  msgstr ""
4942
 
4943
+ #: includes/functions.php:3790
4944
  msgid "Unable to install %s from wordpress.org"
4945
  msgstr ""
4946
 
4947
+ #: includes/reports.php:359
4948
  msgid "Sales total"
4949
  msgstr ""
4950
 
4951
+ #: includes/reports.php:376 templates/dashboard/big-counter-widget.php:17
4952
  msgid "Sales"
4953
  msgstr ""
4954
 
5090
  msgid "Account details changed successfully."
5091
  msgstr ""
5092
 
5093
+ #: includes/wc-functions.php:1084
5094
  msgid "More Products"
5095
  msgstr ""
5096
 
5097
+ #: includes/wc-functions.php:1138
5098
  msgid "No product has been found!"
5099
  msgstr ""
5100
 
5130
  msgid "Clear"
5131
  msgstr ""
5132
 
5133
+ #: src/admin/components/Fields.vue:104
5134
  msgid "Both percentage and fixed fee is required."
5135
  msgstr ""
5136
 
5137
+ #: src/admin/components/Fields.vue:365
5138
  msgid "Active"
5139
  msgstr ""
5140
 
5141
+ #: src/admin/components/Fields.vue:369 src/admin/pages/Settings.vue:203
5142
  msgid "Select"
5143
  msgstr ""
5144
 
5145
+ #: src/admin/components/Fields.vue:604
5146
  msgid "is required."
5147
  msgstr ""
5148
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tested up to: 5.8.2
7
  WC requires at least: 3.0
8
  WC tested up to: 5.9.0
9
  Requires PHP: 5.6
10
- Stable tag: 3.3.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -292,6 +292,14 @@ A. Just install and activate the PRO version without deleting the free plugin. A
292
 
293
  == Changelog ==
294
 
 
 
 
 
 
 
 
 
295
  = v3.3.1 ( Nov 12, 2021 ) =
296
 
297
  - **new:** Added Vue DateRangePicker library #1409
7
  WC requires at least: 3.0
8
  WC tested up to: 5.9.0
9
  Requires PHP: 5.6
10
+ Stable tag: 3.3.2
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
292
 
293
  == Changelog ==
294
 
295
+ = v3.3.2 ( Nov 30, 2021 ) =
296
+
297
+ - **update:** Caching Enhancement and Fixes
298
+ - **update:** Added tooltips for setting options
299
+ - **update:** Google Map and Mapbox setting fields will be always visible
300
+ - **fix:** Product was creating via API even selling option was disabled for a vendor
301
+ - **fix:** Withdraw details field value conflict with old withdraw data
302
+
303
  = v3.3.1 ( Nov 12, 2021 ) =
304
 
305
  - **new:** Added Vue DateRangePicker library #1409
templates/orders/date-export.php CHANGED
@@ -32,7 +32,7 @@ $order_status = isset( $_GET['order_status'] ) ? sanitize_key( $_GET['order_stat
32
  <div class="dokan-order-filter-serach">
33
  <form action="" method="GET" class="dokan-left">
34
  <div class="dokan-form-group">
35
- <input type="text" class="datepicker" style="width:120px; padding-bottom:7px" name="order_date" id="order_date_filter" placeholder="<?php esc_attr_e( 'Filter by Date', 'dokan-lite' ); ?>" value="<?php echo esc_attr( $filter_date ); ?>">
36
  <select name="customer_id" id="dokan-filter-customer" style="width:220px" class="dokan-form-control" data-allow_clear="true" data-placeholder="<?php esc_attr_e( 'Filter by registered customer', 'dokan-lite' ); ?>">
37
  <option value="<?php echo esc_attr( $user_id ); ?>" selected="selected"><?php echo wp_kses_post( $user_string ); ?><option>
38
  </select>
32
  <div class="dokan-order-filter-serach">
33
  <form action="" method="GET" class="dokan-left">
34
  <div class="dokan-form-group">
35
+ <input type="text" autocomplete="off" class="datepicker" style="width:120px; padding-bottom:7px" name="order_date" id="order_date_filter" placeholder="<?php esc_attr_e( 'Filter by Date', 'dokan-lite' ); ?>" value="<?php echo esc_attr( $filter_date ); ?>">
36
  <select name="customer_id" id="dokan-filter-customer" style="width:220px" class="dokan-form-control" data-allow_clear="true" data-placeholder="<?php esc_attr_e( 'Filter by registered customer', 'dokan-lite' ); ?>">
37
  <option value="<?php echo esc_attr( $user_id ); ?>" selected="selected"><?php echo wp_kses_post( $user_string ); ?><option>
38
  </select>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -12,6 +12,7 @@ return array(
12
  'Appsero\\Updater' => $vendorDir . '/appsero/client/src/Updater.php',
13
  'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
14
  'WeDevs\\Dokan\\Abstracts\\DokanBackgroundProcesses' => $baseDir . '/includes/Abstracts/DokanBackgroundProcesses.php',
 
15
  'WeDevs\\Dokan\\Abstracts\\DokanModel' => $baseDir . '/includes/Abstracts/DokanModel.php',
16
  'WeDevs\\Dokan\\Abstracts\\DokanPromotion' => $baseDir . '/includes/Abstracts/DokanPromotion.php',
17
  'WeDevs\\Dokan\\Abstracts\\DokanRESTAdminController' => $baseDir . '/includes/Abstracts/DokanRESTAdminController.php',
@@ -32,6 +33,8 @@ return array(
32
  'WeDevs\\Dokan\\Admin\\UserProfile' => $baseDir . '/includes/Admin/UserProfile.php',
33
  'WeDevs\\Dokan\\Ajax' => $baseDir . '/includes/Ajax.php',
34
  'WeDevs\\Dokan\\Assets' => $baseDir . '/includes/Assets.php',
 
 
35
  'WeDevs\\Dokan\\Commission' => $baseDir . '/includes/Commission.php',
36
  'WeDevs\\Dokan\\Core' => $baseDir . '/includes/Core.php',
37
  'WeDevs\\Dokan\\Customizer' => $baseDir . '/includes/Customizer.php',
@@ -60,10 +63,12 @@ return array(
60
  'WeDevs\\Dokan\\Install\\Installer' => $baseDir . '/includes/Install/Installer.php',
61
  'WeDevs\\Dokan\\Order\\Hooks' => $baseDir . '/includes/Order/Hooks.php',
62
  'WeDevs\\Dokan\\Order\\Manager' => $baseDir . '/includes/Order/Manager.php',
 
63
  'WeDevs\\Dokan\\PageViews' => $baseDir . '/includes/PageViews.php',
64
  'WeDevs\\Dokan\\Privacy' => $baseDir . '/includes/Privacy.php',
65
  'WeDevs\\Dokan\\Product\\Hooks' => $baseDir . '/includes/Product/Hooks.php',
66
  'WeDevs\\Dokan\\Product\\Manager' => $baseDir . '/includes/Product/Manager.php',
 
67
  'WeDevs\\Dokan\\REST\\AdminDashboardController' => $baseDir . '/includes/REST/AdminDashboardController.php',
68
  'WeDevs\\Dokan\\REST\\AdminMiscController' => $baseDir . '/includes/REST/AdminMiscController.php',
69
  'WeDevs\\Dokan\\REST\\AdminReportController' => $baseDir . '/includes/REST/AdminReportController.php',
@@ -96,8 +101,10 @@ return array(
96
  'WeDevs\\Dokan\\Tracker' => $baseDir . '/includes/Tracker.php',
97
  'WeDevs\\Dokan\\Traits\\AjaxResponseError' => $baseDir . '/includes/Traits/AjaxResponseError.php',
98
  'WeDevs\\Dokan\\Traits\\ChainableContainer' => $baseDir . '/includes/Traits/ChainableContainer.php',
 
99
  'WeDevs\\Dokan\\Traits\\RESTResponseError' => $baseDir . '/includes/Traits/RESTResponseError.php',
100
  'WeDevs\\Dokan\\Traits\\Singleton' => $baseDir . '/includes/Traits/Singleton.php',
 
101
  'WeDevs\\Dokan\\Upgrade\\AdminNotice' => $baseDir . '/includes/Upgrade/AdminNotice.php',
102
  'WeDevs\\Dokan\\Upgrade\\Hooks' => $baseDir . '/includes/Upgrade/Hooks.php',
103
  'WeDevs\\Dokan\\Upgrade\\Manager' => $baseDir . '/includes/Upgrade/Manager.php',
@@ -131,11 +138,13 @@ return array(
131
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_1_1' => $baseDir . '/includes/Upgrade/Upgrades/V_3_1_1.php',
132
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_2_12' => $baseDir . '/includes/Upgrade/Upgrades/V_3_2_12.php',
133
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_3_1' => $baseDir . '/includes/Upgrade/Upgrades/V_3_3_1.php',
 
134
  'WeDevs\\Dokan\\Vendor\\Manager' => $baseDir . '/includes/Vendor/Manager.php',
135
  'WeDevs\\Dokan\\Vendor\\SetupWizard' => $baseDir . '/includes/Vendor/SetupWizard.php',
136
  'WeDevs\\Dokan\\Vendor\\StoreListsFilter' => $baseDir . '/includes/Vendor/StoreListsFilter.php',
137
  'WeDevs\\Dokan\\Vendor\\UserSwitch' => $baseDir . '/includes/Vendor/UserSwitch.php',
138
  'WeDevs\\Dokan\\Vendor\\Vendor' => $baseDir . '/includes/Vendor/Vendor.php',
 
139
  'WeDevs\\Dokan\\Walkers\\Category' => $baseDir . '/includes/Walkers/Category.php',
140
  'WeDevs\\Dokan\\Walkers\\CategoryDropdownSingle' => $baseDir . '/includes/Walkers/CategoryDropdownSingle.php',
141
  'WeDevs\\Dokan\\Walkers\\StoreCategory' => $baseDir . '/includes/Walkers/StoreCategory.php',
@@ -153,5 +162,6 @@ return array(
153
  'WeDevs\\Dokan\\Withdraw\\Hooks' => $baseDir . '/includes/Withdraw/Hooks.php',
154
  'WeDevs\\Dokan\\Withdraw\\Manager' => $baseDir . '/includes/Withdraw/Manager.php',
155
  'WeDevs\\Dokan\\Withdraw\\Withdraw' => $baseDir . '/includes/Withdraw/Withdraw.php',
 
156
  'WeDevs\\Dokan\\Withdraw\\Withdraws' => $baseDir . '/includes/Withdraw/Withdraws.php',
157
  );
12
  'Appsero\\Updater' => $vendorDir . '/appsero/client/src/Updater.php',
13
  'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
14
  'WeDevs\\Dokan\\Abstracts\\DokanBackgroundProcesses' => $baseDir . '/includes/Abstracts/DokanBackgroundProcesses.php',
15
+ 'WeDevs\\Dokan\\Abstracts\\DokanCache' => $baseDir . '/includes/Abstracts/DokanCache.php',
16
  'WeDevs\\Dokan\\Abstracts\\DokanModel' => $baseDir . '/includes/Abstracts/DokanModel.php',
17
  'WeDevs\\Dokan\\Abstracts\\DokanPromotion' => $baseDir . '/includes/Abstracts/DokanPromotion.php',
18
  'WeDevs\\Dokan\\Abstracts\\DokanRESTAdminController' => $baseDir . '/includes/Abstracts/DokanRESTAdminController.php',
33
  'WeDevs\\Dokan\\Admin\\UserProfile' => $baseDir . '/includes/Admin/UserProfile.php',
34
  'WeDevs\\Dokan\\Ajax' => $baseDir . '/includes/Ajax.php',
35
  'WeDevs\\Dokan\\Assets' => $baseDir . '/includes/Assets.php',
36
+ 'WeDevs\\Dokan\\Cache' => $baseDir . '/includes/Cache.php',
37
+ 'WeDevs\\Dokan\\CacheInvalidate' => $baseDir . '/includes/CacheInvalidate.php',
38
  'WeDevs\\Dokan\\Commission' => $baseDir . '/includes/Commission.php',
39
  'WeDevs\\Dokan\\Core' => $baseDir . '/includes/Core.php',
40
  'WeDevs\\Dokan\\Customizer' => $baseDir . '/includes/Customizer.php',
63
  'WeDevs\\Dokan\\Install\\Installer' => $baseDir . '/includes/Install/Installer.php',
64
  'WeDevs\\Dokan\\Order\\Hooks' => $baseDir . '/includes/Order/Hooks.php',
65
  'WeDevs\\Dokan\\Order\\Manager' => $baseDir . '/includes/Order/Manager.php',
66
+ 'WeDevs\\Dokan\\Order\\OrderCache' => $baseDir . '/includes/Order/OrderCache.php',
67
  'WeDevs\\Dokan\\PageViews' => $baseDir . '/includes/PageViews.php',
68
  'WeDevs\\Dokan\\Privacy' => $baseDir . '/includes/Privacy.php',
69
  'WeDevs\\Dokan\\Product\\Hooks' => $baseDir . '/includes/Product/Hooks.php',
70
  'WeDevs\\Dokan\\Product\\Manager' => $baseDir . '/includes/Product/Manager.php',
71
+ 'WeDevs\\Dokan\\Product\\ProductCache' => $baseDir . '/includes/Product/ProductCache.php',
72
  'WeDevs\\Dokan\\REST\\AdminDashboardController' => $baseDir . '/includes/REST/AdminDashboardController.php',
73
  'WeDevs\\Dokan\\REST\\AdminMiscController' => $baseDir . '/includes/REST/AdminMiscController.php',
74
  'WeDevs\\Dokan\\REST\\AdminReportController' => $baseDir . '/includes/REST/AdminReportController.php',
101
  'WeDevs\\Dokan\\Tracker' => $baseDir . '/includes/Tracker.php',
102
  'WeDevs\\Dokan\\Traits\\AjaxResponseError' => $baseDir . '/includes/Traits/AjaxResponseError.php',
103
  'WeDevs\\Dokan\\Traits\\ChainableContainer' => $baseDir . '/includes/Traits/ChainableContainer.php',
104
+ 'WeDevs\\Dokan\\Traits\\ObjectCache' => $baseDir . '/includes/Traits/ObjectCache.php',
105
  'WeDevs\\Dokan\\Traits\\RESTResponseError' => $baseDir . '/includes/Traits/RESTResponseError.php',
106
  'WeDevs\\Dokan\\Traits\\Singleton' => $baseDir . '/includes/Traits/Singleton.php',
107
+ 'WeDevs\\Dokan\\Traits\\TransientCache' => $baseDir . '/includes/Traits/TransientCache.php',
108
  'WeDevs\\Dokan\\Upgrade\\AdminNotice' => $baseDir . '/includes/Upgrade/AdminNotice.php',
109
  'WeDevs\\Dokan\\Upgrade\\Hooks' => $baseDir . '/includes/Upgrade/Hooks.php',
110
  'WeDevs\\Dokan\\Upgrade\\Manager' => $baseDir . '/includes/Upgrade/Manager.php',
138
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_1_1' => $baseDir . '/includes/Upgrade/Upgrades/V_3_1_1.php',
139
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_2_12' => $baseDir . '/includes/Upgrade/Upgrades/V_3_2_12.php',
140
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_3_1' => $baseDir . '/includes/Upgrade/Upgrades/V_3_3_1.php',
141
+ 'WeDevs\\Dokan\\Vendor\\Hooks' => $baseDir . '/includes/Vendor/Hooks.php',
142
  'WeDevs\\Dokan\\Vendor\\Manager' => $baseDir . '/includes/Vendor/Manager.php',
143
  'WeDevs\\Dokan\\Vendor\\SetupWizard' => $baseDir . '/includes/Vendor/SetupWizard.php',
144
  'WeDevs\\Dokan\\Vendor\\StoreListsFilter' => $baseDir . '/includes/Vendor/StoreListsFilter.php',
145
  'WeDevs\\Dokan\\Vendor\\UserSwitch' => $baseDir . '/includes/Vendor/UserSwitch.php',
146
  'WeDevs\\Dokan\\Vendor\\Vendor' => $baseDir . '/includes/Vendor/Vendor.php',
147
+ 'WeDevs\\Dokan\\Vendor\\VendorCache' => $baseDir . '/includes/Vendor/VendorCache.php',
148
  'WeDevs\\Dokan\\Walkers\\Category' => $baseDir . '/includes/Walkers/Category.php',
149
  'WeDevs\\Dokan\\Walkers\\CategoryDropdownSingle' => $baseDir . '/includes/Walkers/CategoryDropdownSingle.php',
150
  'WeDevs\\Dokan\\Walkers\\StoreCategory' => $baseDir . '/includes/Walkers/StoreCategory.php',
162
  'WeDevs\\Dokan\\Withdraw\\Hooks' => $baseDir . '/includes/Withdraw/Hooks.php',
163
  'WeDevs\\Dokan\\Withdraw\\Manager' => $baseDir . '/includes/Withdraw/Manager.php',
164
  'WeDevs\\Dokan\\Withdraw\\Withdraw' => $baseDir . '/includes/Withdraw/Withdraw.php',
165
+ 'WeDevs\\Dokan\\Withdraw\\WithdrawCache' => $baseDir . '/includes/Withdraw/WithdrawCache.php',
166
  'WeDevs\\Dokan\\Withdraw\\Withdraws' => $baseDir . '/includes/Withdraw/Withdraws.php',
167
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitbfaa04e090c3736f9f7503ea4d6fa6b5
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequirebfaa04e090c3736f9f7503ea4d6fa6b5($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequirebfaa04e090c3736f9f7503ea4d6fa6b5($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire3cbc02ce2e9baa6c4b8fbdf55b4f58f5($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire3cbc02ce2e9baa6c4b8fbdf55b4f58f5($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
@@ -39,6 +39,7 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
39
  'Appsero\\Updater' => __DIR__ . '/..' . '/appsero/client/src/Updater.php',
40
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
41
  'WeDevs\\Dokan\\Abstracts\\DokanBackgroundProcesses' => __DIR__ . '/../..' . '/includes/Abstracts/DokanBackgroundProcesses.php',
 
42
  'WeDevs\\Dokan\\Abstracts\\DokanModel' => __DIR__ . '/../..' . '/includes/Abstracts/DokanModel.php',
43
  'WeDevs\\Dokan\\Abstracts\\DokanPromotion' => __DIR__ . '/../..' . '/includes/Abstracts/DokanPromotion.php',
44
  'WeDevs\\Dokan\\Abstracts\\DokanRESTAdminController' => __DIR__ . '/../..' . '/includes/Abstracts/DokanRESTAdminController.php',
@@ -59,6 +60,8 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
59
  'WeDevs\\Dokan\\Admin\\UserProfile' => __DIR__ . '/../..' . '/includes/Admin/UserProfile.php',
60
  'WeDevs\\Dokan\\Ajax' => __DIR__ . '/../..' . '/includes/Ajax.php',
61
  'WeDevs\\Dokan\\Assets' => __DIR__ . '/../..' . '/includes/Assets.php',
 
 
62
  'WeDevs\\Dokan\\Commission' => __DIR__ . '/../..' . '/includes/Commission.php',
63
  'WeDevs\\Dokan\\Core' => __DIR__ . '/../..' . '/includes/Core.php',
64
  'WeDevs\\Dokan\\Customizer' => __DIR__ . '/../..' . '/includes/Customizer.php',
@@ -87,10 +90,12 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
87
  'WeDevs\\Dokan\\Install\\Installer' => __DIR__ . '/../..' . '/includes/Install/Installer.php',
88
  'WeDevs\\Dokan\\Order\\Hooks' => __DIR__ . '/../..' . '/includes/Order/Hooks.php',
89
  'WeDevs\\Dokan\\Order\\Manager' => __DIR__ . '/../..' . '/includes/Order/Manager.php',
 
90
  'WeDevs\\Dokan\\PageViews' => __DIR__ . '/../..' . '/includes/PageViews.php',
91
  'WeDevs\\Dokan\\Privacy' => __DIR__ . '/../..' . '/includes/Privacy.php',
92
  'WeDevs\\Dokan\\Product\\Hooks' => __DIR__ . '/../..' . '/includes/Product/Hooks.php',
93
  'WeDevs\\Dokan\\Product\\Manager' => __DIR__ . '/../..' . '/includes/Product/Manager.php',
 
94
  'WeDevs\\Dokan\\REST\\AdminDashboardController' => __DIR__ . '/../..' . '/includes/REST/AdminDashboardController.php',
95
  'WeDevs\\Dokan\\REST\\AdminMiscController' => __DIR__ . '/../..' . '/includes/REST/AdminMiscController.php',
96
  'WeDevs\\Dokan\\REST\\AdminReportController' => __DIR__ . '/../..' . '/includes/REST/AdminReportController.php',
@@ -123,8 +128,10 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
123
  'WeDevs\\Dokan\\Tracker' => __DIR__ . '/../..' . '/includes/Tracker.php',
124
  'WeDevs\\Dokan\\Traits\\AjaxResponseError' => __DIR__ . '/../..' . '/includes/Traits/AjaxResponseError.php',
125
  'WeDevs\\Dokan\\Traits\\ChainableContainer' => __DIR__ . '/../..' . '/includes/Traits/ChainableContainer.php',
 
126
  'WeDevs\\Dokan\\Traits\\RESTResponseError' => __DIR__ . '/../..' . '/includes/Traits/RESTResponseError.php',
127
  'WeDevs\\Dokan\\Traits\\Singleton' => __DIR__ . '/../..' . '/includes/Traits/Singleton.php',
 
128
  'WeDevs\\Dokan\\Upgrade\\AdminNotice' => __DIR__ . '/../..' . '/includes/Upgrade/AdminNotice.php',
129
  'WeDevs\\Dokan\\Upgrade\\Hooks' => __DIR__ . '/../..' . '/includes/Upgrade/Hooks.php',
130
  'WeDevs\\Dokan\\Upgrade\\Manager' => __DIR__ . '/../..' . '/includes/Upgrade/Manager.php',
@@ -158,11 +165,13 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
158
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_1_1' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_1_1.php',
159
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_2_12' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_2_12.php',
160
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_3_1' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_3_1.php',
 
161
  'WeDevs\\Dokan\\Vendor\\Manager' => __DIR__ . '/../..' . '/includes/Vendor/Manager.php',
162
  'WeDevs\\Dokan\\Vendor\\SetupWizard' => __DIR__ . '/../..' . '/includes/Vendor/SetupWizard.php',
163
  'WeDevs\\Dokan\\Vendor\\StoreListsFilter' => __DIR__ . '/../..' . '/includes/Vendor/StoreListsFilter.php',
164
  'WeDevs\\Dokan\\Vendor\\UserSwitch' => __DIR__ . '/../..' . '/includes/Vendor/UserSwitch.php',
165
  'WeDevs\\Dokan\\Vendor\\Vendor' => __DIR__ . '/../..' . '/includes/Vendor/Vendor.php',
 
166
  'WeDevs\\Dokan\\Walkers\\Category' => __DIR__ . '/../..' . '/includes/Walkers/Category.php',
167
  'WeDevs\\Dokan\\Walkers\\CategoryDropdownSingle' => __DIR__ . '/../..' . '/includes/Walkers/CategoryDropdownSingle.php',
168
  'WeDevs\\Dokan\\Walkers\\StoreCategory' => __DIR__ . '/../..' . '/includes/Walkers/StoreCategory.php',
@@ -180,15 +189,16 @@ class ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5
180
  'WeDevs\\Dokan\\Withdraw\\Hooks' => __DIR__ . '/../..' . '/includes/Withdraw/Hooks.php',
181
  'WeDevs\\Dokan\\Withdraw\\Manager' => __DIR__ . '/../..' . '/includes/Withdraw/Manager.php',
182
  'WeDevs\\Dokan\\Withdraw\\Withdraw' => __DIR__ . '/../..' . '/includes/Withdraw/Withdraw.php',
 
183
  'WeDevs\\Dokan\\Withdraw\\Withdraws' => __DIR__ . '/../..' . '/includes/Withdraw/Withdraws.php',
184
  );
185
 
186
  public static function getInitializer(ClassLoader $loader)
187
  {
188
  return \Closure::bind(function () use ($loader) {
189
- $loader->prefixLengthsPsr4 = ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5::$prefixLengthsPsr4;
190
- $loader->prefixDirsPsr4 = ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5::$prefixDirsPsr4;
191
- $loader->classMap = ComposerStaticInitbfaa04e090c3736f9f7503ea4d6fa6b5::$classMap;
192
 
193
  }, null, ClassLoader::class);
194
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
39
  'Appsero\\Updater' => __DIR__ . '/..' . '/appsero/client/src/Updater.php',
40
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
41
  'WeDevs\\Dokan\\Abstracts\\DokanBackgroundProcesses' => __DIR__ . '/../..' . '/includes/Abstracts/DokanBackgroundProcesses.php',
42
+ 'WeDevs\\Dokan\\Abstracts\\DokanCache' => __DIR__ . '/../..' . '/includes/Abstracts/DokanCache.php',
43
  'WeDevs\\Dokan\\Abstracts\\DokanModel' => __DIR__ . '/../..' . '/includes/Abstracts/DokanModel.php',
44
  'WeDevs\\Dokan\\Abstracts\\DokanPromotion' => __DIR__ . '/../..' . '/includes/Abstracts/DokanPromotion.php',
45
  'WeDevs\\Dokan\\Abstracts\\DokanRESTAdminController' => __DIR__ . '/../..' . '/includes/Abstracts/DokanRESTAdminController.php',
60
  'WeDevs\\Dokan\\Admin\\UserProfile' => __DIR__ . '/../..' . '/includes/Admin/UserProfile.php',
61
  'WeDevs\\Dokan\\Ajax' => __DIR__ . '/../..' . '/includes/Ajax.php',
62
  'WeDevs\\Dokan\\Assets' => __DIR__ . '/../..' . '/includes/Assets.php',
63
+ 'WeDevs\\Dokan\\Cache' => __DIR__ . '/../..' . '/includes/Cache.php',
64
+ 'WeDevs\\Dokan\\CacheInvalidate' => __DIR__ . '/../..' . '/includes/CacheInvalidate.php',
65
  'WeDevs\\Dokan\\Commission' => __DIR__ . '/../..' . '/includes/Commission.php',
66
  'WeDevs\\Dokan\\Core' => __DIR__ . '/../..' . '/includes/Core.php',
67
  'WeDevs\\Dokan\\Customizer' => __DIR__ . '/../..' . '/includes/Customizer.php',
90
  'WeDevs\\Dokan\\Install\\Installer' => __DIR__ . '/../..' . '/includes/Install/Installer.php',
91
  'WeDevs\\Dokan\\Order\\Hooks' => __DIR__ . '/../..' . '/includes/Order/Hooks.php',
92
  'WeDevs\\Dokan\\Order\\Manager' => __DIR__ . '/../..' . '/includes/Order/Manager.php',
93
+ 'WeDevs\\Dokan\\Order\\OrderCache' => __DIR__ . '/../..' . '/includes/Order/OrderCache.php',
94
  'WeDevs\\Dokan\\PageViews' => __DIR__ . '/../..' . '/includes/PageViews.php',
95
  'WeDevs\\Dokan\\Privacy' => __DIR__ . '/../..' . '/includes/Privacy.php',
96
  'WeDevs\\Dokan\\Product\\Hooks' => __DIR__ . '/../..' . '/includes/Product/Hooks.php',
97
  'WeDevs\\Dokan\\Product\\Manager' => __DIR__ . '/../..' . '/includes/Product/Manager.php',
98
+ 'WeDevs\\Dokan\\Product\\ProductCache' => __DIR__ . '/../..' . '/includes/Product/ProductCache.php',
99
  'WeDevs\\Dokan\\REST\\AdminDashboardController' => __DIR__ . '/../..' . '/includes/REST/AdminDashboardController.php',
100
  'WeDevs\\Dokan\\REST\\AdminMiscController' => __DIR__ . '/../..' . '/includes/REST/AdminMiscController.php',
101
  'WeDevs\\Dokan\\REST\\AdminReportController' => __DIR__ . '/../..' . '/includes/REST/AdminReportController.php',
128
  'WeDevs\\Dokan\\Tracker' => __DIR__ . '/../..' . '/includes/Tracker.php',
129
  'WeDevs\\Dokan\\Traits\\AjaxResponseError' => __DIR__ . '/../..' . '/includes/Traits/AjaxResponseError.php',
130
  'WeDevs\\Dokan\\Traits\\ChainableContainer' => __DIR__ . '/../..' . '/includes/Traits/ChainableContainer.php',
131
+ 'WeDevs\\Dokan\\Traits\\ObjectCache' => __DIR__ . '/../..' . '/includes/Traits/ObjectCache.php',
132
  'WeDevs\\Dokan\\Traits\\RESTResponseError' => __DIR__ . '/../..' . '/includes/Traits/RESTResponseError.php',
133
  'WeDevs\\Dokan\\Traits\\Singleton' => __DIR__ . '/../..' . '/includes/Traits/Singleton.php',
134
+ 'WeDevs\\Dokan\\Traits\\TransientCache' => __DIR__ . '/../..' . '/includes/Traits/TransientCache.php',
135
  'WeDevs\\Dokan\\Upgrade\\AdminNotice' => __DIR__ . '/../..' . '/includes/Upgrade/AdminNotice.php',
136
  'WeDevs\\Dokan\\Upgrade\\Hooks' => __DIR__ . '/../..' . '/includes/Upgrade/Hooks.php',
137
  'WeDevs\\Dokan\\Upgrade\\Manager' => __DIR__ . '/../..' . '/includes/Upgrade/Manager.php',
165
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_1_1' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_1_1.php',
166
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_2_12' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_2_12.php',
167
  'WeDevs\\Dokan\\Upgrade\\Upgrades\\V_3_3_1' => __DIR__ . '/../..' . '/includes/Upgrade/Upgrades/V_3_3_1.php',
168
+ 'WeDevs\\Dokan\\Vendor\\Hooks' => __DIR__ . '/../..' . '/includes/Vendor/Hooks.php',
169
  'WeDevs\\Dokan\\Vendor\\Manager' => __DIR__ . '/../..' . '/includes/Vendor/Manager.php',
170
  'WeDevs\\Dokan\\Vendor\\SetupWizard' => __DIR__ . '/../..' . '/includes/Vendor/SetupWizard.php',
171
  'WeDevs\\Dokan\\Vendor\\StoreListsFilter' => __DIR__ . '/../..' . '/includes/Vendor/StoreListsFilter.php',
172
  'WeDevs\\Dokan\\Vendor\\UserSwitch' => __DIR__ . '/../..' . '/includes/Vendor/UserSwitch.php',
173
  'WeDevs\\Dokan\\Vendor\\Vendor' => __DIR__ . '/../..' . '/includes/Vendor/Vendor.php',
174
+ 'WeDevs\\Dokan\\Vendor\\VendorCache' => __DIR__ . '/../..' . '/includes/Vendor/VendorCache.php',
175
  'WeDevs\\Dokan\\Walkers\\Category' => __DIR__ . '/../..' . '/includes/Walkers/Category.php',
176
  'WeDevs\\Dokan\\Walkers\\CategoryDropdownSingle' => __DIR__ . '/../..' . '/includes/Walkers/CategoryDropdownSingle.php',
177
  'WeDevs\\Dokan\\Walkers\\StoreCategory' => __DIR__ . '/../..' . '/includes/Walkers/StoreCategory.php',
189
  'WeDevs\\Dokan\\Withdraw\\Hooks' => __DIR__ . '/../..' . '/includes/Withdraw/Hooks.php',
190
  'WeDevs\\Dokan\\Withdraw\\Manager' => __DIR__ . '/../..' . '/includes/Withdraw/Manager.php',
191
  'WeDevs\\Dokan\\Withdraw\\Withdraw' => __DIR__ . '/../..' . '/includes/Withdraw/Withdraw.php',
192
+ 'WeDevs\\Dokan\\Withdraw\\WithdrawCache' => __DIR__ . '/../..' . '/includes/Withdraw/WithdrawCache.php',
193
  'WeDevs\\Dokan\\Withdraw\\Withdraws' => __DIR__ . '/../..' . '/includes/Withdraw/Withdraws.php',
194
  );
195
 
196
  public static function getInitializer(ClassLoader $loader)
197
  {
198
  return \Closure::bind(function () use ($loader) {
199
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::$prefixLengthsPsr4;
200
+ $loader->prefixDirsPsr4 = ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::$prefixDirsPsr4;
201
+ $loader->classMap = ComposerStaticInit3cbc02ce2e9baa6c4b8fbdf55b4f58f5::$classMap;
202
 
203
  }, null, ClassLoader::class);
204
  }