Version Description
Download this release
Release Info
Developer | tareq1988 |
Plugin | Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy |
Version | 3.2.5 |
Comparing to | |
See all releases |
Code changes from version 3.2.4 to 3.2.5
- assets/css/setup-no-wc.css +6 -0
- assets/css/setup.css +6 -0
- assets/js/dokan.js +9 -7
- assets/js/vendor-registration.js +11 -3
- assets/js/vue-admin.js +3 -3
- assets/js/vue-admin.min.js +1 -1
- assets/js/vue-bootstrap.js +3 -3
- assets/js/vue-bootstrap.min.js +1 -1
- dokan.php +3 -3
- includes/Admin/Settings.php +14 -0
- includes/Admin/SetupWizard.php +0 -6
- includes/Dashboard/Templates/Orders.php +3 -1
- includes/Dashboard/Templates/Products.php +13 -0
- includes/Shortcodes/Stores.php +24 -0
- includes/Vendor/Vendor.php +1 -1
- includes/functions.php +100 -10
- includes/template-tags.php +164 -160
- includes/wc-template.php +1 -7
- languages/dokan-lite.pot +260 -248
- readme.txt +22 -4
- templates/admin-setup-wizard/step-store.php +2 -0
- templates/products/download-virtual.php +5 -5
- templates/products/listing-filter.php +13 -0
- templates/products/listing-status-filter.php +11 -0
- templates/products/products-listing.php +22 -4
- templates/settings/address-form.php +3 -3
- templates/store-toc.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_files.php +10 -0
- vendor/composer/autoload_real.php +22 -4
- vendor/composer/autoload_static.php +8 -4
- vendor/composer/installed.json +35 -0
- vendor/jakeasmith/http_build_url/.gitignore +5 -0
- vendor/jakeasmith/http_build_url/.travis.yml +13 -0
- vendor/jakeasmith/http_build_url/LICENSE +21 -0
- vendor/jakeasmith/http_build_url/composer.json +18 -0
- vendor/jakeasmith/http_build_url/phpunit.xml.dist +21 -0
- vendor/jakeasmith/http_build_url/readme.md +20 -0
- vendor/jakeasmith/http_build_url/src/http_build_url.php +174 -0
- vendor/jakeasmith/http_build_url/tests/HttpBuildUrlTest.php +216 -0
- vendor/jakeasmith/http_build_url/tests/bootstrap.php +13 -0
assets/css/setup-no-wc.css
CHANGED
@@ -316,6 +316,12 @@ body {
|
|
316 |
.dokan-admin-setup-wizard {
|
317 |
border: none;
|
318 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
.wc-return-to-dashboard {
|
320 |
text-align: center;
|
321 |
display: block;
|
316 |
.dokan-admin-setup-wizard {
|
317 |
border: none;
|
318 |
}
|
319 |
+
.dokan-vendor-setup-wizard {
|
320 |
+
border: none;
|
321 |
+
}
|
322 |
+
.dokan-vendor-setup-wizard #wc-logo img {
|
323 |
+
max-width: 100%;
|
324 |
+
}
|
325 |
.wc-return-to-dashboard {
|
326 |
text-align: center;
|
327 |
display: block;
|
assets/css/setup.css
CHANGED
@@ -186,3 +186,9 @@
|
|
186 |
.dokan-admin-setup-wizard {
|
187 |
border: none;
|
188 |
}
|
|
|
|
|
|
|
|
|
|
|
|
186 |
.dokan-admin-setup-wizard {
|
187 |
border: none;
|
188 |
}
|
189 |
+
.dokan-vendor-setup-wizard {
|
190 |
+
border: none;
|
191 |
+
}
|
192 |
+
.dokan-vendor-setup-wizard #wc-logo img {
|
193 |
+
max-width: 100%;
|
194 |
+
}
|
assets/js/dokan.js
CHANGED
@@ -2910,13 +2910,15 @@ jQuery(function($) {
|
|
2910 |
}
|
2911 |
}
|
2912 |
|
2913 |
-
$(
|
2914 |
-
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
2918 |
-
|
2919 |
-
|
|
|
|
|
2920 |
},
|
2921 |
|
2922 |
buildSortByQuery: function( event ) {
|
2910 |
}
|
2911 |
}
|
2912 |
|
2913 |
+
if ( $( "#dokan-store-listing-filter-form-wrap" ).length ) {
|
2914 |
+
$('.store-search-input').keypress(function (e) {
|
2915 |
+
var key = e.which;
|
2916 |
+
if( key == 13 ) {
|
2917 |
+
$( "#dokan-store-listing-filter-form-wrap" ).submit();
|
2918 |
+
return false;
|
2919 |
+
}
|
2920 |
+
});
|
2921 |
+
}
|
2922 |
},
|
2923 |
|
2924 |
buildSortByQuery: function( event ) {
|
assets/js/vendor-registration.js
CHANGED
@@ -82,10 +82,18 @@ var Dokan_Vendor_Registration = {
|
|
82 |
// let it happen, don't do anything
|
83 |
return;
|
84 |
}
|
85 |
-
|
|
|
|
|
|
|
|
|
86 |
// Ensure that it is a number and stop the keypress
|
87 |
-
if (
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
},
|
91 |
|
82 |
// let it happen, don't do anything
|
83 |
return;
|
84 |
}
|
85 |
+
|
86 |
+
if ( e.shiftKey && e.key === '.' ) {
|
87 |
+
return;
|
88 |
+
}
|
89 |
+
|
90 |
// Ensure that it is a number and stop the keypress
|
91 |
+
if ( ( e.shiftKey && ! isNaN( Number(e.key) ) ) ) {
|
92 |
+
return;
|
93 |
+
}
|
94 |
+
|
95 |
+
if ( isNaN( Number(e.key) ) ) {
|
96 |
+
e.preventDefault();
|
97 |
}
|
98 |
},
|
99 |
|
assets/js/vue-admin.js
CHANGED
@@ -491,8 +491,8 @@ if (false) {(function () {
|
|
491 |
'vendorInfo.user_nicename': function vendorInfoUser_nicename(newValue) {
|
492 |
if (typeof newValue !== 'undefined') {
|
493 |
this.showStoreUrl = false;
|
494 |
-
this.otherStoreUrl = this.defaultUrl + newValue.trim().split(' ').join('-');
|
495 |
-
this.vendorInfo.user_nicename = newValue.split(' ').join('-'); // check if the typed url is available
|
496 |
|
497 |
this.checkStoreName();
|
498 |
}
|
@@ -506,7 +506,7 @@ if (false) {(function () {
|
|
506 |
},
|
507 |
computed: {
|
508 |
storeUrl: function storeUrl() {
|
509 |
-
var storeUrl = this.vendorInfo.store_name.trim().split(' ').join('-');
|
510 |
this.vendorInfo.user_nicename = storeUrl;
|
511 |
this.otherStoreUrl = this.defaultUrl + storeUrl;
|
512 |
return this.defaultUrl + storeUrl;
|
491 |
'vendorInfo.user_nicename': function vendorInfoUser_nicename(newValue) {
|
492 |
if (typeof newValue !== 'undefined') {
|
493 |
this.showStoreUrl = false;
|
494 |
+
this.otherStoreUrl = this.defaultUrl + newValue.trim().split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-');
|
495 |
+
this.vendorInfo.user_nicename = newValue.split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-'); // check if the typed url is available
|
496 |
|
497 |
this.checkStoreName();
|
498 |
}
|
506 |
},
|
507 |
computed: {
|
508 |
storeUrl: function storeUrl() {
|
509 |
+
var storeUrl = this.vendorInfo.store_name.trim().split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-');
|
510 |
this.vendorInfo.user_nicename = storeUrl;
|
511 |
this.otherStoreUrl = this.defaultUrl + storeUrl;
|
512 |
return this.defaultUrl + storeUrl;
|
assets/js/vue-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(10),n=a(28),i=!1;var o=function(e){i||a(27)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var s=a(15);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",s=t.datasets[e.datasetIndex].tooltipLabel||"",n=t.datasets[e.datasetIndex].tooltipPrefix||"",i=s?s+": ":a+": ";return i+=n+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},function(e,t,a){"use strict";var s=a(46),n=a(117),i=!1;var o=function(e){i||a(116)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UpgradeBanner.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(54);t.a={components:{Sketch:s.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var s=a(1),n=(a.n(s),a(2)),i=a(16),o=a(17);t.a={name:"VendorAccountFields",components:{Switches:n.a,UploadImage:i.a,PasswordGenerator:o.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-"),this.vendorInfo.user_nicename=e.split(" ").join("-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(s.debounce)(this.checkStore,this.delay),this.checkUsername=Object(s.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(s.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},s={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,s,n,i){return(!0!==e||!0!==t)&&((!0!==e||s!==i)&&((!0!==t||a!==n)&&((a!==n||s!==i)&&!(n<=a))))}},n=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:s})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=n,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,s,n,i,o,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);o=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,o,i)),(s=o)/(n=i)>(a=l/d)?l=(d=n)*a:d=(l=s)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var s=a(3);a.n(s);t.a={name:"VendorAddressFields",components:{Multiselect:s.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],s=a&&a[e];return void 0!==s?s:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var s in a)if(s===e&&!(a[s]&&a[s].length<1))for(var n in a[s])t.push({name:a[s][n],code:n});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var s=a(2),n=a(3);a.n(n);t.a={name:"VendorPaymentFields",components:{Switches:s.a,Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,s=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=s}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t,a){"use strict";var s=a(11),n=a(30),i=!1;var o=function(e){i||a(29)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(12),n=a(31),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var s=a(6),n=a(0)(s.a,null,!1,null,null,null);n.options.__file="src/admin/components/Chart.vue",t.a=n.exports},,function(e,t){e.exports=jQuery},function(e,t,a){"use strict";var s=a(8),n=a(25),i=!1;var o=function(e){i||a(24)},r=a(0)(s.a,n.a,!1,o,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){return e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){return e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(9),n=a(32),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){return t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){return t.preventDefault(),e.generatePassword(t)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){return t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(13),n=a(35),i=!1;var o=function(e){i||a(34)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(14),n=a(38),i=!1;var o=function(e){i||a(37)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,,function(e,t,a){"use strict";t.a={name:"App"}},function(e,t,a){"use strict";var s=a(20),n=a(7),i=dokan_get_lib("Postbox"),o=dokan_get_lib("Loading"),r=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:i,Loading:o,Chart:s.a,Currency:r,UpgradeBanner:n.a},data:function(){return{overview:null,feed:null,report:null,subscribe:{success:!1,loading:!1,email:""},hasPro:!!dokan.hasPro}},created:function(){this.fetchOverview(),this.fetchFeed(),this.fetchReport()},methods:{fetchOverview:function(){var e=this;dokan.api.get("/admin/report/summary").done(function(t){e.overview=t})},fetchFeed:function(){var e=this;dokan.api.get("/admin/dashboard/feed").done(function(t){e.feed=t})},fetchReport:function(){var e=this;dokan.api.get("/admin/report/overview").done(function(t){e.report=t})},validEmail:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},emailSubscribe:function(){var e=this;this.validEmail(this.subscribe.email)&&(this.subscribe.loading=!0,jQuery.ajax({url:"https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?",data:{EMAIL:this.subscribe.email,"group[3555][8]":"1"},type:"GET",dataType:"json",cache:!1,contentType:"application/json; charset=utf-8"}).always(function(t){e.subscribe.success=!0,e.subscribe.loading=!1}))}}}},function(e,t,a){"use strict";t.a={name:"UpgradeBanner",data:function(){return{show:!0,upgradeURL:dokan.urls.upgradeToPro}},computed:{showUpgrade:function(){return!dokan.hasPro&&"show"===dokan.proNag}},methods:{dismiss:function(){this.show=!1,wp.ajax.post("dokan-upgrade-dissmiss")}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Modal"),o=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:n,Modal:i,Currency:o,UpgradeBanner:s.a},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,counts:{pending:0,approved:0,cancelled:0},notFound:this.__("No requests found.","dokan-lite"),massPayment:this.__("Paypal Mass Payment File is Generated.","dokan-lite"),showCb:!0,loading:!1,columns:{seller:{label:this.__("Vendor","dokan-lite")},amount:{label:this.__("Amount","dokan-lite")},status:{label:this.__("Status","dokan-lite")},method_title:{label:this.__("Method","dokan-lite")},method_details:{label:this.__("Details","dokan-lite")},note:{label:this.__("Note","dokan-lite")},created:{label:this.__("Date","dokan-lite")},actions:{label:this.__("Actions","dokan-lite")}},requests:[],actionColumn:"seller",hasPro:!!dokan.hasPro}},watch:{"$route.query.status":function(){this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()}},computed:{currentStatus:function(){return this.$route.query.status||"pending"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},actions:function(){return"pending"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"cancel",label:this.__("Cancel","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"pending",label:this.__("Pending","dokan-lite")}]:[]},bulkActions:function(){return"pending"==this.currentStatus?[{key:"approved",label:this.__("Approve","dokan-lite")},{key:"cancelled",label:this.__("Cancel","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"pending",label:this.__("Pending","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:[{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]}},created:function(){this.fetchRequests()},methods:{updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Completed")),this.counts.cancelled=parseInt(e.getResponseHeader("X-Status-Cancelled"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},vendorUrl:function(e){return"1"===window.dokan.hasPro?dokan.urls.adminRoot+"admin.php?page=dokan#/vendors/"+e:dokan.urls.adminRoot+"user-edit.php?user_id="+e},fetchRequests:function(){var e=this;this.loading=!0,dokan.api.get("/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus).done(function(t,a,s){e.requests=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},goToPage:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,page:e}})},updateItem:function(e,t){var a=this.requests.findIndex(function(t){return t.id==e});this.$set(this.requests,a,t)},changeStatus:function(e,t){var a=this;this.loading=!0,dokan.api.put("/withdraw/"+t,{status:e}).done(function(e){a.loading=!1,a.fetchRequests()})},onActionClick:function(e,t){var a=this;"cancel"===e&&this.changeStatus("cancelled",t.id),"pending"===e&&this.changeStatus("pending",t.id),"trash"===e&&confirm(this.__("Are you sure?","dokan-lite"))&&(this.loading=!0,dokan.api.delete("/withdraw/"+t.id).done(function(e){a.loading=!1,a.fetchRequests()}))},getPaymentDetails:function(e,t){var a="—";return void 0!==t[e]&&("paypal"===e||"skrill"===e?a=t[e].email||"":"bank"===e&&(t.bank.hasOwnProperty("ac_name")&&(a="<p>"+this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)+"</p>"),t.bank.hasOwnProperty("ac_number")&&(a+="<p>"+this.sprintf(this.__("Account Number: %s","dokan-lite"),t.bank.ac_number)+"</p>"),t.bank.hasOwnProperty("bank_name")&&(a+="<p>"+this.sprintf(this.__("Bank Name: %s","dokan-lite"),t.bank.bank_name)+"</p>"),t.bank.hasOwnProperty("iban")&&(a+="<p>"+this.sprintf(this.__("IBAN: %s","dokan-lite"),t.bank.iban)+"</p>"),t.bank.hasOwnProperty("routing_number")&&(a+="<p>"+this.sprintf(this.__("Routing Number: %s","dokan-lite"),t.bank.routing_number)+"</p>"),t.bank.hasOwnProperty("swift")&&(a+="<p>"+this.sprintf(this.__("Swift Code: %s","dokan-lite"),t.bank.swift)+"</p>"))),dokan.hooks.applyFilters("dokan_get_payment_details",a,e,t)},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),onBulkAction:function(e,t){var a=this,s=this;if(_.contains(["delete","approved","cancelled","pending"],e)){var n={};n[e]=t,this.loading=!0,dokan.api.put("/withdraw/batch",n).done(function(e){a.loading=!1,a.fetchRequests()})}if("paypal"===e){var i=t.join(",");jQuery.post(ajaxurl,{dokan_withdraw_bulk:"paypal",id:i,action:"withdraw_ajax_submission",nonce:dokan.nonce},function(e,t,a){if("html/csv"===a.getResponseHeader("Content-type")){var n="",i=a.getResponseHeader("Content-Disposition");if(i&&-1!==i.indexOf("attachment")){var o=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i);null!=o&&o[1]&&(n=o[1].replace(/['"]/g,""))}var r=a.getResponseHeader("Content-Type"),l="function"==typeof File?new File([e],n,{type:r}):new Blob([e],{type:r});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(l,n);else{var d=window.URL||window.webkitURL,c=d.createObjectURL(l);if(n){var u=document.createElement("a");void 0===u.download?window.location=c:(u.href=c,u.download=n,document.body.appendChild(u),u.click())}else window.location=c;setTimeout(function(){d.revokeObjectURL(c)},100)}}e&&alert(s.massPayment)})}},openNoteModal:function(e,t){this.showModal=!0,this.editing={id:t,note:e}},updateNote:function(){var e=this;this.showModal=!1,this.loading=!0,dokan.api.put("/withdraw/"+this.editing.id,{note:this.editing.note}).done(function(t){e.loading=!1,e.updateItem(e.editing.id,t),e.editing={id:null,note:null}})}}}},function(e,t,a){"use strict";var s=a(49),n=a(126),i=(a.n(n),a(129));t.a={name:"Premium",components:{Slick:i.a,ProCta:s.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,buyNowProUrl:"https://wedevs.com/account/",services:[{title:this.__("Premium modules to make everything easier & better","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-01@2x.png"},{title:this.__("Frontend dashboard for vendors with advanced controls","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-02@2x.png"},{title:this.__("Unlimited Product Variations and group product upload","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-03@2x.png"},{title:this.__("Zone wise shipping with multiple method for vendors","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-04@2x.png"},{title:this.__("Store support based on ticket system for your customers","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-05@2x.png"},{title:this.__("Vendors will be able to generate coupon codes","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-06@2x.png"},{title:this.__("Earning, Selling and Commission Reports & Statement","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-07@2x.png"},{title:this.__("24/7 super fast premium customer support for you","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-08@2x.png"},{title:this.__("Add Social profile to your vendor’s store and support for store SEO","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-09@2x.png"}],comparisons:[{title:this.__("Frontend order management","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Seller Statement Reports","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Making Announcements","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Customized Product Categories","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store SEO","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Back Ordering System","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store Contact Form","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Single Product Multiple Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Seller Verification","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Featured Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Multiple Commission Types","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Frontend Shipping Tracking","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Setup Wizard","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Google Maps","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Manage reviews","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Bookable Product","dokan-lite"),compare:{lite:"unavailable",pro:"available"}}],modules:[{title:"Domain",url:"https://wedevs.com/dokan/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"03"},business:{type:"numeric",value:"05"},enterprise:{type:"numeric",value:"20"}},{title:"Modules",url:"https://wedevs.com/dokan/modules/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"08"},business:{type:"numeric",value:"14"},enterprise:{type:"numeric",value:"14"}},{title:"Color Scheme",url:"https://wedevs.com/dokan/modules/color-scheme-customizer/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Review",url:"https://wedevs.com/dokan/modules/dokan-vendor-review/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Store Support",url:"https://wedevs.com/dokan/modules/store-support/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Auction",url:"https://wedevs.com/dokan/modules/dokan-simple-auctions/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Ajax Live Search",url:"https://wedevs.com/dokan/modules/ajax-live-search/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Stripe Connect",url:"https://wedevs.com/dokan/modules/stripe-connect/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Subscriptions",url:"https://wedevs.com/dokan/modules/subscription/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Single Product Multivendor",url:"https://wedevs.com/dokan/modules/single-product-multivendor/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Seller Verification",url:"https://wedevs.com/dokan/modules/seller-verification/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"WC Booking Integration",url:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Staff Manager",url:"https://wedevs.com/dokan/modules/vendor-staff-manager/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Export Import",url:"https://wedevs.com/dokan/modules/export-import/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Product Enquiry",url:"https://wedevs.com/dokan/modules/product-enquiry/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Vacation",url:"https://wedevs.com/dokan/modules/vendor-vacation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Return and Warranty Request",url:"https://wedevs.com/dokan/modules/rma/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Moip",url:"https://wedevs.com/dokan/modules/moip/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Follow Store",url:"https://wedevs.com/dokan/modules/follow-store/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Geolocation",url:"https://wedevs.com/dokan/modules/geolocation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Shipstation",url:"https://wedevs.com/dokan/modules/shipstation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Wholesale",url:"https://wedevs.com/dokan/modules/wholesale/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}}],payment:{thumbnail:dokan.urls.assetsUrl+"/images/premium/payment-options.png",guaranteeThumbnail:dokan.urls.assetsUrl+"/images/premium/gaurantee-thumb.png",viewIcon:dokan.urls.assetsUrl+"/images/premium/view-icon@2x.png",termsPolicyUrl:"https://wedevs.com/refund-policy/"},slickOptions:{slidesToShow:1,fade:!0,speed:500,cssEase:"linear",autoplay:!0,autoplaySpeed:2e3,infinite:!0,accessibility:!0,adaptiveHeight:!1,arrows:!1,dots:!0,draggable:!0,edgeFriction:.3,swipe:!0},testimonials:[{name:"Melissa McGovern",designation:"Director, Hawk And PeddleProjects",pic:dokan.urls.assetsUrl+"/images/premium/melissa.jpg",content:"We're still a new business and are continuing to build our platform. Dokan has halved the time it would take us to build our ecommerce platform by being feature rich and easy to install and configure."},{name:"Morten J. Christensen",designation:"Owner, Dincatering",pic:dokan.urls.assetsUrl+"/images/premium/Morten-J.-Christensen.jpg",content:"First and foremost it enables the possibility for actually creating the kind of marketplace i wanted. The plugin lets me create a local marketplace for local danish catering suppliers to showcase and sell their offers of the season."},{name:"Cédric Lefrancq",designation:"Webmaster, Unwebmaster.Be",pic:dokan.urls.assetsUrl+"/images/premium/cedric-lefrancq.jpeg",content:"The support is very good. The plugin is perfect. Bugs are fixed very quickly. That’s a very good plugin."},{name:"David Gaz",designation:"Founder, The Bureau Of Small Projects",pic:dokan.urls.assetsUrl+"/images/premium/david-gaz.jpeg",content:"It’s hands down an amazing plugin. But their support is even more amazing. They got back to me within hours on the weekend."}],cta:{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.buynowpro}}},methods:{next:function(){this.$refs.slick.next()},prev:function(){this.$refs.slick.prev()},reInit:function(){var e=this;this.$nextTick(function(){e.$refs.slick.reSlick()})}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(50),n=a(125),i=!1;var o=function(e){i||a(124)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ProCta.vue",t.a=r.exports},function(e,t,a){"use strict";t.a={name:"ProCta",data:function(){return{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.upgradeToPro}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:n,Loading:i,UpgradeBanner:s.a},data:function(){return{docs:null,hasPro:!!dokan.hasPro}},created:function(){this.fetch()},methods:{fetch:function(){var e=this;dokan.api.get("/admin/help").done(function(t){e.docs=t})}}}},function(e,t,a){"use strict";var s=a(136),n=a(166),i=a(7),o=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:o,SettingsBanner:n.a,UpgradeBanner:i.a},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[],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}}}).fail(function(e){var t=e.responseJSON.data.map(function(e){return e.message});alert(t.join(" "))}).always(function(){a.showLoading=!1})}},formIsValid:function(e){var t=this,a=Object.keys(this.settingFields),s=this.requiredFields;return!!a&&(a.forEach(function(a,n){if(e===a){var i=t.settingFields[a];Object.values(i).forEach(function(e){var t=e.fields;t&&Object.values(t).forEach(function(e){e&&e.required&&"yes"===e.required&&!s.includes(e.name)&&s.push(e.name)}),e&&e.required&&"yes"===e.required&&(s.includes(e.name)||s.push(e.name))})}}),this.errors=[],s.forEach(function(e){Object.values(t.settingValues).forEach(function(a){e in a&&a[e].length<1&&(t.errors.includes(e)||(t.errors.push(e),"flat"!==a.commission_type&&"percentage"!==a.commission_type||(t.errors=t.arrayRemove(t.errors,"admin_percentage"),t.errors=t.arrayRemove(t.errors,"additional_fee"))))})}),this.errors.length<1)},arrayRemove:function(e,t){return e.filter(function(e){return e!==t})},toggleLoadingState:function(){this.showLoading=!this.showLoading},clearSearch:function(){this.searchText="",this.validateBlankSearch()},validateBlankSearch:function(){return""!==this.searchText.toLowerCase()||(this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields,!1)},searchInSettings:function(e){var t=this;this.validateBlankSearch()&&(this.awaitingSearch||setTimeout(function(){var e=t.$refs.searchInSettings.value.toLowerCase();t.doSearch(e),t.awaitingSearch=!1},1e3),this.awaitingSearch=!0)},doSearch:function(e){var t=this,a={},s=[],n=[],i=dokan.settings_fields;Object.keys(i).forEach(function(t,n){Object.keys(i[t]).forEach(function(n,o){if("sub_section"!==i[t][n].type){var r=i[t][n].label.toLowerCase();r&&r.includes(e)&&(a[t]||(a[t]={}),a[t][n]=i[t][n],-1===s.indexOf(t)&&s.push(t))}})});var o=0;Object.keys(dokan.settings_sections).forEach(function(e,a){-1!==s.indexOf(dokan.settings_sections[e].id)&&(o||(t.changeTab(dokan.settings_sections[e]),o=1),n.push(dokan.settings_sections[e]))}),this.settingFields=a,this.settingSections=n}},created:function(){this.fetchSettingValues(),this.currentTab="dokan_general","undefined"!=typeof localStorage&&(this.currentTab=localStorage.getItem("activetab")?localStorage.getItem("activetab"):"dokan_general"),this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields}}},function(e,t,a){"use strict";var s=a(138),n=a.n(s),i=a(139),o=a.n(i),r=a(23);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c=dokan_get_lib("TextEditor"),u=dokan_get_lib("GoogleMaps"),p=dokan_get_lib("Mapbox"),m=dokan_get_lib("RefreshSettingOptions");t.a={name:"Fields",components:{colorPicker:r.a,TextEditor:c,GoogleMaps:u,Mapbox:p,RefreshSettingOptions:m},props:["id","fieldData","sectionId","fieldValue","allSettingsValues","errors","toggleLoadingState"],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")}}}},,,,,,,,,function(e,t,a){"use strict";t.a={name:"SettingsBanner",data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},computed:{bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(172),n=a(7),i=dokan_get_lib("ListTable"),o=dokan_get_lib("Switches"),r=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:i,Switches:o,Search:r,AddVendor:s.a,UpgradeBanner:n.a},data:function(){return{showCb:!0,hasPro:dokan.hasPro,counts:{pending:0,approved:0,all:0},vendorId:0,totalItems:0,perPage:20,totalPages:1,loading:!1,columns:{store_name:{label:this.__("Store","dokan-lite"),sortable:!0},email:{label:this.__("E-mail","dokan-lite")},phone:{label:this.__("Phone","dokan-lite")},registered:{label:this.__("Registered","dokan-lite"),sortable:!0},enabled:{label:this.__("Status","dokan-lite")}},actionColumn:"title",actions:[{key:"edit",label:this.__("Edit","dokan-lite")},{key:"products",label:this.__("Products","dokan-lite")},{key:"orders",label:this.__("Orders","dokan-lite")}],bulkActions:[{key:"approved",label:this.__("Approve Vendors","dokan-lite")},{key:"pending",label:this.__("Disable Selling","dokan-lite")}],vendors:[],loadAddVendor:!1,dokanVendorHeaderArea:dokan.hooks.applyFilters("getDokanVendorHeaderArea",[]),isVendorSwitchingEnabled:!1}},watch:{"$route.query.status":function(){this.fetchVendors()},"$route.query.page":function(){this.fetchVendors()},"$route.query.orderby":function(){this.fetchVendors()},"$route.query.order":function(){this.fetchVendors()}},computed:{currentStatus:function(){return this.$route.query.status||"all"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},sortBy:function(){return this.$route.query.orderby||"registered"},sortOrder:function(){return this.$route.query.order||"desc"},storeCategory:function(){return this.$route.query.store_category||null}},created:function(){var e=this;this.$root.$on("modalClosed",function(){e.loadAddVendor=!1,e.vendorId=0}),this.fetchVendors(),this.$root.$on("vendorAdded",function(t){e.vendors.unshift(t)}),this.$root.$on("addAnotherVendor",function(){e.loadAddVendor=!0}),this.$root.$on("categoryFetched",function(t){e.categories=t.categories,e.isCategoryMultiple=t.isCategoryMultiple,e.columns=t.columns}),this.isVendorSwitchingEnabled=!!dokan.is_vendor_switching_enabled,this.isVendorSwitchingEnabled&&this.actions.push({key:"switch_to",label:this.__("Switch To","dokan-lite")})},methods:{addNew:function(){this.loadAddVendor=!0},doSearch:function(e){var t=this,a=this;a.loading=!0,dokan.api.get("/stores?search=".concat(e),{page:this.currentPage,orderby:this.sortBy,order:this.sortOrder}).done(function(e,s,n){a.vendors=e,a.loading=!1,t.updatedCounts(n),t.updatePagination(n)})},updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Approved")),this.counts.all=parseInt(e.getResponseHeader("X-Status-All"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},fetchVendors:function(){var e=this;e.loading=!0;var t={per_page:e.perPage,page:e.currentPage,status:e.currentStatus,orderby:e.sortBy,order:e.sortOrder,store_category:e.storeCategory};dokan.api.get("/stores",t).done(function(t,a,s){e.vendors=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},onActionClick:function(e,t){"trash"===e&&confirm("Are you sure to delete?")&&alert("deleted: "+t.title)},onSwitch:function(e,t){var a=this,s=!1===e?this.__("The vendor has been disabled.","dokan-lite"):this.__("Selling has been enabled","dokan-lite");dokan.api.put("/stores/"+t+"/status",{status:!1===e?"inactive":"active"}).done(function(e){a.$notify({title:a.__("Success!","dokan-lite"),type:"success",text:s}),"all"!==a.currentStatus&&"pending"!==a.currentStatus&&"approved"!==a.currentStatus||a.fetchVendors()})},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),goToPage:function(e){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:e}})},onBulkAction:function(e,t){var a=this,s={};s[e]=t,this.loading=!0,dokan.api.put("/stores/batch",s).done(function(e){a.loading=!1,a.fetchVendors()})},sortCallback:function(e,t){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:1,orderby:e,order:t}})},productUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=product&author="+e},ordersUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=shop_order&vendor_id="+e},editUrl:function(e){return dokan.urls.adminRoot+"user-edit.php?user_id="+e},switchToUrl:function(e){return e.switch_url}}}},function(e,t,a){"use strict";var s=a(26),n=a(33),i=a(36),o=dokan_get_lib("Modal"),r=dokan_get_lib("Loading");t.a={name:"AddVendor",props:["vendorId"],components:{Modal:o,Loading:r,VendorAccountFields:s.a,VendorAddressFields:n.a,VendorPaymentFields:i.a},data:function(){return{isLoading:!1,storeId:"",nextBtn:this.__("Next","dokan-lite"),title:this.__("Add New Vendor","dokan-lite"),tabs:{VendorAccountFields:{label:this.__("Account Info","dokan-lite"),name:"VendorAccountFields",icon:"dashicons dashicons-admin-users"},VendorAddressFields:{label:this.__("Address","dokan-lite"),name:"VendorAddressFields",icon:"dashicons dashicons-admin-home"},VendorPaymentFields:{label:this.__("Payment Options","dokan-lite"),name:"VendorPaymentFields",icon:"dashicons dashicons-money"}},currentTab:"VendorAccountFields",store:{store_name:"",user_pass:"",store_url:"",user_login:"",email:"",user_nicename:"",notify_vendor:!0,phone:"",banner:"",banner_id:"",gravatar:"",gravatar_id:"",social:{fb:"",youtube:"",twitter:"",linkedin:"",pinterest:"",instagram:""},payment:{bank:{ac_name:"",ac_number:"",bank_name:"",bank_addr:"",routing_number:"",iban:"",swift:""},paypal:{email:""}},address:{street_1:"",street_2:"",city:"",zip:"",state:"",country:""}},requiredFields:["store_name","user_login","email"],errors:[],storeAvailable:!1,userNameAvailable:!1,emailAvailable:!1,hasPro:dokan.hasPro}},created:function(){var e=this;this.$root.$on("vendorInfoChecked",function(t){e.storeAvailable=t.storeAvailable,e.userNameAvailable=t.userNameAvailable,e.emailAvailable=t.emailAvailable})},methods:{getId:function(){return this.$route.params.id},showAlert:function(e,t,a){this.$swal(e,t,a)},createVendor:function(){var e=this;this.formIsValid()&&("VendorPaymentFields"===this.currentTab&&(this.isLoading=!0,dokan.api.post("/stores/",this.store).done(function(t){e.$root.$emit("vendorAdded",t),e.$swal({type:"success",title:e.__("Vendor Created","dokan-lite"),text:e.__("A vendor has been created successfully!","dokan-lite"),showCloseButton:!0,showCancelButton:!0,confirmButtonText:e.__("Add Another","dokan-lite"),cancelButtonText:e.__("Edit Vendor","dokan-lite"),focusConfirm:!1}).then(function(a){a.value?e.$root.$emit("addAnotherVendor"):a.dismiss===e.$swal.DismissReason.cancel&&(e.hasPro?e.$router.push({path:"vendors/"+t.id,query:{edit:"true"}}):window.location.replace("".concat(dokan.urls.adminRoot,"user-edit.php?user_id=").concat(t.id)))})}).fail(function(t){e.showAlert(e.__(t.responseJSON.message,"dokan-lite"),"","error")}).always(function(){e.$root.$emit("modalClosed")})),this.currentTab="VendorPaymentFields"===this.currentTab?"VendorPaymentFields":this.nextTab(this.tabs,this.currentTab))},nextTab:function(e,t){var a=Object.keys(e),s=a[a.indexOf(t)+1];return s},closeModal:function(){this.$root.$emit("modalClosed")},formIsValid:function(){var e=this,t=this.requiredFields,a=this.store;return this.errors=[],t.forEach(function(t){t in a&&a[t].length<1&&e.errors.push(t)}),!!(this.errors.length<1&&this.storeAvailable&&this.userNameAvailable&&this.emailAvailable)||(this.currentTab="VendorAccountFields",!1)}}}},function(e,t,a){"use strict";var s=a(49);t.a={name:"VendorCapabilities",components:{ProCta:s.a},data:function(){return{showPopup:!1,selectedCapabilityImage:"",capabilityCards:[{title:this.__("Coupons","dokan-lite"),content:this.__("Each vendor can create unlimited discount coupon codes for their products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-coupon.svg")},{title:this.__("Shipping","dokan-lite"),content:this.__("Vendors can configure their own shipping costs for each country, state & single products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-shipping.svg")},{title:this.__("Duplicate Product","dokan-lite"),content:this.__("Vendors can duplicate their own products for ease and time saving.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-duplicate-product.svg")},{title:this.__("Reporting","dokan-lite"),content:this.__("Earning, selling and commissions reports for vendors to improve sales & take major decisions.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-reports.svg")},{title:this.__("Create Tags","dokan-lite"),content:this.__("Vendors can create & attach tags to products to categorize & for better search engine optimization.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-create-tags.svg")},{title:this.__("Vendor Biography","dokan-lite"),content:this.__("Vendors can write about themselves & about their store in a text field which visitors can see from the store page","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-biography.svg")},{title:this.__("Vendor Product Upload","dokan-lite"),content:this.__("New vendors can start uploading products upon registration if admins allow.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-product-upload.svg")},{title:this.__("Order Status Change","dokan-lite"),content:this.__("Vendors will be able to mark products as draft & update the order status to inform customers about progress.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-order-status-change.svg")},{title:this.__("Social Share","dokan-lite"),content:this.__("Visitors and customers can share a store page with their friends and acquaintances on their social profiles.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-share.svg")},{title:this.__("Variable Product","dokan-lite"),content:this.__("Vendors can create variable products with predefined and custom attributes.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-variable-product.svg")},{title:this.__("Store Opening & Closing Time","dokan-lite"),content:this.__("Vendors can define the working hours of their online store for each day of the week for visitors to see.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-opening-closing-hours.svg")},{title:this.__("Woocommerce Booking Integration","dokan-lite"),content:this.__("Create hotel rooms, resorts, conference rooms, cars, bikes, etc for renting out.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-woocommerce-booking.svg")},{title:this.__("Announcement For Vendors","dokan-lite"),content:this.__("Admins can make announcements targeted to a single vendor, multiple or all vendors.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-announcement-vendors.svg")},{title:this.__("Woocommerce Simple Auctions Integration","dokan-lite"),content:this.__("Sell auction-able products in your store with Dokan’s integration.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-simple-auction.svg")},{title:this.__("Social Profiles","dokan-lite"),content:this.__("Vendors can upload & showcase their Facebook, Twitter and Linkedin profiles on their store page.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-profile.svg")},{title:this.__("Refund","dokan-lite"),content:this.__("Vendors can send refund requests for an order to the admins who can approve or deny it from the dashboard.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-refund.svg")},{title:this.__("Store Seo","dokan-lite"),content:this.__("The Yoast SEO integration lets vendors define Store Title, Description, Slug and Keyword to appear in search engine results.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-store-seo.svg")}]}},methods:{closePopup:function(){this.showPopup=!1},openPopup:function(e){this.showPopup=!0,this.selectedCapabilityImage=e}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner.svg")}}}},function(e,t,a){"use strict";var s=a(181);t.a={name:"ProModules",components:{ModuleUpgradePopup:s.a},data:function(){return{modules:[{name:this.__("WooCommerce Booking Integration","dokan-lite"),description:this.__("Integrates WooCommerce Booking with Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/booking.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-bookings/",modLink:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/"},{name:this.__("Color Scheme Customizer","dokan-lite"),description:this.__("A Dokan plugin Add-on to Customize Colors of Dokan Dashboard","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/color-scheme-customizer.png"),docLink:"https://wedevs.com/docs/dokan/modules/color-scheme/",modLink:"https://wedevs.com/dokan/modules/color-scheme-customizer/"},{name:this.__("Elementor","dokan-lite"),description:this.__("Elementor Page Builder widgets for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/elementor.png"),docLink:"https://wedevs.com/docs/dokan/modules/elementor-dokan/",modLink:"https://wedevs.com/dokan/modules/elementor/"},{name:this.__("Vendor Product Importer and Exporter","dokan-lite"),description:this.__("This is simple product import and export plugin for vendor","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/import-export.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-dokan-exportimport-add/",modLink:"https://wedevs.com/dokan/modules/export-import/"},{name:this.__("Follow Store","dokan-lite"),description:this.__("Send emails to customers when their favorite store updates.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/follow-store.png"),docLink:"https://wedevs.com/docs/dokan/modules/follow-store/",modLink:"https://wedevs.com/dokan/modules/follow-store/"},{name:this.__("Geolocation","dokan-lite"),description:this.__("Search Products and Vendors by geolocation.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/geolocation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-geolocation/",modLink:"https://wedevs.com/dokan/modules/geolocation/"},{name:this.__("Live Chat","dokan-lite"),description:this.__("Live Chat Between Vendor & Customer.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/live-chat.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-live-chat/",modLink:"https://wedevs.com/dokan/modules/live-chat/"},{name:this.__("Live Search","dokan-lite"),description:this.__("Live product search for WooCommerce store.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/ajax-live-search.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-live-search/",modLink:"https://wedevs.com/dokan/modules/ajax-live-search/"},{name:this.__("Wirecard","dokan-lite"),description:this.__("Wirecard payment gateway for Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wirecard-connect.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-moip-connect/",modLink:"https://wedevs.com/dokan/modules/moip/"},{name:this.__("PayPal Adaptive Payment","dokan-lite"),description:this.__("Allows to send split payments to vendor via PayPal Adaptive Payment gateway.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/paypal-adaptive.png"),docLink:"#",modLink:"#"},{name:this.__("Product Addon","dokan-lite"),description:this.__("WooCommerce Product Addon support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-addon.png"),docLink:"https://wedevs.com/docs/dokan/modules/product-addon/",modLink:"https://wedevs.com/dokan/modules/product-addons/"},{name:this.__("Product Enquiry","dokan-lite"),description:this.__("Enquiry for a specific product to a seller.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-enquiry.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-product-enquiry/",modLink:"https://wedevs.com/dokan/modules/product-enquiry/"},{name:this.__("Report Abuse","dokan-lite"),description:this.__("Let customers report fraudulent or fake products.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/"},{name:this.__("Return and Warranty Request","dokan-lite"),description:this.__("Manage return and warranty from vendor end.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-rma/",modLink:"https://wedevs.com/dokan/modules/rma/"},{name:this.__("Seller Vacation","dokan-lite"),description:this.__("Using this plugin seller can go to vacation by closing their stores.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/seller-vacation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-vacation/",modLink:"https://wedevs.com/dokan/modules/vendor-vacation/"},{name:this.__("ShipStation Integration","dokan-lite"),description:this.__("Adds ShipStation label printing support to Dokan. Requires server DomDocument support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/shipstation.png"),docLink:"https://wedevs.com/docs/dokan/modules/shipstation-dokan-wedevs/",modLink:"https://wedevs.com/dokan/modules/shipstation/"},{name:this.__("Auction Integration","dokan-lite"),description:this.__("A plugin that combined WooCommerce simple auction and Dokan plugin.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/auction.png"),docLink:"https://wedevs.com/docs/dokan/modules/woocommerce-auctions-frontend-multivendor-marketplace/",modLink:"https://wedevs.com/dokan/modules/dokan-simple-auctions/"},{name:this.__("Single Product Multiple Vendor","dokan-lite"),description:this.__("A module that offers multiple vendor to sell a single product.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/single-product-multivendor.png"),docLink:"https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/",modLink:"https://wedevs.com/dokan/modules/single-product-multivendor/"},{name:this.__("Store Reviews","dokan-lite"),description:this.__("A plugin that allows customers to rate the sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-review.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-review/",modLink:"https://wedevs.com/dokan/modules/dokan-vendor-review/"},{name:this.__("Store Support","dokan-lite"),description:this.__("Enable vendors to provide support to customers from store page.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/store-support.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-store-support/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Stripe Connect","dokan-lite"),description:this.__("Accept credit card payments and allow your sellers to get automatic split payment in Dokan via Stripe.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/stripe.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-configure-dokan-stripe-connect/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Vendor Subscription","dokan-lite"),description:this.__("Product subscription pack add-on for Dokan vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/subscription.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-use-dokan-subscription/",modLink:"https://wedevs.com/dokan/modules/subscription/"},{name:this.__("Vendor Analytics","dokan-lite"),description:this.__("A plugin for store and product analytics for vendor.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/analytics.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/"},{name:this.__("Vendor Staff Manager","dokan-lite"),description:this.__("A plugin for manage store via vendor staffs.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-staff.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-staff-manager/",modLink:"https://wedevs.com/dokan/modules/vendor-staff-manager/"},{name:this.__("Vendor Subscription Product","dokan-lite"),description:this.__("WooCommerce Subscription integration for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-subscription-product.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-subscription-product/",modLink:"https://wedevs.com/dokan/modules/vendor-subscription-product/"},{name:this.__("Vendor Verification","dokan-lite"),description:this.__("Dokan add-on to verify sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-verification.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-seller-verification-admin-settings/",modLink:"https://wedevs.com/dokan/modules/seller-verification/"},{name:this.__("Wholesale","dokan-lite"),description:this.__("Offer any customer to buy product as a wholesale price from any vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wholesale.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-wholesale/",modLink:"https://wedevs.com/dokan/modules/wholesale/"}],showPopup:!0}},methods:{togglePopup:function(e){this.showPopup=e}}}},function(e,t,a){"use strict";t.a={name:"ModuleUpgradePopup",props:{showPopup:{type:Boolean,required:!0,default:!0}},data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},methods:{closePopup:function(){this.$emit("toggle",!1)},openPopup:function(){this.$emit("toggle",!0)}},computed:{headerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-header.svg")},bonusImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-bonus.svg")}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(106),n=a(109),i=a(185);new(dokan_get_lib("Vue"))({el:"#dokan-vue-admin",router:n.a,render:function(e){return e(s.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"]),dokan.dokan_pro_i18n&&this.setLocaleData(dokan.dokan_pro_i18n.dokan)},methods:{listTableTexts:function(){return{loading:this.__("Loading","dokan-lite"),select_bulk_action:this.__("Select bulk action","dokan-lite"),bulk_actions:this.__("Bulk Actions","dokan-lite"),items:this.__("items","dokan-lite"),apply:this.__("Apply","dokan-lite")}}}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(107)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/App.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"vue-backend-app"}},[t("router-view"),this._v(" "),t("notifications",{attrs:{position:"bottom right"}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(110),n=a.n(s),i=a(111),o=a(119),r=a(122),l=a(131),d=a(134),c=a(170),u=a(176),p=a(179),m=dokan_get_lib("Vue"),v=dokan_get_lib("Router"),_=dokan_get_lib("VersionCompare");m.use(v),dokan_add_route(i.a),dokan_add_route(o.a),dokan_add_route(r.a),dokan_add_route(l.a),dokan_add_route(d.a),dokan_add_route(u.a),dokan_add_route(p.a),dokan.hasPro&&!_(dokan.proVersion,"2.9.14",">")||dokan_add_route(c.a),function e(t){for(var a=0;a<t.length;a++)"object"===n()(t[a].children)?(e(t[a].children),void 0!==t[a].component&&(t[a].component=dokan.routeComponents[t[a].component])):t[a].component=dokan.routeComponents[t[a].component]}(dokan.routes),t.a=new v({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(45),n=a(118),i=!1;var o=function(e){i||a(112)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Dashboard.vue",t.a=r.exports},function(e,t){},,,,function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.show&&e.showUpgrade?a("div",{staticClass:"dokan-upgrade-bar"},[e._v("\n You're using "),a("span",[e._v("Dokan Lite")]),e._v(". To unlock more features, consider\n "),a("a",{attrs:{target:"_blank",rel:"noopener",href:e.upgradeURL}},[e._v("\n Upgrading to Pro")]),e._v(".\n\n "),a("div",{staticClass:"close-button",attrs:{title:"Dismiss the notice"},on:{click:function(t){return e.dismiss()}}},[e._v("\n ×\n ")])]):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-dashboard"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("h1",[e._v(e._s(e.__("Dashboard","dokan-lite")))]),e._v(" "),a("div",{staticClass:"widgets-wrapper"},[a("div",{staticClass:"left-side"},[a("postbox",{attrs:{title:e.__("At a Glance","dokan-lite"),extraClass:"dokan-status"}},[null!==e.overview?a("div",{staticClass:"dokan-status"},[a("ul",[a("li",{staticClass:"sale"},[a("div",{staticClass:"dashicons dashicons-chart-bar"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.sales.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("net sales this month","dokan-lite"))+" "),a("span",{class:e.overview.sales.class},[e._v(e._s(e.overview.sales.parcent))])])])],1),e._v(" "),a("li",{staticClass:"commission"},[a("div",{staticClass:"dashicons dashicons-chart-pie"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.earning.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("commission earned","dokan-lite"))+" "),a("span",{class:e.overview.earning.class},[e._v(e._s(e.overview.earning.parcent))])])])],1),e._v(" "),a("li",{staticClass:"vendor"},[a("div",{staticClass:"dashicons dashicons-id"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors"}:""}},[a("strong",[e._v(e._s(e.overview.vendors.this_month)+" "+e._s(e.__("Vendor","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("signup this month","dokan-lite"))+" "),a("span",{class:e.overview.vendors.class},[e._v(e._s(e.overview.vendors.parcent))])])])],1),e._v(" "),a("li",{staticClass:"approval"},[a("div",{staticClass:"dashicons dashicons-businessman"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors",query:{status:"pending"}}:""}},[a("strong",[e._v(e._s(e.overview.vendors.inactive)+" "+e._s(e.__("Vendor","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1),e._v(" "),a("li",{staticClass:"product"},[a("div",{staticClass:"dashicons dashicons-cart"}),e._v(" "),a("a",{attrs:{href:"#"}},[a("strong",[e._v(e._s(e.overview.products.this_month)+" "+e._s(e.__("Products","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("created this month","dokan-lite"))+" "),a("span",{class:e.overview.products.class},[e._v(e._s(e.overview.products.parcent))])])])]),e._v(" "),a("li",{staticClass:"withdraw"},[a("div",{staticClass:"dashicons dashicons-money"}),e._v(" "),a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[a("strong",[e._v(e._s(e.overview.withdraw.pending)+" "+e._s(e.__("Withdrawals","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1)])]):a("div",{staticClass:"loading"},[a("loading")],1)]),e._v(" "),a("postbox",{attrs:{title:e.__("Dokan News Updates","dokan-lite")}},[null!==e.feed?a("div",{staticClass:"rss-widget"},[a("ul",e._l(e.feed,function(t){return a("li",[a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_campaign=dokan-news",target:"_blank"}},[e._v(e._s(t.title))])])}),0),e._v(" "),a("div",{staticClass:"subscribe-box"},[e.subscribe.success?a("div",{staticClass:"thank-you"},[e._v(e._s(e.__("Thank you for subscribing!","dokan-lite")))]):[e.subscribe.loading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),a("h3",[e._v(e._s(e.__("Stay up-to-date","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("We're constantly developing new features, stay up-to-date by subscribing to our newsletter.","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"form-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.subscribe.email,expression:"subscribe.email"}],attrs:{type:"email",required:"",placeholder:"Your Email Address"},domProps:{value:e.subscribe.email},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.emailSubscribe()},input:function(t){t.target.composing||e.$set(e.subscribe,"email",t.target.value)}}}),e._v(" "),a("button",{staticClass:"button",on:{click:function(t){return e.emailSubscribe()}}},[e._v(e._s(e.__("Subscribe","dokan-lite")))])])]],2)]):a("div",{staticClass:"loading"},[a("loading")],1)])],1),e._v(" "),a("div",{staticClass:"right-side"},[a("postbox",{staticClass:"overview-chart",attrs:{title:e.__("Overview","dokan-lite")}},[null!==e.report?a("div",[a("chart",{attrs:{data:e.report}})],1):a("div",{staticClass:"loading"},[a("loading")],1)])],1)])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(47),n=a(121),i=!1;var o=function(e){i||a(120)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Withdraw.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"withdraw-requests"},[a("h1",[e._v(e._s(e.__("Withdraw Requests","dokan-lite")))]),e._v(" "),e.showModal?a("modal",{attrs:{title:e.__("Update Note","dokan-lite")},on:{close:function(t){e.showModal=!1}}},[a("template",{slot:"body"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editing.note,expression:"editing.note"}],attrs:{rows:"3"},domProps:{value:e.editing.note},on:{input:function(t){t.target.composing||e.$set(e.editing,"note",t.target.value)}}})]),e._v(" "),a("template",{slot:"footer"},[a("button",{staticClass:"button button-primary button-large",on:{click:function(t){return e.updateNote()}}},[e._v(e._s(e.__("Update Note","dokan-lite")))])])],2):e._e(),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Cancelled","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.cancelled))])]),e._v(" | ")],1)]),e._v(" "),a("list-table",{attrs:{columns:e.columns,rows:e.requests,loading:e.loading,"action-column":e.actionColumn,actions:e.actions,"show-cb":e.showCb,"bulk-actions":e.bulkActions,"not-found":e.notFound,"total-pages":e.totalPages,"total-items":e.totalItems,"per-page":e.perPage,"current-page":e.currentPage,text:e.$root.listTableTexts()},on:{pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction},scopedSlots:e._u([{key:"seller",fn:function(t){return[a("img",{attrs:{src:t.row.user.gravatar,alt:t.row.user.store_name,width:"50"}}),e._v(" "),a("strong",[a("a",{attrs:{href:e.vendorUrl(t.row.user.id)}},[e._v(e._s(t.row.user.store_name?t.row.user.store_name:e.__("(no name)","dokan-lite")))])])]}},{key:"amount",fn:function(e){return[a("currency",{attrs:{amount:e.row.amount}})]}},{key:"status",fn:function(t){return[a("span",{class:t.row.status},[e._v(e._s(e._f("capitalize")(t.row.status)))])]}},{key:"created",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.created).format("MMM D, YYYY"))+"\n ")]}},{key:"method_details",fn:function(t){return[a("div",{staticClass:"method_details_inner",domProps:{innerHTML:e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))}})]}},{key:"actions",fn:function(t){return["pending"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Approve Request","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.changeStatus("approved",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-yes"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:"approved"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Mark as Pending","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.changeStatus("pending",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-backup"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(130),i=!1;var o=function(e){i||a(123)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Premium.vue",t.a=r.exports},function(e,t){},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.styles.bgPattern+"), linear-gradient( 45deg, rgb(255,125,144) 33%, rgb(255,173,111) 100%)"}},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.thumbnail,alt:"Dokan Lite"}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h2",[e._v(e._s(e.__("Convinced?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("With all the advance features you get it’s hard to resist buying Dokan Pro.","dokan-lite")))]),e._v(" "),a("a",{staticClass:"btn",attrs:{href:e.url,target:"_blank"}},[e._v("\n "+e._s(e.__("Upgrade to Pro","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-pro-features"},[a("div",{staticClass:"header-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/header-feature-thumb@2x.png",alt:e.__("Upgrade to Dokan Pro!","dokan-lite"),title:e.__("Upgrade to Dokan Pro!","dokan-lite")}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h1",[e._v(e._s(e.__("Upgrade to Dokan Pro!","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Seems To Be Convinced, You Need More Out Of Your Marketplace","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")]),e._v(" "),a("router-link",{staticClass:"button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)]),e._v(" "),a("div",{staticClass:"service-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Why Upgrade","dokan-lite")))]),e._v(" "),a("div",{staticClass:"service-list"},e._l(e.services,function(t){return a("div",{staticClass:"service-box"},[a("div",{staticClass:"service-thumb"},[a("img",{attrs:{src:t.thumbnail,alt:t.title,title:t.title}})]),e._v(" "),a("div",{staticClass:"service-detail"},[a("h3",{staticClass:"title"},[e._v(e._s(t.title))])])])}),0),e._v(" "),a("a",{staticClass:"btn",attrs:{href:"https://wedevs.com/dokan/features/",target:"_blank"}},[e._v("\n "+e._s(e.__("And Many More","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])]),e._v(" "),a("div",{staticClass:"comparison-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Comparison With Dokan PRO","dokan-lite")))]),e._v(" "),a("div",{staticClass:"comparison-area"},[a("div",{staticClass:"compare-box dokan-lite"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-lite-logo@2x.png",alt:"Dokan Lite"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.lite},["available"===t.compare.lite?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}),0)]),e._v(" "),a("div",{staticClass:"compare-box dokan-pro"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-pro-logo@2x.png",alt:"Dokan Pro"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.pro},["available"===t.compare.pro?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}),0)])])]),e._v(" "),a("div",{staticClass:"pricing-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("The Packages We Provide","dokan-lite")))]),e._v(" "),a("div",{staticClass:"pricing-wrapper"},[e._m(0),e._v(" "),e._l(e.modules,function(t){return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"},[a("a",{staticClass:"module-name",attrs:{href:t.url,target:"_blank"}},[e._v(e._s(t.title))])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.starter.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.starter.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.starter.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col popular"},["numeric"===t.professional.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.professional.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.professional.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.business.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.business.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.business.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.enterprise.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.enterprise.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.enterprise.value,alt:""}})])])])}),e._v(" "),a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn starter",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15316&attribute_pa_license=starter",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("a",{staticClass:"buy-btn professional",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15314&attribute_pa_license=professional",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn business",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15315&attribute_pa_license=business",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn enterprise",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=103829&attribute_pa_license=enterprise",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])])])],2)]),e._v(" "),a("div",{staticClass:"payment-section"},[a("div",{staticClass:"guarantee-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.payment.guaranteeThumbnail,alt:"Dokan"}})]),e._v(" "),a("div",{staticClass:"guarantee-detail"},[a("h2",[e._v(e._s(e.__("14 Days Money Back Guarantee","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("After successful purchase, you will be eligible for conditional refund","dokan-lite")))]),e._v(" "),a("a",{attrs:{href:e.payment.termsPolicyUrl,target:"_blank"}},[a("img",{attrs:{src:e.payment.viewIcon,alt:"Dokan"}}),e._v(" "+e._s(e.__("Terms & Condition Applied","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"payment-area"},[a("h3",[e._v(e._s(e.__("Payment Options:","dokan-lite")))]),e._v(" "),a("div",{staticClass:"option"},[a("img",{attrs:{src:e.payment.thumbnail,alt:"Credit Card"}})])])]),e._v(" "),a("div",{staticClass:"testimonial-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("People We Have Helped","dokan-lite")))]),e._v(" "),a("div",{staticClass:"testimonial-wrapper"},[a("slick",{ref:"slick",attrs:{options:e.slickOptions}},e._l(e.testimonials,function(t){return a("div",{staticClass:"testimonial-box"},[a("div",{staticClass:"profile-pic"},[a("img",{attrs:{src:t.pic,alt:""}})]),e._v(" "),a("div",{staticClass:"content-detail",style:{"background-image":"url("+e.asstesUrl+"/images/premium/quote-icon.png)"}},[a("h4",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(t.designation))]),e._v(" "),a("p",[e._v(e._s(t.content))])])])}),0)],1),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.sprintf("%s <a href='%s' target='_blank'>%s</a> %s",e.__("We are proud to say the official","dokan-lite"),"https://themes.getbootstrap.com/","Bootstrap theme marketplace",e.__("is built using Dokan","dokan-lite")))}})]),e._v(" "),a("ProCta")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name starter"},[e._v("Starter")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("149")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("div",{staticClass:"plan-name professional"},[e._v("Professional")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("249")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name business"},[e._v("Business")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("499")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name enterprise"},[e._v("Enterprise")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("999")]),e._v(" "),a("span",[e._v("/year")])])])])}]};t.a=n},function(e,t,a){"use strict";var s=a(51),n=a(133),i=!1;var o=function(e){i||a(132)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Help.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-help-page"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("h1",[e._v(e._s(e.__("Help","dokan-lite")))]),e._v(" "),null!==e.docs?a("div",{staticClass:"section-wrapper"},e._l(e.docs,function(t,s){return a("postbox",{key:s,attrs:{title:t.title}},[a("ul",e._l(t.questions,function(t){return a("li",[a("span",{staticClass:"dashicons dashicons-media-text"}),e._v(" "),a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_medium=dokan-help-page",target:"_blank"}},[e._v(e._s(t.title))])])}),0)])}),1):a("div",{staticClass:"loading"},[a("loading")],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(52),n=a(169),i=!1;var o=function(e){i||a(135)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Settings.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(53),n=a(165),i=!1;var o=function(e){i||a(137)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Fields.vue",t.a=r.exports},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.shoudShow?a("tr",{class:[e.id,"dokan-settings-field-type-"+e.fieldData.type]},["sub_section"===e.fieldData.type?[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.fieldData.label))])])]:e._e(),e._v(" "),e.containCommonFields(e.fieldData.type)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",["checkbox"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class: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: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:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:e.fieldData.type||"text"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"number"===e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"number",min:e.fieldData.min,max:e.fieldData.max,step:e.fieldData.step,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"price"==e.fieldData.type&&e.allSettingsValues.dokan_selling&&"combine"!==e.allSettingsValues.dokan_selling.commission_type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:{wc_input_decimal:"percentage"==e.allSettingsValues.dokan_selling.commission_type,wc_input_price:"flat"==e.allSettingsValues.dokan_selling.commission_type},attrs:{type:"text",min:e.fieldData.min,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"combine"==e.fieldData.type&&e.haveCondition(e.fieldData)&&"show"==e.fieldData.condition.type&&e.checkConditionLogic(e.fieldData,e.fieldValue)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"percent_fee"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.percent_fee.name],expression:"fieldValue[fieldData.fields.percent_fee.name]"}],staticClass:"wc_input_decimal regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][percent_fee]",name:e.sectionId+"["+e.fieldData.fields.percent_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.percent_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.percent_fee.name,t.target.value)}}}),e._v("\n "+e._s("%")+"\n ")]),e._v(" "),a("td",{staticClass:"fixed_fee"},[e._v("\n "+e._s("+")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.fixed_fee.name],expression:"fieldValue[fieldData.fields.fixed_fee.name]"}],staticClass:"wc_input_price regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][fixed_fee]",name:e.sectionId+"["+e.fieldData.fields.fixed_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.fixed_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.fixed_fee.name,t.target.value)}}})]),e._v(" "),e.hasError(e.fieldData.fields.percent_fee.name)&&e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.__("Both percentage and fixed fee is required.","dokan-lite"))+"\n ")]):e.hasError(e.fieldData.fields.percent_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.percent_fee.label))+"\n ")]):e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.fixed_fee.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})]:e._e(),e._v(" "),"textarea"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"textarea",rows:e.fieldData.rows,cols:e.fieldData.cols,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"checkbox"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]","true-value":"on","false-value":"off"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e._q(e.fieldValue[e.fieldData.name],"on")},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=s.checked?"on":"off";if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&e.$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._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._e(),e._v(" "),"select"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.fieldData.grouped?a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t){return a("optgroup",{attrs:{label:t.group_label}},e._l(t.group_values,function(t){return a("option",{domProps:{value:t.value,innerHTML:e._s(t.label)}})}),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(" "),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(" "),"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)+" "),a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){return t.preventDefault(),e.removeItem(s,e.fieldData.name)}}})]):e._e()}),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.repeatableItem[e.fieldData.name],expression:"repeatableItem[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"text"},domProps:{value:e.repeatableItem[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.repeatableItem,e.fieldData.name,t.target.value)}}}),e._v(" "),a("a",{staticClass:"button dokan-repetable-add-item-btn",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.addItem(e.fieldData.type,e.fieldData.name)}}},[e._v("+")]),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio_image"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("div",{staticClass:"radio-image-container"},[e._l(e.fieldData.options,function(t,s){return[a("label",{staticClass:"radio-image",class:{active:e.fieldValue[e.fieldData.name]===s,"not-active":e.fieldValue[e.fieldData.name]!==s}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",name:e.fieldData.name},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){return e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "),a("span",{staticClass:"current-option-indicator"},[a("span",{staticClass:"dashicons dashicons-yes"}),e._v(" "+e._s(e.__("Active","dokan-lite")))]),e._v(" "),a("img",{attrs:{src:t}}),e._v(" "),a("span",{staticClass:"active-option"},[a("button",{staticClass:"button button-primary button-hero",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.fieldValue[e.fieldData.name]=s}}},[e._v("\n "+e._s(e.__("Select","dokan-lite"))+"\n ")])])])]})],2)])]:e._e(),e._v(" "),"gmap"!=e.fieldData.type||e.hideMap?e._e():[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{attrs:{type:"hidden",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.mapLocation}}),e._v(" "),"mapbox"===e.mapApiSource?a("Mapbox",{attrs:{accessToken:e.mapboxAccessToken,location:e.mapLocation,width:"100%",height:"300px"},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}):a("GoogleMaps",{attrs:{apiKey:e.googleMapApiKey,location:e.mapLocation},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]],2):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(62),n=a(168),i=!1;var o=function(e){i||a(167)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/SettingsBanner.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-settings-banner"}},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Settings Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("h1",[e._v(e._s(e.__("Looking for Coupons, Variable Products, SEO or Shipping?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Unlock these awesome frontend features with Dokan PRO","dokan-lite")))]),e._v(" "),a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("router-link",{staticClass:"button custom-button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"dokan-settings"},[a("h2",{staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.__("Settings","dokan-lite")))]),e._v(" "),e.isSaved?a("div",{staticClass:"settings-error notice is-dismissible",class:{updated:e.isUpdated,error:!e.isUpdated},attrs:{id:"setting-message_updated"}},[a("p",[a("strong",{domProps:{innerHTML:e._s(e.message)}})]),e._v(" "),a("button",{staticClass:"notice-dismiss",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.isSaved=!1}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Dismiss this notice.","dokan-lite")))])])]):e._e(),e._v(" "),a("div",{staticClass:"dokan-settings-wrap"},[a("div",{staticClass:"nav-tab-wrapper"},[a("div",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],ref:"searchInSettings",staticClass:"dokan-admin-search-settings",attrs:{type:"text",placeholder:"Search e.g. vendor"},domProps:{value:e.searchText},on:{input:[function(t){t.target.composing||(e.searchText=t.target.value)},e.searchInSettings]}}),e._v(" "),""!==e.searchText?a("span",{staticClass:"dashicons dashicons-no-alt",on:{click:function(t){return t.preventDefault(),e.clearSearch(t)}}}):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,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}),1)]),e._v(" "),a("p",{staticClass:"submit"},[a("input",{staticClass:"button button-primary",attrs:{type:"submit",name:"submit",id:"submit",value:"Save Changes"},on:{click:function(t){return t.preventDefault(),e.saveSettings(e.settingValues[s],s)}}})])])]):e._e()]:e._e()})],2),e._v(" "),e.showLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e()])]),e._v(" "),e.hasPro?e._e():a("SettingsBanner")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(63),n=a(175),i=!1;var o=function(e){i||a(171)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Vendors.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(64),n=a(174),i=!1;var o=function(e){i||a(173)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/AddVendor.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-vendor-edit"},[a("modal",{attrs:{title:e.title,width:"800px"},on:{close:e.closeModal}},[a("div",{attrs:{slot:"body"},slot:"body"},[a("div",{staticClass:"tab-header"},[a("ul",{staticClass:"tab-list"},e._l(e.tabs,function(t,s){return a("li",{key:s,class:{"tab-title":!0,active:e.currentTab===t.name,last:"VendorPaymentFields"===t.name}},[a("div",{staticClass:"tab-link"},[a("a",{class:{first:"VendorAccountFields"===t.name},attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.currentTab=t.name}}},[a("span",{class:[t.icon]}),e._v("\n "+e._s(t.label)+"\n ")])])])}),0)]),e._v(" "),e.currentTab?a("div",{staticClass:"tab-contents"},[e.isLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),e.isLoading?e._e():a("transition",{attrs:{name:"component-fade",mode:"out-in"}},[a(e.currentTab,{tag:"component",attrs:{vendorInfo:e.store,errors:e.errors}})],1)],1):e._e()]),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("button",{staticClass:"button button-primary button-hero",on:{click:e.createVendor}},[e._v(e._s("VendorPaymentFields"===e.currentTab?e.__("Create Vendor","dokan-lite"):this.nextBtn))])])])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"vendor-list"},[a("h1",{staticClass:"wp-heading-inline"},[e._v(e._s(e.__("Vendors","dokan-lite")))]),e._v(" "),a("button",{staticClass:"page-title-action",on:{click:function(t){return e.addNew()}}},[e._v(e._s(e.__("Add New","dokan-lite")))]),e._v(" "),e._l(e.dokanVendorHeaderArea,function(e,t){return a(e,{key:t,tag:"component"})}),e._v(" "),a("hr",{staticClass:"wp-header-end"}),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"all"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("All","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.all))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1)]),e._v(" "),a("search",{attrs:{title:e.__("Search Vendors","dokan-lite")},on:{searched:e.doSearch}}),e._v(" "),a("list-table",{attrs:{columns:e.columns,loading:e.loading,rows:e.vendors,actions:e.actions,actionColumn:"store_name","show-cb":e.showCb,"total-items":e.totalItems,"bulk-actions":e.bulkActions,"total-pages":e.totalPages,"per-page":e.perPage,"current-page":e.currentPage,"action-column":e.actionColumn,"not-found":"No vendors found.","sort-by":e.sortBy,"sort-order":e.sortOrder,text:e.$root.listTableTexts()},on:{sort:e.sortCallback,pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction,searched:e.doSearch},scopedSlots:e._u([{key:"store_name",fn:function(t){return[a("img",{attrs:{src:t.row.gravatar,alt:t.row.store_name,width:"50"}}),e._v(" "),a("strong",[e.hasPro?a("router-link",{attrs:{to:"/vendors/"+t.row.id}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))])],1)]}},{key:"email",fn:function(t){return[a("a",{attrs:{href:"mailto:"+t.row.email}},[e._v(e._s(t.row.email))])]}},{key:"categories",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.categories.map(function(e){return e.name}).join(", "))+"\n ")]}},{key:"registered",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.registered).format("MMM D, YYYY"))+"\n ")]}},{key:"enabled",fn:function(t){return[a("switches",{attrs:{enabled:t.row.enabled,value:t.row.id},on:{input:e.onSwitch}})]}},{key:"row-actions",fn:function(t){return e._l(e.actions,function(s,n){return a("span",{class:s.key},[e.hasPro&&"edit"==s.key?a("router-link",{attrs:{to:{path:"vendors/"+t.row.id,query:{edit:"true"}}}},[e._v(e._s(s.label))]):e.hasPro||"edit"!=s.key?"products"==s.key?a("a",{attrs:{href:e.productUrl(t.row.id)}},[e._v(e._s(s.label))]):"orders"==s.key?a("a",{attrs:{href:e.ordersUrl(t.row.id)}},[e._v(e._s(s.label))]):"switch_to"==s.key?a("a",{attrs:{href:e.switchToUrl(t.row)}},[e._v(e._s(s.label))]):a("a",{attrs:{href:"#"}},[e._v(e._s(s.label))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(s.label))]),e._v(" "),n!==e.actions.length-1?[e._v(" | ")]:e._e()],2)})}}])}),e._v(" "),e.loadAddVendor?a("add-vendor",{attrs:{"vendor-id":e.vendorId}}):e._e()],2)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(65),n=a(178),i=!1;var o=function(e){i||a(177)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorCapabilities.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-vendor-capabilities"}},[a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")])])]),e._v(" "),a("div",{staticClass:"grid"},e._l(e.capabilityCards,function(t){return a("div",{staticClass:"col-6"},[a("div",{staticClass:"capability-card"},[a("div",{staticClass:"capability-image"},[a("img",{staticClass:"image",attrs:{src:t.image,alt:e.__("Dokan Capability","dokan-lite")}}),e._v(" "),a("div",{staticClass:"middle"},[a("div",{staticClass:"zoom",on:{click:function(a){return e.openPopup(t.image)}}},[a("div",{staticClass:"dashicons dashicons-search"})])])]),e._v(" "),a("p",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"content"},[e._v(e._s(t.content))])])])}),0),e._v(" "),a("ProCta"),e._v(" "),e.showPopup?a("div",{attrs:{id:"dokan-capability-image-popup"},on:{click:e.closePopup}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"body"},[a("img",{attrs:{src:this.selectedCapabilityImage,alt:e.__("Dokan Capability","dokan-lite")}})])])]):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(66),n=a(184),i=!1;var o=function(e){i||a(180)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/ProModules.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(67),n=a(183),i=!1;var o=function(e){i||a(182)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ModuleUpgradePopup.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-upgrade-to-pro-wrapper"}},[e.showPopup?a("div",{attrs:{id:"dokan-upgrade-popup"}},[a("div",{staticClass:"modal-content"},[a("span",{staticClass:"close",on:{click:e.closePopup}}),e._v(" "),a("div",{staticClass:"header"},[a("img",{attrs:{src:e.headerImage,alt:e.__("Dokan Upgrade Popup","dokan-lite")}}),e._v(" "),a("h1",[e._v(e._s(e.__("Unlock 20+ Modules","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-brand"},[e._v(e._s(e.__("with Dokan Premium Plans","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-disabled"},[e._v("\n "+e._s(e.__("We’re sorry, Dokan Modules are not available on Dokan Lite. Please upgrade to a PRO plan to unlock the modules of your choice.","dokan-lite"))+"\n ")])]),e._v(" "),a("div",{staticClass:"body"},[a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("div",{staticClass:"promo-card"},[a("img",{attrs:{src:e.bonusImage,alt:e.__("Dokan Upgrade Promo","dokan-lite")}}),e._v(" "),a("p",[e._v(e._s(e.__("Bonus: Dokan Lite users get 30% off regular price. Click on the link above to obtain the coupon & apply it during checkout.","dokan-lite")))])]),e._v(" "),a("span",[a("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://wedevs.com/docs/dokan/getting-started/installation-2/"}},[e._v(e._s(e.__("Already upgraded?","dokan-lite")))])])])])]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"lite-modules"}},[a("div",{staticClass:"dokan-modules-wrap"},[a("h1",[e._v(e._s(e.__("Modules","dokan")))]),e._v(" "),a("div",{staticClass:"module-content"},[a("div",{staticClass:"wp-list-table widefat dokan-modules"},[e.modules.length>0?e._l(e.modules,function(t){return a("div",{staticClass:"plugin-card"},[a("div",{staticClass:"plugin-card-top"},[a("div",{staticClass:"name column-name"},[a("h3",[a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[e._v(e._s(t.name))]),e._v(" "),a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[a("img",{staticClass:"plugin-icon",attrs:{src:t.thumbnail,alt:t.name}})])])]),e._v(" "),a("div",{staticClass:"action-links"},[a("ul",{staticClass:"plugin-action-buttons"},[a("li",{on:{click:function(t){return e.togglePopup(!0)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20"}},[a("rect",{attrs:{width:"42",height:"20",rx:"10",fill:"#c0c3c6"}}),a("circle",{attrs:{cx:"6",cy:"6",r:"6",transform:"translate(6 4)",fill:"#fff"}})])])])]),e._v(" "),a("div",{staticClass:"desc column-description"},[a("p",{domProps:{innerHTML:e._s(t.description)}})]),e._v(" "),a("div",{staticClass:"card-footer"},[a("a",{attrs:{href:t.docLink,target:"_blank"}},[e._v(e._s(e.__("Documentation","dokan")))])])])])}):[a("div",{staticClass:"notice notice-info",attrs:{id:"message"}},[a("p",[a("strong",[e._v(e._s(e.__("No modules found.","dokan")))])])])]],2)])]),e._v(" "),a("ModuleUpgradePopup",{attrs:{"show-popup":e.showPopup},on:{toggle:e.togglePopup}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";t.a=function(e){var t=jQuery,a=t("#toplevel_page_"+e),s=window.location.href,n=s.substr(s.indexOf("admin.php"));a.on("click","a",function(){var e=t(this);t("ul.wp-submenu li",a).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",a).addClass("current"):e.parents("li").addClass("current")}),t("ul.wp-submenu a",a).each(function(e,a){t(a).attr("href")!==n||t(a).parent().addClass("current")})}}],[105]);
|
1 |
+
dokanWebpack([0],[,,function(e,t,a){"use strict";var s=a(10),n=a(28),i=!1;var o=function(e){i||a(27)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var s=a(15);t.a={extends:s.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",s=t.datasets[e.datasetIndex].tooltipLabel||"",n=t.datasets[e.datasetIndex].tooltipPrefix||"",i=s?s+": ":a+": ";return i+=n+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},function(e,t,a){"use strict";var s=a(46),n=a(117),i=!1;var o=function(e){i||a(116)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UpgradeBanner.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(54);t.a={components:{Sketch:s.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var s=a(1),n=(a.n(s),a(2)),i=a(16),o=a(17);t.a={name:"VendorAccountFields",components:{Switches:n.a,UploadImage:i.a,PasswordGenerator:o.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(s.debounce)(this.checkStore,this.delay),this.checkUsername=Object(s.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(s.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},s={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,s,n,i){return(!0!==e||!0!==t)&&((!0!==e||s!==i)&&((!0!==t||a!==n)&&((a!==n||s!==i)&&!(n<=a))))}},n=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:s})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=n,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,s,n,i,o,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);o=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,o,i)),(s=o)/(n=i)>(a=l/d)?l=(d=n)*a:d=(l=s)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var s=a(3);a.n(s);t.a={name:"VendorAddressFields",components:{Multiselect:s.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],s=a&&a[e];return void 0!==s?s:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var s in a)if(s===e&&!(a[s]&&a[s].length<1))for(var n in a[s])t.push({name:a[s][n],code:n});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var s=a(2),n=a(3);a.n(n);t.a={name:"VendorPaymentFields",components:{Switches:s.a,Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,s=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=s}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t,a){"use strict";var s=a(11),n=a(30),i=!1;var o=function(e){i||a(29)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var s=a(12),n=a(31),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var s=a(6),n=a(0)(s.a,null,!1,null,null,null);n.options.__file="src/admin/components/Chart.vue",t.a=n.exports},,function(e,t){e.exports=jQuery},function(e,t,a){"use strict";var s=a(8),n=a(25),i=!1;var o=function(e){i||a(24)},r=a(0)(s.a,n.a,!1,o,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){return e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){return e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(9),n=a(32),i=a(0)(s.a,n.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){return t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){return t.preventDefault(),e.generatePassword(t)}}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.showCancelButton?a("button",{staticClass:"button regen-button",on:{click:function(t){return t.preventDefault(),e.regenratePassword(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){return t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(13),n=a(35),i=!1;var o=function(e){i||a(34)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(14),n=a(38),i=!1;var o=function(e){i||a(37)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,s){return a(t,{key:s,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,,function(e,t,a){"use strict";t.a={name:"App"}},function(e,t,a){"use strict";var s=a(20),n=a(7),i=dokan_get_lib("Postbox"),o=dokan_get_lib("Loading"),r=dokan_get_lib("Currency");t.a={name:"Dashboard",components:{Postbox:i,Loading:o,Chart:s.a,Currency:r,UpgradeBanner:n.a},data:function(){return{overview:null,feed:null,report:null,subscribe:{success:!1,loading:!1,email:""},hasPro:!!dokan.hasPro}},created:function(){this.fetchOverview(),this.fetchFeed(),this.fetchReport()},methods:{fetchOverview:function(){var e=this;dokan.api.get("/admin/report/summary").done(function(t){e.overview=t})},fetchFeed:function(){var e=this;dokan.api.get("/admin/dashboard/feed").done(function(t){e.feed=t})},fetchReport:function(){var e=this;dokan.api.get("/admin/report/overview").done(function(t){e.report=t})},validEmail:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},emailSubscribe:function(){var e=this;this.validEmail(this.subscribe.email)&&(this.subscribe.loading=!0,jQuery.ajax({url:"https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?",data:{EMAIL:this.subscribe.email,"group[3555][8]":"1"},type:"GET",dataType:"json",cache:!1,contentType:"application/json; charset=utf-8"}).always(function(t){e.subscribe.success=!0,e.subscribe.loading=!1}))}}}},function(e,t,a){"use strict";t.a={name:"UpgradeBanner",data:function(){return{show:!0,upgradeURL:dokan.urls.upgradeToPro}},computed:{showUpgrade:function(){return!dokan.hasPro&&"show"===dokan.proNag}},methods:{dismiss:function(){this.show=!1,wp.ajax.post("dokan-upgrade-dissmiss")}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("ListTable"),i=dokan_get_lib("Modal"),o=dokan_get_lib("Currency");t.a={name:"Withdraw",components:{ListTable:n,Modal:i,Currency:o,UpgradeBanner:s.a},data:function(){return{showModal:!1,editing:{id:null,note:null},totalPages:1,perPage:10,totalItems:0,counts:{pending:0,approved:0,cancelled:0},notFound:this.__("No requests found.","dokan-lite"),massPayment:this.__("Paypal Mass Payment File is Generated.","dokan-lite"),showCb:!0,loading:!1,columns:{seller:{label:this.__("Vendor","dokan-lite")},amount:{label:this.__("Amount","dokan-lite")},status:{label:this.__("Status","dokan-lite")},method_title:{label:this.__("Method","dokan-lite")},method_details:{label:this.__("Details","dokan-lite")},note:{label:this.__("Note","dokan-lite")},created:{label:this.__("Date","dokan-lite")},actions:{label:this.__("Actions","dokan-lite")}},requests:[],actionColumn:"seller",hasPro:!!dokan.hasPro}},watch:{"$route.query.status":function(){this.fetchRequests()},"$route.query.page":function(){this.fetchRequests()}},computed:{currentStatus:function(){return this.$route.query.status||"pending"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},actions:function(){return"pending"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"cancel",label:this.__("Cancel","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"trash",label:this.__("Delete","dokan-lite")},{key:"pending",label:this.__("Pending","dokan-lite")}]:[]},bulkActions:function(){return"pending"==this.currentStatus?[{key:"approved",label:this.__("Approve","dokan-lite")},{key:"cancelled",label:this.__("Cancel","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:"cancelled"==this.currentStatus?[{key:"pending",label:this.__("Pending","dokan-lite")},{key:"delete",label:this.__("Delete","dokan-lite")},{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]:[{key:"paypal",label:this.__("Download PayPal mass payment file","dokan-lite")}]}},created:function(){this.fetchRequests()},methods:{updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Completed")),this.counts.cancelled=parseInt(e.getResponseHeader("X-Status-Cancelled"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},vendorUrl:function(e){return"1"===window.dokan.hasPro?dokan.urls.adminRoot+"admin.php?page=dokan#/vendors/"+e:dokan.urls.adminRoot+"user-edit.php?user_id="+e},fetchRequests:function(){var e=this;this.loading=!0,dokan.api.get("/withdraw?per_page="+this.perPage+"&page="+this.currentPage+"&status="+this.currentStatus).done(function(t,a,s){e.requests=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},goToPage:function(e){this.$router.push({name:"Withdraw",query:{status:this.currentStatus,page:e}})},updateItem:function(e,t){var a=this.requests.findIndex(function(t){return t.id==e});this.$set(this.requests,a,t)},changeStatus:function(e,t){var a=this;this.loading=!0,dokan.api.put("/withdraw/"+t,{status:e}).done(function(e){a.loading=!1,a.fetchRequests()})},onActionClick:function(e,t){var a=this;"cancel"===e&&this.changeStatus("cancelled",t.id),"pending"===e&&this.changeStatus("pending",t.id),"trash"===e&&confirm(this.__("Are you sure?","dokan-lite"))&&(this.loading=!0,dokan.api.delete("/withdraw/"+t.id).done(function(e){a.loading=!1,a.fetchRequests()}))},getPaymentDetails:function(e,t){var a="—";return void 0!==t[e]&&("paypal"===e||"skrill"===e?a=t[e].email||"":"bank"===e&&(t.bank.hasOwnProperty("ac_name")&&(a="<p>"+this.sprintf(this.__("Account Name: %s","dokan-lite"),t.bank.ac_name)+"</p>"),t.bank.hasOwnProperty("ac_number")&&(a+="<p>"+this.sprintf(this.__("Account Number: %s","dokan-lite"),t.bank.ac_number)+"</p>"),t.bank.hasOwnProperty("bank_name")&&(a+="<p>"+this.sprintf(this.__("Bank Name: %s","dokan-lite"),t.bank.bank_name)+"</p>"),t.bank.hasOwnProperty("iban")&&(a+="<p>"+this.sprintf(this.__("IBAN: %s","dokan-lite"),t.bank.iban)+"</p>"),t.bank.hasOwnProperty("routing_number")&&(a+="<p>"+this.sprintf(this.__("Routing Number: %s","dokan-lite"),t.bank.routing_number)+"</p>"),t.bank.hasOwnProperty("swift")&&(a+="<p>"+this.sprintf(this.__("Swift Code: %s","dokan-lite"),t.bank.swift)+"</p>"))),dokan.hooks.applyFilters("dokan_get_payment_details",a,e,t)},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),onBulkAction:function(e,t){var a=this,s=this;if(_.contains(["delete","approved","cancelled","pending"],e)){var n={};n[e]=t,this.loading=!0,dokan.api.put("/withdraw/batch",n).done(function(e){a.loading=!1,a.fetchRequests()})}if("paypal"===e){var i=t.join(",");jQuery.post(ajaxurl,{dokan_withdraw_bulk:"paypal",id:i,action:"withdraw_ajax_submission",nonce:dokan.nonce},function(e,t,a){if("html/csv"===a.getResponseHeader("Content-type")){var n="",i=a.getResponseHeader("Content-Disposition");if(i&&-1!==i.indexOf("attachment")){var o=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i);null!=o&&o[1]&&(n=o[1].replace(/['"]/g,""))}var r=a.getResponseHeader("Content-Type"),l="function"==typeof File?new File([e],n,{type:r}):new Blob([e],{type:r});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(l,n);else{var d=window.URL||window.webkitURL,c=d.createObjectURL(l);if(n){var u=document.createElement("a");void 0===u.download?window.location=c:(u.href=c,u.download=n,document.body.appendChild(u),u.click())}else window.location=c;setTimeout(function(){d.revokeObjectURL(c)},100)}}e&&alert(s.massPayment)})}},openNoteModal:function(e,t){this.showModal=!0,this.editing={id:t,note:e}},updateNote:function(){var e=this;this.showModal=!1,this.loading=!0,dokan.api.put("/withdraw/"+this.editing.id,{note:this.editing.note}).done(function(t){e.loading=!1,e.updateItem(e.editing.id,t),e.editing={id:null,note:null}})}}}},function(e,t,a){"use strict";var s=a(49),n=a(126),i=(a.n(n),a(129));t.a={name:"Premium",components:{Slick:i.a,ProCta:s.a},data:function(){return{asstesUrl:dokan.urls.assetsUrl,buyNowProUrl:"https://wedevs.com/account/",services:[{title:this.__("Premium modules to make everything easier & better","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-01@2x.png"},{title:this.__("Frontend dashboard for vendors with advanced controls","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-02@2x.png"},{title:this.__("Unlimited Product Variations and group product upload","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-03@2x.png"},{title:this.__("Zone wise shipping with multiple method for vendors","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-04@2x.png"},{title:this.__("Store support based on ticket system for your customers","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-05@2x.png"},{title:this.__("Vendors will be able to generate coupon codes","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-06@2x.png"},{title:this.__("Earning, Selling and Commission Reports & Statement","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-07@2x.png"},{title:this.__("24/7 super fast premium customer support for you","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-08@2x.png"},{title:this.__("Add Social profile to your vendor’s store and support for store SEO","dokan-lite"),thumbnail:dokan.urls.assetsUrl+"/images/premium/service-09@2x.png"}],comparisons:[{title:this.__("Frontend order management","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Seller Statement Reports","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Making Announcements","dokan-lite"),compare:{lite:"available",pro:"available"}},{title:this.__("Customized Product Categories","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store SEO","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Back Ordering System","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Store Contact Form","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Single Product Multiple Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Seller Verification","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Featured Seller","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Multiple Commission Types","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Frontend Shipping Tracking","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Setup Wizard","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Google Maps","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Manage reviews","dokan-lite"),compare:{lite:"unavailable",pro:"available"}},{title:this.__("Bookable Product","dokan-lite"),compare:{lite:"unavailable",pro:"available"}}],modules:[{title:"Domain",url:"https://wedevs.com/dokan/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"03"},business:{type:"numeric",value:"05"},enterprise:{type:"numeric",value:"20"}},{title:"Modules",url:"https://wedevs.com/dokan/modules/",starter:{type:"numeric",value:"01"},professional:{type:"numeric",value:"08"},business:{type:"numeric",value:"14"},enterprise:{type:"numeric",value:"14"}},{title:"Color Scheme",url:"https://wedevs.com/dokan/modules/color-scheme-customizer/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Review",url:"https://wedevs.com/dokan/modules/dokan-vendor-review/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Store Support",url:"https://wedevs.com/dokan/modules/store-support/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Auction",url:"https://wedevs.com/dokan/modules/dokan-simple-auctions/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Ajax Live Search",url:"https://wedevs.com/dokan/modules/ajax-live-search/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Stripe Connect",url:"https://wedevs.com/dokan/modules/stripe-connect/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Subscriptions",url:"https://wedevs.com/dokan/modules/subscription/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Single Product Multivendor",url:"https://wedevs.com/dokan/modules/single-product-multivendor/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Seller Verification",url:"https://wedevs.com/dokan/modules/seller-verification/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"WC Booking Integration",url:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Staff Manager",url:"https://wedevs.com/dokan/modules/vendor-staff-manager/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Export Import",url:"https://wedevs.com/dokan/modules/export-import/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Product Enquiry",url:"https://wedevs.com/dokan/modules/product-enquiry/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Vendor Vacation",url:"https://wedevs.com/dokan/modules/vendor-vacation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Return and Warranty Request",url:"https://wedevs.com/dokan/modules/rma/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Moip",url:"https://wedevs.com/dokan/modules/moip/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Follow Store",url:"https://wedevs.com/dokan/modules/follow-store/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Geolocation",url:"https://wedevs.com/dokan/modules/geolocation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Shipstation",url:"https://wedevs.com/dokan/modules/shipstation/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}},{title:"Wholesale",url:"https://wedevs.com/dokan/modules/wholesale/",starter:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},professional:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/unavailable@2x.png"},business:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"},enterprise:{type:"icon",value:dokan.urls.assetsUrl+"/images/premium/available@2x.png"}}],payment:{thumbnail:dokan.urls.assetsUrl+"/images/premium/payment-options.png",guaranteeThumbnail:dokan.urls.assetsUrl+"/images/premium/gaurantee-thumb.png",viewIcon:dokan.urls.assetsUrl+"/images/premium/view-icon@2x.png",termsPolicyUrl:"https://wedevs.com/refund-policy/"},slickOptions:{slidesToShow:1,fade:!0,speed:500,cssEase:"linear",autoplay:!0,autoplaySpeed:2e3,infinite:!0,accessibility:!0,adaptiveHeight:!1,arrows:!1,dots:!0,draggable:!0,edgeFriction:.3,swipe:!0},testimonials:[{name:"Melissa McGovern",designation:"Director, Hawk And PeddleProjects",pic:dokan.urls.assetsUrl+"/images/premium/melissa.jpg",content:"We're still a new business and are continuing to build our platform. Dokan has halved the time it would take us to build our ecommerce platform by being feature rich and easy to install and configure."},{name:"Morten J. Christensen",designation:"Owner, Dincatering",pic:dokan.urls.assetsUrl+"/images/premium/Morten-J.-Christensen.jpg",content:"First and foremost it enables the possibility for actually creating the kind of marketplace i wanted. The plugin lets me create a local marketplace for local danish catering suppliers to showcase and sell their offers of the season."},{name:"Cédric Lefrancq",designation:"Webmaster, Unwebmaster.Be",pic:dokan.urls.assetsUrl+"/images/premium/cedric-lefrancq.jpeg",content:"The support is very good. The plugin is perfect. Bugs are fixed very quickly. That’s a very good plugin."},{name:"David Gaz",designation:"Founder, The Bureau Of Small Projects",pic:dokan.urls.assetsUrl+"/images/premium/david-gaz.jpeg",content:"It’s hands down an amazing plugin. But their support is even more amazing. They got back to me within hours on the weekend."}],cta:{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.buynowpro}}},methods:{next:function(){this.$refs.slick.next()},prev:function(){this.$refs.slick.prev()},reInit:function(){var e=this;this.$nextTick(function(){e.$refs.slick.reSlick()})}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(50),n=a(125),i=!1;var o=function(e){i||a(124)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ProCta.vue",t.a=r.exports},function(e,t,a){"use strict";t.a={name:"ProCta",data:function(){return{styles:{bgPattern:dokan.urls.assetsUrl+"/images/premium/cta-pattern@2x.png"},thumbnail:dokan.urls.assetsUrl+"/images/premium/cta-dokan-logo.png",url:dokan.urls.upgradeToPro}}}},function(e,t,a){"use strict";var s=a(7),n=dokan_get_lib("Postbox"),i=dokan_get_lib("Loading");t.a={name:"Help",components:{Postbox:n,Loading:i,UpgradeBanner:s.a},data:function(){return{docs:null,hasPro:!!dokan.hasPro}},created:function(){this.fetch()},methods:{fetch:function(){var e=this;dokan.api.get("/admin/help").done(function(t){e.docs=t})}}}},function(e,t,a){"use strict";var s=a(136),n=a(166),i=a(7),o=dokan_get_lib("Loading");t.a={name:"Settings",components:{Fields:s.a,Loading:o,SettingsBanner:n.a,UpgradeBanner:i.a},data:function(){return{isSaved:!1,showLoading:!1,isUpdated:!1,isLoaded:!1,message:"",currentTab:null,settingSections:[],settingFields:{},settingValues:{},requiredFields:[],errors:[],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}}}).fail(function(e){var t=e.responseJSON.data.map(function(e){return e.message});alert(t.join(" "))}).always(function(){a.showLoading=!1})}},formIsValid:function(e){var t=this,a=Object.keys(this.settingFields),s=this.requiredFields;return!!a&&(a.forEach(function(a,n){if(e===a){var i=t.settingFields[a];Object.values(i).forEach(function(e){var t=e.fields;t&&Object.values(t).forEach(function(e){e&&e.required&&"yes"===e.required&&!s.includes(e.name)&&s.push(e.name)}),e&&e.required&&"yes"===e.required&&(s.includes(e.name)||s.push(e.name))})}}),this.errors=[],s.forEach(function(e){Object.values(t.settingValues).forEach(function(a){e in a&&a[e].length<1&&(t.errors.includes(e)||(t.errors.push(e),"flat"!==a.commission_type&&"percentage"!==a.commission_type||(t.errors=t.arrayRemove(t.errors,"admin_percentage"),t.errors=t.arrayRemove(t.errors,"additional_fee"))))})}),this.errors.length<1)},arrayRemove:function(e,t){return e.filter(function(e){return e!==t})},toggleLoadingState:function(){this.showLoading=!this.showLoading},clearSearch:function(){this.searchText="",this.validateBlankSearch()},validateBlankSearch:function(){return""!==this.searchText.toLowerCase()||(this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields,!1)},searchInSettings:function(e){var t=this;this.validateBlankSearch()&&(this.awaitingSearch||setTimeout(function(){var e=t.$refs.searchInSettings.value.toLowerCase();t.doSearch(e),t.awaitingSearch=!1},1e3),this.awaitingSearch=!0)},doSearch:function(e){var t=this,a={},s=[],n=[],i=dokan.settings_fields;Object.keys(i).forEach(function(t,n){Object.keys(i[t]).forEach(function(n,o){if("sub_section"!==i[t][n].type){var r=i[t][n].label.toLowerCase();r&&r.includes(e)&&(a[t]||(a[t]={}),a[t][n]=i[t][n],-1===s.indexOf(t)&&s.push(t))}})});var o=0;Object.keys(dokan.settings_sections).forEach(function(e,a){-1!==s.indexOf(dokan.settings_sections[e].id)&&(o||(t.changeTab(dokan.settings_sections[e]),o=1),n.push(dokan.settings_sections[e]))}),this.settingFields=a,this.settingSections=n}},created:function(){this.fetchSettingValues(),this.currentTab="dokan_general","undefined"!=typeof localStorage&&(this.currentTab=localStorage.getItem("activetab")?localStorage.getItem("activetab"):"dokan_general"),this.settingSections=dokan.settings_sections,this.settingFields=dokan.settings_fields}}},function(e,t,a){"use strict";var s=a(138),n=a.n(s),i=a(139),o=a.n(i),r=a(23);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c=dokan_get_lib("TextEditor"),u=dokan_get_lib("GoogleMaps"),p=dokan_get_lib("Mapbox"),m=dokan_get_lib("RefreshSettingOptions");t.a={name:"Fields",components:{colorPicker:r.a,TextEditor:c,GoogleMaps:u,Mapbox:p,RefreshSettingOptions:m},props:["id","fieldData","sectionId","fieldValue","allSettingsValues","errors","toggleLoadingState"],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")}}}},,,,,,,,,function(e,t,a){"use strict";t.a={name:"SettingsBanner",data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},computed:{bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-settings-banner.svg")}}}},function(e,t,a){"use strict";var s=a(172),n=a(7),i=dokan_get_lib("ListTable"),o=dokan_get_lib("Switches"),r=dokan_get_lib("Search");t.a={name:"Vendors",components:{ListTable:i,Switches:o,Search:r,AddVendor:s.a,UpgradeBanner:n.a},data:function(){return{showCb:!0,hasPro:dokan.hasPro,counts:{pending:0,approved:0,all:0},vendorId:0,totalItems:0,perPage:20,totalPages:1,loading:!1,columns:{store_name:{label:this.__("Store","dokan-lite"),sortable:!0},email:{label:this.__("E-mail","dokan-lite")},phone:{label:this.__("Phone","dokan-lite")},registered:{label:this.__("Registered","dokan-lite"),sortable:!0},enabled:{label:this.__("Status","dokan-lite")}},actionColumn:"title",actions:[{key:"edit",label:this.__("Edit","dokan-lite")},{key:"products",label:this.__("Products","dokan-lite")},{key:"orders",label:this.__("Orders","dokan-lite")}],bulkActions:[{key:"approved",label:this.__("Approve Vendors","dokan-lite")},{key:"pending",label:this.__("Disable Selling","dokan-lite")}],vendors:[],loadAddVendor:!1,dokanVendorHeaderArea:dokan.hooks.applyFilters("getDokanVendorHeaderArea",[]),isVendorSwitchingEnabled:!1}},watch:{"$route.query.status":function(){this.fetchVendors()},"$route.query.page":function(){this.fetchVendors()},"$route.query.orderby":function(){this.fetchVendors()},"$route.query.order":function(){this.fetchVendors()}},computed:{currentStatus:function(){return this.$route.query.status||"all"},currentPage:function(){var e=this.$route.query.page||1;return parseInt(e)},sortBy:function(){return this.$route.query.orderby||"registered"},sortOrder:function(){return this.$route.query.order||"desc"},storeCategory:function(){return this.$route.query.store_category||null}},created:function(){var e=this;this.$root.$on("modalClosed",function(){e.loadAddVendor=!1,e.vendorId=0}),this.fetchVendors(),this.$root.$on("vendorAdded",function(t){e.vendors.unshift(t)}),this.$root.$on("addAnotherVendor",function(){e.loadAddVendor=!0}),this.$root.$on("categoryFetched",function(t){e.categories=t.categories,e.isCategoryMultiple=t.isCategoryMultiple,e.columns=t.columns}),this.isVendorSwitchingEnabled=!!dokan.is_vendor_switching_enabled,this.isVendorSwitchingEnabled&&this.actions.push({key:"switch_to",label:this.__("Switch To","dokan-lite")})},methods:{addNew:function(){this.loadAddVendor=!0},doSearch:function(e){var t=this,a=this;a.loading=!0,dokan.api.get("/stores?search=".concat(e),{page:this.currentPage,orderby:this.sortBy,order:this.sortOrder}).done(function(e,s,n){a.vendors=e,a.loading=!1,t.updatedCounts(n),t.updatePagination(n)})},updatedCounts:function(e){this.counts.pending=parseInt(e.getResponseHeader("X-Status-Pending")),this.counts.approved=parseInt(e.getResponseHeader("X-Status-Approved")),this.counts.all=parseInt(e.getResponseHeader("X-Status-All"))},updatePagination:function(e){this.totalPages=parseInt(e.getResponseHeader("X-WP-TotalPages")),this.totalItems=parseInt(e.getResponseHeader("X-WP-Total"))},fetchVendors:function(){var e=this;e.loading=!0;var t={per_page:e.perPage,page:e.currentPage,status:e.currentStatus,orderby:e.sortBy,order:e.sortOrder,store_category:e.storeCategory};dokan.api.get("/stores",t).done(function(t,a,s){e.vendors=t,e.loading=!1,e.updatedCounts(s),e.updatePagination(s)})},onActionClick:function(e,t){"trash"===e&&confirm("Are you sure to delete?")&&alert("deleted: "+t.title)},onSwitch:function(e,t){var a=this,s=!1===e?this.__("The vendor has been disabled.","dokan-lite"):this.__("Selling has been enabled","dokan-lite");dokan.api.put("/stores/"+t+"/status",{status:!1===e?"inactive":"active"}).done(function(e){a.$notify({title:a.__("Success!","dokan-lite"),type:"success",text:s}),"all"!==a.currentStatus&&"pending"!==a.currentStatus&&"approved"!==a.currentStatus||a.fetchVendors()})},moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return moment(e)}),goToPage:function(e){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:e}})},onBulkAction:function(e,t){var a=this,s={};s[e]=t,this.loading=!0,dokan.api.put("/stores/batch",s).done(function(e){a.loading=!1,a.fetchVendors()})},sortCallback:function(e,t){this.$router.push({name:"Vendors",query:{status:this.currentStatus,page:1,orderby:e,order:t}})},productUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=product&author="+e},ordersUrl:function(e){return dokan.urls.adminRoot+"edit.php?post_type=shop_order&vendor_id="+e},editUrl:function(e){return dokan.urls.adminRoot+"user-edit.php?user_id="+e},switchToUrl:function(e){return e.switch_url}}}},function(e,t,a){"use strict";var s=a(26),n=a(33),i=a(36),o=dokan_get_lib("Modal"),r=dokan_get_lib("Loading");t.a={name:"AddVendor",props:["vendorId"],components:{Modal:o,Loading:r,VendorAccountFields:s.a,VendorAddressFields:n.a,VendorPaymentFields:i.a},data:function(){return{isLoading:!1,storeId:"",nextBtn:this.__("Next","dokan-lite"),title:this.__("Add New Vendor","dokan-lite"),tabs:{VendorAccountFields:{label:this.__("Account Info","dokan-lite"),name:"VendorAccountFields",icon:"dashicons dashicons-admin-users"},VendorAddressFields:{label:this.__("Address","dokan-lite"),name:"VendorAddressFields",icon:"dashicons dashicons-admin-home"},VendorPaymentFields:{label:this.__("Payment Options","dokan-lite"),name:"VendorPaymentFields",icon:"dashicons dashicons-money"}},currentTab:"VendorAccountFields",store:{store_name:"",user_pass:"",store_url:"",user_login:"",email:"",user_nicename:"",notify_vendor:!0,phone:"",banner:"",banner_id:"",gravatar:"",gravatar_id:"",social:{fb:"",youtube:"",twitter:"",linkedin:"",pinterest:"",instagram:""},payment:{bank:{ac_name:"",ac_number:"",bank_name:"",bank_addr:"",routing_number:"",iban:"",swift:""},paypal:{email:""}},address:{street_1:"",street_2:"",city:"",zip:"",state:"",country:""}},requiredFields:["store_name","user_login","email"],errors:[],storeAvailable:!1,userNameAvailable:!1,emailAvailable:!1,hasPro:dokan.hasPro}},created:function(){var e=this;this.$root.$on("vendorInfoChecked",function(t){e.storeAvailable=t.storeAvailable,e.userNameAvailable=t.userNameAvailable,e.emailAvailable=t.emailAvailable})},methods:{getId:function(){return this.$route.params.id},showAlert:function(e,t,a){this.$swal(e,t,a)},createVendor:function(){var e=this;this.formIsValid()&&("VendorPaymentFields"===this.currentTab&&(this.isLoading=!0,dokan.api.post("/stores/",this.store).done(function(t){e.$root.$emit("vendorAdded",t),e.$swal({type:"success",title:e.__("Vendor Created","dokan-lite"),text:e.__("A vendor has been created successfully!","dokan-lite"),showCloseButton:!0,showCancelButton:!0,confirmButtonText:e.__("Add Another","dokan-lite"),cancelButtonText:e.__("Edit Vendor","dokan-lite"),focusConfirm:!1}).then(function(a){a.value?e.$root.$emit("addAnotherVendor"):a.dismiss===e.$swal.DismissReason.cancel&&(e.hasPro?e.$router.push({path:"vendors/"+t.id,query:{edit:"true"}}):window.location.replace("".concat(dokan.urls.adminRoot,"user-edit.php?user_id=").concat(t.id)))})}).fail(function(t){e.showAlert(e.__(t.responseJSON.message,"dokan-lite"),"","error")}).always(function(){e.$root.$emit("modalClosed")})),this.currentTab="VendorPaymentFields"===this.currentTab?"VendorPaymentFields":this.nextTab(this.tabs,this.currentTab))},nextTab:function(e,t){var a=Object.keys(e),s=a[a.indexOf(t)+1];return s},closeModal:function(){this.$root.$emit("modalClosed")},formIsValid:function(){var e=this,t=this.requiredFields,a=this.store;return this.errors=[],t.forEach(function(t){t in a&&a[t].length<1&&e.errors.push(t)}),!!(this.errors.length<1&&this.storeAvailable&&this.userNameAvailable&&this.emailAvailable)||(this.currentTab="VendorAccountFields",!1)}}}},function(e,t,a){"use strict";var s=a(49);t.a={name:"VendorCapabilities",components:{ProCta:s.a},data:function(){return{showPopup:!1,selectedCapabilityImage:"",capabilityCards:[{title:this.__("Coupons","dokan-lite"),content:this.__("Each vendor can create unlimited discount coupon codes for their products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-coupon.svg")},{title:this.__("Shipping","dokan-lite"),content:this.__("Vendors can configure their own shipping costs for each country, state & single products.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-shipping.svg")},{title:this.__("Duplicate Product","dokan-lite"),content:this.__("Vendors can duplicate their own products for ease and time saving.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-duplicate-product.svg")},{title:this.__("Reporting","dokan-lite"),content:this.__("Earning, selling and commissions reports for vendors to improve sales & take major decisions.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-reports.svg")},{title:this.__("Create Tags","dokan-lite"),content:this.__("Vendors can create & attach tags to products to categorize & for better search engine optimization.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-create-tags.svg")},{title:this.__("Vendor Biography","dokan-lite"),content:this.__("Vendors can write about themselves & about their store in a text field which visitors can see from the store page","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-biography.svg")},{title:this.__("Vendor Product Upload","dokan-lite"),content:this.__("New vendors can start uploading products upon registration if admins allow.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-vendor-product-upload.svg")},{title:this.__("Order Status Change","dokan-lite"),content:this.__("Vendors will be able to mark products as draft & update the order status to inform customers about progress.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-order-status-change.svg")},{title:this.__("Social Share","dokan-lite"),content:this.__("Visitors and customers can share a store page with their friends and acquaintances on their social profiles.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-share.svg")},{title:this.__("Variable Product","dokan-lite"),content:this.__("Vendors can create variable products with predefined and custom attributes.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-variable-product.svg")},{title:this.__("Store Opening & Closing Time","dokan-lite"),content:this.__("Vendors can define the working hours of their online store for each day of the week for visitors to see.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-opening-closing-hours.svg")},{title:this.__("Woocommerce Booking Integration","dokan-lite"),content:this.__("Create hotel rooms, resorts, conference rooms, cars, bikes, etc for renting out.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-woocommerce-booking.svg")},{title:this.__("Announcement For Vendors","dokan-lite"),content:this.__("Admins can make announcements targeted to a single vendor, multiple or all vendors.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-announcement-vendors.svg")},{title:this.__("Woocommerce Simple Auctions Integration","dokan-lite"),content:this.__("Sell auction-able products in your store with Dokan’s integration.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-simple-auction.svg")},{title:this.__("Social Profiles","dokan-lite"),content:this.__("Vendors can upload & showcase their Facebook, Twitter and Linkedin profiles on their store page.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-social-profile.svg")},{title:this.__("Refund","dokan-lite"),content:this.__("Vendors can send refund requests for an order to the admins who can approve or deny it from the dashboard.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-refund.svg")},{title:this.__("Store Seo","dokan-lite"),content:this.__("The Yoast SEO integration lets vendors define Store Title, Description, Slug and Keyword to appear in search engine results.","dokan-lite"),image:"".concat(dokan.urls.assetsUrl,"/images/vendor-capability/cap-store-seo.svg")}]}},methods:{closePopup:function(){this.showPopup=!1},openPopup:function(e){this.showPopup=!0,this.selectedCapabilityImage=e}},computed:{bannerBg:function(){return{backgroundImage:"url(".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner-bg.svg)")}},bannerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-vendor-capabilities-banner.svg")}}}},function(e,t,a){"use strict";var s=a(181);t.a={name:"ProModules",components:{ModuleUpgradePopup:s.a},data:function(){return{modules:[{name:this.__("WooCommerce Booking Integration","dokan-lite"),description:this.__("Integrates WooCommerce Booking with Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/booking.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-bookings/",modLink:"https://wedevs.com/dokan/extensions/woocommerce-booking-integration/"},{name:this.__("Color Scheme Customizer","dokan-lite"),description:this.__("A Dokan plugin Add-on to Customize Colors of Dokan Dashboard","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/color-scheme-customizer.png"),docLink:"https://wedevs.com/docs/dokan/modules/color-scheme/",modLink:"https://wedevs.com/dokan/modules/color-scheme-customizer/"},{name:this.__("Elementor","dokan-lite"),description:this.__("Elementor Page Builder widgets for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/elementor.png"),docLink:"https://wedevs.com/docs/dokan/modules/elementor-dokan/",modLink:"https://wedevs.com/dokan/modules/elementor/"},{name:this.__("Vendor Product Importer and Exporter","dokan-lite"),description:this.__("This is simple product import and export plugin for vendor","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/import-export.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-dokan-exportimport-add/",modLink:"https://wedevs.com/dokan/modules/export-import/"},{name:this.__("Follow Store","dokan-lite"),description:this.__("Send emails to customers when their favorite store updates.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/follow-store.png"),docLink:"https://wedevs.com/docs/dokan/modules/follow-store/",modLink:"https://wedevs.com/dokan/modules/follow-store/"},{name:this.__("Geolocation","dokan-lite"),description:this.__("Search Products and Vendors by geolocation.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/geolocation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-geolocation/",modLink:"https://wedevs.com/dokan/modules/geolocation/"},{name:this.__("Live Chat","dokan-lite"),description:this.__("Live Chat Between Vendor & Customer.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/live-chat.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-live-chat/",modLink:"https://wedevs.com/dokan/modules/live-chat/"},{name:this.__("Live Search","dokan-lite"),description:this.__("Live product search for WooCommerce store.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/ajax-live-search.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-live-search/",modLink:"https://wedevs.com/dokan/modules/ajax-live-search/"},{name:this.__("Wirecard","dokan-lite"),description:this.__("Wirecard payment gateway for Dokan.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wirecard-connect.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-moip-connect/",modLink:"https://wedevs.com/dokan/modules/moip/"},{name:this.__("PayPal Adaptive Payment","dokan-lite"),description:this.__("Allows to send split payments to vendor via PayPal Adaptive Payment gateway.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/paypal-adaptive.png"),docLink:"#",modLink:"#"},{name:this.__("Product Addon","dokan-lite"),description:this.__("WooCommerce Product Addon support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-addon.png"),docLink:"https://wedevs.com/docs/dokan/modules/product-addon/",modLink:"https://wedevs.com/dokan/modules/product-addons/"},{name:this.__("Product Enquiry","dokan-lite"),description:this.__("Enquiry for a specific product to a seller.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/product-enquiry.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-configure-use-dokan-product-enquiry/",modLink:"https://wedevs.com/dokan/modules/product-enquiry/"},{name:this.__("Report Abuse","dokan-lite"),description:this.__("Let customers report fraudulent or fake products.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-report-abuse/"},{name:this.__("Return and Warranty Request","dokan-lite"),description:this.__("Manage return and warranty from vendor end.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/report-abuse.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-rma/",modLink:"https://wedevs.com/dokan/modules/rma/"},{name:this.__("Seller Vacation","dokan-lite"),description:this.__("Using this plugin seller can go to vacation by closing their stores.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/seller-vacation.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-vacation/",modLink:"https://wedevs.com/dokan/modules/vendor-vacation/"},{name:this.__("ShipStation Integration","dokan-lite"),description:this.__("Adds ShipStation label printing support to Dokan. Requires server DomDocument support.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/shipstation.png"),docLink:"https://wedevs.com/docs/dokan/modules/shipstation-dokan-wedevs/",modLink:"https://wedevs.com/dokan/modules/shipstation/"},{name:this.__("Auction Integration","dokan-lite"),description:this.__("A plugin that combined WooCommerce simple auction and Dokan plugin.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/auction.png"),docLink:"https://wedevs.com/docs/dokan/modules/woocommerce-auctions-frontend-multivendor-marketplace/",modLink:"https://wedevs.com/dokan/modules/dokan-simple-auctions/"},{name:this.__("Single Product Multiple Vendor","dokan-lite"),description:this.__("A module that offers multiple vendor to sell a single product.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/single-product-multivendor.png"),docLink:"https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/",modLink:"https://wedevs.com/dokan/modules/single-product-multivendor/"},{name:this.__("Store Reviews","dokan-lite"),description:this.__("A plugin that allows customers to rate the sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-review.png"),docLink:"https://wedevs.com/docs/dokan/modules/vendor-review/",modLink:"https://wedevs.com/dokan/modules/dokan-vendor-review/"},{name:this.__("Store Support","dokan-lite"),description:this.__("Enable vendors to provide support to customers from store page.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/store-support.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-use-store-support/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Stripe Connect","dokan-lite"),description:this.__("Accept credit card payments and allow your sellers to get automatic split payment in Dokan via Stripe.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/stripe.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-and-configure-dokan-stripe-connect/",modLink:"https://wedevs.com/dokan/modules/store-support/"},{name:this.__("Vendor Subscription","dokan-lite"),description:this.__("Product subscription pack add-on for Dokan vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/subscription.png"),docLink:"https://wedevs.com/docs/dokan/modules/how-to-install-use-dokan-subscription/",modLink:"https://wedevs.com/dokan/modules/subscription/"},{name:this.__("Vendor Analytics","dokan-lite"),description:this.__("A plugin for store and product analytics for vendor.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/analytics.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/",modLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-analytics/"},{name:this.__("Vendor Staff Manager","dokan-lite"),description:this.__("A plugin for manage store via vendor staffs.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-staff.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-staff-manager/",modLink:"https://wedevs.com/dokan/modules/vendor-staff-manager/"},{name:this.__("Vendor Subscription Product","dokan-lite"),description:this.__("WooCommerce Subscription integration for Dokan","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-subscription-product.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-vendor-subscription-product/",modLink:"https://wedevs.com/dokan/modules/vendor-subscription-product/"},{name:this.__("Vendor Verification","dokan-lite"),description:this.__("Dokan add-on to verify sellers.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/vendor-verification.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-seller-verification-admin-settings/",modLink:"https://wedevs.com/dokan/modules/seller-verification/"},{name:this.__("Wholesale","dokan-lite"),description:this.__("Offer any customer to buy product as a wholesale price from any vendors.","dokan-lite"),thumbnail:"".concat(dokan.urls.assetsUrl,"/images/modules/wholesale.png"),docLink:"https://wedevs.com/docs/dokan/modules/dokan-wholesale/",modLink:"https://wedevs.com/dokan/modules/wholesale/"}],showPopup:!0}},methods:{togglePopup:function(e){this.showPopup=e}}}},function(e,t,a){"use strict";t.a={name:"ModuleUpgradePopup",props:{showPopup:{type:Boolean,required:!0,default:!0}},data:function(){return{upgradeURL:dokan.urls.upgradeToPro}},methods:{closePopup:function(){this.$emit("toggle",!1)},openPopup:function(){this.$emit("toggle",!0)}},computed:{headerImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-header.svg")},bonusImage:function(){return"".concat(dokan.urls.assetsUrl,"/images/dokan-upgrade-popup-bonus.svg")}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(106),n=a(109),i=a(185);new(dokan_get_lib("Vue"))({el:"#dokan-vue-admin",router:n.a,render:function(e){return e(s.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"]),dokan.dokan_pro_i18n&&this.setLocaleData(dokan.dokan_pro_i18n.dokan)},methods:{listTableTexts:function(){return{loading:this.__("Loading","dokan-lite"),select_bulk_action:this.__("Select bulk action","dokan-lite"),bulk_actions:this.__("Bulk Actions","dokan-lite"),items:this.__("items","dokan-lite"),apply:this.__("Apply","dokan-lite")}}}}),Object(i.a)("dokan")},function(e,t,a){"use strict";var s=a(44),n=a(108),i=!1;var o=function(e){i||a(107)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/App.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"vue-backend-app"}},[t("router-view"),this._v(" "),t("notifications",{attrs:{position:"bottom right"}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(110),n=a.n(s),i=a(111),o=a(119),r=a(122),l=a(131),d=a(134),c=a(170),u=a(176),p=a(179),m=dokan_get_lib("Vue"),v=dokan_get_lib("Router"),_=dokan_get_lib("VersionCompare");m.use(v),dokan_add_route(i.a),dokan_add_route(o.a),dokan_add_route(r.a),dokan_add_route(l.a),dokan_add_route(d.a),dokan_add_route(u.a),dokan_add_route(p.a),dokan.hasPro&&!_(dokan.proVersion,"2.9.14",">")||dokan_add_route(c.a),function e(t){for(var a=0;a<t.length;a++)"object"===n()(t[a].children)?(e(t[a].children),void 0!==t[a].component&&(t[a].component=dokan.routeComponents[t[a].component])):t[a].component=dokan.routeComponents[t[a].component]}(dokan.routes),t.a=new v({routes:dokan.routes})},,function(e,t,a){"use strict";var s=a(45),n=a(118),i=!1;var o=function(e){i||a(112)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Dashboard.vue",t.a=r.exports},function(e,t){},,,,function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.show&&e.showUpgrade?a("div",{staticClass:"dokan-upgrade-bar"},[e._v("\n You're using "),a("span",[e._v("Dokan Lite")]),e._v(". To unlock more features, consider\n "),a("a",{attrs:{target:"_blank",rel:"noopener",href:e.upgradeURL}},[e._v("\n Upgrading to Pro")]),e._v(".\n\n "),a("div",{staticClass:"close-button",attrs:{title:"Dismiss the notice"},on:{click:function(t){return e.dismiss()}}},[e._v("\n ×\n ")])]):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-dashboard"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("h1",[e._v(e._s(e.__("Dashboard","dokan-lite")))]),e._v(" "),a("div",{staticClass:"widgets-wrapper"},[a("div",{staticClass:"left-side"},[a("postbox",{attrs:{title:e.__("At a Glance","dokan-lite"),extraClass:"dokan-status"}},[null!==e.overview?a("div",{staticClass:"dokan-status"},[a("ul",[a("li",{staticClass:"sale"},[a("div",{staticClass:"dashicons dashicons-chart-bar"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.sales.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("net sales this month","dokan-lite"))+" "),a("span",{class:e.overview.sales.class},[e._v(e._s(e.overview.sales.parcent))])])])],1),e._v(" "),a("li",{staticClass:"commission"},[a("div",{staticClass:"dashicons dashicons-chart-pie"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Reports"}:""}},[a("strong",[a("currency",{attrs:{amount:e.overview.earning.this_month}})],1),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("commission earned","dokan-lite"))+" "),a("span",{class:e.overview.earning.class},[e._v(e._s(e.overview.earning.parcent))])])])],1),e._v(" "),a("li",{staticClass:"vendor"},[a("div",{staticClass:"dashicons dashicons-id"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors"}:""}},[a("strong",[e._v(e._s(e.overview.vendors.this_month)+" "+e._s(e.__("Vendor","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("signup this month","dokan-lite"))+" "),a("span",{class:e.overview.vendors.class},[e._v(e._s(e.overview.vendors.parcent))])])])],1),e._v(" "),a("li",{staticClass:"approval"},[a("div",{staticClass:"dashicons dashicons-businessman"}),e._v(" "),a("router-link",{attrs:{to:e.hasPro?{name:"Vendors",query:{status:"pending"}}:""}},[a("strong",[e._v(e._s(e.overview.vendors.inactive)+" "+e._s(e.__("Vendor","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1),e._v(" "),a("li",{staticClass:"product"},[a("div",{staticClass:"dashicons dashicons-cart"}),e._v(" "),a("a",{attrs:{href:"#"}},[a("strong",[e._v(e._s(e.overview.products.this_month)+" "+e._s(e.__("Products","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v("\n "+e._s(e.__("created this month","dokan-lite"))+" "),a("span",{class:e.overview.products.class},[e._v(e._s(e.overview.products.parcent))])])])]),e._v(" "),a("li",{staticClass:"withdraw"},[a("div",{staticClass:"dashicons dashicons-money"}),e._v(" "),a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}}}},[a("strong",[e._v(e._s(e.overview.withdraw.pending)+" "+e._s(e.__("Withdrawals","dokan-lite")))]),e._v(" "),a("div",{staticClass:"details"},[e._v(e._s(e.__("awaiting approval","dokan-lite")))])])],1)])]):a("div",{staticClass:"loading"},[a("loading")],1)]),e._v(" "),a("postbox",{attrs:{title:e.__("Dokan News Updates","dokan-lite")}},[null!==e.feed?a("div",{staticClass:"rss-widget"},[a("ul",e._l(e.feed,function(t){return a("li",[a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_campaign=dokan-news",target:"_blank"}},[e._v(e._s(t.title))])])}),0),e._v(" "),a("div",{staticClass:"subscribe-box"},[e.subscribe.success?a("div",{staticClass:"thank-you"},[e._v(e._s(e.__("Thank you for subscribing!","dokan-lite")))]):[e.subscribe.loading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),a("h3",[e._v(e._s(e.__("Stay up-to-date","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("We're constantly developing new features, stay up-to-date by subscribing to our newsletter.","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"form-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.subscribe.email,expression:"subscribe.email"}],attrs:{type:"email",required:"",placeholder:"Your Email Address"},domProps:{value:e.subscribe.email},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.emailSubscribe()},input:function(t){t.target.composing||e.$set(e.subscribe,"email",t.target.value)}}}),e._v(" "),a("button",{staticClass:"button",on:{click:function(t){return e.emailSubscribe()}}},[e._v(e._s(e.__("Subscribe","dokan-lite")))])])]],2)]):a("div",{staticClass:"loading"},[a("loading")],1)])],1),e._v(" "),a("div",{staticClass:"right-side"},[a("postbox",{staticClass:"overview-chart",attrs:{title:e.__("Overview","dokan-lite")}},[null!==e.report?a("div",[a("chart",{attrs:{data:e.report}})],1):a("div",{staticClass:"loading"},[a("loading")],1)])],1)])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(47),n=a(121),i=!1;var o=function(e){i||a(120)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Withdraw.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"withdraw-requests"},[a("h1",[e._v(e._s(e.__("Withdraw Requests","dokan-lite")))]),e._v(" "),e.showModal?a("modal",{attrs:{title:e.__("Update Note","dokan-lite")},on:{close:function(t){e.showModal=!1}}},[a("template",{slot:"body"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editing.note,expression:"editing.note"}],attrs:{rows:"3"},domProps:{value:e.editing.note},on:{input:function(t){t.target.composing||e.$set(e.editing,"note",t.target.value)}}})]),e._v(" "),a("template",{slot:"footer"},[a("button",{staticClass:"button button-primary button-large",on:{click:function(t){return e.updateNote()}}},[e._v(e._s(e.__("Update Note","dokan-lite")))])])],2):e._e(),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Withdraw",query:{status:"cancelled"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Cancelled","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.cancelled))])]),e._v(" | ")],1)]),e._v(" "),a("list-table",{attrs:{columns:e.columns,rows:e.requests,loading:e.loading,"action-column":e.actionColumn,actions:e.actions,"show-cb":e.showCb,"bulk-actions":e.bulkActions,"not-found":e.notFound,"total-pages":e.totalPages,"total-items":e.totalItems,"per-page":e.perPage,"current-page":e.currentPage,text:e.$root.listTableTexts()},on:{pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction},scopedSlots:e._u([{key:"seller",fn:function(t){return[a("img",{attrs:{src:t.row.user.gravatar,alt:t.row.user.store_name,width:"50"}}),e._v(" "),a("strong",[a("a",{attrs:{href:e.vendorUrl(t.row.user.id)}},[e._v(e._s(t.row.user.store_name?t.row.user.store_name:e.__("(no name)","dokan-lite")))])])]}},{key:"amount",fn:function(e){return[a("currency",{attrs:{amount:e.row.amount}})]}},{key:"status",fn:function(t){return[a("span",{class:t.row.status},[e._v(e._s(e._f("capitalize")(t.row.status)))])]}},{key:"created",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.created).format("MMM D, YYYY"))+"\n ")]}},{key:"method_details",fn:function(t){return[a("div",{staticClass:"method_details_inner",domProps:{innerHTML:e._s(e.getPaymentDetails(t.row.method,t.row.user.payment))}})]}},{key:"actions",fn:function(t){return["pending"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Approve Request","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.changeStatus("approved",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-yes"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:"approved"===t.row.status?[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]:[a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{title:e.__("Mark as Pending","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.changeStatus("pending",t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-backup"})]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{title:e.__("Add Note","dokan-lite")},on:{click:function(a){return a.preventDefault(),e.openNoteModal(t.row.note,t.row.id)}}},[a("span",{staticClass:"dashicons dashicons-testimonial"})])])]]}}])})],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(48),n=a(130),i=!1;var o=function(e){i||a(123)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Premium.vue",t.a=r.exports},function(e,t){},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cta-section",style:{"background-image":"url("+e.styles.bgPattern+"), linear-gradient( 45deg, rgb(255,125,144) 33%, rgb(255,173,111) 100%)"}},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.thumbnail,alt:"Dokan Lite"}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h2",[e._v(e._s(e.__("Convinced?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("With all the advance features you get it’s hard to resist buying Dokan Pro.","dokan-lite")))]),e._v(" "),a("a",{staticClass:"btn",attrs:{href:e.url,target:"_blank"}},[e._v("\n "+e._s(e.__("Upgrade to Pro","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])])])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-pro-features"},[a("div",{staticClass:"header-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/header-feature-thumb@2x.png",alt:e.__("Upgrade to Dokan Pro!","dokan-lite"),title:e.__("Upgrade to Dokan Pro!","dokan-lite")}})]),e._v(" "),a("div",{staticClass:"content-area"},[a("h1",[e._v(e._s(e.__("Upgrade to Dokan Pro!","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Seems To Be Convinced, You Need More Out Of Your Marketplace","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")]),e._v(" "),a("router-link",{staticClass:"button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)]),e._v(" "),a("div",{staticClass:"service-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Why Upgrade","dokan-lite")))]),e._v(" "),a("div",{staticClass:"service-list"},e._l(e.services,function(t){return a("div",{staticClass:"service-box"},[a("div",{staticClass:"service-thumb"},[a("img",{attrs:{src:t.thumbnail,alt:t.title,title:t.title}})]),e._v(" "),a("div",{staticClass:"service-detail"},[a("h3",{staticClass:"title"},[e._v(e._s(t.title))])])])}),0),e._v(" "),a("a",{staticClass:"btn",attrs:{href:"https://wedevs.com/dokan/features/",target:"_blank"}},[e._v("\n "+e._s(e.__("And Many More","dokan-lite"))+"\n "),a("svg",{staticStyle:{"enable-background":"new 0 0 17.5 12.5"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 17.5 12.5","xml:space":"preserve"}},[a("path",{staticClass:"st0",attrs:{d:"M10.6,1.5c-0.4-0.4-0.4-0.9,0-1.3c0.4-0.3,0.9-0.3,1.3,0l5.3,5.3c0.2,0.2,0.3,0.4,0.3,0.7s-0.1,0.5-0.3,0.7\n l-5.3,5.3c-0.4,0.4-0.9,0.4-1.3,0c-0.4-0.4-0.4-0.9,0-1.3l3.8-3.8H0.9C0.4,7.1,0,6.7,0,6.2s0.4-0.9,0.9-0.9h13.5L10.6,1.5z\n M10.6,1.5"}})])])]),e._v(" "),a("div",{staticClass:"comparison-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("Comparison With Dokan PRO","dokan-lite")))]),e._v(" "),a("div",{staticClass:"comparison-area"},[a("div",{staticClass:"compare-box dokan-lite"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-lite-logo@2x.png",alt:"Dokan Lite"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.lite},["available"===t.compare.lite?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}),0)]),e._v(" "),a("div",{staticClass:"compare-box dokan-pro"},[a("div",{staticClass:"logo-section"},[a("img",{attrs:{src:e.asstesUrl+"/images/premium/dokan-pro-logo@2x.png",alt:"Dokan Pro"}})]),e._v(" "),a("ul",{staticClass:"compare-list"},e._l(e.comparisons,function(t){return a("li",{class:t.compare.pro},["available"===t.compare.pro?a("img",{attrs:{src:e.asstesUrl+"/images/premium/available@2x.png",alt:""}}):a("img",{attrs:{src:e.asstesUrl+"/images/premium/unavailable@2x.png",alt:""}}),e._v(" "),a("span",[e._v(e._s(t.title))])])}),0)])])]),e._v(" "),a("div",{staticClass:"pricing-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("The Packages We Provide","dokan-lite")))]),e._v(" "),a("div",{staticClass:"pricing-wrapper"},[e._m(0),e._v(" "),e._l(e.modules,function(t){return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"},[a("a",{staticClass:"module-name",attrs:{href:t.url,target:"_blank"}},[e._v(e._s(t.title))])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.starter.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.starter.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.starter.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col popular"},["numeric"===t.professional.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.professional.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.professional.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.business.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.business.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.business.value,alt:""}})])]),e._v(" "),a("div",{staticClass:"table-col"},["numeric"===t.enterprise.type?a("div",{staticClass:"plan-data"},[e._v(e._s(t.enterprise.value))]):a("div",{staticClass:"plan-data"},[a("img",{attrs:{src:t.enterprise.value,alt:""}})])])])}),e._v(" "),a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn starter",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15316&attribute_pa_license=starter",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("a",{staticClass:"buy-btn professional",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15314&attribute_pa_license=professional",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn business",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=15315&attribute_pa_license=business",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])]),e._v(" "),a("div",{staticClass:"table-col"},[a("a",{staticClass:"buy-btn enterprise",attrs:{href:e.buyNowProUrl+"?add-to-cart=15310&variation_id=103829&attribute_pa_license=enterprise",target:"_blank"}},[e._v(e._s(e.__("Buy Now","dokan-lite")))])])])],2)]),e._v(" "),a("div",{staticClass:"payment-section"},[a("div",{staticClass:"guarantee-section"},[a("div",{staticClass:"feature-thumb"},[a("img",{attrs:{src:e.payment.guaranteeThumbnail,alt:"Dokan"}})]),e._v(" "),a("div",{staticClass:"guarantee-detail"},[a("h2",[e._v(e._s(e.__("14 Days Money Back Guarantee","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("After successful purchase, you will be eligible for conditional refund","dokan-lite")))]),e._v(" "),a("a",{attrs:{href:e.payment.termsPolicyUrl,target:"_blank"}},[a("img",{attrs:{src:e.payment.viewIcon,alt:"Dokan"}}),e._v(" "+e._s(e.__("Terms & Condition Applied","dokan-lite")))])])]),e._v(" "),a("div",{staticClass:"payment-area"},[a("h3",[e._v(e._s(e.__("Payment Options:","dokan-lite")))]),e._v(" "),a("div",{staticClass:"option"},[a("img",{attrs:{src:e.payment.thumbnail,alt:"Credit Card"}})])])]),e._v(" "),a("div",{staticClass:"testimonial-section"},[a("h2",{staticClass:"section-title"},[e._v(e._s(e.__("People We Have Helped","dokan-lite")))]),e._v(" "),a("div",{staticClass:"testimonial-wrapper"},[a("slick",{ref:"slick",attrs:{options:e.slickOptions}},e._l(e.testimonials,function(t){return a("div",{staticClass:"testimonial-box"},[a("div",{staticClass:"profile-pic"},[a("img",{attrs:{src:t.pic,alt:""}})]),e._v(" "),a("div",{staticClass:"content-detail",style:{"background-image":"url("+e.asstesUrl+"/images/premium/quote-icon.png)"}},[a("h4",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(t.designation))]),e._v(" "),a("p",[e._v(e._s(t.content))])])])}),0)],1),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.sprintf("%s <a href='%s' target='_blank'>%s</a> %s",e.__("We are proud to say the official","dokan-lite"),"https://themes.getbootstrap.com/","Bootstrap theme marketplace",e.__("is built using Dokan","dokan-lite")))}})]),e._v(" "),a("ProCta")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-row"},[a("div",{staticClass:"table-col"}),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name starter"},[e._v("Starter")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("149")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col popular"},[a("div",{staticClass:"plan-name professional"},[e._v("Professional")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("249")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name business"},[e._v("Business")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("499")]),e._v(" "),a("span",[e._v("/year")])])]),e._v(" "),a("div",{staticClass:"table-col"},[a("div",{staticClass:"plan-name enterprise"},[e._v("Enterprise")]),e._v(" "),a("div",{staticClass:"price"},[a("span",[a("sup",[e._v("$")]),e._v("999")]),e._v(" "),a("span",[e._v("/year")])])])])}]};t.a=n},function(e,t,a){"use strict";var s=a(51),n=a(133),i=!1;var o=function(e){i||a(132)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Help.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-help-page"},[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("h1",[e._v(e._s(e.__("Help","dokan-lite")))]),e._v(" "),null!==e.docs?a("div",{staticClass:"section-wrapper"},e._l(e.docs,function(t,s){return a("postbox",{key:s,attrs:{title:t.title}},[a("ul",e._l(t.questions,function(t){return a("li",[a("span",{staticClass:"dashicons dashicons-media-text"}),e._v(" "),a("a",{attrs:{href:t.link+"?utm_source=wp-admin&utm_medium=dokan-help-page",target:"_blank"}},[e._v(e._s(t.title))])])}),0)])}),1):a("div",{staticClass:"loading"},[a("loading")],1)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(52),n=a(169),i=!1;var o=function(e){i||a(135)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Settings.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(53),n=a(165),i=!1;var o=function(e){i||a(137)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/Fields.vue",t.a=r.exports},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.shoudShow?a("tr",{class:[e.id,"dokan-settings-field-type-"+e.fieldData.type]},["sub_section"===e.fieldData.type?[a("th",{staticClass:"dokan-settings-sub-section-title",attrs:{colspan:"2"}},[a("label",[e._v(e._s(e.fieldData.label))])])]:e._e(),e._v(" "),e.containCommonFields(e.fieldData.type)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",["checkbox"===(e.fieldData.type||"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class: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: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:e.fieldData.class,attrs:{id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]",type:e.fieldData.type||"text"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"number"===e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"number",min:e.fieldData.min,max:e.fieldData.max,step:e.fieldData.step,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"price"==e.fieldData.type&&e.allSettingsValues.dokan_selling&&"combine"!==e.allSettingsValues.dokan_selling.commission_type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",class:{wc_input_decimal:"percentage"==e.allSettingsValues.dokan_selling.commission_type,wc_input_price:"flat"==e.allSettingsValues.dokan_selling.commission_type},attrs:{type:"text",min:e.fieldData.min,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"combine"==e.fieldData.type&&e.haveCondition(e.fieldData)&&"show"==e.fieldData.condition.type&&e.checkConditionLogic(e.fieldData,e.fieldValue)?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",{staticClass:"percent_fee"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.percent_fee.name],expression:"fieldValue[fieldData.fields.percent_fee.name]"}],staticClass:"wc_input_decimal regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][percent_fee]",name:e.sectionId+"["+e.fieldData.fields.percent_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.percent_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.percent_fee.name,t.target.value)}}}),e._v("\n "+e._s("%")+"\n ")]),e._v(" "),a("td",{staticClass:"fixed_fee"},[e._v("\n "+e._s("+")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.fields.fixed_fee.name],expression:"fieldValue[fieldData.fields.fixed_fee.name]"}],staticClass:"wc_input_price regular-text",attrs:{type:"text",id:e.sectionId+"["+e.fieldData.name+"][fixed_fee]",name:e.sectionId+"["+e.fieldData.fields.fixed_fee.name+"]"},domProps:{value:e.fieldValue[e.fieldData.fields.fixed_fee.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.fields.fixed_fee.name,t.target.value)}}})]),e._v(" "),e.hasError(e.fieldData.fields.percent_fee.name)&&e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.__("Both percentage and fixed fee is required.","dokan-lite"))+"\n ")]):e.hasError(e.fieldData.fields.percent_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.percent_fee.label))+"\n ")]):e.hasError(e.fieldData.fields.fixed_fee.name)?a("p",{staticClass:"dokan-error combine-commission"},[e._v("\n "+e._s(e.getError(e.fieldData.fields.fixed_fee.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})]:e._e(),e._v(" "),"textarea"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"textarea",rows:e.fieldData.rows,cols:e.fieldData.cols,id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.fieldValue[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.fieldValue,e.fieldData.name,t.target.value)}}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"checkbox"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("fieldset",[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"checkbox",attrs:{type:"checkbox",id:e.sectionId+"["+e.fieldData.name+"]",name:e.sectionId+"["+e.fieldData.name+"]","true-value":"on","false-value":"off"},domProps:{checked:Array.isArray(e.fieldValue[e.fieldData.name])?e._i(e.fieldValue[e.fieldData.name],null)>-1:e._q(e.fieldValue[e.fieldData.name],"on")},on:{change:function(t){var a=e.fieldValue[e.fieldData.name],s=t.target,n=s.checked?"on":"off";if(Array.isArray(a)){var i=e._i(a,null);s.checked?i<0&&e.$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._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._e(),e._v(" "),"select"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[e.fieldData.grouped?a("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"regular",attrs:{name:e.sectionId+"["+e.fieldData.name+"]",id:e.sectionId+"["+e.fieldData.name+"]"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.fieldValue,e.fieldData.name,t.target.multiple?a:a[0])}}},[e.fieldData.placeholder?a("option",{attrs:{value:""},domProps:{innerHTML:e._s(e.fieldData.placeholder)}}):e._e(),e._v(" "),e._l(e.fieldData.options,function(t){return a("optgroup",{attrs:{label:t.group_label}},e._l(t.group_values,function(t){return a("option",{domProps:{value:t.value,innerHTML:e._s(t.label)}})}),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(" "),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(" "),"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)+" "),a("span",{staticClass:"dashicons dashicons-no-alt remove-item",on:{click:function(t){return t.preventDefault(),e.removeItem(s,e.fieldData.name)}}})]):e._e()}),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.repeatableItem[e.fieldData.name],expression:"repeatableItem[fieldData.name]"}],staticClass:"regular-text",attrs:{type:"text"},domProps:{value:e.repeatableItem[e.fieldData.name]},on:{input:function(t){t.target.composing||e.$set(e.repeatableItem,e.fieldData.name,t.target.value)}}}),e._v(" "),a("a",{staticClass:"button dokan-repetable-add-item-btn",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.addItem(e.fieldData.type,e.fieldData.name)}}},[e._v("+")]),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})])]:e._e(),e._v(" "),"radio_image"==e.fieldData.type?[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("div",{staticClass:"radio-image-container"},[e._l(e.fieldData.options,function(t,s){return[a("label",{staticClass:"radio-image",class:{active:e.fieldValue[e.fieldData.name]===s,"not-active":e.fieldValue[e.fieldData.name]!==s}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldValue[e.fieldData.name],expression:"fieldValue[fieldData.name]"}],staticClass:"radio",attrs:{type:"radio",name:e.fieldData.name},domProps:{value:s,checked:e._q(e.fieldValue[e.fieldData.name],s)},on:{change:function(t){return e.$set(e.fieldValue,e.fieldData.name,s)}}}),e._v(" "),a("span",{staticClass:"current-option-indicator"},[a("span",{staticClass:"dashicons dashicons-yes"}),e._v(" "+e._s(e.__("Active","dokan-lite")))]),e._v(" "),a("img",{attrs:{src:t}}),e._v(" "),a("span",{staticClass:"active-option"},[a("button",{staticClass:"button button-primary button-hero",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.fieldValue[e.fieldData.name]=s}}},[e._v("\n "+e._s(e.__("Select","dokan-lite"))+"\n ")])])])]})],2)])]:e._e(),e._v(" "),"gmap"!=e.fieldData.type||e.hideMap?e._e():[a("th",{attrs:{scope:"row"}},[a("label",{attrs:{for:e.sectionId+"["+e.fieldData.name+"]"}},[e._v(e._s(e.fieldData.label))])]),e._v(" "),a("td",[a("input",{attrs:{type:"hidden",name:e.sectionId+"["+e.fieldData.name+"]"},domProps:{value:e.mapLocation}}),e._v(" "),"mapbox"===e.mapApiSource?a("Mapbox",{attrs:{accessToken:e.mapboxAccessToken,location:e.mapLocation,width:"100%",height:"300px"},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}):a("GoogleMaps",{attrs:{apiKey:e.googleMapApiKey,location:e.mapLocation},on:{hideMap:e.onHideMap,updateMap:e.onUpdateMap}}),e._v(" "),e.hasError(e.fieldData.name)?a("p",{staticClass:"dokan-error"},[e._v("\n "+e._s(e.getError(e.fieldData.label))+"\n ")]):e._e(),e._v(" "),a("p",{staticClass:"description",domProps:{innerHTML:e._s(e.fieldData.desc)}})],1)]],2):e._e()};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(62),n=a(168),i=!1;var o=function(e){i||a(167)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/SettingsBanner.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-settings-banner"}},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Settings Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("h1",[e._v(e._s(e.__("Looking for Coupons, Variable Products, SEO or Shipping?","dokan-lite")))]),e._v(" "),a("p",[e._v(e._s(e.__("Unlock these awesome frontend features with Dokan PRO","dokan-lite")))]),e._v(" "),a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("router-link",{staticClass:"button custom-button",attrs:{to:{name:"VendorCapabilities"}}},[e._v("\n "+e._s(e.__("Check Out All Vendor Functionalities","dokan-lite"))+"\n ")])],1)])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"dokan-settings"},[a("h2",{staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.__("Settings","dokan-lite")))]),e._v(" "),e.isSaved?a("div",{staticClass:"settings-error notice is-dismissible",class:{updated:e.isUpdated,error:!e.isUpdated},attrs:{id:"setting-message_updated"}},[a("p",[a("strong",{domProps:{innerHTML:e._s(e.message)}})]),e._v(" "),a("button",{staticClass:"notice-dismiss",attrs:{type:"button"},on:{click:function(t){t.preventDefault(),e.isSaved=!1}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Dismiss this notice.","dokan-lite")))])])]):e._e(),e._v(" "),a("div",{staticClass:"dokan-settings-wrap"},[a("div",{staticClass:"nav-tab-wrapper"},[a("div",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],ref:"searchInSettings",staticClass:"dokan-admin-search-settings",attrs:{type:"text",placeholder:"Search e.g. vendor"},domProps:{value:e.searchText},on:{input:[function(t){t.target.composing||(e.searchText=t.target.value)},e.searchInSettings]}}),e._v(" "),""!==e.searchText?a("span",{staticClass:"dashicons dashicons-no-alt",on:{click:function(t){return t.preventDefault(),e.clearSearch(t)}}}):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,"toggle-loading-state":e.toggleLoadingState},on:{openMedia:e.showMedia}})}),1)]),e._v(" "),a("p",{staticClass:"submit"},[a("input",{staticClass:"button button-primary",attrs:{type:"submit",name:"submit",id:"submit",value:"Save Changes"},on:{click:function(t){return t.preventDefault(),e.saveSettings(e.settingValues[s],s)}}})])])]):e._e()]:e._e()})],2),e._v(" "),e.showLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e()])]),e._v(" "),e.hasPro?e._e():a("SettingsBanner")],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(63),n=a(175),i=!1;var o=function(e){i||a(171)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/Vendors.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(64),n=a(174),i=!1;var o=function(e){i||a(173)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/AddVendor.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-vendor-edit"},[a("modal",{attrs:{title:e.title,width:"800px"},on:{close:e.closeModal}},[a("div",{attrs:{slot:"body"},slot:"body"},[a("div",{staticClass:"tab-header"},[a("ul",{staticClass:"tab-list"},e._l(e.tabs,function(t,s){return a("li",{key:s,class:{"tab-title":!0,active:e.currentTab===t.name,last:"VendorPaymentFields"===t.name}},[a("div",{staticClass:"tab-link"},[a("a",{class:{first:"VendorAccountFields"===t.name},attrs:{href:"#"},on:{click:function(a){a.preventDefault(),e.currentTab=t.name}}},[a("span",{class:[t.icon]}),e._v("\n "+e._s(t.label)+"\n ")])])])}),0)]),e._v(" "),e.currentTab?a("div",{staticClass:"tab-contents"},[e.isLoading?a("div",{staticClass:"loading"},[a("loading")],1):e._e(),e._v(" "),e.isLoading?e._e():a("transition",{attrs:{name:"component-fade",mode:"out-in"}},[a(e.currentTab,{tag:"component",attrs:{vendorInfo:e.store,errors:e.errors}})],1)],1):e._e()]),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("button",{staticClass:"button button-primary button-hero",on:{click:e.createVendor}},[e._v(e._s("VendorPaymentFields"===e.currentTab?e.__("Create Vendor","dokan-lite"):this.nextBtn))])])])],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.hasPro?e._e():a("UpgradeBanner"),e._v(" "),a("div",{staticClass:"vendor-list"},[a("h1",{staticClass:"wp-heading-inline"},[e._v(e._s(e.__("Vendors","dokan-lite")))]),e._v(" "),a("button",{staticClass:"page-title-action",on:{click:function(t){return e.addNew()}}},[e._v(e._s(e.__("Add New","dokan-lite")))]),e._v(" "),e._l(e.dokanVendorHeaderArea,function(e,t){return a(e,{key:t,tag:"component"})}),e._v(" "),a("hr",{staticClass:"wp-header-end"}),e._v(" "),a("ul",{staticClass:"subsubsub"},[a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"all"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("All","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.all))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"approved"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Approved","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.approved))])]),e._v(" | ")],1),e._v(" "),a("li",[a("router-link",{attrs:{to:{name:"Vendors",query:{status:"pending"}},"active-class":"current",exact:""}},[e._v(e._s(e.__("Pending","dokan-lite"))+" "),a("span",{staticClass:"count"},[e._v(e._s(e.counts.pending))])]),e._v(" | ")],1)]),e._v(" "),a("search",{attrs:{title:e.__("Search Vendors","dokan-lite")},on:{searched:e.doSearch}}),e._v(" "),a("list-table",{attrs:{columns:e.columns,loading:e.loading,rows:e.vendors,actions:e.actions,actionColumn:"store_name","show-cb":e.showCb,"total-items":e.totalItems,"bulk-actions":e.bulkActions,"total-pages":e.totalPages,"per-page":e.perPage,"current-page":e.currentPage,"action-column":e.actionColumn,"not-found":"No vendors found.","sort-by":e.sortBy,"sort-order":e.sortOrder,text:e.$root.listTableTexts()},on:{sort:e.sortCallback,pagination:e.goToPage,"action:click":e.onActionClick,"bulk:click":e.onBulkAction,searched:e.doSearch},scopedSlots:e._u([{key:"store_name",fn:function(t){return[a("img",{attrs:{src:t.row.gravatar,alt:t.row.store_name,width:"50"}}),e._v(" "),a("strong",[e.hasPro?a("router-link",{attrs:{to:"/vendors/"+t.row.id}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(t.row.store_name?t.row.store_name:e.__("(no name)","dokan-lite")))])],1)]}},{key:"email",fn:function(t){return[a("a",{attrs:{href:"mailto:"+t.row.email}},[e._v(e._s(t.row.email))])]}},{key:"categories",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.categories.map(function(e){return e.name}).join(", "))+"\n ")]}},{key:"registered",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.registered).format("MMM D, YYYY"))+"\n ")]}},{key:"enabled",fn:function(t){return[a("switches",{attrs:{enabled:t.row.enabled,value:t.row.id},on:{input:e.onSwitch}})]}},{key:"row-actions",fn:function(t){return e._l(e.actions,function(s,n){return a("span",{class:s.key},[e.hasPro&&"edit"==s.key?a("router-link",{attrs:{to:{path:"vendors/"+t.row.id,query:{edit:"true"}}}},[e._v(e._s(s.label))]):e.hasPro||"edit"!=s.key?"products"==s.key?a("a",{attrs:{href:e.productUrl(t.row.id)}},[e._v(e._s(s.label))]):"orders"==s.key?a("a",{attrs:{href:e.ordersUrl(t.row.id)}},[e._v(e._s(s.label))]):"switch_to"==s.key?a("a",{attrs:{href:e.switchToUrl(t.row)}},[e._v(e._s(s.label))]):a("a",{attrs:{href:"#"}},[e._v(e._s(s.label))]):a("a",{attrs:{href:e.editUrl(t.row.id)}},[e._v(e._s(s.label))]),e._v(" "),n!==e.actions.length-1?[e._v(" | ")]:e._e()],2)})}}])}),e._v(" "),e.loadAddVendor?a("add-vendor",{attrs:{"vendor-id":e.vendorId}}):e._e()],2)],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(65),n=a(178),i=!1;var o=function(e){i||a(177)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/VendorCapabilities.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-vendor-capabilities"}},[a("div",{staticClass:"vendor-capabilities-banner",style:e.bannerBg},[a("img",{attrs:{src:e.bannerImage,alt:e.__("Dokan Vendor Capabilities Banner","dokan-lite")}}),e._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"title"},[e._v(e._s(e.__("Vendor Capabilities","dokan-lite")))]),e._v(" "),a("p",[e._v("\n "+e._s(e.__("One of the finest attractions of Dokan PRO is the vast array of powerful vendor controls & functions it provides so sellers can enjoy ownership, automation & freedom to run their stores. To use these awesome vendor features listed below, consider Upgrading to PRO.","dokan-lite"))+"\n ")])])]),e._v(" "),a("div",{staticClass:"grid"},e._l(e.capabilityCards,function(t){return a("div",{staticClass:"col-6"},[a("div",{staticClass:"capability-card"},[a("div",{staticClass:"capability-image"},[a("img",{staticClass:"image",attrs:{src:t.image,alt:e.__("Dokan Capability","dokan-lite")}}),e._v(" "),a("div",{staticClass:"middle"},[a("div",{staticClass:"zoom",on:{click:function(a){return e.openPopup(t.image)}}},[a("div",{staticClass:"dashicons dashicons-search"})])])]),e._v(" "),a("p",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"content"},[e._v(e._s(t.content))])])])}),0),e._v(" "),a("ProCta"),e._v(" "),e.showPopup?a("div",{attrs:{id:"dokan-capability-image-popup"},on:{click:e.closePopup}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"body"},[a("img",{attrs:{src:this.selectedCapabilityImage,alt:e.__("Dokan Capability","dokan-lite")}})])])]):e._e()],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=a(66),n=a(184),i=!1;var o=function(e){i||a(180)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/pages/ProModules.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=a(67),n=a(183),i=!1;var o=function(e){i||a(182)},r=a(0)(s.a,n.a,!1,o,null,null);r.options.__file="src/admin/components/ModuleUpgradePopup.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"dokan-upgrade-to-pro-wrapper"}},[e.showPopup?a("div",{attrs:{id:"dokan-upgrade-popup"}},[a("div",{staticClass:"modal-content"},[a("span",{staticClass:"close",on:{click:e.closePopup}}),e._v(" "),a("div",{staticClass:"header"},[a("img",{attrs:{src:e.headerImage,alt:e.__("Dokan Upgrade Popup","dokan-lite")}}),e._v(" "),a("h1",[e._v(e._s(e.__("Unlock 20+ Modules","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-brand"},[e._v(e._s(e.__("with Dokan Premium Plans","dokan-lite")))]),e._v(" "),a("p",{staticClass:"text-disabled"},[e._v("\n "+e._s(e.__("We’re sorry, Dokan Modules are not available on Dokan Lite. Please upgrade to a PRO plan to unlock the modules of your choice.","dokan-lite"))+"\n ")])]),e._v(" "),a("div",{staticClass:"body"},[a("a",{staticClass:"button",attrs:{target:"_blank",rel:"noopener noreferrer",href:e.upgradeURL}},[e._v(e._s(e.__("Upgrade to Pro","dokan-lite")))]),e._v(" "),a("div",{staticClass:"promo-card"},[a("img",{attrs:{src:e.bonusImage,alt:e.__("Dokan Upgrade Promo","dokan-lite")}}),e._v(" "),a("p",[e._v(e._s(e.__("Bonus: Dokan Lite users get 30% off regular price. Click on the link above to obtain the coupon & apply it during checkout.","dokan-lite")))])]),e._v(" "),a("span",[a("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://wedevs.com/docs/dokan/getting-started/installation-2/"}},[e._v(e._s(e.__("Already upgraded?","dokan-lite")))])])])])]):e._e()])};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"lite-modules"}},[a("div",{staticClass:"dokan-modules-wrap"},[a("h1",[e._v(e._s(e.__("Modules","dokan")))]),e._v(" "),a("div",{staticClass:"module-content"},[a("div",{staticClass:"wp-list-table widefat dokan-modules"},[e.modules.length>0?e._l(e.modules,function(t){return a("div",{staticClass:"plugin-card"},[a("div",{staticClass:"plugin-card-top"},[a("div",{staticClass:"name column-name"},[a("h3",[a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[e._v(e._s(t.name))]),e._v(" "),a("a",{staticClass:"plugin-name",attrs:{href:t.modLink,target:"_blank"}},[a("img",{staticClass:"plugin-icon",attrs:{src:t.thumbnail,alt:t.name}})])])]),e._v(" "),a("div",{staticClass:"action-links"},[a("ul",{staticClass:"plugin-action-buttons"},[a("li",{on:{click:function(t){return e.togglePopup(!0)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20"}},[a("rect",{attrs:{width:"42",height:"20",rx:"10",fill:"#c0c3c6"}}),a("circle",{attrs:{cx:"6",cy:"6",r:"6",transform:"translate(6 4)",fill:"#fff"}})])])])]),e._v(" "),a("div",{staticClass:"desc column-description"},[a("p",{domProps:{innerHTML:e._s(t.description)}})]),e._v(" "),a("div",{staticClass:"card-footer"},[a("a",{attrs:{href:t.docLink,target:"_blank"}},[e._v(e._s(e.__("Documentation","dokan")))])])])])}):[a("div",{staticClass:"notice notice-info",attrs:{id:"message"}},[a("p",[a("strong",[e._v(e._s(e.__("No modules found.","dokan")))])])])]],2)])]),e._v(" "),a("ModuleUpgradePopup",{attrs:{"show-popup":e.showPopup},on:{toggle:e.togglePopup}})],1)};s._withStripped=!0;var n={render:s,staticRenderFns:[]};t.a=n},function(e,t,a){"use strict";t.a=function(e){var t=jQuery,a=t("#toplevel_page_"+e),s=window.location.href,n=s.substr(s.indexOf("admin.php"));a.on("click","a",function(){var e=t(this);t("ul.wp-submenu li",a).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",a).addClass("current"):e.parents("li").addClass("current")}),t("ul.wp-submenu a",a).each(function(e,a){t(a).attr("href")!==n||t(a).parent().addClass("current")})}}],[105]);
|
assets/js/vue-bootstrap.js
CHANGED
@@ -436,8 +436,8 @@ if (false) {(function () {
|
|
436 |
'vendorInfo.user_nicename': function vendorInfoUser_nicename(newValue) {
|
437 |
if (typeof newValue !== 'undefined') {
|
438 |
this.showStoreUrl = false;
|
439 |
-
this.otherStoreUrl = this.defaultUrl + newValue.trim().split(' ').join('-');
|
440 |
-
this.vendorInfo.user_nicename = newValue.split(' ').join('-'); // check if the typed url is available
|
441 |
|
442 |
this.checkStoreName();
|
443 |
}
|
@@ -451,7 +451,7 @@ if (false) {(function () {
|
|
451 |
},
|
452 |
computed: {
|
453 |
storeUrl: function storeUrl() {
|
454 |
-
var storeUrl = this.vendorInfo.store_name.trim().split(' ').join('-');
|
455 |
this.vendorInfo.user_nicename = storeUrl;
|
456 |
this.otherStoreUrl = this.defaultUrl + storeUrl;
|
457 |
return this.defaultUrl + storeUrl;
|
436 |
'vendorInfo.user_nicename': function vendorInfoUser_nicename(newValue) {
|
437 |
if (typeof newValue !== 'undefined') {
|
438 |
this.showStoreUrl = false;
|
439 |
+
this.otherStoreUrl = this.defaultUrl + newValue.trim().split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-');
|
440 |
+
this.vendorInfo.user_nicename = newValue.split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-'); // check if the typed url is available
|
441 |
|
442 |
this.checkStoreName();
|
443 |
}
|
451 |
},
|
452 |
computed: {
|
453 |
storeUrl: function storeUrl() {
|
454 |
+
var storeUrl = this.vendorInfo.store_name.trim().split(' ').join('-').toLowerCase().replace(/[^\w\s/-]/g, '').replace(/-+/g, '-');
|
455 |
this.vendorInfo.user_nicename = storeUrl;
|
456 |
this.otherStoreUrl = this.defaultUrl + storeUrl;
|
457 |
return this.defaultUrl + storeUrl;
|
assets/js/vue-bootstrap.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
dokanWebpack([1],[,,function(e,t,a){"use strict";var n=a(10),o=a(28),i=!1;var s=function(e){i||a(27)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var n=a(15);t.a={extends:n.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",n=t.datasets[e.datasetIndex].tooltipLabel||"",o=t.datasets[e.datasetIndex].tooltipPrefix||"",i=n?n+": ":a+": ";return i+=o+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},,function(e,t,a){"use strict";var n=a(54);t.a={components:{Sketch:n.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var n=a(1),o=(a.n(n),a(2)),i=a(16),s=a(17);t.a={name:"VendorAccountFields",components:{Switches:o.a,UploadImage:i.a,PasswordGenerator:s.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-"),this.vendorInfo.user_nicename=e.split(" ").join("-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(n.debounce)(this.checkStore,this.delay),this.checkUsername=Object(n.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(n.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},n={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,n,o,i){return(!0!==e||!0!==t)&&((!0!==e||n!==i)&&((!0!==t||a!==o)&&((a!==o||n!==i)&&!(o<=a))))}},o=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:n})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=o,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,n,o,i,s,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);s=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,s,i)),(n=s)/(o=i)>(a=l/d)?l=(d=o)*a:d=(l=n)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var n=a(3);a.n(n);t.a={name:"VendorAddressFields",components:{Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],n=a&&a[e];return void 0!==n?n:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var n in a)if(n===e&&!(a[n]&&a[n].length<1))for(var o in a[n])t.push({name:a[n][o],code:o});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var n=a(2),o=a(3);a.n(o);t.a={name:"VendorPaymentFields",components:{Switches:n.a,Multiselect:o.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,n=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=n}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t,a){"use strict";var n=a(11),o=a(30),i=!1;var s=function(e){i||a(29)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var n=a(12),o=a(31),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var n=a(6),o=a(0)(n.a,null,!1,null,null,null);o.options.__file="src/admin/components/Chart.vue",t.a=o.exports},,,function(e,t,a){"use strict";var n=a(8),o=a(25),i=!1;var s=function(e){i||a(24)},r=a(0)(n.a,o.a,!1,s,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){return e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){return e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(9),o=a(32),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){return t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){return t.preventDefault(),e.generatePassword(t)}}},[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(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){return t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(13),o=a(35),i=!1;var s=function(e){i||a(34)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(14),o=a(38),i=!1;var s=function(e){i||a(37)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";t.c=o,t.a=function(e,t){return i(t)?i(t).dgettext(t,e):e},t.b=function(e,t,a,n,o){return i(o).dnpgettext(o,n,e,t,a)},a.d(t,"d",function(){return s});var n={};function o(e){var t=new Jed(e);n[t._textdomain]=t}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n[e]||o({"":{}}),n[e]}var s=Jed.sprintf},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";t.a={name:"Postbox",props:{title:{type:String,required:!0,default:""},extraClass:{type:String,default:null}},data:function(){return{showing:!0}}}},function(e,t,a){"use strict";t.a={name:"Loading",data:function(){return{}}}},function(e,t,a){"use strict";t.a={name:"Modal",props:{footer:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:"500px"},height:{type:String,required:!1,default:"auto"},title:{type:String,required:!0,default:""}},data:function(){return{}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0},shortcodes:{type:Object,required:!1}},data:function(){return{editorId:this._uid,fileFrame:null}},mounted:function(){var e=this;window.tinymce.init({selector:"#dokan-tinymce-".concat(this.editorId),branding:!1,height:200,menubar:!1,convert_urls:!1,theme:"modern",skin:"lightgray",fontsize_formats:"10px 11px 13px 14px 16px 18px 22px 25px 30px 36px 40px 45px 50px 60px 65px 70px 75px 80px",font_formats:"Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Lucida=Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;",plugins:"textcolor colorpicker wplink wordpress code hr wpeditimage",toolbar:["shortcodes bold italic underline bullist numlist alignleft aligncenter alignjustify alignright link image wp_adv","formatselect forecolor backcolor blockquote hr code fontselect fontsizeselect removeformat undo redo"],setup:function(t){var a=[];_.forEach(e.shortcodes,function(e,n){a.push({text:e.title,classes:"menu-section-title"}),_.forEach(e.codes,function(e,o){a.push({text:e.title,onclick:function(){var a="[".concat(n,":").concat(o,"]");e.default&&(a="[".concat(n,":").concat(o,' default="').concat(e.default,'"]')),e.text&&(a="[".concat(n,":").concat(o,' text="').concat(e.text,'"]')),e.plainText&&(a=e.text),t.insertContent(a)}})})}),t.addButton("image",{icon:"image",onclick:function(){e.browseImage(t)}}),t.on("change keyup NodeChange",function(){e.$emit("input",t.getContent())})}})},methods:{browseImage:function(e){var t=this,a={id:0,url:"",type:""};if(t.fileFrame)t.fileFrame.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:this.__("Select an image","dokan-lite"),priority:20,filterable:"uploaded"})];t.fileFrame=wp.media({title:this.__("Select an image","dokan-lite"),library:{type:""},button:{text:this.__("Select an image","dokan-lite")},multiple:!1,states:n}),t.fileFrame.on("select",function(){t.fileFrame.state().get("selection").map(function(n){return(n=n.toJSON()).id&&(a.id=n.id),n.url&&(a.url=n.url),n.type&&(a.type=n.type),t.insertImage(e,a),null})}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-image-uploader"}}),t.fileFrame.open()}},insertImage:function(e,t){if(t.id&&"image"===t.type){var a='<img src="'.concat(t.url,'" alt="').concat(t.alt,'" title="').concat(t.title,'" style="max-width: 100%; height: auto;">');e.insertContent(a)}else this.alert({type:"error",text:this.__("Please select an image,","dokan-lite")})}}}},function(e,t,a){"use strict";t.a={props:["amount"],methods:{formattedPrice:function(e){return accounting.formatMoney(e,dokan.currency)}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"LazyInput",props:{value:{type:String,required:!0,default:""},type:{type:String,required:!1,default:"text"},placeholder:{type:String,required:!1,default:""}},data:function(){return{delay:500,debouncer:null}},methods:{updateValue:function(e){var t=this;t.debouncer&&t.debouncer.clear(),t.debouncer=Object(n.debounce)(function(){t.triggerInput(e)},t.delay),t.debouncer()},focus:function(){this.$emit("focus")},blur:function(){this.$emit("blur")},triggerInput:function(e){this.$emit("input",e)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:Number,default:0},hidden:{type:Boolean,default:!1},bgColor:{type:String,default:"defaultBg"},fgColor:{type:String,default:"defaultFg"}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"Search",props:{title:{type:String,default:"Search"}},data:function(){return{delay:500,searchItems:""}},watch:{searchItems:function(){this.makeDelay()}},created:function(){this.makeDelay=Object(n.debounce)(this.doSearch,this.delay)},methods:{doSearch:function(){this.$emit("searched",this.searchItems)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},changeMonthYear:{type:Boolean,required:!1,default:!1}},mounted:function(){var e=this;jQuery(e.$el).datepicker({dateFormat:e.format,changeMonth:e.changeMonthYear,changeYear:e.changeMonthYear,beforeShow:function(){jQuery(this).datepicker("widget").addClass("dokan-datepicker")},onSelect:function(t){e.updateValue(t)}})},methods:{updateValue:function(e){e||(e=moment().format("YYYY-MM-DD")),this.$emit("input",e)}}}},,function(e,t,a){"use strict";t.a={name:"GoogleMaps",props:{apiKey:{type:String,default:null},location:{type:Object,default:function(){return{latitude:23.709921,longitude:90.40714300000002,address:"dhaka",zoom:10}}}},data:function(){return{dokanGoogleMap:null,marker:null,loadMap:this.apiKey.length>1}},mounted:function(){this.apiKey&&window.google&&this.renderMap()||this.$emit("hideMap",!0)},beforeDestroy:function(){this.dokanGoogleMap&&(this.dokanGoogleMap=null),this.marker&&(this.marker=null)},methods:{setMap:function(){this.dokanGoogleMap=new google.maps.Map(this.getMapArea(),{center:this.getCenter(),zoom:this.location.zoom,mapTypeId:google.maps.MapTypeId.ROADMAP})},setMarker:function(){this.marker=new google.maps.Marker({position:this.getCenter(),map:this.dokanGoogleMap})},GetGeocoder:function(){return new google.maps.Geocoder},getSearchAddress:function(){return this.location.address&&(this.$refs.searchAddress.value=this.location.address),this.$refs.searchAddress},setAutoComplete:function(){var e=this,t=new google.maps.places.Autocomplete(this.getSearchAddress());t.addListener("place_changed",function(){var a=t.getPlace(),n=a.geometry.location;e.updateMap(n.lat(),n.lng(),a.formatted_address)})},updateMap:function(e,t,a){var n=new google.maps.LatLng(e,t);this.$emit("updateMap",{latitude:n.lat(),longitude:n.lng(),address:a}),this.dokanGoogleMap.setCenter(n),this.marker.setPosition(n),a||this.GetGeocoder.geocode({location:{lat:e,lng:t}},function(e,t){"OK"===t&&address.val(e[0].formatted_address)})},renderMap:function(){return this.setMap(),this.setMarker(),this.setAutoComplete(),!0},getCenter:function(){return new google.maps.LatLng(this.location.latitude,this.location.longitude)},getMapArea:function(){return this.$refs.gmapArea}}}},function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(t){o()(this,e),this._mapId=t}return s()(e,[{key:"onAdd",value:function(e){var t=this;this._map=e;var a=document.createElement("span");a.className="dashicons dashicons-search";var n=document.createTextNode("Search Map"),o=document.createElement("button");o.type="button",o.className="button",o.appendChild(a),o.appendChild(n),o.addEventListener("click",function(e){e.preventDefault();var a=document.getElementById(t._mapId).getElementsByClassName("mapboxgl-ctrl-top-left")[0];a.className=a.className+" show-geocoder"});var i=document.createElement("div");return i.className="mapboxgl-ctrl dokan-mapboxgl-ctrl",i.appendChild(o),this._container=i,this._container}},{key:"onRemove",value:function(){this._container.parentNode.removeChild(this._container),this._map=void 0}}]),e}();t.a={name:"Mapbox",props:{accessToken:{type:String,default:null},location:{type:Object,required:!0},width:{type:String,required:!1,default:"100%"},height:{type:String,required:!1,default:"300px"}},data:function(){return{dokanMapbox:null,dokanGeocoder:null,dokanMarker:null}},computed:{mapboxId:function(){return"dokan-mapbox-".concat(this._uid)},address:function(){return this.location.address}},mounted:function(){this.accessToken&&window.mapboxgl&&this.initializeMapbox()||this.$emit("hideMap",!0),window.mapboxgl=mapboxgl},beforeDestroy:function(){this.dokanMapbox&&(this.dokanMarker.remove(),this.dokanMapbox.remove())},methods:{initializeMapbox:function(){var e=this;return mapboxgl.accessToken=this.accessToken,this.dokanMapbox=new mapboxgl.Map({container:this.mapboxId,style:"mapbox://styles/mapbox/streets-v10",center:[this.location.longitude,this.location.latitude],zoom:this.location.zoom}),this.dokanMapbox.addControl(new mapboxgl.NavigationControl),this.dokanMapbox.addControl(new r(this.mapboxId),"top-left"),this.dokanMapbox.on("zoomend",function(t){e.setLocation({zoom:t.target.getZoom()})}),this.dokanMapbox.on("load",function(){e.dokanGeocoder=new MapboxGeocoder({accessToken:mapboxgl.accessToken,mapboxgl:mapboxgl,zoom:e.dokanMapbox.getZoom(),placeholder:e.__("Search Address","dokan-lite"),marker:!1,reverseGeocode:!0}),e.dokanMapbox.addControl(e.dokanGeocoder,"top-left"),e.dokanGeocoder.setInput(e.location.address),e.dokanGeocoder.on("result",function(t){var a=t.result,n=a.center;a.place_name;e.dokanMarker.setLngLat(n),e.dokanMapbox.setCenter([n[0],n[1]]),e.setLocation({address:a.place_name,latitude:n[1],longitude:n[0],zoom:e.dokanMapbox.getZoom()})})}),this.dokanMarker=new mapboxgl.Marker({draggable:!0}).setLngLat([this.location.longitude,this.location.latitude]).addTo(this.dokanMapbox).on("dragend",this.onMarkerDragEnd),!0},onMarkerDragEnd:function(){var e=this,t=this.dokanGeocoder.geocoderService.client.origin,a=this.dokanGeocoder.geocoderService.client.accessToken,n=this.dokanMarker.getLngLat().wrap(),o=n.lng,i=n.lat;this.dokanMapbox.setCenter([o,i]),this.setLocation({latitude:i,longitude:o});var s="".concat(t,"/geocoding/v5/mapbox.places/").concat(o,"%2C").concat(i,".json?access_token=").concat(a,"&cachebuster=").concat(+new Date,"&autocomplete=true");this.dokanGeocoder._inputEl.disabled=!0,this.dokanGeocoder._loadingEl.style.display="block",jQuery.ajax({url:s,method:"get"}).done(function(t){e.dokanGeocoder._typeahead.update(t.features)}).fail(function(){}).always(function(){e.dokanGeocoder._inputEl.disabled=!1,e.dokanGeocoder._loadingEl.style.display=""})},setLocation:function(e){this.$emit("updateMap",e)},onChangeAddress:function(e){this.setLocation({address:e.target.value})}}}},function(e,t,a){"use strict";t.a={props:{section:{type:String,required:!0},field:{type:Object,required:!0},toggleLoadingState:{type:Function,required:!0}},data:function(){return{isRefreshing:!1,showRefreshedMsg:!1}},computed:{messages:function(){var e,t,a,n;return{refreshing:(null===(e=this.field.refresh_options)||void 0===e?void 0:null===(t=e.messages)||void 0===t?void 0:t.refreshing)||this.__("Refreshing options","dokan-lite"),refreshed:(null===(a=this.field.refresh_options)||void 0===a?void 0:null===(n=a.messages)||void 0===n?void 0:n.refreshed)||this.__("Option refreshed!","dokan-lite")}}},methods:{refreshSettings:function(){var e=this;this.toggleLoadingState(),this.isRefreshing=!0,jQuery.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:{action:"dokan_refresh_admin_settings_field_options",_wpnonce:dokan.admin_settings_nonce,section:this.section,field:this.field.name}}).done(function(t){var a;(null===t||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a[0])&&e.setSettingOptions(t.data)}).always(function(){e.toggleLoadingState(),e.isRefreshing=!1}).fail(function(e){var t;(null===e||void 0===e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.data)&&alert(e.responseJSON.data)})},setSettingOptions:function(e){var t=this;this.field.options=e,this.showRefreshedMsg=!0,setTimeout(function(){return t.showRefreshedMsg=!1},3e3)}}}},function(e,t,a){"use strict";t.a={name:"VendorSocialFields",props:{vendorInfo:{type:Object}},data:function(){return{getSocialFields:dokan.hooks.applyFilters("getVendorSocialFields",[])}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(4),o=a(19),i=a(187),s=a.n(i),r=a(68),l=a.n(r),d=a(69),c=a(3),u=a.n(c),p=a(191),m=a(15),v=a(192),f=a(1),_=a.n(f),h=a(193),g=a.n(h),b=a(73),k=(a.n(b),a(194)),y=a(197),w=a(20),C=a(200),x=a(2),I=a(203),S=a(205),A=a(207),P=a(209),M=a(212),F=a(214),N=a(83),$=a(23),T=a(219),E=a(222),L=a(16),B=a(17),G=a(225),R=a(26),V=a(33),j=a(228),q=a(36),U=a(230);a.n(U);window.__=function(e,t){return __(e,t)},n.default.use(l.a),n.default.use(N.default),n.default.mixin(v.a),n.default.filter("currency",function(e){return accounting.formatMoney(e,dokan.currency)}),n.default.filter("capitalize",function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}),n.default.directive("tooltip",{bind:function(e,t,a){jQuery(e).tooltip("show")},unbind:function(e,t,a){jQuery(e).tooltip("destroy")}}),window.dokan_get_lib=function(e){return window.dokan.libs[e]},window.dokan_add_route=function(e){window.dokan.routeComponents[e.name]=e},window.dokan.api=new p.a,window.dokan.libs.Vue=n.default,window.dokan.libs.Router=o.default,window.dokan.libs.moment=s.a,window.dokan.libs.ListTable=d.default,window.dokan.libs.Currency=S.a,window.dokan.libs.Postbox=k.a,window.dokan.libs.Loading=y.a,window.dokan.libs.ChartJS=m.default,window.dokan.libs.Chart=w.a,window.dokan.libs.Modal=C.a,window.dokan.libs.Switches=x.a,window.dokan.libs.TextEditor=I.a,window.dokan.libs.LazyInput=A.a,window.dokan.libs.Progressbar=P.a,window.dokan.libs.Search=M.a,window.dokan.libs.Datepicker=F.a,window.dokan.libs.Multiselect=u.a,window.dokan.libs.ColorPicker=$.a,window.dokan.libs.debounce=_.a,window.dokan.libs.VersionCompare=g.a,window.dokan.libs.GoogleMaps=T.a,window.dokan.libs.Mapbox=E.a,window.dokan.libs.UploadImage=L.a,window.dokan.libs.PasswordGenerator=B.a,window.dokan.libs.VendorAccountFields=R.a,window.dokan.libs.VendorAddressFields=V.a,window.dokan.libs.VendorSocialFields=j.a,window.dokan.libs.VendorPaymentFields=q.a,window.dokan.libs.RefreshSettingOptions=G.a,window.dokan.libs.ContentLoading={VclCode:b.VclCode,VclList:b.VclList,VclTwitch:b.VclTwitch,VclFacebook:b.VclFacebook,VclInstagram:b.VclInstagram,VclBulletList:b.VclBulletList,VueContentLoading:b.VueContentLoading},dokan.hooks=wp&&wp.hooks?wp.hooks:dokan.wpPackages.hooks,dokan.hooks&&(dokan.addFilterComponent=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;dokan.hooks.addFilter(e,t,function(e){return e.push(a),e},n)})},function(e,t){e.exports=moment},,,,function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(){o()(this,e)}return s()(e,[{key:"endpoint",value:function(){return window.dokan.rest.root+window.dokan.rest.version}},{key:"headers",value:function(){return{}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"GET",this.headers(),t)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"POST",this.headers(),t)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"PUT",this.headers(),t)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"DELETE",this.headers(),t)}},{key:"ajax",value:function(e,t,a,n){var o=null;return"PUT"!==t&&"DELETE"!==t||(o=t,t="POST"),jQuery.ajax({url:this.endpoint()+e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.dokan.rest.nonce),o&&e.setRequestHeader("X-HTTP-Method-Override",o)},type:t,data:n})}}]),e}();t.a=r},function(e,t,a){"use strict";var n=a(39);t.a={methods:{setLocaleData:function(e){return Object(n.c)(e)},__:function(e,t){return Object(n.a)(e,t)},_nx:function(e,t,a,o,i){return Object(n.b)(e,t,a,o,i)},__n:function(e,t,a,n){return _n(e,t,a,n)},sprintf:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return n.d.apply(void 0,[e].concat(a))}}}},function(e,t){e.exports=function(e,t,a){var n,o,i=0,s={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},r=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?s[e]||-7:parseInt(e,10):0};for(e=r(e),t=r(t),o=Math.max(e.length,t.length),n=0;n<o;n++)if(e[n]!==t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){i=-1;break}if(e[n]>t[n]){i=1;break}}if(!a)return i;switch(a){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"===":case"=":case"eq":return 0===i;case"<>":case"!==":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}},function(e,t,a){"use strict";var n=a(74),o=a(196),i=!1;var s=function(e){i||a(195)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Postbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["postbox","dokan-postbox",{closed:!e.showing},e.extraClass]},[a("div",{staticClass:"postbox-header"},[a("h2",{staticClass:"hndle"},[a("span",[e._v(e._s(e.title))])]),e._v(" "),a("div",{staticClass:"handle-actions hide-if-no-js"},[a("button",{staticClass:"handlediv",attrs:{type:"button","aria-expanded":"false"},on:{click:function(t){e.showing=!e.showing}}},[a("span",{staticClass:"toggle-indicator",attrs:{"aria-hidden":"true"}})])])]),e._v(" "),a("div",{staticClass:"inside"},[a("div",{staticClass:"main"},[e._t("default")],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(75),o=a(199),i=!1;var s=function(e){i||a(198)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Loading.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)};n._withStripped=!0;var o={render:n,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"dokan-loader"},[t("div"),t("div")])}]};t.a=o},function(e,t,a){"use strict";var n=a(76),o=a(202),i=!1;var s=function(e){i||a(201)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Modal.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-modal-dialog"},[a("div",{staticClass:"dokan-modal"},[a("div",{staticClass:"dokan-modal-content",style:{width:e.width,height:e.height}},[a("section",{class:["dokan-modal-main",{"has-footer":e.footer}]},[a("header",{staticClass:"modal-header"},[e._t("header",[a("h1",[e._v(e._s(e.title))])]),e._v(" "),a("button",{staticClass:"modal-close modal-close-link dashicons dashicons-no-alt",on:{click:function(t){return e.$emit("close")}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Close modal panel","dokan-lite")))])])],2),e._v(" "),a("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),e.footer?a("footer",{staticClass:"modal-footer"},[a("div",{staticClass:"inner"},[e._t("footer")],2)]):e._e()])])]),e._v(" "),a("div",{staticClass:"dokan-modal-backdrop"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(77),o=a(204),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/TextEditor.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("textarea",{attrs:{id:"dokan-tinymce-"+this.editorId},domProps:{value:this.value}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(78),o=a(206),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Currency.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("div",{domProps:{innerHTML:this._s(this.formattedPrice(this.amount))}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(79),o=a(208),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/LazyInput.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:e.type,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)},focus:e.focus,blur:e.blur}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(80),o=a(211),i=!1;var s=function(e){i||a(210)},r=a(0)(n.a,o.a,!1,s,"data-v-356fabc6",null);r.options.__file="src/admin/components/Progressbar.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.bgColor,attrs:{id:"progressbar"}},[a("div",{class:e.fgColor,style:{width:e.value+"%"},attrs:{id:"value"}},[e.hidden?e._e():[e._v(e._s(e.value+"%"))]],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(81),o=a(213),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Search.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchItems,expression:"searchItems"}],attrs:{type:"search",id:"post-search-input",name:"s",placeholder:e.title},domProps:{value:e.searchItems},on:{input:function(t){t.target.composing||(e.searchItems=t.target.value)}}})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(82),o=a(215),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Datepicker.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},,,,function(e,t,a){"use strict";var n=a(84),o=a(221),i=!1;var s=function(e){i||a(220)},r=a(0)(n.a,o.a,!1,s,"data-v-4f45e4a0",null);r.options.__file="src/admin/components/GoogleMaps.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return this.apiKey?t("div",{staticClass:"gmap-wrap regular-text"},[t("input",{ref:"searchAddress",staticClass:"search-address regular-text",attrs:{type:"text",placeholder:this.__("Search Address","dokan-lite")}}),this._v(" "),t("div",{ref:"gmapArea",attrs:{id:"gmap"}})]):t("p",[this._v("\n "+this._s(this.__("Please enter google map API key","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(85),o=a(224),i=!1;var s=function(e){i||a(223)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Mapbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.accessToken?a("div",{staticClass:"mapbox-wrapper"},[a("div",{staticClass:"address-input"},[a("label",[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n "),a("input",{attrs:{type:"text"},domProps:{value:e.address},on:{input:e.onChangeAddress}})])]),e._v(" "),a("div",{style:{width:e.width,height:e.height},attrs:{id:e.mapboxId}})]):a("p",[e._v("\n "+e._s(e.__("Please enter Mapbox access token in `Appearance > Mapbox Access Token` settings.","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(86),o=a(227),i=!1;var s=function(e){i||a(226)},r=a(0)(n.a,o.a,!1,s,"data-v-e724292e",null);r.options.__file="src/admin/components/RefreshSettingOptions.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",{staticClass:"button button-link",attrs:{type:"button",disabled:e.isRefreshing||e.showRefreshedMsg},on:{click:function(t){return t.preventDefault(),e.refreshSettings(t)}}},[e.isRefreshing||e.showRefreshedMsg?e._e():a("span",{staticClass:"dashicons dashicons-image-rotate"}),e._v(" "),e.isRefreshing?a("span",{staticClass:"refreshing-message"},[e._v(e._s(e.messages.refreshing)+"...")]):e._e(),e._v(" "),e.showRefreshedMsg?a("span",{staticClass:"refresh-message-success"},[e._v("✓ "+e._s(e.messages.refreshed))]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(87),o=a(229),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorSocialFields.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"social-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Social Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"facebook"}},[e._v(e._s(e.__("Facebook","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.fb,expression:"vendorInfo.social.fb"}],staticClass:"dokan-form-input",attrs:{id:"facebook",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.fb},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"fb",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"flickr"}},[e._v(e._s(e.__("Flickr","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.flickr,expression:"vendorInfo.social.flickr"}],staticClass:"dokan-form-input",attrs:{id:"flickr",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.flickr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"flickr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"twitter"}},[e._v(e._s(e.__("Twitter","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.twitter,expression:"vendorInfo.social.twitter"}],staticClass:"dokan-form-input",attrs:{id:"twitter",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.twitter},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"twitter",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"youtube"}},[e._v(e._s(e.__("Youtube","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.youtube,expression:"vendorInfo.social.youtube"}],staticClass:"dokan-form-input",attrs:{id:"youtube",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.youtube},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"youtube",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"linkedin"}},[e._v(e._s(e.__("Linkedin","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.linkedin,expression:"vendorInfo.social.linkedin"}],staticClass:"dokan-form-input",attrs:{id:"linkedin",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.linkedin},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"linkedin",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{id:"pinterest",for:"pinterest"}},[e._v(e._s(e.__("Pinterest","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.pinterest,expression:"vendorInfo.social.pinterest"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.pinterest},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"pinterest",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"instagram"}},[e._v(e._s(e.__("Instagram","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.instagram,expression:"vendorInfo.social.instagram"}],staticClass:"dokan-form-input",attrs:{id:"instagram",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.instagram},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"instagram",t.target.value)}}})]),e._v(" "),e._l(e.getSocialFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o}],[186]);
|
1 |
+
dokanWebpack([1],[,,function(e,t,a){"use strict";var n=a(10),o=a(28),i=!1;var s=function(e){i||a(27)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Switches.vue",t.a=r.exports},,,,function(e,t,a){"use strict";var n=a(15);t.a={extends:n.Line,props:["data"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!0,scales:{xAxes:[{type:"time",scaleLabel:{display:!1},gridLines:{display:!1},ticks:{fontColor:"#aaa",fontSize:11}}],yAxes:[{scaleLabel:{display:!1},ticks:{fontColor:"#aaa"}}]},legend:{position:"top",onClick:!1},elements:{line:{tension:0,borderWidth:4},point:{radius:5,borderWidth:3,backgroundColor:"#fff",borderColor:"#fff"}},tooltips:{displayColors:!1,callbacks:{label:function(e,t){var a=t.datasets[e.datasetIndex].label||"",n=t.datasets[e.datasetIndex].tooltipLabel||"",o=t.datasets[e.datasetIndex].tooltipPrefix||"",i=n?n+": ":a+": ";return i+=o+e.yLabel}}}}}},mounted:function(){this.renderChart(this.data,this.options)}}},,function(e,t,a){"use strict";var n=a(54);t.a={components:{Sketch:n.a},props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:"hex",validator:function(e){return-1!==["hsl","hex","rgba","hsv"].indexOf(e)}},presetColors:{type:Array,required:!1,default:function(){return["#000","#fff","#d33","#d93","#ee2","#81d742","#1e73be","#8224e3"]}},disableAlpha:{type:Boolean,required:!1,default:!0},disableFields:{type:Boolean,required:!1,default:!0}},data:function(){return{showColorPicker:!1}},methods:{updateColor:function(e){var t="";e[this.format]&&(t=e[this.format]),this.$emit("input",t)},toggleColorPicker:function(){this.showColorPicker=!this.showColorPicker},setHexColor:function(e){this.updateColor({hex:e})}}}},function(e,t,a){"use strict";var n=a(1),o=(a.n(n),a(2)),i=a(16),s=a(17);t.a={name:"VendorAccountFields",components:{Switches:o.a,UploadImage:i.a,PasswordGenerator:s.a},props:{vendorInfo:{type:Object},errors:{type:Array,required:!1}},data:function(){return{showStoreUrl:!0,showPassword:!1,otherStoreUrl:null,banner:"",defaultUrl:dokan.urls.siteUrl+dokan.urls.storePrefix+"/",showButton:!0,placeholderData:"",delay:500,storeAvailable:null,userNameAvailable:null,emailAvailable:null,storeAvailabilityText:"",userNameAvailabilityText:"",emailAvailabilityText:"",getAccountFields:dokan.hooks.applyFilters("getVendorAccountFields",[])}},watch:{"vendorInfo.store_name":function(e){this.showStoreUrl=!0},"vendorInfo.user_nicename":function(e){void 0!==e&&(this.showStoreUrl=!1,this.otherStoreUrl=this.defaultUrl+e.trim().split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.vendorInfo.user_nicename=e.split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-"),this.checkStoreName())},"vendorInfo.user_login":function(e){this.checkUsername()},"vendorInfo.email":function(e){this.checkEmail()}},computed:{storeUrl:function(){var e=this.vendorInfo.store_name.trim().split(" ").join("-").toLowerCase().replace(/[^\w\s/-]/g,"").replace(/-+/g,"-");return this.vendorInfo.user_nicename=e,this.otherStoreUrl=this.defaultUrl+e,this.defaultUrl+e}},created:function(){var e=this;this.checkStoreName=Object(n.debounce)(this.checkStore,this.delay),this.checkUsername=Object(n.debounce)(this.searchUsername,this.delay),this.checkEmail=Object(n.debounce)(this.searchEmail,this.delay),this.$root.$on("passwordCancelled",function(){e.showPassword=!1})},methods:{uploadBanner:function(e){this.vendorInfo.banner_id=e.id,this.showButton=!1},uploadGravatar:function(e){this.vendorInfo.gravatar_id=e.id},getId:function(){return this.$route.params.id},onSelectBanner:function(e){this.banner=e.url,this.vendorInfo.banner_id=e.id},getError:function(e){var t=this.errors;return!(!t||void 0===t)&&(!(t.length<1)&&(t.includes(e)?e:void 0))},checkStore:function(){var e=this,t=this.vendorInfo.user_nicename;t&&(this.storeAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{store_slug:t}).then(function(t){t.available?(e.storeAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Available","dokan-lite")):(e.storeAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.storeAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchUsername:function(){var e=this,t=this.vendorInfo.user_login;t&&(this.userNameAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{username:t}).then(function(t){t.available?(e.userNameAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Available","dokan-lite")):(e.userNameAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.userNameAvailabilityText=e.__("Not Available","dokan-lite"))}))},searchEmail:function(){var e=this,t=this.vendorInfo.email;t&&(this.emailAvailabilityText=this.__("Searching...","dokan-lite"),dokan.api.get("/stores/check",{email:t}).then(function(t){t.available?(e.emailAvailable=!0,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=e.__("Available","dokan-lite")):(e.emailAvailable=!1,e.$root.$emit("vendorInfoChecked",{userNameAvailable:e.userNameAvailable,storeAvailable:e.storeAvailable,emailAvailable:e.emailAvailable}),e.emailAvailabilityText=t.message?t.message:e.__("This email is already registered, please choose another one.","dokan-lite"))}))},setPassword:function(e){this.showPassword=!0,this.vendorInfo.user_pass=e},sendEmail:function(e,t){"notify_vendor"===t&&(this.vendorInfo.notify_vendor=e)},getUploadBannerText:function(){var e=dokan.store_banner_dimension.width,t=dokan.store_banner_dimension.height;return this.__("Upload banner for your store. Banner size is (".concat(e,"x").concat(t,") pixels."),"dokan-lite")}}}},function(e,t,a){"use strict";t.a={name:"Switches",props:{enabled:{type:Boolean,required:!0,default:!1},value:{type:[String,Number]}},data:function(){return{}},methods:{trigger:function(e){this.$emit("input",e.target.checked,e.target.value)}}}},function(e,t,a){"use strict";t.a={name:"UploadImage",inheritAttrs:!1,props:{src:{default:dokan.urls.assetsUrl+"/images/store-pic.png"},showButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:"Upload Image"},croppingWidth:{type:Number},croppingHeight:{type:Number}},data:function(){return{image:{src:"",id:""}}},methods:{uploadImage:function(){this.openMediaManager(this.onSelectImage)},onSelectImage:function(e){this.image.src=e.url,this.image.id=e.id,this.$emit("uploadedImage",this.image)},openMediaManager:function(e){var t=this;if(t.fileFrame)t.fileFrame.open();else{var a={library:wp.media.query(),multiple:!1,title:this.__("Select & Crop Image","dokan-lite"),priority:20,filterable:"uploaded",autoSelect:!0,suggestedWidth:500,suggestedHeight:300},n={id:"control-id",params:{width:this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),height:this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),flex_width:!!parseInt(dokan.store_banner_dimension["flex-width"],10),flex_height:!!parseInt(dokan.store_banner_dimension["flex-height"],10)},mustBeCropped:function(e,t,a,n,o,i){return(!0!==e||!0!==t)&&((!0!==e||n!==i)&&((!0!==t||a!==o)&&((a!==o||n!==i)&&!(o<=a))))}},o=[new wp.media.controller.Library(a),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:t.calculateImageSelectOptions,control:n})],i={title:this.__("Select Image","dokan-lite"),button:{text:this.__("Select Image","dokan-lite"),close:!1},multiple:!1};i.states=o,t.fileFrame=wp.media(i),t.fileFrame.on("select",function(){t.fileFrame.setState("cropper")}),t.fileFrame.on("cropped",function(a){e(a),t.fileFrame=null}),t.fileFrame.on("skippedcrop",function(){var a=t.fileFrame.state().get("selection").map(function(e){return e.toJSON()}).pop();e(a),t.fileFrame=null}),t.fileFrame.on("close",function(){t.fileFrame=null}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-vendor-option-media"}}),t.fileFrame.open()}},calculateImageSelectOptions:function(e,t){var a,n,o,i,s,r,l=this.croppingWidth?parseInt(this.croppingWidth,10):parseInt(dokan.store_banner_dimension.width,10),d=this.croppingHeight?parseInt(this.croppingHeight,10):parseInt(dokan.store_banner_dimension.height,10),c=!!parseInt(dokan.store_banner_dimension["flex-width"],10),u=!!parseInt(dokan.store_banner_dimension["flex-height"],10);s=e.get("width"),i=e.get("height");var p=t.get("control");return t.set("canSkipCrop",!p.mustBeCropped(c,u,l,d,s,i)),(n=s)/(o=i)>(a=l/d)?l=(d=o)*a:d=(l=n)/a,r={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:i,x1:0,y1:0,x2:l,y2:d},!1===u&&!1===c&&(r.aspectRatio=l+":"+d),!1===u&&(r.maxHeight=d),!1===c&&(r.maxWidth=l),r}}}},function(e,t,a){"use strict";t.a={name:"PasswordGenerator",props:{title:{type:String,default:"Generate Password"},cancelTitle:{type:String,default:"Cancel"},regenrateTitle:{type:String,default:"Regenrate"},length:{type:Number,default:25}},data:function(){return{password:"",hideGenerateButton:!1,showCancelButton:!1}},methods:{generatePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password),this.hideGenerateButton=!0,this.showCancelButton=!0},makePassword:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t="",a=0;a<=e;a++){t+="abcdefghijklmnopqurstuvwxyz"[Math.floor(Math.random()*e)]+"ABCDEFGHIJKLMNOPQURSTUVWXYZ"[Math.floor(10*Math.random())]+"!@#$%^&*()"[Math.floor(Math.random()*"!@#$%^&*()".length)]}return t.slice(-e)},cancelButton:function(){this.hideGenerateButton=!1,this.showCancelButton=!1,this.$root.$emit("passwordCancelled")},regenratePassword:function(){this.password=this.makePassword(this.length),this.$emit("passwordGenerated",this.password)}}}},function(e,t,a){"use strict";var n=a(3);a.n(n);t.a={name:"VendorAddressFields",components:{Multiselect:n.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{countries:[],states:[],selectedCountry:{},selectedState:{},getAddressFields:dokan.hooks.applyFilters("getVendorAddressFields",[])}},computed:{selectedCode:function(){var e=this.vendorInfo.address.country;return""!==e?e:[]}},created:function(){this.countries=this.transformCountries(dokan.countries),this.states=dokan.states;var e=this.vendorInfo.address.country,t=this.vendorInfo.address.state;""!==e&&(this.selectedCountry={name:this.getCountryFromCountryCode(e),code:e},this.selectedState={name:this.getStateFromStateCode(t,e),code:t})},methods:{transformCountries:function(e){var t=[];for(var a in e)t.push({name:e[a],code:a});return t},getCountryFromCountryCode:function(e){if(""!==e)return dokan.countries[e]},getStateFromStateCode:function(e,t){if(""!==e){var a=dokan.states[t],n=a&&a[e];return void 0!==n?n:[]}},getStatesFromCountryCode:function(e){if(""!==e){var t=[],a=this.states;for(var n in a)if(n===e&&!(a[n]&&a[n].length<1))for(var o in a[n])t.push({name:a[n][o],code:o});return t}},saveCountry:function(e){e&&(this.vendorInfo.address.state=null,this.selectedState={},this.vendorInfo.address.country=e.code)},saveState:function(e){e&&(this.vendorInfo.address.state=e.code)}}}},function(e,t,a){"use strict";var n=a(2),o=a(3);a.n(o);t.a={name:"VendorPaymentFields",components:{Switches:n.a,Multiselect:o.Multiselect},props:{vendorInfo:{type:Object}},data:function(){return{enabled:!1,trusted:!1,featured:!1,commissionTypes:[{name:"flat",label:this.__("Flat","dokan-lite")},{name:"percentage",label:this.__("Percentage","dokan-lite")},{name:"combine",label:this.__("Combine","dokan-lite")}],selectedCommissionType:{name:"flat",label:this.__("Flat","dokan-lite")},getBankFields:dokan.hooks.applyFilters("getVendorBankFields",[]),getPyamentFields:dokan.hooks.applyFilters("AfterPyamentFields",[])}},created:function(){this.vendorInfo.enabled&&(this.enabled=!0,this.vendorInfo.enabled=!0),this.vendorInfo.trusted&&(this.trusted=!0,this.vendorInfo.trusted=!0),this.vendorInfo.featured&&(this.featured=!0,this.vendorInfo.featured=!0);var e=this.vendorInfo.admin_commission_type;if(e){var t=_.findWhere(this.commissionTypes,{name:e}),a=t.name,n=t.label;this.selectedCommissionType.name=a,this.selectedCommissionType.label=n}},methods:{setValue:function(e,t){"enabled"===t&&(this.vendorInfo.enabled=!!e),"trusted"===t&&(this.vendorInfo.trusted=!!e),"featured"===t&&(this.vendorInfo.featured=!!e)},getId:function(){return this.$route.params.id},saveCommissionType:function(e){var t=e.name;t||(this.vendorInfo.admin_commission_type="flat"),this.vendorInfo.admin_commission_type=t}}}},,function(e,t,a){"use strict";var n=a(11),o=a(30),i=!1;var s=function(e){i||a(29)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/UploadImage.vue",t.a=r.exports},function(e,t,a){"use strict";var n=a(12),o=a(31),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/PasswordGenerator.vue",t.a=i.exports},,,function(e,t,a){"use strict";var n=a(6),o=a(0)(n.a,null,!1,null,null,null);o.options.__file="src/admin/components/Chart.vue",t.a=o.exports},,,function(e,t,a){"use strict";var n=a(8),o=a(25),i=!1;var s=function(e){i||a(24)},r=a(0)(n.a,o.a,!1,s,"data-v-01dc0d51",null);r.options.__file="src/admin/components/ColorPicker.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"color-picker-container"},[a("button",{staticClass:"button color-picker-button",style:{backgroundColor:e.value},attrs:{type:"button"},on:{click:e.toggleColorPicker}},[a("span",[e._v(e._s(e.__("Select Color","dokan-lite")))])]),e._v(" "),e.showColorPicker&&"hex"===e.format?a("input",{staticClass:"hex-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(t){return e.setHexColor(t.target.value)}}}):e._e(),e._v(" "),e.showColorPicker?a("div",{staticClass:"button-group"},[a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:function(t){return e.updateColor({})}}},[e._v(e._s(e.__("Clear","dokan-lite")))]),e._v(" "),a("button",{staticClass:"button button-small",attrs:{type:"button"},on:{click:e.toggleColorPicker}},[e._v(e._s(e.__("Close","dokan-lite")))])]):e._e(),e._v(" "),e.showColorPicker?a("sketch",{attrs:{value:e.value,"preset-colors":e.presetColors,"disable-alpha":e.disableAlpha,"disable-fields":e.disableFields},on:{input:e.updateColor}}):e._e()],1)};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(9),o=a(32),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorAccountFields.vue",t.a=i.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"switch tips"},[t("input",{staticClass:"toogle-checkbox",attrs:{type:"checkbox"},domProps:{checked:this.enabled,value:this.value},on:{change:this.trigger}}),this._v(" "),t("span",{staticClass:"slider round"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-upload-image",on:{click:e.uploadImage}},[e.showButton?e._e():a("img",{attrs:{src:e.image.src?e.image.src:e.src}}),e._v(" "),e.showButton?a("button",{on:{click:function(t){return t.preventDefault(),e.uploadImage(t)}}},[e._v("\n "+e._s(e.buttonLabel)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"password-generator"},[e.hideGenerateButton?e._e():a("button",{staticClass:"button button-secondary",on:{click:function(t){return t.preventDefault(),e.generatePassword(t)}}},[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(t)}}},[a("span",{staticClass:"dashicons dashicons-controls-repeat"}),e._v("\n "+e._s(e.regenrateTitle)+"\n ")]):e._e(),e._v(" "),e.showCancelButton?a("button",{staticClass:"button cancel-button",on:{click:function(t){return t.preventDefault(),e.cancelButton(t)}}},[e._v("\n "+e._s(e.cancelTitle)+"\n ")]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Account Info","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[e.getId()?e._e():a("div",{staticClass:"vendor-image"},[a("div",{staticClass:"picture"},[a("p",{staticClass:"picture-header"},[e._v(e._s(e.__("Vendor Picture","dokan-lite")))]),e._v(" "),a("div",{staticClass:"profile-image"},[a("upload-image",{attrs:{croppingWidth:150,croppingHeight:150},on:{uploadedImage:e.uploadGravatar}})],1),e._v(" "),a("p",{staticClass:"picture-footer",domProps:{innerHTML:e._s(e.sprintf(e.__("You can change your profile picutre on %s","dokan-lite"),"<a href='https://gravatar.com/' target='_blank'>Gravatar</a>"))}})]),e._v(" "),a("div",{class:["picture banner",{"has-banner":e.vendorInfo.banner_id}]},[a("div",{staticClass:"banner-image"},[a("upload-image",{attrs:{showButton:e.showButton,buttonLabel:e.__("Upload Banner","dokan-lite")},on:{uploadedImage:e.uploadBanner}})],1),e._v(" "),e.showButton?a("p",{staticClass:"picture-footer"},[e._v(e._s(e.getUploadBannerText()))]):e._e()])]),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("First Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.first_name,expression:"vendorInfo.first_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("First Name","dokan-lite")},domProps:{value:e.vendorInfo.first_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"first_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Last Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.last_name,expression:"vendorInfo.last_name"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("Last Name","dokan-lite")},domProps:{value:e.vendorInfo.last_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"last_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-name"}},[e._v(e._s(e.__("Store Name","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.store_name,expression:"vendorInfo.store_name"}],class:{"dokan-form-input":!0,"has-error":e.getError("store_name")},attrs:{type:"text",placeholder:e.getError("store_name")?e.__("Store Name is required","dokan-lite"):e.__("Store Name","dokan-lite")},domProps:{value:e.vendorInfo.store_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"store_name",t.target.value)}}})]),e._v(" "),e.getId()?e._e():a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-url"}},[e._v(e._s(e.__("Store URL","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_nicename,expression:"vendorInfo.user_nicename"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Store Url","dokan-lite")},domProps:{value:e.vendorInfo.user_nicename},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_nicename",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[e.showStoreUrl?a("p",{staticClass:"store-url"},[e._v(e._s(e.storeUrl))]):a("p",{staticClass:"store-url"},[e._v(e._s(e.otherStoreUrl))]),e._v(" "),a("span",{class:{"is-available":e.storeAvailable,"not-available":!e.storeAvailable}},[e._v(e._s(e.storeAvailabilityText))])])]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-phone"}},[e._v(e._s(e.__("Phone Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.phone,expression:"vendorInfo.phone"}],staticClass:"dokan-form-input",attrs:{type:"number",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.phone},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"phone",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-email"}},[e._v(e._s(e.__("Email","dokan-lite")))]),e._v(" "),e.getId()?e._e():a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.email,expression:"vendorInfo.email"}],class:{"dokan-form-input":!0,"has-error":e.getError("email")},attrs:{type:"email",placeholder:e.getError("email")?e.__("Email is required","dokan-lite"):e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"email",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.emailAvailable,"not-available":!e.emailAvailable}},[e._v(e._s(e.emailAvailabilityText))])])]),e._v(" "),e.getId()?e._e():[a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-username"}},[e._v(e._s(e.__("Username","dokan-lite")))]),a("span",{staticClass:"required-field"},[e._v("*")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_login,expression:"vendorInfo.user_login"}],staticClass:"dokan-form-input",class:{"dokan-form-input":!0,"has-error":e.getError("user_login")},attrs:{type:"text",placeholder:e.getError("user_login")?e.__("Username is required","dokan-lite"):e.__("Username","dokan-lite")},domProps:{value:e.vendorInfo.user_login},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_login",t.target.value)}}}),e._v(" "),a("div",{staticClass:"store-avaibility-info"},[a("span",{class:{"is-available":e.userNameAvailable,"not-available":!e.userNameAvailable}},[e._v(e._s(e.userNameAvailabilityText))])]),e._v(" "),a("div",{staticClass:"checkbox-left notify-vendor"},[a("switches",{attrs:{enabled:!0,value:"notify_vendor"},on:{input:e.sendEmail}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Send the vendor an email about their account.","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"store-password"}},[e._v(e._s(e.__("Password","dokan-lite")))]),e._v(" "),e.showPassword?a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.user_pass,expression:"vendorInfo.user_pass"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:"********"},domProps:{value:e.vendorInfo.user_pass},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"user_pass",t.target.value)}}}):e._e(),e._v(" "),a("password-generator",{attrs:{title:e.__("Generate Password","dokan-lite")},on:{passwordGenerated:e.setPassword}})],1)],e._v(" "),e._l(e.getAccountFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(13),o=a(35),i=!1;var s=function(e){i||a(34)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorAddressFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-1"}},[e._v(e._s(e.__("Street 1","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_1,expression:"vendorInfo.address.street_1"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 1","dokan-lite")},domProps:{value:e.vendorInfo.address.street_1},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_1",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"street-2"}},[e._v(e._s(e.__("Street 2","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.street_2,expression:"vendorInfo.address.street_2"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Street 2","dokan-lite")},domProps:{value:e.vendorInfo.address.street_2},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"street_2",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"city"}},[e._v(e._s(e.__("City","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.city,expression:"vendorInfo.address.city"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("City","dokan-lite")},domProps:{value:e.vendorInfo.address.city},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"city",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"zip"}},[e._v(e._s(e.__("Zip","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.zip,expression:"vendorInfo.address.zip"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Zip","dokan-lite")},domProps:{value:e.vendorInfo.address.zip},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"zip",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"country"}},[e._v(e._s(e.__("Country","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.countries,multiselect:!1,label:"name","track-by":"name",showLabels:!1,placeholder:e.__("Select Country","dokan-lite")},on:{input:e.saveCountry},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}})],1),e._v(" "),a("div",{staticClass:"address-multiselect"},[a("label",{attrs:{for:"state"}},[e._v(e._s(e.__("State","dokan-lite")))]),e._v(" "),e.getStatesFromCountryCode(e.selectedCode).length<1?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.address.state,expression:"vendorInfo.address.state"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("State","dokan-lite")},domProps:{value:e.vendorInfo.address.state},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.address,"state",t.target.value)}}})]:[a("Multiselect",{attrs:{options:e.getStatesFromCountryCode(e.selectedCode),multiselect:!1,showLabels:!1,label:"name","track-by":"name",placeholder:e.__("Select State","dokan-lite")},on:{input:e.saveState},model:{value:e.selectedState,callback:function(t){e.selectedState=t},expression:"selectedState"}})]],2),e._v(" "),e._l(e.getAddressFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(14),o=a(38),i=!1;var s=function(e){i||a(37)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/pages/VendorPaymentFields.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"payment-info":!0,"edit-mode":e.getId()}},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Payment Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("Account Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_name,expression:"vendorInfo.payment.bank.ac_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Account Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"account-number"}},[e._v(e._s(e.__("Account Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.ac_number,expression:"vendorInfo.payment.bank.ac_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("1233456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.ac_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"ac_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-name"}},[e._v(e._s(e.__("Bank Name","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_name,expression:"vendorInfo.payment.bank.bank_name"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Name","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_name},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_name",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"bank-address"}},[e._v(e._s(e.__("Bank Address","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.bank_addr,expression:"vendorInfo.payment.bank.bank_addr"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("Bank Address","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.bank_addr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"bank_addr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"routing-number"}},[e._v(e._s(e.__("Routing Number","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.routing_number,expression:"vendorInfo.payment.bank.routing_number"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.routing_number},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"routing_number",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"iban"}},[e._v(e._s(e.__("IBAN","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.iban,expression:"vendorInfo.payment.bank.iban"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.iban},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"iban",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"swift"}},[e._v(e._s(e.__("Swift","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.bank.swift,expression:"vendorInfo.payment.bank.swift"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("123456789","dokan-lite")},domProps:{value:e.vendorInfo.payment.bank.swift},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.bank,"swift",t.target.value)}}})]),e._v(" "),e._l(e.getBankFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2),e._v(" "),a("div",{staticClass:"dokan-form-group"},[a("div",{class:{column:e.getId(),"checkbox-group":!e.getId()}},[a("label",{attrs:{for:"account-name"}},[e._v(e._s(e.__("PayPal Email","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.payment.paypal.email,expression:"vendorInfo.payment.paypal.email"}],staticClass:"dokan-form-input",attrs:{type:"email",placeholder:e.__("store@email.com","dokan-lite")},domProps:{value:e.vendorInfo.payment.paypal.email},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.payment.paypal,"email",t.target.value)}}})]),e._v(" "),e.getId()?[a("div",{staticClass:"column"},[a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission Type","dokan-lite")))]),e._v(" "),a("Multiselect",{attrs:{options:e.commissionTypes,"track-by":"name",label:"label","allow-empty":!1,multiselect:!1,searchable:!1,showLabels:!1},on:{input:e.saveCommissionType},model:{value:e.selectedCommissionType,callback:function(t){e.selectedCommissionType=t},expression:"selectedCommissionType"}})],1)]),e._v(" "),"combine"===e.selectedCommissionType.name?a("div",{staticClass:"column combine-commission"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("div",{staticClass:"combine-commission-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"wc_input_decimal dokan-form-input percent_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}}),e._v("\n "+e._s("% +")+"\n "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_additional_fee,expression:"vendorInfo.admin_additional_fee"}],staticClass:"wc_input_price dokan-form-input fixed_fee",attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_additional_fee},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_additional_fee",t.target.value)}}})])]):a("div",{staticClass:"column"},[a("label",[e._v(e._s(e.__("Admin Commission","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.admin_commission,expression:"vendorInfo.admin_commission"}],staticClass:"dokan-form-input",class:{wc_input_price:"flat"==e.selectedCommissionType.name,wc_input_decimal:"flat"!=e.selectedCommissionType.name},attrs:{type:"text"},domProps:{value:e.vendorInfo.admin_commission},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo,"admin_commission",t.target.value)}}})])]:e._e(),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.enabled,value:"enabled"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Enable Selling","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.trusted,value:"trusted"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Publish Product Directly","dokan-lite")))])],1)]),e._v(" "),a("div",{staticClass:"checkbox-group"},[a("div",{staticClass:"checkbox-left"},[a("switches",{attrs:{enabled:e.featured,value:"featured"},on:{input:e.setValue}}),e._v(" "),a("span",{staticClass:"desc"},[e._v(e._s(e.__("Make Vendor Featured","dokan-lite")))])],1)])],2),e._v(" "),e._l(e.getPyamentFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";t.c=o,t.a=function(e,t){return i(t)?i(t).dgettext(t,e):e},t.b=function(e,t,a,n,o){return i(o).dnpgettext(o,n,e,t,a)},a.d(t,"d",function(){return s});var n={};function o(e){var t=new Jed(e);n[t._textdomain]=t}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n[e]||o({"":{}}),n[e]}var s=Jed.sprintf},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";t.a={name:"Postbox",props:{title:{type:String,required:!0,default:""},extraClass:{type:String,default:null}},data:function(){return{showing:!0}}}},function(e,t,a){"use strict";t.a={name:"Loading",data:function(){return{}}}},function(e,t,a){"use strict";t.a={name:"Modal",props:{footer:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:"500px"},height:{type:String,required:!1,default:"auto"},title:{type:String,required:!0,default:""}},data:function(){return{}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0},shortcodes:{type:Object,required:!1}},data:function(){return{editorId:this._uid,fileFrame:null}},mounted:function(){var e=this;window.tinymce.init({selector:"#dokan-tinymce-".concat(this.editorId),branding:!1,height:200,menubar:!1,convert_urls:!1,theme:"modern",skin:"lightgray",fontsize_formats:"10px 11px 13px 14px 16px 18px 22px 25px 30px 36px 40px 45px 50px 60px 65px 70px 75px 80px",font_formats:"Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Lucida=Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;",plugins:"textcolor colorpicker wplink wordpress code hr wpeditimage",toolbar:["shortcodes bold italic underline bullist numlist alignleft aligncenter alignjustify alignright link image wp_adv","formatselect forecolor backcolor blockquote hr code fontselect fontsizeselect removeformat undo redo"],setup:function(t){var a=[];_.forEach(e.shortcodes,function(e,n){a.push({text:e.title,classes:"menu-section-title"}),_.forEach(e.codes,function(e,o){a.push({text:e.title,onclick:function(){var a="[".concat(n,":").concat(o,"]");e.default&&(a="[".concat(n,":").concat(o,' default="').concat(e.default,'"]')),e.text&&(a="[".concat(n,":").concat(o,' text="').concat(e.text,'"]')),e.plainText&&(a=e.text),t.insertContent(a)}})})}),t.addButton("image",{icon:"image",onclick:function(){e.browseImage(t)}}),t.on("change keyup NodeChange",function(){e.$emit("input",t.getContent())})}})},methods:{browseImage:function(e){var t=this,a={id:0,url:"",type:""};if(t.fileFrame)t.fileFrame.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:this.__("Select an image","dokan-lite"),priority:20,filterable:"uploaded"})];t.fileFrame=wp.media({title:this.__("Select an image","dokan-lite"),library:{type:""},button:{text:this.__("Select an image","dokan-lite")},multiple:!1,states:n}),t.fileFrame.on("select",function(){t.fileFrame.state().get("selection").map(function(n){return(n=n.toJSON()).id&&(a.id=n.id),n.url&&(a.url=n.url),n.type&&(a.type=n.type),t.insertImage(e,a),null})}),t.fileFrame.on("ready",function(){t.fileFrame.uploader.options.uploader.params={type:"dokan-image-uploader"}}),t.fileFrame.open()}},insertImage:function(e,t){if(t.id&&"image"===t.type){var a='<img src="'.concat(t.url,'" alt="').concat(t.alt,'" title="').concat(t.title,'" style="max-width: 100%; height: auto;">');e.insertContent(a)}else this.alert({type:"error",text:this.__("Please select an image,","dokan-lite")})}}}},function(e,t,a){"use strict";t.a={props:["amount"],methods:{formattedPrice:function(e){return accounting.formatMoney(e,dokan.currency)}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"LazyInput",props:{value:{type:String,required:!0,default:""},type:{type:String,required:!1,default:"text"},placeholder:{type:String,required:!1,default:""}},data:function(){return{delay:500,debouncer:null}},methods:{updateValue:function(e){var t=this;t.debouncer&&t.debouncer.clear(),t.debouncer=Object(n.debounce)(function(){t.triggerInput(e)},t.delay),t.debouncer()},focus:function(){this.$emit("focus")},blur:function(){this.$emit("blur")},triggerInput:function(e){this.$emit("input",e)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:Number,default:0},hidden:{type:Boolean,default:!1},bgColor:{type:String,default:"defaultBg"},fgColor:{type:String,default:"defaultFg"}}}},function(e,t,a){"use strict";var n=a(1);a.n(n);t.a={name:"Search",props:{title:{type:String,default:"Search"}},data:function(){return{delay:500,searchItems:""}},watch:{searchItems:function(){this.makeDelay()}},created:function(){this.makeDelay=Object(n.debounce)(this.doSearch,this.delay)},methods:{doSearch:function(){this.$emit("searched",this.searchItems)}}}},function(e,t,a){"use strict";t.a={props:{value:{type:String,required:!0,default:""},format:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},changeMonthYear:{type:Boolean,required:!1,default:!1}},mounted:function(){var e=this;jQuery(e.$el).datepicker({dateFormat:e.format,changeMonth:e.changeMonthYear,changeYear:e.changeMonthYear,beforeShow:function(){jQuery(this).datepicker("widget").addClass("dokan-datepicker")},onSelect:function(t){e.updateValue(t)}})},methods:{updateValue:function(e){e||(e=moment().format("YYYY-MM-DD")),this.$emit("input",e)}}}},,function(e,t,a){"use strict";t.a={name:"GoogleMaps",props:{apiKey:{type:String,default:null},location:{type:Object,default:function(){return{latitude:23.709921,longitude:90.40714300000002,address:"dhaka",zoom:10}}}},data:function(){return{dokanGoogleMap:null,marker:null,loadMap:this.apiKey.length>1}},mounted:function(){this.apiKey&&window.google&&this.renderMap()||this.$emit("hideMap",!0)},beforeDestroy:function(){this.dokanGoogleMap&&(this.dokanGoogleMap=null),this.marker&&(this.marker=null)},methods:{setMap:function(){this.dokanGoogleMap=new google.maps.Map(this.getMapArea(),{center:this.getCenter(),zoom:this.location.zoom,mapTypeId:google.maps.MapTypeId.ROADMAP})},setMarker:function(){this.marker=new google.maps.Marker({position:this.getCenter(),map:this.dokanGoogleMap})},GetGeocoder:function(){return new google.maps.Geocoder},getSearchAddress:function(){return this.location.address&&(this.$refs.searchAddress.value=this.location.address),this.$refs.searchAddress},setAutoComplete:function(){var e=this,t=new google.maps.places.Autocomplete(this.getSearchAddress());t.addListener("place_changed",function(){var a=t.getPlace(),n=a.geometry.location;e.updateMap(n.lat(),n.lng(),a.formatted_address)})},updateMap:function(e,t,a){var n=new google.maps.LatLng(e,t);this.$emit("updateMap",{latitude:n.lat(),longitude:n.lng(),address:a}),this.dokanGoogleMap.setCenter(n),this.marker.setPosition(n),a||this.GetGeocoder.geocode({location:{lat:e,lng:t}},function(e,t){"OK"===t&&address.val(e[0].formatted_address)})},renderMap:function(){return this.setMap(),this.setMarker(),this.setAutoComplete(),!0},getCenter:function(){return new google.maps.LatLng(this.location.latitude,this.location.longitude)},getMapArea:function(){return this.$refs.gmapArea}}}},function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(t){o()(this,e),this._mapId=t}return s()(e,[{key:"onAdd",value:function(e){var t=this;this._map=e;var a=document.createElement("span");a.className="dashicons dashicons-search";var n=document.createTextNode("Search Map"),o=document.createElement("button");o.type="button",o.className="button",o.appendChild(a),o.appendChild(n),o.addEventListener("click",function(e){e.preventDefault();var a=document.getElementById(t._mapId).getElementsByClassName("mapboxgl-ctrl-top-left")[0];a.className=a.className+" show-geocoder"});var i=document.createElement("div");return i.className="mapboxgl-ctrl dokan-mapboxgl-ctrl",i.appendChild(o),this._container=i,this._container}},{key:"onRemove",value:function(){this._container.parentNode.removeChild(this._container),this._map=void 0}}]),e}();t.a={name:"Mapbox",props:{accessToken:{type:String,default:null},location:{type:Object,required:!0},width:{type:String,required:!1,default:"100%"},height:{type:String,required:!1,default:"300px"}},data:function(){return{dokanMapbox:null,dokanGeocoder:null,dokanMarker:null}},computed:{mapboxId:function(){return"dokan-mapbox-".concat(this._uid)},address:function(){return this.location.address}},mounted:function(){this.accessToken&&window.mapboxgl&&this.initializeMapbox()||this.$emit("hideMap",!0),window.mapboxgl=mapboxgl},beforeDestroy:function(){this.dokanMapbox&&(this.dokanMarker.remove(),this.dokanMapbox.remove())},methods:{initializeMapbox:function(){var e=this;return mapboxgl.accessToken=this.accessToken,this.dokanMapbox=new mapboxgl.Map({container:this.mapboxId,style:"mapbox://styles/mapbox/streets-v10",center:[this.location.longitude,this.location.latitude],zoom:this.location.zoom}),this.dokanMapbox.addControl(new mapboxgl.NavigationControl),this.dokanMapbox.addControl(new r(this.mapboxId),"top-left"),this.dokanMapbox.on("zoomend",function(t){e.setLocation({zoom:t.target.getZoom()})}),this.dokanMapbox.on("load",function(){e.dokanGeocoder=new MapboxGeocoder({accessToken:mapboxgl.accessToken,mapboxgl:mapboxgl,zoom:e.dokanMapbox.getZoom(),placeholder:e.__("Search Address","dokan-lite"),marker:!1,reverseGeocode:!0}),e.dokanMapbox.addControl(e.dokanGeocoder,"top-left"),e.dokanGeocoder.setInput(e.location.address),e.dokanGeocoder.on("result",function(t){var a=t.result,n=a.center;a.place_name;e.dokanMarker.setLngLat(n),e.dokanMapbox.setCenter([n[0],n[1]]),e.setLocation({address:a.place_name,latitude:n[1],longitude:n[0],zoom:e.dokanMapbox.getZoom()})})}),this.dokanMarker=new mapboxgl.Marker({draggable:!0}).setLngLat([this.location.longitude,this.location.latitude]).addTo(this.dokanMapbox).on("dragend",this.onMarkerDragEnd),!0},onMarkerDragEnd:function(){var e=this,t=this.dokanGeocoder.geocoderService.client.origin,a=this.dokanGeocoder.geocoderService.client.accessToken,n=this.dokanMarker.getLngLat().wrap(),o=n.lng,i=n.lat;this.dokanMapbox.setCenter([o,i]),this.setLocation({latitude:i,longitude:o});var s="".concat(t,"/geocoding/v5/mapbox.places/").concat(o,"%2C").concat(i,".json?access_token=").concat(a,"&cachebuster=").concat(+new Date,"&autocomplete=true");this.dokanGeocoder._inputEl.disabled=!0,this.dokanGeocoder._loadingEl.style.display="block",jQuery.ajax({url:s,method:"get"}).done(function(t){e.dokanGeocoder._typeahead.update(t.features)}).fail(function(){}).always(function(){e.dokanGeocoder._inputEl.disabled=!1,e.dokanGeocoder._loadingEl.style.display=""})},setLocation:function(e){this.$emit("updateMap",e)},onChangeAddress:function(e){this.setLocation({address:e.target.value})}}}},function(e,t,a){"use strict";t.a={props:{section:{type:String,required:!0},field:{type:Object,required:!0},toggleLoadingState:{type:Function,required:!0}},data:function(){return{isRefreshing:!1,showRefreshedMsg:!1}},computed:{messages:function(){var e,t,a,n;return{refreshing:(null===(e=this.field.refresh_options)||void 0===e?void 0:null===(t=e.messages)||void 0===t?void 0:t.refreshing)||this.__("Refreshing options","dokan-lite"),refreshed:(null===(a=this.field.refresh_options)||void 0===a?void 0:null===(n=a.messages)||void 0===n?void 0:n.refreshed)||this.__("Option refreshed!","dokan-lite")}}},methods:{refreshSettings:function(){var e=this;this.toggleLoadingState(),this.isRefreshing=!0,jQuery.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:{action:"dokan_refresh_admin_settings_field_options",_wpnonce:dokan.admin_settings_nonce,section:this.section,field:this.field.name}}).done(function(t){var a;(null===t||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a[0])&&e.setSettingOptions(t.data)}).always(function(){e.toggleLoadingState(),e.isRefreshing=!1}).fail(function(e){var t;(null===e||void 0===e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.data)&&alert(e.responseJSON.data)})},setSettingOptions:function(e){var t=this;this.field.options=e,this.showRefreshedMsg=!0,setTimeout(function(){return t.showRefreshedMsg=!1},3e3)}}}},function(e,t,a){"use strict";t.a={name:"VendorSocialFields",props:{vendorInfo:{type:Object}},data:function(){return{getSocialFields:dokan.hooks.applyFilters("getVendorSocialFields",[])}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(4),o=a(19),i=a(187),s=a.n(i),r=a(68),l=a.n(r),d=a(69),c=a(3),u=a.n(c),p=a(191),m=a(15),v=a(192),f=a(1),_=a.n(f),h=a(193),g=a.n(h),b=a(73),k=(a.n(b),a(194)),y=a(197),w=a(20),C=a(200),x=a(2),I=a(203),S=a(205),A=a(207),P=a(209),M=a(212),F=a(214),N=a(83),$=a(23),T=a(219),L=a(222),E=a(16),B=a(17),G=a(225),R=a(26),V=a(33),j=a(228),q=a(36),U=a(230);a.n(U);window.__=function(e,t){return __(e,t)},n.default.use(l.a),n.default.use(N.default),n.default.mixin(v.a),n.default.filter("currency",function(e){return accounting.formatMoney(e,dokan.currency)}),n.default.filter("capitalize",function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}),n.default.directive("tooltip",{bind:function(e,t,a){jQuery(e).tooltip("show")},unbind:function(e,t,a){jQuery(e).tooltip("destroy")}}),window.dokan_get_lib=function(e){return window.dokan.libs[e]},window.dokan_add_route=function(e){window.dokan.routeComponents[e.name]=e},window.dokan.api=new p.a,window.dokan.libs.Vue=n.default,window.dokan.libs.Router=o.default,window.dokan.libs.moment=s.a,window.dokan.libs.ListTable=d.default,window.dokan.libs.Currency=S.a,window.dokan.libs.Postbox=k.a,window.dokan.libs.Loading=y.a,window.dokan.libs.ChartJS=m.default,window.dokan.libs.Chart=w.a,window.dokan.libs.Modal=C.a,window.dokan.libs.Switches=x.a,window.dokan.libs.TextEditor=I.a,window.dokan.libs.LazyInput=A.a,window.dokan.libs.Progressbar=P.a,window.dokan.libs.Search=M.a,window.dokan.libs.Datepicker=F.a,window.dokan.libs.Multiselect=u.a,window.dokan.libs.ColorPicker=$.a,window.dokan.libs.debounce=_.a,window.dokan.libs.VersionCompare=g.a,window.dokan.libs.GoogleMaps=T.a,window.dokan.libs.Mapbox=L.a,window.dokan.libs.UploadImage=E.a,window.dokan.libs.PasswordGenerator=B.a,window.dokan.libs.VendorAccountFields=R.a,window.dokan.libs.VendorAddressFields=V.a,window.dokan.libs.VendorSocialFields=j.a,window.dokan.libs.VendorPaymentFields=q.a,window.dokan.libs.RefreshSettingOptions=G.a,window.dokan.libs.ContentLoading={VclCode:b.VclCode,VclList:b.VclList,VclTwitch:b.VclTwitch,VclFacebook:b.VclFacebook,VclInstagram:b.VclInstagram,VclBulletList:b.VclBulletList,VueContentLoading:b.VueContentLoading},dokan.hooks=wp&&wp.hooks?wp.hooks:dokan.wpPackages.hooks,dokan.hooks&&(dokan.addFilterComponent=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;dokan.hooks.addFilter(e,t,function(e){return e.push(a),e},n)})},function(e,t){e.exports=moment},,,,function(e,t,a){"use strict";var n=a(71),o=a.n(n),i=a(72),s=a.n(i),r=function(){function e(){o()(this,e)}return s()(e,[{key:"endpoint",value:function(){return window.dokan.rest.root+window.dokan.rest.version}},{key:"headers",value:function(){return{}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"GET",this.headers(),t)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"POST",this.headers(),t)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"PUT",this.headers(),t)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ajax(e,"DELETE",this.headers(),t)}},{key:"ajax",value:function(e,t,a,n){var o=null;return"PUT"!==t&&"DELETE"!==t||(o=t,t="POST"),jQuery.ajax({url:this.endpoint()+e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.dokan.rest.nonce),o&&e.setRequestHeader("X-HTTP-Method-Override",o)},type:t,data:n})}}]),e}();t.a=r},function(e,t,a){"use strict";var n=a(39);t.a={methods:{setLocaleData:function(e){return Object(n.c)(e)},__:function(e,t){return Object(n.a)(e,t)},_nx:function(e,t,a,o,i){return Object(n.b)(e,t,a,o,i)},__n:function(e,t,a,n){return _n(e,t,a,n)},sprintf:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return n.d.apply(void 0,[e].concat(a))}}}},function(e,t){e.exports=function(e,t,a){var n,o,i=0,s={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},r=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?s[e]||-7:parseInt(e,10):0};for(e=r(e),t=r(t),o=Math.max(e.length,t.length),n=0;n<o;n++)if(e[n]!==t[n]){if(e[n]=l(e[n]),t[n]=l(t[n]),e[n]<t[n]){i=-1;break}if(e[n]>t[n]){i=1;break}}if(!a)return i;switch(a){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"===":case"=":case"eq":return 0===i;case"<>":case"!==":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}},function(e,t,a){"use strict";var n=a(74),o=a(196),i=!1;var s=function(e){i||a(195)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Postbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["postbox","dokan-postbox",{closed:!e.showing},e.extraClass]},[a("div",{staticClass:"postbox-header"},[a("h2",{staticClass:"hndle"},[a("span",[e._v(e._s(e.title))])]),e._v(" "),a("div",{staticClass:"handle-actions hide-if-no-js"},[a("button",{staticClass:"handlediv",attrs:{type:"button","aria-expanded":"false"},on:{click:function(t){e.showing=!e.showing}}},[a("span",{staticClass:"toggle-indicator",attrs:{"aria-hidden":"true"}})])])]),e._v(" "),a("div",{staticClass:"inside"},[a("div",{staticClass:"main"},[e._t("default")],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(75),o=a(199),i=!1;var s=function(e){i||a(198)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Loading.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)};n._withStripped=!0;var o={render:n,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"dokan-loader"},[t("div"),t("div")])}]};t.a=o},function(e,t,a){"use strict";var n=a(76),o=a(202),i=!1;var s=function(e){i||a(201)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Modal.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dokan-modal-dialog"},[a("div",{staticClass:"dokan-modal"},[a("div",{staticClass:"dokan-modal-content",style:{width:e.width,height:e.height}},[a("section",{class:["dokan-modal-main",{"has-footer":e.footer}]},[a("header",{staticClass:"modal-header"},[e._t("header",[a("h1",[e._v(e._s(e.title))])]),e._v(" "),a("button",{staticClass:"modal-close modal-close-link dashicons dashicons-no-alt",on:{click:function(t){return e.$emit("close")}}},[a("span",{staticClass:"screen-reader-text"},[e._v(e._s(e.__("Close modal panel","dokan-lite")))])])],2),e._v(" "),a("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),e.footer?a("footer",{staticClass:"modal-footer"},[a("div",{staticClass:"inner"},[e._t("footer")],2)]):e._e()])])]),e._v(" "),a("div",{staticClass:"dokan-modal-backdrop"})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(77),o=a(204),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/TextEditor.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("textarea",{attrs:{id:"dokan-tinymce-"+this.editorId},domProps:{value:this.value}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(78),o=a(206),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Currency.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this.$createElement;return(this._self._c||e)("div",{domProps:{innerHTML:this._s(this.formattedPrice(this.amount))}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(79),o=a(208),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/LazyInput.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:e.type,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)},focus:e.focus,blur:e.blur}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(80),o=a(211),i=!1;var s=function(e){i||a(210)},r=a(0)(n.a,o.a,!1,s,"data-v-356fabc6",null);r.options.__file="src/admin/components/Progressbar.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.bgColor,attrs:{id:"progressbar"}},[a("div",{class:e.fgColor,style:{width:e.value+"%"},attrs:{id:"value"}},[e.hidden?e._e():[e._v(e._s(e.value+"%"))]],2)])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(81),o=a(213),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Search.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"search-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchItems,expression:"searchItems"}],attrs:{type:"search",id:"post-search-input",name:"s",placeholder:e.title},domProps:{value:e.searchItems},on:{input:function(t){t.target.composing||(e.searchItems=t.target.value)}}})])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(82),o=a(215),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/components/Datepicker.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(t){return e.updateValue(t.target.value)}}})};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},,,,function(e,t,a){"use strict";var n=a(84),o=a(221),i=!1;var s=function(e){i||a(220)},r=a(0)(n.a,o.a,!1,s,"data-v-4f45e4a0",null);r.options.__file="src/admin/components/GoogleMaps.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this.$createElement,t=this._self._c||e;return this.apiKey?t("div",{staticClass:"gmap-wrap regular-text"},[t("input",{ref:"searchAddress",staticClass:"search-address regular-text",attrs:{type:"text",placeholder:this.__("Search Address","dokan-lite")}}),this._v(" "),t("div",{ref:"gmapArea",attrs:{id:"gmap"}})]):t("p",[this._v("\n "+this._s(this.__("Please enter google map API key","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(85),o=a(224),i=!1;var s=function(e){i||a(223)},r=a(0)(n.a,o.a,!1,s,null,null);r.options.__file="src/admin/components/Mapbox.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.accessToken?a("div",{staticClass:"mapbox-wrapper"},[a("div",{staticClass:"address-input"},[a("label",[e._v("\n "+e._s(e.__("Address","dokan-lite"))+"\n "),a("input",{attrs:{type:"text"},domProps:{value:e.address},on:{input:e.onChangeAddress}})])]),e._v(" "),a("div",{style:{width:e.width,height:e.height},attrs:{id:e.mapboxId}})]):a("p",[e._v("\n "+e._s(e.__("Please enter Mapbox access token in `Appearance > Mapbox Access Token` settings.","dokan-lite"))+"\n")])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(86),o=a(227),i=!1;var s=function(e){i||a(226)},r=a(0)(n.a,o.a,!1,s,"data-v-e724292e",null);r.options.__file="src/admin/components/RefreshSettingOptions.vue",t.a=r.exports},function(e,t){},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",{staticClass:"button button-link",attrs:{type:"button",disabled:e.isRefreshing||e.showRefreshedMsg},on:{click:function(t){return t.preventDefault(),e.refreshSettings(t)}}},[e.isRefreshing||e.showRefreshedMsg?e._e():a("span",{staticClass:"dashicons dashicons-image-rotate"}),e._v(" "),e.isRefreshing?a("span",{staticClass:"refreshing-message"},[e._v(e._s(e.messages.refreshing)+"...")]):e._e(),e._v(" "),e.showRefreshedMsg?a("span",{staticClass:"refresh-message-success"},[e._v("✓ "+e._s(e.messages.refreshed))]):e._e()])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o},function(e,t,a){"use strict";var n=a(87),o=a(229),i=a(0)(n.a,o.a,!1,null,null,null);i.options.__file="src/admin/pages/VendorSocialFields.vue",t.a=i.exports},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"social-info"},[a("div",{staticClass:"content-header"},[e._v("\n "+e._s(e.__("Social Options","dokan-lite"))+"\n ")]),e._v(" "),a("div",{staticClass:"content-body"},[a("div",{staticClass:"dokan-form-group"},[a("div",{staticClass:"column"},[a("label",{attrs:{for:"facebook"}},[e._v(e._s(e.__("Facebook","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.fb,expression:"vendorInfo.social.fb"}],staticClass:"dokan-form-input",attrs:{id:"facebook",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.fb},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"fb",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"flickr"}},[e._v(e._s(e.__("Flickr","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.flickr,expression:"vendorInfo.social.flickr"}],staticClass:"dokan-form-input",attrs:{id:"flickr",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.flickr},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"flickr",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"twitter"}},[e._v(e._s(e.__("Twitter","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.twitter,expression:"vendorInfo.social.twitter"}],staticClass:"dokan-form-input",attrs:{id:"twitter",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.twitter},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"twitter",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"youtube"}},[e._v(e._s(e.__("Youtube","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.youtube,expression:"vendorInfo.social.youtube"}],staticClass:"dokan-form-input",attrs:{id:"youtube",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.youtube},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"youtube",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"linkedin"}},[e._v(e._s(e.__("Linkedin","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.linkedin,expression:"vendorInfo.social.linkedin"}],staticClass:"dokan-form-input",attrs:{id:"linkedin",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.linkedin},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"linkedin",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{id:"pinterest",for:"pinterest"}},[e._v(e._s(e.__("Pinterest","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.pinterest,expression:"vendorInfo.social.pinterest"}],staticClass:"dokan-form-input",attrs:{type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.pinterest},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"pinterest",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"column"},[a("label",{attrs:{for:"instagram"}},[e._v(e._s(e.__("Instagram","dokan-lite")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.vendorInfo.social.instagram,expression:"vendorInfo.social.instagram"}],staticClass:"dokan-form-input",attrs:{id:"instagram",type:"text",placeholder:e.__("https://example.com")},domProps:{value:e.vendorInfo.social.instagram},on:{input:function(t){t.target.composing||e.$set(e.vendorInfo.social,"instagram",t.target.value)}}})]),e._v(" "),e._l(e.getSocialFields,function(t,n){return a(t,{key:n,tag:"component",attrs:{vendorInfo:e.vendorInfo}})})],2)])])};n._withStripped=!0;var o={render:n,staticRenderFns:[]};t.a=o}],[186]);
|
dokan.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
* Plugin Name: Dokan
|
4 |
* Plugin URI: https://wordpress.org/plugins/dokan-lite/
|
5 |
* Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
|
6 |
-
* Version: 3.2.
|
7 |
* Author: weDevs
|
8 |
* Author URI: https://wedevs.com/
|
9 |
* Text Domain: dokan-lite
|
10 |
* WC requires at least: 3.0
|
11 |
-
* WC tested up to: 5.
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
14 |
*/
|
@@ -56,7 +56,7 @@ final class WeDevs_Dokan {
|
|
56 |
*
|
57 |
* @var string
|
58 |
*/
|
59 |
-
public $version = '3.2.
|
60 |
|
61 |
/**
|
62 |
* Instance of self
|
3 |
* Plugin Name: Dokan
|
4 |
* Plugin URI: https://wordpress.org/plugins/dokan-lite/
|
5 |
* Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
|
6 |
+
* Version: 3.2.5
|
7 |
* Author: weDevs
|
8 |
* Author URI: https://wedevs.com/
|
9 |
* Text Domain: dokan-lite
|
10 |
* WC requires at least: 3.0
|
11 |
+
* WC tested up to: 5.2.2
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
14 |
*/
|
56 |
*
|
57 |
* @var string
|
58 |
*/
|
59 |
+
public $version = '3.2.5';
|
60 |
|
61 |
/**
|
62 |
* Instance of self
|
includes/Admin/Settings.php
CHANGED
@@ -477,6 +477,20 @@ class Settings {
|
|
477 |
'sanitize_callback' => 'wc_format_decimal',
|
478 |
'response_sanitize_callback' => 'wc_format_localized_price',
|
479 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
'exclude_cod_payment' => [
|
481 |
'name' => 'exclude_cod_payment',
|
482 |
'label' => __( 'Exclude COD Payments', 'dokan-lite' ),
|
477 |
'sanitize_callback' => 'wc_format_decimal',
|
478 |
'response_sanitize_callback' => 'wc_format_localized_price',
|
479 |
],
|
480 |
+
'withdraw_order_status' => [
|
481 |
+
'name' => 'withdraw_order_status',
|
482 |
+
'label' => __( 'Order Status for Withdraw', 'dokan-lite' ),
|
483 |
+
'desc' => __( 'Order status for which vendor can make a withdraw request.', 'dokan-lite' ),
|
484 |
+
'type' => 'multicheck',
|
485 |
+
'default' => array(
|
486 |
+
'wc-completed' => 'wc-completed',
|
487 |
+
),
|
488 |
+
'options' => array(
|
489 |
+
'wc-completed' => __( 'Completed', 'dokan-lite' ),
|
490 |
+
'wc-processing' => __( 'Processing', 'dokan-lite' ),
|
491 |
+
'wc-on-hold' => __( 'On-hold', 'dokan-lite' ),
|
492 |
+
),
|
493 |
+
],
|
494 |
'exclude_cod_payment' => [
|
495 |
'name' => 'exclude_cod_payment',
|
496 |
'label' => __( 'Exclude COD Payments', 'dokan-lite' ),
|
includes/Admin/SetupWizard.php
CHANGED
@@ -530,12 +530,6 @@ class SetupWizard {
|
|
530 |
<?php esc_html_e( 'Processing', 'dokan-lite' ); ?>
|
531 |
</label>
|
532 |
</li>
|
533 |
-
<li class="checkbox">
|
534 |
-
<input type="checkbox" name="withdraw_order_status[wc-on-hold]" id="withdraw_order_status[wc-on-hold]" class="switch-input" value="wc-on-hold" <?php echo ( array_key_exists( 'wc-on-hold', $withdraw_order_status ) ) ? 'checked="true"' : ''; ?>>
|
535 |
-
<label for="withdraw_order_status[wc-on-hold]">
|
536 |
-
<?php esc_html_e( 'On-hold', 'dokan-lite' ); ?>
|
537 |
-
</label>
|
538 |
-
</li>
|
539 |
</ul>
|
540 |
|
541 |
<p class="description"><?php esc_html_e( 'Order status for which vendor can make a withdraw request.', 'dokan-lite' ); ?></p>
|
530 |
<?php esc_html_e( 'Processing', 'dokan-lite' ); ?>
|
531 |
</label>
|
532 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
</ul>
|
534 |
|
535 |
<p class="description"><?php esc_html_e( 'Order status for which vendor can make a withdraw request.', 'dokan-lite' ); ?></p>
|
includes/Dashboard/Templates/Orders.php
CHANGED
@@ -111,6 +111,8 @@ class Orders {
|
|
111 |
}
|
112 |
|
113 |
if ( isset( $post_data['dokan_order_export_filtered'] ) ) {
|
|
|
|
|
114 |
|
115 |
$filename = 'Orders-' . time();
|
116 |
header( 'Content-Type: application/csv; charset=' . get_option( 'blog_charset' ) );
|
@@ -119,7 +121,7 @@ class Orders {
|
|
119 |
$order_date = ( isset( $post_data['order_date'] ) ) ? sanitize_text_field( $post_data['order_date'] ) : null;
|
120 |
$order_status = ( isset( $post_data['order_status'] ) ) ? sanitize_text_field( $post_data['order_status'] ) : 'all';
|
121 |
|
122 |
-
$user_orders = dokan_get_seller_orders( dokan_get_current_user_id(), $order_status, $order_date, 10000000, 0 );
|
123 |
dokan_order_csv_export( $user_orders );
|
124 |
exit();
|
125 |
}
|
111 |
}
|
112 |
|
113 |
if ( isset( $post_data['dokan_order_export_filtered'] ) ) {
|
114 |
+
$get_data = wp_unslash( $_GET );
|
115 |
+
$customer_id = isset( $get_data['customer_id'] ) ? $get_data['customer_id'] : null;
|
116 |
|
117 |
$filename = 'Orders-' . time();
|
118 |
header( 'Content-Type: application/csv; charset=' . get_option( 'blog_charset' ) );
|
121 |
$order_date = ( isset( $post_data['order_date'] ) ) ? sanitize_text_field( $post_data['order_date'] ) : null;
|
122 |
$order_status = ( isset( $post_data['order_status'] ) ) ? sanitize_text_field( $post_data['order_status'] ) : 'all';
|
123 |
|
124 |
+
$user_orders = dokan_get_seller_orders( dokan_get_current_user_id(), $order_status, $order_date, 10000000, 0, $customer_id );
|
125 |
dokan_order_csv_export( $user_orders );
|
126 |
exit();
|
127 |
}
|
includes/Dashboard/Templates/Products.php
CHANGED
@@ -84,12 +84,18 @@ class Products {
|
|
84 |
$_virtual = get_post_meta( $post_id, '_virtual', true );
|
85 |
$is_downloadable = ( 'yes' == $_downloadable ) ? true : false;
|
86 |
$is_virtual = ( 'yes' == $_virtual ) ? true : false;
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
dokan_get_template_part( 'products/download-virtual', '', array(
|
89 |
'post_id' => $post_id,
|
90 |
'post' => $post,
|
91 |
'is_downloadable' => $is_downloadable,
|
92 |
'is_virtual' => $is_virtual,
|
|
|
93 |
'class' => 'show_if_subscription show_if_variable-subscription show_if_simple',
|
94 |
) );
|
95 |
}
|
@@ -124,6 +130,12 @@ class Products {
|
|
124 |
* @return void
|
125 |
*/
|
126 |
public static function load_downloadable_template( $post, $post_id ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
dokan_get_template_part( 'products/downloadable', '', array(
|
128 |
'post_id' => $post_id,
|
129 |
'post' => $post,
|
@@ -336,6 +348,7 @@ class Products {
|
|
336 |
}
|
337 |
|
338 |
update_post_meta( $product_id, '_visibility', 'visible' );
|
|
|
339 |
|
340 |
do_action( 'dokan_new_product_added', $product_id, $postdata );
|
341 |
|
84 |
$_virtual = get_post_meta( $post_id, '_virtual', true );
|
85 |
$is_downloadable = ( 'yes' == $_downloadable ) ? true : false;
|
86 |
$is_virtual = ( 'yes' == $_virtual ) ? true : false;
|
87 |
+
$digital_mode = dokan_get_option( 'global_digital_mode', 'dokan_general', 'sell_both' );
|
88 |
+
|
89 |
+
if ( 'sell_physical' === $digital_mode ) {
|
90 |
+
return;
|
91 |
+
}
|
92 |
|
93 |
dokan_get_template_part( 'products/download-virtual', '', array(
|
94 |
'post_id' => $post_id,
|
95 |
'post' => $post,
|
96 |
'is_downloadable' => $is_downloadable,
|
97 |
'is_virtual' => $is_virtual,
|
98 |
+
'digital_mode' => $digital_mode,
|
99 |
'class' => 'show_if_subscription show_if_variable-subscription show_if_simple',
|
100 |
) );
|
101 |
}
|
130 |
* @return void
|
131 |
*/
|
132 |
public static function load_downloadable_template( $post, $post_id ) {
|
133 |
+
$digital_mode = dokan_get_option( 'global_digital_mode', 'dokan_general', 'sell_both' );
|
134 |
+
|
135 |
+
if ( 'sell_physical' === $digital_mode ) {
|
136 |
+
return;
|
137 |
+
}
|
138 |
+
|
139 |
dokan_get_template_part( 'products/downloadable', '', array(
|
140 |
'post_id' => $post_id,
|
141 |
'post' => $post,
|
348 |
}
|
349 |
|
350 |
update_post_meta( $product_id, '_visibility', 'visible' );
|
351 |
+
update_post_meta( $product_id, '_stock_status', 'instock' );
|
352 |
|
353 |
do_action( 'dokan_new_product_added', $product_id, $postdata );
|
354 |
|
includes/Shortcodes/Stores.php
CHANGED
@@ -23,6 +23,10 @@ class Stores extends DokanShortcode {
|
|
23 |
'search' => 'yes',
|
24 |
'per_row' => 3,
|
25 |
'featured' => 'no',
|
|
|
|
|
|
|
|
|
26 |
);
|
27 |
|
28 |
/**
|
@@ -62,6 +66,26 @@ class Stores extends DokanShortcode {
|
|
62 |
$seller_args['featured'] = 'yes';
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
$sellers = dokan_get_sellers( apply_filters( 'dokan_seller_listing_args', $seller_args, $_GET ) );
|
66 |
|
67 |
/**
|
23 |
'search' => 'yes',
|
24 |
'per_row' => 3,
|
25 |
'featured' => 'no',
|
26 |
+
'category' => '',
|
27 |
+
'order' => '',
|
28 |
+
'orderby' => '',
|
29 |
+
'store_id' => '',
|
30 |
);
|
31 |
|
32 |
/**
|
66 |
$seller_args['featured'] = 'yes';
|
67 |
}
|
68 |
|
69 |
+
if ( ! empty( $attr['category'] ) ) {
|
70 |
+
$seller_args['store_category_query'][] = array(
|
71 |
+
'taxonomy' => 'store_category',
|
72 |
+
'field' => 'slug',
|
73 |
+
'terms' => explode( ',', $attr['category'] ),
|
74 |
+
);
|
75 |
+
}
|
76 |
+
|
77 |
+
if ( ! empty( $attr['order'] ) ) {
|
78 |
+
$seller_args['order'] = $attr['order'];
|
79 |
+
}
|
80 |
+
|
81 |
+
if ( ! empty( $attr['orderby'] ) ) {
|
82 |
+
$seller_args['orderby'] = $attr['orderby'];
|
83 |
+
}
|
84 |
+
|
85 |
+
if ( ! empty( $attr['store_id'] ) ) {
|
86 |
+
$seller_args['include'] = explode( ',', $attr['store_id'] );
|
87 |
+
}
|
88 |
+
|
89 |
$sellers = dokan_get_sellers( apply_filters( 'dokan_seller_listing_args', $seller_args, $_GET ) );
|
90 |
|
91 |
/**
|
includes/Vendor/Vendor.php
CHANGED
@@ -201,7 +201,7 @@ class Vendor {
|
|
201 |
'store_tnc' => '',
|
202 |
'show_min_order_discount' => 'no',
|
203 |
'store_seo' => array(),
|
204 |
-
'dokan_store_time_enabled' => '
|
205 |
'dokan_store_open_notice' => '',
|
206 |
'dokan_store_close_notice' => ''
|
207 |
);
|
201 |
'store_tnc' => '',
|
202 |
'show_min_order_discount' => 'no',
|
203 |
'store_seo' => array(),
|
204 |
+
'dokan_store_time_enabled' => 'no',
|
205 |
'dokan_store_open_notice' => '',
|
206 |
'dokan_store_close_notice' => ''
|
207 |
);
|
includes/functions.php
CHANGED
@@ -26,7 +26,7 @@ function dokana_admin_menu_capability() {
|
|
26 |
*
|
27 |
* @since 2.7.3
|
28 |
*
|
29 |
-
* @return
|
30 |
*/
|
31 |
function dokan_get_current_user_id() {
|
32 |
if ( current_user_can( 'vendor_staff' ) ) {
|
@@ -183,15 +183,25 @@ function dokan_redirect_if_not_seller( $redirect = '' ) {
|
|
183 |
*
|
184 |
* @param string $post_type
|
185 |
* @param int $user_id
|
|
|
186 |
*
|
187 |
* @return array
|
188 |
*/
|
189 |
-
function dokan_count_posts( $post_type, $user_id ) {
|
190 |
global $wpdb;
|
191 |
|
192 |
-
$
|
193 |
-
$
|
194 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
if ( false === $counts ) {
|
197 |
$results = apply_filters( 'dokan_count_posts', null, $post_type, $user_id );
|
@@ -199,7 +209,16 @@ function dokan_count_posts( $post_type, $user_id ) {
|
|
199 |
if ( ! $results ) {
|
200 |
$results = $wpdb->get_results(
|
201 |
$wpdb->prepare(
|
202 |
-
"SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
$post_type,
|
204 |
$user_id
|
205 |
),
|
@@ -229,6 +248,73 @@ function dokan_count_posts( $post_type, $user_id ) {
|
|
229 |
return $counts;
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
/**
|
233 |
* Get comment count based on post type and user id
|
234 |
*
|
@@ -1099,7 +1185,7 @@ function dokan_get_store_url( $user_id ) {
|
|
1099 |
$user_nicename = ( ! false == $userdata ) ? $userdata->user_nicename : '';
|
1100 |
$custom_store_url = dokan_get_option( 'custom_store_url', 'dokan_general', 'store' );
|
1101 |
|
1102 |
-
return
|
1103 |
}
|
1104 |
|
1105 |
/**
|
@@ -2049,10 +2135,12 @@ function dokan_get_navigation_url( $name = '' ) {
|
|
2049 |
return '';
|
2050 |
}
|
2051 |
|
|
|
|
|
2052 |
if ( ! empty( $name ) ) {
|
2053 |
-
$
|
2054 |
-
|
2055 |
-
$url
|
2056 |
}
|
2057 |
|
2058 |
return apply_filters( 'dokan_get_navigation_url', esc_url( $url ), $name );
|
@@ -2756,6 +2844,8 @@ function dokan_cache_clear_seller_product_data( $product_id, $post_data = [] ) {
|
|
2756 |
|
2757 |
dokan_clear_product_caches( $product_id );
|
2758 |
dokan_cache_clear_group( 'dokan_seller_product_data_' . $seller_id );
|
|
|
|
|
2759 |
delete_transient( 'dokan-store-category-' . $seller_id );
|
2760 |
}
|
2761 |
|
26 |
*
|
27 |
* @since 2.7.3
|
28 |
*
|
29 |
+
* @return int
|
30 |
*/
|
31 |
function dokan_get_current_user_id() {
|
32 |
if ( current_user_can( 'vendor_staff' ) ) {
|
183 |
*
|
184 |
* @param string $post_type
|
185 |
* @param int $user_id
|
186 |
+
* @param array $exclude_product_types The product types that will be excluded from count
|
187 |
*
|
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 );
|
209 |
if ( ! $results ) {
|
210 |
$results = $wpdb->get_results(
|
211 |
$wpdb->prepare(
|
212 |
+
"SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} as posts
|
213 |
+
INNER JOIN {$wpdb->term_relationships} AS term_relationships ON posts.ID = term_relationships.object_id
|
214 |
+
INNER JOIN {$wpdb->term_taxonomy} AS term_taxonomy ON term_relationships.term_taxonomy_id = term_taxonomy.term_taxonomy_id
|
215 |
+
INNER JOIN {$wpdb->terms} AS terms ON term_taxonomy.term_id = terms.term_id
|
216 |
+
WHERE
|
217 |
+
term_taxonomy.taxonomy = 'product_type'
|
218 |
+
AND terms.slug NOT IN ({$exclude_product_types_text})
|
219 |
+
AND posts.post_type = %s
|
220 |
+
AND posts.post_author = %d
|
221 |
+
GROUP BY posts.post_status",
|
222 |
$post_type,
|
223 |
$user_id
|
224 |
),
|
248 |
return $counts;
|
249 |
}
|
250 |
|
251 |
+
/**
|
252 |
+
* Count stock product type from a user
|
253 |
+
*
|
254 |
+
* @global WPDB $wpdb
|
255 |
+
*
|
256 |
+
* @since DOKAN_LITE_SINCE
|
257 |
+
*
|
258 |
+
* @param string $post_type
|
259 |
+
* @param int $user_id
|
260 |
+
* @param string $stock_type
|
261 |
+
*
|
262 |
+
* @return int $counts
|
263 |
+
*/
|
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 );
|
280 |
+
|
281 |
+
if ( ! $results ) {
|
282 |
+
$results = $wpdb->get_results(
|
283 |
+
$wpdb->prepare(
|
284 |
+
"SELECT p.post_status, COUNT( * ) AS num_posts
|
285 |
+
FROM {$wpdb->prefix}posts as p INNER JOIN {$wpdb->prefix}postmeta as pm ON p.ID = pm.post_id
|
286 |
+
WHERE p.post_type = %s
|
287 |
+
AND p.post_author = %d
|
288 |
+
AND pm.meta_key = '_stock_status'
|
289 |
+
AND pm.meta_value = %s
|
290 |
+
GROUP BY p.post_status",
|
291 |
+
$post_type,
|
292 |
+
$user_id,
|
293 |
+
$stock_type
|
294 |
+
),
|
295 |
+
ARRAY_A
|
296 |
+
);
|
297 |
+
}
|
298 |
+
|
299 |
+
$post_status = array_keys( dokan_get_post_status() );
|
300 |
+
$total = 0;
|
301 |
+
|
302 |
+
foreach ( $results as $row ) {
|
303 |
+
if ( ! in_array( $row['post_status'], $post_status, true ) ) {
|
304 |
+
continue;
|
305 |
+
}
|
306 |
+
|
307 |
+
$total += (int) $row['num_posts'];
|
308 |
+
}
|
309 |
+
|
310 |
+
$counts = $total;
|
311 |
+
|
312 |
+
wp_cache_set( $cache_key, $counts, $cache_group, 3600 * 6 );
|
313 |
+
}
|
314 |
+
|
315 |
+
return $counts;
|
316 |
+
}
|
317 |
+
|
318 |
/**
|
319 |
* Get comment count based on post type and user id
|
320 |
*
|
1185 |
$user_nicename = ( ! false == $userdata ) ? $userdata->user_nicename : '';
|
1186 |
$custom_store_url = dokan_get_option( 'custom_store_url', 'dokan_general', 'store' );
|
1187 |
|
1188 |
+
return home_url( '/' . $custom_store_url . '/' . $user_nicename . '/' );
|
1189 |
}
|
1190 |
|
1191 |
/**
|
2135 |
return '';
|
2136 |
}
|
2137 |
|
2138 |
+
$url = get_permalink( $page_id );
|
2139 |
+
|
2140 |
if ( ! empty( $name ) ) {
|
2141 |
+
$urlParts = wp_parse_url( $url );
|
2142 |
+
$urlParts['path'] = $urlParts['path'] . $name . '/';
|
2143 |
+
$url = http_build_url( '', $urlParts );
|
2144 |
}
|
2145 |
|
2146 |
return apply_filters( 'dokan_get_navigation_url', esc_url( $url ), $name );
|
2844 |
|
2845 |
dokan_clear_product_caches( $product_id );
|
2846 |
dokan_cache_clear_group( 'dokan_seller_product_data_' . $seller_id );
|
2847 |
+
dokan_cache_clear_group( 'dokan_cache_seller_product_data_' . $seller_id );
|
2848 |
+
dokan_cache_clear_group( 'dokan_cache_seller_product_stock_data_' . $seller_id );
|
2849 |
delete_transient( 'dokan-store-category-' . $seller_id );
|
2850 |
}
|
2851 |
|
includes/template-tags.php
CHANGED
@@ -9,36 +9,36 @@
|
|
9 |
|
10 |
if ( ! function_exists( 'dokan_content_nav' ) ) :
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?>">
|
43 |
|
44 |
<ul class="pager">
|
@@ -60,88 +60,88 @@ if ( ! function_exists( 'dokan_content_nav' ) ) :
|
|
60 |
<?php endif; ?>
|
61 |
|
62 |
</nav>
|
63 |
-
|
64 |
-
|
65 |
|
66 |
endif;
|
67 |
|
68 |
if ( ! function_exists( 'dokan_page_navi' ) ) :
|
69 |
|
70 |
-
|
71 |
if ( ! ( $wp_query instanceof WP_Query ) ) {
|
72 |
return;
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
|
80 |
if ( $numposts <= $posts_per_page ) {
|
81 |
-
|
82 |
}
|
83 |
|
84 |
-
|
85 |
-
|
86 |
}
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
if ( $start_page <= 0 ) {
|
95 |
-
|
96 |
}
|
97 |
|
98 |
-
|
99 |
|
100 |
if ( ( $end_page - $start_page ) !== $pages_to_show_minus_1 ) {
|
101 |
-
|
102 |
-
|
103 |
|
104 |
if ( $end_page > $max_page ) {
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
if ( $start_page <= 0 ) {
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
|
134 |
echo '<li class="">';
|
135 |
-
|
136 |
-
|
137 |
|
138 |
if ( $end_page < $max_page ) {
|
139 |
-
|
140 |
-
|
141 |
}
|
142 |
|
143 |
-
|
144 |
-
|
145 |
|
146 |
endif;
|
147 |
|
@@ -152,8 +152,8 @@ function dokan_product_dashboard_errors() {
|
|
152 |
case 'product_deleted':
|
153 |
dokan_get_template_part(
|
154 |
'global/dokan-success', '', array(
|
155 |
-
|
156 |
-
|
157 |
)
|
158 |
);
|
159 |
break;
|
@@ -161,8 +161,8 @@ function dokan_product_dashboard_errors() {
|
|
161 |
case 'error':
|
162 |
dokan_get_template_part(
|
163 |
'global/dokan-error', '', array(
|
164 |
-
|
165 |
-
|
166 |
)
|
167 |
);
|
168 |
break;
|
@@ -176,17 +176,21 @@ function dokan_product_dashboard_errors() {
|
|
176 |
function dokan_product_listing_status_filter() {
|
177 |
$_get_data = wp_unslash( $_GET ); //phpcs:ignore
|
178 |
|
179 |
-
$permalink
|
180 |
-
$status_class
|
181 |
-
$post_counts
|
182 |
-
$
|
|
|
|
|
183 |
|
184 |
dokan_get_template_part(
|
185 |
'products/listing-status-filter', '', array(
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
|
|
|
|
190 |
)
|
191 |
);
|
192 |
}
|
@@ -213,12 +217,12 @@ function dokan_order_listing_status_filter() {
|
|
213 |
<ul class="list-inline order-statuses-filter">
|
214 |
<li<?php echo $status_class === 'all' ? ' class="active"' : ''; ?>>
|
215 |
<?php
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
$all_order_url = array_merge( $date_filter, array( 'order_status' => 'all' ) );
|
223 |
$all_order_url = ( empty( $all_order_url ) ) ? $orders_url : add_query_arg( $complete_order_url, $orders_url );
|
224 |
?>
|
@@ -232,12 +236,12 @@ function dokan_order_listing_status_filter() {
|
|
232 |
</li>
|
233 |
<li<?php echo $status_class === 'wc-completed' ? ' class="active"' : ''; ?>>
|
234 |
<?php
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
$complete_order_url = array_merge( array( 'order_status' => 'wc-completed' ), $date_filter );
|
242 |
?>
|
243 |
<a href="<?php echo esc_url( add_query_arg( $complete_order_url, $orders_url ) ); ?>">
|
@@ -250,12 +254,12 @@ function dokan_order_listing_status_filter() {
|
|
250 |
</li>
|
251 |
<li<?php echo $status_class === 'wc-processing' ? ' class="active"' : ''; ?>>
|
252 |
<?php
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
$processing_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-processing' ) );
|
260 |
?>
|
261 |
<a href="<?php echo esc_url( add_query_arg( $processing_order_url, $orders_url ) ); ?>">
|
@@ -268,12 +272,12 @@ function dokan_order_listing_status_filter() {
|
|
268 |
</li>
|
269 |
<li<?php echo $status_class === 'wc-on-hold' ? ' class="active"' : ''; ?>>
|
270 |
<?php
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
$on_hold_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-on-hold' ) );
|
278 |
?>
|
279 |
<a href="<?php echo esc_url( add_query_arg( $on_hold_order_url, $orders_url ) ); ?>">
|
@@ -286,12 +290,12 @@ function dokan_order_listing_status_filter() {
|
|
286 |
</li>
|
287 |
<li<?php echo $status_class === 'wc-pending' ? ' class="active"' : ''; ?>>
|
288 |
<?php
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
$pending_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-pending' ) );
|
296 |
?>
|
297 |
<a href="<?php echo esc_url( add_query_arg( $pending_order_url, $orders_url ) ); ?>">
|
@@ -304,12 +308,12 @@ function dokan_order_listing_status_filter() {
|
|
304 |
</li>
|
305 |
<li<?php echo $status_class === 'wc-cancelled' ? ' class="active"' : ''; ?>>
|
306 |
<?php
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
$canceled_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-cancelled' ) );
|
314 |
?>
|
315 |
<a href="<?php echo esc_url( add_query_arg( $canceled_order_url, $orders_url ) ); ?>">
|
@@ -322,12 +326,12 @@ function dokan_order_listing_status_filter() {
|
|
322 |
</li>
|
323 |
<li<?php echo $status_class === 'wc-refunded' ? ' class="active"' : ''; ?>>
|
324 |
<?php
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
$refund_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-refunded' ) );
|
332 |
?>
|
333 |
<a href="<?php echo esc_url( add_query_arg( $refund_order_url, $orders_url ) ); ?>">
|
@@ -340,12 +344,12 @@ function dokan_order_listing_status_filter() {
|
|
340 |
</li>
|
341 |
<li<?php echo $status_class === 'wc-failed' ? ' class="active"' : ''; ?>>
|
342 |
<?php
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
|
350 |
$failed_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-failed' ) );
|
351 |
?>
|
@@ -567,14 +571,14 @@ function dokan_dashboard_nav( $active_menu = '' ) {
|
|
567 |
|
568 |
if ( ! function_exists( 'dokan_store_category_menu' ) ) :
|
569 |
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
<div id="cat-drop-stack" class="store-cat-stack-dokan">
|
579 |
<?php
|
580 |
$vendor = dokan()->vendor->get( get_query_var( 'author' ) );
|
@@ -583,7 +587,7 @@ if ( ! function_exists( 'dokan_store_category_menu' ) ) :
|
|
583 |
$product_ids = [];
|
584 |
foreach ( $products->posts as $product ) {
|
585 |
array_push( $product_ids, $product->ID );
|
586 |
-
|
587 |
// hold all the terms
|
588 |
$all_terms = [];
|
589 |
foreach ( $product_ids as $product_id ) {
|
@@ -595,12 +599,12 @@ if ( ! function_exists( 'dokan_store_category_menu' ) ) :
|
|
595 |
array_push( $all_terms, $term );
|
596 |
}
|
597 |
}
|
598 |
-
|
599 |
// hold unique categoreis
|
600 |
$categories = [];
|
601 |
foreach ( $all_terms as $term ) {
|
602 |
$categories[ serialize( $term ) ] = $term;
|
603 |
-
|
604 |
$categories = array_values( $categories );
|
605 |
$walker = new \WeDevs\Dokan\Walkers\StoreCategory( $seller_id );
|
606 |
echo '<ul>';
|
@@ -608,8 +612,8 @@ if ( ! function_exists( 'dokan_store_category_menu' ) ) :
|
|
608 |
echo '</ul>';
|
609 |
?>
|
610 |
</div>
|
611 |
-
|
612 |
-
|
613 |
|
614 |
endif;
|
615 |
|
@@ -620,9 +624,9 @@ function dokan_seller_reg_form_fields() {
|
|
620 |
|
621 |
dokan_get_template_part(
|
622 |
'global/seller-registration-form', '', array(
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
)
|
627 |
);
|
628 |
}
|
@@ -652,9 +656,9 @@ if ( ! function_exists( 'dokan_header_user_menu' ) ) :
|
|
652 |
|
653 |
dokan_get_template_part(
|
654 |
'global/header-menu', '', array(
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
)
|
659 |
);
|
660 |
}
|
9 |
|
10 |
if ( ! function_exists( 'dokan_content_nav' ) ) :
|
11 |
|
12 |
+
/**
|
13 |
+
* Display navigation to next/previous pages when applicable
|
14 |
+
*/
|
15 |
+
function dokan_content_nav( $nav_id, $query = null ) {
|
16 |
+
global $wp_query, $post;
|
17 |
+
|
18 |
+
if ( $query ) {
|
19 |
+
$wp_query = $query; //phpcs:ignore
|
20 |
+
}
|
21 |
+
|
22 |
+
// Don't print empty markup on single pages if there's nowhere to navigate.
|
23 |
+
if ( is_single() ) {
|
24 |
+
$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
|
25 |
+
$next = get_adjacent_post( false, '', false );
|
26 |
+
|
27 |
+
if ( ! $next && ! $previous ) {
|
28 |
+
return;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
// Don't print empty markup in archives if there's only one page.
|
33 |
+
if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) {
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
$nav_class = 'site-navigation paging-navigation';
|
38 |
+
if ( is_single() ) {
|
39 |
+
$nav_class = 'site-navigation post-navigation';
|
40 |
+
}
|
41 |
+
?>
|
42 |
<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?>">
|
43 |
|
44 |
<ul class="pager">
|
60 |
<?php endif; ?>
|
61 |
|
62 |
</nav>
|
63 |
+
<?php
|
64 |
+
}
|
65 |
|
66 |
endif;
|
67 |
|
68 |
if ( ! function_exists( 'dokan_page_navi' ) ) :
|
69 |
|
70 |
+
function dokan_page_navi( $before, $after, $wp_query ) {
|
71 |
if ( ! ( $wp_query instanceof WP_Query ) ) {
|
72 |
return;
|
73 |
}
|
74 |
|
75 |
+
$posts_per_page = intval( get_query_var( 'posts_per_page' ) );
|
76 |
+
$paged = intval( get_query_var( 'paged' ) );
|
77 |
+
$numposts = $wp_query->found_posts;
|
78 |
+
$max_page = $wp_query->max_num_pages;
|
79 |
|
80 |
if ( $numposts <= $posts_per_page ) {
|
81 |
+
return;
|
82 |
}
|
83 |
|
84 |
+
if ( empty( $paged ) || $paged === 0 ) {
|
85 |
+
$paged = 1;
|
86 |
}
|
87 |
|
88 |
+
$pages_to_show = 7;
|
89 |
+
$pages_to_show_minus_1 = $pages_to_show - 1;
|
90 |
+
$half_page_start = floor( $pages_to_show_minus_1 / 2 );
|
91 |
+
$half_page_end = ceil( $pages_to_show_minus_1 / 2 );
|
92 |
+
$start_page = $paged - $half_page_start;
|
93 |
|
94 |
if ( $start_page <= 0 ) {
|
95 |
+
$start_page = 1;
|
96 |
}
|
97 |
|
98 |
+
$end_page = $paged + $half_page_end;
|
99 |
|
100 |
if ( ( $end_page - $start_page ) !== $pages_to_show_minus_1 ) {
|
101 |
+
$end_page = $start_page + $pages_to_show_minus_1;
|
102 |
+
}
|
103 |
|
104 |
if ( $end_page > $max_page ) {
|
105 |
+
$start_page = $max_page - $pages_to_show_minus_1;
|
106 |
+
$end_page = $max_page;
|
107 |
+
}
|
108 |
|
109 |
if ( $start_page <= 0 ) {
|
110 |
+
$start_page = 1;
|
111 |
+
}
|
112 |
+
|
113 |
+
echo $before . '<div class="dokan-pagination-container"><ul class="dokan-pagination">';
|
114 |
+
if ( $paged > 1 ) {
|
115 |
+
$first_page_text = '«';
|
116 |
+
echo '<li class="prev"><a href="' . esc_url( get_pagenum_link() ) . '" title="First">' . esc_html( $first_page_text ) . '</a></li>';
|
117 |
+
}
|
118 |
+
|
119 |
+
$prevposts = get_previous_posts_link( __( '← Previous', 'dokan-lite' ) );
|
120 |
+
if ( $prevposts ) {
|
121 |
+
echo '<li>' . esc_url( $prevposts ) . '</li>';
|
122 |
+
} else {
|
123 |
+
echo '<li class="disabled"><a href="#">' . esc_html__( '← Previous', 'dokan-lite' ) . '</a></li>';
|
124 |
+
}
|
125 |
+
|
126 |
+
for ( $i = $start_page; $i <= $end_page; $i++ ) {
|
127 |
+
if ( $i === $paged ) {
|
128 |
+
echo '<li class="active"><a href="#">' . esc_html( $i ) . '</a></li>';
|
129 |
+
} else {
|
130 |
+
echo '<li><a href="' . esc_url( get_pagenum_link( $i ) ) . '">' . esc_html( number_format_i18n( $i ) ) . '</a></li>';
|
131 |
+
}
|
132 |
+
}
|
133 |
|
134 |
echo '<li class="">';
|
135 |
+
next_posts_link( __( 'Next →', 'dokan-lite' ) );
|
136 |
+
echo '</li>';
|
137 |
|
138 |
if ( $end_page < $max_page ) {
|
139 |
+
$last_page_text = '→';
|
140 |
+
echo '<li class="next"><a href="' . esc_url( get_pagenum_link( $max_page ) ) . '" title="Last">' . esc_html( $last_page_text ) . '</a></li>';
|
141 |
}
|
142 |
|
143 |
+
echo '</ul></div>' . $after . ''; //phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
|
144 |
+
}
|
145 |
|
146 |
endif;
|
147 |
|
152 |
case 'product_deleted':
|
153 |
dokan_get_template_part(
|
154 |
'global/dokan-success', '', array(
|
155 |
+
'deleted' => true,
|
156 |
+
'message' => __( 'Product succesfully deleted', 'dokan-lite' ),
|
157 |
)
|
158 |
);
|
159 |
break;
|
161 |
case 'error':
|
162 |
dokan_get_template_part(
|
163 |
'global/dokan-error', '', array(
|
164 |
+
'deleted' => false,
|
165 |
+
'message' => __( 'Something went wrong!', 'dokan-lite' ),
|
166 |
)
|
167 |
);
|
168 |
break;
|
176 |
function dokan_product_listing_status_filter() {
|
177 |
$_get_data = wp_unslash( $_GET ); //phpcs:ignore
|
178 |
|
179 |
+
$permalink = dokan_get_navigation_url( 'products' );
|
180 |
+
$status_class = isset( $_get_data['post_status'] ) ? $_get_data['post_status'] : 'all';
|
181 |
+
$post_counts = dokan_count_posts( 'product', dokan_get_current_user_id() );
|
182 |
+
$instock_counts = dokan_count_stock_posts( 'product', dokan_get_current_user_id(), 'instock' );
|
183 |
+
$outofstock_counts = dokan_count_stock_posts( 'product', dokan_get_current_user_id(), 'outofstock' );
|
184 |
+
$statuses = dokan_get_post_status();
|
185 |
|
186 |
dokan_get_template_part(
|
187 |
'products/listing-status-filter', '', array(
|
188 |
+
'permalink' => $permalink,
|
189 |
+
'status_class' => $status_class,
|
190 |
+
'post_counts' => $post_counts,
|
191 |
+
'instock_counts' => $instock_counts,
|
192 |
+
'outofstock_counts' => $outofstock_counts,
|
193 |
+
'statuses' => $statuses,
|
194 |
)
|
195 |
);
|
196 |
}
|
217 |
<ul class="list-inline order-statuses-filter">
|
218 |
<li<?php echo $status_class === 'all' ? ' class="active"' : ''; ?>>
|
219 |
<?php
|
220 |
+
if ( $order_date ) {
|
221 |
+
$date_filter = array(
|
222 |
+
'order_date' => $order_date,
|
223 |
+
'dokan_order_filter' => 'Filter',
|
224 |
+
);
|
225 |
+
}
|
226 |
$all_order_url = array_merge( $date_filter, array( 'order_status' => 'all' ) );
|
227 |
$all_order_url = ( empty( $all_order_url ) ) ? $orders_url : add_query_arg( $complete_order_url, $orders_url );
|
228 |
?>
|
236 |
</li>
|
237 |
<li<?php echo $status_class === 'wc-completed' ? ' class="active"' : ''; ?>>
|
238 |
<?php
|
239 |
+
if ( $order_date ) {
|
240 |
+
$date_filter = array(
|
241 |
+
'order_date' => $order_date,
|
242 |
+
'dokan_order_filter' => 'Filter',
|
243 |
+
);
|
244 |
+
}
|
245 |
$complete_order_url = array_merge( array( 'order_status' => 'wc-completed' ), $date_filter );
|
246 |
?>
|
247 |
<a href="<?php echo esc_url( add_query_arg( $complete_order_url, $orders_url ) ); ?>">
|
254 |
</li>
|
255 |
<li<?php echo $status_class === 'wc-processing' ? ' class="active"' : ''; ?>>
|
256 |
<?php
|
257 |
+
if ( $order_date ) {
|
258 |
+
$date_filter = array(
|
259 |
+
'order_date' => $order_date,
|
260 |
+
'dokan_order_filter' => 'Filter',
|
261 |
+
);
|
262 |
+
}
|
263 |
$processing_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-processing' ) );
|
264 |
?>
|
265 |
<a href="<?php echo esc_url( add_query_arg( $processing_order_url, $orders_url ) ); ?>">
|
272 |
</li>
|
273 |
<li<?php echo $status_class === 'wc-on-hold' ? ' class="active"' : ''; ?>>
|
274 |
<?php
|
275 |
+
if ( $order_date ) {
|
276 |
+
$date_filter = array(
|
277 |
+
'order_date' => $order_date,
|
278 |
+
'dokan_order_filter' => 'Filter',
|
279 |
+
);
|
280 |
+
}
|
281 |
$on_hold_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-on-hold' ) );
|
282 |
?>
|
283 |
<a href="<?php echo esc_url( add_query_arg( $on_hold_order_url, $orders_url ) ); ?>">
|
290 |
</li>
|
291 |
<li<?php echo $status_class === 'wc-pending' ? ' class="active"' : ''; ?>>
|
292 |
<?php
|
293 |
+
if ( $order_date ) {
|
294 |
+
$date_filter = array(
|
295 |
+
'order_date' => $order_date,
|
296 |
+
'dokan_order_filter' => 'Filter',
|
297 |
+
);
|
298 |
+
}
|
299 |
$pending_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-pending' ) );
|
300 |
?>
|
301 |
<a href="<?php echo esc_url( add_query_arg( $pending_order_url, $orders_url ) ); ?>">
|
308 |
</li>
|
309 |
<li<?php echo $status_class === 'wc-cancelled' ? ' class="active"' : ''; ?>>
|
310 |
<?php
|
311 |
+
if ( $order_date ) {
|
312 |
+
$date_filter = array(
|
313 |
+
'order_date' => $order_date,
|
314 |
+
'dokan_order_filter' => 'Filter',
|
315 |
+
);
|
316 |
+
}
|
317 |
$canceled_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-cancelled' ) );
|
318 |
?>
|
319 |
<a href="<?php echo esc_url( add_query_arg( $canceled_order_url, $orders_url ) ); ?>">
|
326 |
</li>
|
327 |
<li<?php echo $status_class === 'wc-refunded' ? ' class="active"' : ''; ?>>
|
328 |
<?php
|
329 |
+
if ( $order_date ) {
|
330 |
+
$date_filter = array(
|
331 |
+
'order_date' => $order_date,
|
332 |
+
'dokan_order_filter' => 'Filter',
|
333 |
+
);
|
334 |
+
}
|
335 |
$refund_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-refunded' ) );
|
336 |
?>
|
337 |
<a href="<?php echo esc_url( add_query_arg( $refund_order_url, $orders_url ) ); ?>">
|
344 |
</li>
|
345 |
<li<?php echo $status_class === 'wc-failed' ? ' class="active"' : ''; ?>>
|
346 |
<?php
|
347 |
+
if ( $order_date ) {
|
348 |
+
$date_filter = array(
|
349 |
+
'order_date' => $order_date,
|
350 |
+
'dokan_order_filter' => 'Filter',
|
351 |
+
);
|
352 |
+
}
|
353 |
|
354 |
$failed_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-failed' ) );
|
355 |
?>
|
571 |
|
572 |
if ( ! function_exists( 'dokan_store_category_menu' ) ) :
|
573 |
|
574 |
+
/**
|
575 |
+
* Store category menu for a store
|
576 |
+
*
|
577 |
+
* @param int $seller_id
|
578 |
+
* @return void
|
579 |
+
*/
|
580 |
+
function dokan_store_category_menu( $seller_id, $title = '' ) {
|
581 |
+
?>
|
582 |
<div id="cat-drop-stack" class="store-cat-stack-dokan">
|
583 |
<?php
|
584 |
$vendor = dokan()->vendor->get( get_query_var( 'author' ) );
|
587 |
$product_ids = [];
|
588 |
foreach ( $products->posts as $product ) {
|
589 |
array_push( $product_ids, $product->ID );
|
590 |
+
}
|
591 |
// hold all the terms
|
592 |
$all_terms = [];
|
593 |
foreach ( $product_ids as $product_id ) {
|
599 |
array_push( $all_terms, $term );
|
600 |
}
|
601 |
}
|
602 |
+
}
|
603 |
// hold unique categoreis
|
604 |
$categories = [];
|
605 |
foreach ( $all_terms as $term ) {
|
606 |
$categories[ serialize( $term ) ] = $term;
|
607 |
+
}
|
608 |
$categories = array_values( $categories );
|
609 |
$walker = new \WeDevs\Dokan\Walkers\StoreCategory( $seller_id );
|
610 |
echo '<ul>';
|
612 |
echo '</ul>';
|
613 |
?>
|
614 |
</div>
|
615 |
+
<?php
|
616 |
+
}
|
617 |
|
618 |
endif;
|
619 |
|
624 |
|
625 |
dokan_get_template_part(
|
626 |
'global/seller-registration-form', '', array(
|
627 |
+
'postdata' => $postdata,
|
628 |
+
'role' => $role,
|
629 |
+
'role_style' => $role_style,
|
630 |
)
|
631 |
);
|
632 |
}
|
656 |
|
657 |
dokan_get_template_part(
|
658 |
'global/header-menu', '', array(
|
659 |
+
'current_user' => $current_user,
|
660 |
+
'user_id' => $user_id,
|
661 |
+
'nav_urls' => $nav_urls,
|
662 |
)
|
663 |
);
|
664 |
}
|
includes/wc-template.php
CHANGED
@@ -75,13 +75,7 @@ function dokan_order_show_suborders( $parent_order ) {
|
|
75 |
[
|
76 |
'post_parent' => dokan_get_prop( $parent_order, 'id' ),
|
77 |
'post_type' => 'shop_order',
|
78 |
-
'post_status' =>
|
79 |
-
'wc-pending',
|
80 |
-
'wc-completed',
|
81 |
-
'wc-processing',
|
82 |
-
'wc-on-hold',
|
83 |
-
'wc-cancelled',
|
84 |
-
],
|
85 |
]
|
86 |
);
|
87 |
|
75 |
[
|
76 |
'post_parent' => dokan_get_prop( $parent_order, 'id' ),
|
77 |
'post_type' => 'shop_order',
|
78 |
+
'post_status' => array_keys( wc_get_order_statuses() ),
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
]
|
80 |
);
|
81 |
|
languages/dokan-lite.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Dokan 3.2.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2021-04-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -52,7 +52,7 @@ msgstr ""
|
|
52 |
|
53 |
#: dokan.php:444 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:
|
56 |
#: src/admin/pages/Settings.vue:6
|
57 |
msgid "Settings"
|
58 |
msgstr ""
|
@@ -121,14 +121,14 @@ msgid "Dokan"
|
|
121 |
msgstr ""
|
122 |
|
123 |
#: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
|
124 |
-
#: includes/Admin/Settings.php:
|
125 |
-
#: includes/template-tags.php:
|
126 |
msgid "Dashboard"
|
127 |
msgstr ""
|
128 |
|
129 |
#: includes/Admin/AdminBar.php:63 includes/Admin/Menu.php:32
|
130 |
#: includes/Admin/Menu.php:44 includes/Admin/SetupWizard.php:160
|
131 |
-
#: includes/functions.php:
|
132 |
#: templates/withdraw/header.php:11
|
133 |
msgid "Withdraw"
|
134 |
msgstr ""
|
@@ -145,8 +145,8 @@ msgstr ""
|
|
145 |
#: includes/Admin/Hooks.php:357 includes/Admin/Hooks.php:379
|
146 |
#: includes/Admin/Settings.php:402 includes/Admin/Settings.php:413
|
147 |
#: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:93
|
148 |
-
#: includes/wc-template.php:17 includes/wc-template.php:
|
149 |
-
#: includes/wc-template.php:
|
150 |
#: src/admin/pages/Dashboard.vue:47 templates/my-orders.php:31
|
151 |
msgid "Vendor"
|
152 |
msgstr ""
|
@@ -341,7 +341,7 @@ msgstr ""
|
|
341 |
msgid "You have no permission to get settings value"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: includes/Admin/Settings.php:94 includes/Admin/Settings.php:
|
345 |
msgid "You are not authorized to perform this action."
|
346 |
msgstr ""
|
347 |
|
@@ -365,7 +365,7 @@ msgstr ""
|
|
365 |
msgid "Appearance"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/Admin/Settings.php:288 includes/Admin/Settings.php:
|
369 |
msgid "Privacy Policy"
|
370 |
msgstr ""
|
371 |
|
@@ -524,99 +524,124 @@ msgid ""
|
|
524 |
"minimum limits."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/Admin/Settings.php:482
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
msgid "Exclude COD Payments"
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: includes/Admin/Settings.php:
|
532 |
msgid ""
|
533 |
"If an order is paid with Cash on Delivery (COD), then exclude that payment "
|
534 |
"from vendor balance."
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: includes/Admin/Settings.php:
|
538 |
msgid "Select a page to show Vendor Dashboard"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: includes/Admin/Settings.php:
|
542 |
-
#: includes/Admin/Settings.php:
|
543 |
-
#: includes/Admin/Settings.php:
|
544 |
msgid "Select page"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: includes/Admin/Settings.php:
|
548 |
#: templates/global/header-menu.php:46
|
549 |
msgid "My Orders"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/Admin/Settings.php:
|
553 |
msgid "Select a page to show My Orders"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: includes/Admin/Settings.php:
|
557 |
msgid "Store Listing"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: includes/Admin/Settings.php:
|
561 |
msgid "Select a page to show all Stores"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: includes/Admin/Settings.php:
|
565 |
msgid "Terms and Conditions Page"
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: includes/Admin/Settings.php:
|
569 |
#. translators: %s: dokan pages
|
570 |
msgid ""
|
571 |
"Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
|
572 |
"Learn More </a>"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: includes/Admin/Settings.php:
|
576 |
msgid "Show Map on Store Page"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: includes/Admin/Settings.php:
|
580 |
msgid "Enable Map of the Store Location in the store sidebar"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: includes/Admin/Settings.php:
|
584 |
#: templates/admin-setup-wizard/step-store.php:42
|
585 |
msgid "Map API Source"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: includes/Admin/Settings.php:
|
589 |
#: templates/admin-setup-wizard/step-store.php:52
|
590 |
msgid "Which Map API source you want to use in your site?"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: includes/Admin/Settings.php:
|
594 |
#: src/admin/pages/Premium.vue:388
|
595 |
msgid "Google Maps"
|
596 |
msgstr ""
|
597 |
|
598 |
-
#: includes/Admin/Settings.php:
|
599 |
msgid "Mapbox"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: includes/Admin/Settings.php:
|
603 |
#: templates/admin-setup-wizard/step-store.php:56
|
604 |
msgid "Google Map API Key"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: includes/Admin/Settings.php:
|
608 |
msgid ""
|
609 |
"<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
|
610 |
"target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
|
611 |
"display map on store page"
|
612 |
msgstr ""
|
613 |
|
614 |
-
#: includes/Admin/Settings.php:
|
615 |
#: templates/admin-setup-wizard/step-store.php:71
|
616 |
msgid "Mapbox Access Token"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: includes/Admin/Settings.php:
|
620 |
#: templates/admin-setup-wizard/step-store.php:75
|
621 |
msgid ""
|
622 |
"<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
|
@@ -624,81 +649,81 @@ msgid ""
|
|
624 |
"display map on store page"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/Admin/Settings.php:
|
628 |
msgid "Show Contact Form on Store Page"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: includes/Admin/Settings.php:
|
632 |
msgid "Display a vendor contact form in the store sidebar"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: includes/Admin/Settings.php:
|
636 |
msgid "Store Header Template"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: includes/Admin/Settings.php:
|
640 |
msgid "Store Opening Closing Time Widget"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: includes/Admin/Settings.php:
|
644 |
msgid "Enable store opening & closing time widget in the store sidebar"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/Admin/Settings.php:
|
648 |
msgid "Enable Store Sidebar From Theme"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: includes/Admin/Settings.php:
|
652 |
msgid "Enable showing Store Sidebar From Your Theme."
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: includes/Admin/Settings.php:
|
656 |
msgid "Hide Vendor Info"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: includes/Admin/Settings.php:
|
660 |
msgid "Email Address"
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: includes/Admin/Settings.php:
|
664 |
#: src/admin/pages/VendorAccountFields.vue:64
|
665 |
#: templates/account/vendor-registration.php:33
|
666 |
#: templates/global/seller-registration-form.php:36
|
667 |
msgid "Phone Number"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: includes/Admin/Settings.php:
|
671 |
msgid "Store Address"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: includes/Admin/Settings.php:
|
675 |
msgid "Enable Privacy Policy"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: includes/Admin/Settings.php:
|
679 |
msgid "Enable privacy policy for Vendor store contact form"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: includes/Admin/Settings.php:
|
683 |
msgid "Privacy Page"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/Admin/Settings.php:
|
687 |
msgid "Select a page to show your privacy policy"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: includes/Admin/Settings.php:
|
691 |
msgid ""
|
692 |
"Your personal data will be used to support your experience throughout this "
|
693 |
"website, to manage access to your account, and for other purposes described "
|
694 |
"in our [dokan_privacy_policy]"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: includes/Admin/Settings.php:
|
698 |
msgid "Both section and field params are required."
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: includes/Admin/Settings.php:
|
702 |
msgid "No filter found to refresh the setting options"
|
703 |
msgstr ""
|
704 |
|
@@ -707,7 +732,7 @@ msgid "Introduction"
|
|
707 |
msgstr ""
|
708 |
|
709 |
#: includes/Admin/SetupWizard.php:150 includes/Vendor/SetupWizard.php:75
|
710 |
-
#: includes/template-tags.php:
|
711 |
msgid "Store"
|
712 |
msgstr ""
|
713 |
|
@@ -774,93 +799,68 @@ msgid ""
|
|
774 |
"no limits )"
|
775 |
msgstr ""
|
776 |
|
777 |
-
#: includes/Admin/SetupWizard.php:
|
778 |
-
msgid "Order Status for Withdraw"
|
779 |
-
msgstr ""
|
780 |
-
|
781 |
-
#: includes/Admin/SetupWizard.php:524
|
782 |
-
#: includes/Dashboard/Templates/Dashboard.php:101
|
783 |
-
#: includes/Order/functions.php:527 templates/dashboard/orders-widget.php:26
|
784 |
-
msgid "Completed"
|
785 |
-
msgstr ""
|
786 |
-
|
787 |
-
#: includes/Admin/SetupWizard.php:530
|
788 |
-
#: includes/Dashboard/Templates/Dashboard.php:111
|
789 |
-
#: includes/Order/functions.php:542 templates/dashboard/orders-widget.php:36
|
790 |
-
#: templates/orders/listing.php:140
|
791 |
-
msgid "Processing"
|
792 |
-
msgstr ""
|
793 |
-
|
794 |
-
#: includes/Admin/SetupWizard.php:536 includes/Order/functions.php:537
|
795 |
-
msgid "On-hold"
|
796 |
-
msgstr ""
|
797 |
-
|
798 |
-
#: includes/Admin/SetupWizard.php:541
|
799 |
-
msgid "Order status for which vendor can make a withdraw request."
|
800 |
-
msgstr ""
|
801 |
-
|
802 |
-
#: includes/Admin/SetupWizard.php:546 includes/Admin/SetupWizard.php:609
|
803 |
#: includes/Admin/SetupWizardWCAdmin.php:232
|
804 |
#: includes/Vendor/SetupWizard.php:243 includes/Vendor/SetupWizard.php:390
|
805 |
#: templates/admin-setup-wizard/step-selling.php:53
|
806 |
-
#: templates/admin-setup-wizard/step-store.php:
|
807 |
msgid "Continue"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: includes/Admin/SetupWizard.php:
|
811 |
#: includes/Vendor/SetupWizard.php:391
|
812 |
#: templates/admin-setup-wizard/step-selling.php:54
|
813 |
-
#: templates/admin-setup-wizard/step-store.php:
|
814 |
msgid "Skip this step"
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: includes/Admin/SetupWizard.php:
|
818 |
msgid "Recommended for All Dokan Marketplaces"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: includes/Admin/SetupWizard.php:
|
822 |
msgid "Enhance your store with these recommended features."
|
823 |
msgstr ""
|
824 |
|
825 |
-
#: includes/Admin/SetupWizard.php:
|
826 |
-
#: includes/Admin/SetupWizard.php:
|
827 |
msgid "WooCommerce Conversion Tracking"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: includes/Admin/SetupWizard.php:
|
831 |
msgid "Track conversions on your WooCommerce store like a pro!"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: includes/Admin/SetupWizard.php:
|
835 |
msgid "WooCommerce Conversion Tracking logo"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: includes/Admin/SetupWizard.php:
|
839 |
-
#: includes/Admin/SetupWizard.php:
|
840 |
msgid "weMail"
|
841 |
msgstr ""
|
842 |
|
843 |
-
#: includes/Admin/SetupWizard.php:
|
844 |
msgid "Simplified Email Marketing Solution for WordPress!"
|
845 |
msgstr ""
|
846 |
|
847 |
-
#: includes/Admin/SetupWizard.php:
|
848 |
msgid "weMail logo"
|
849 |
msgstr ""
|
850 |
|
851 |
-
#: includes/Admin/SetupWizard.php:
|
852 |
msgid "Your Marketplace is Ready!"
|
853 |
msgstr ""
|
854 |
|
855 |
-
#: includes/Admin/SetupWizard.php:
|
856 |
msgid "Visit Dokan Dashboard"
|
857 |
msgstr ""
|
858 |
|
859 |
-
#: includes/Admin/SetupWizard.php:
|
860 |
msgid "More Settings"
|
861 |
msgstr ""
|
862 |
|
863 |
-
#: includes/Admin/SetupWizard.php:
|
864 |
msgid "The following plugins will be installed and activated for you:"
|
865 |
msgstr ""
|
866 |
|
@@ -873,7 +873,7 @@ msgid "Error installing WooCommerce plugin"
|
|
873 |
msgstr ""
|
874 |
|
875 |
#: includes/Admin/SetupWizardNoWC.php:176 includes/Vendor/SetupWizard.php:80
|
876 |
-
#: includes/template-tags.php:
|
877 |
msgid "Payment"
|
878 |
msgstr ""
|
879 |
|
@@ -953,15 +953,15 @@ msgid "We'll use %1$s for product weight and %2$s for product dimensions."
|
|
953 |
msgstr ""
|
954 |
|
955 |
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:143
|
956 |
-
#: includes/Assets.php:413 src/admin/pages/VendorAccountFields.vue:
|
957 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
958 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
959 |
msgid "Available"
|
960 |
msgstr ""
|
961 |
|
962 |
#: includes/Admin/UserProfile.php:39 includes/Assets.php:414
|
963 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
964 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
965 |
msgid "Not Available"
|
966 |
msgstr ""
|
967 |
|
@@ -1676,50 +1676,50 @@ msgstr ""
|
|
1676 |
msgid "You have no permission to view this order"
|
1677 |
msgstr ""
|
1678 |
|
1679 |
-
#: includes/Dashboard/Templates/Products.php:
|
1680 |
#: includes/Dashboard/Templates/Settings.php:143
|
1681 |
#: includes/Dashboard/Templates/Settings.php:154
|
1682 |
#: includes/Shortcodes/Dashboard.php:29 templates/global/no-permission.php:53
|
1683 |
msgid "You have no permission to view this page"
|
1684 |
msgstr ""
|
1685 |
|
1686 |
-
#: includes/Dashboard/Templates/Products.php:
|
1687 |
#: templates/orders/listing.php:11
|
1688 |
msgid "Bulk Actions"
|
1689 |
msgstr ""
|
1690 |
|
1691 |
-
#: includes/Dashboard/Templates/Products.php:
|
1692 |
#: includes/Product/functions.php:459
|
1693 |
msgid "Delete Permanently"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: includes/Dashboard/Templates/Products.php:
|
1697 |
msgid "Details of your product ..."
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: includes/Dashboard/Templates/Products.php:
|
1701 |
-
#: includes/Dashboard/Templates/Products.php:
|
1702 |
#: includes/Product/functions.php:31
|
1703 |
msgid "Please enter product title"
|
1704 |
msgstr ""
|
1705 |
|
1706 |
-
#: includes/Dashboard/Templates/Products.php:
|
1707 |
-
#: includes/Dashboard/Templates/Products.php:
|
1708 |
#: includes/Product/functions.php:36
|
1709 |
msgid "Please select a category"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: includes/Dashboard/Templates/Products.php:
|
1713 |
-
#: includes/Dashboard/Templates/Products.php:
|
1714 |
#: includes/Product/functions.php:40
|
1715 |
msgid "Please select AT LEAST ONE category"
|
1716 |
msgstr ""
|
1717 |
|
1718 |
-
#: includes/Dashboard/Templates/Products.php:
|
1719 |
msgid "No product found!"
|
1720 |
msgstr ""
|
1721 |
|
1722 |
-
#: includes/Dashboard/Templates/Products.php:
|
1723 |
#: includes/Product/functions.php:64
|
1724 |
msgid "I swear this is not your product!"
|
1725 |
msgstr ""
|
@@ -2563,17 +2563,17 @@ msgstr ""
|
|
2563 |
msgid "Gravatar Url"
|
2564 |
msgstr ""
|
2565 |
|
2566 |
-
#: includes/Privacy.php:201 includes/functions.php:
|
2567 |
#: src/admin/pages/VendorSocialFields.vue:11
|
2568 |
msgid "Facebook"
|
2569 |
msgstr ""
|
2570 |
|
2571 |
-
#: includes/Privacy.php:202 includes/functions.php:
|
2572 |
#: src/admin/pages/VendorSocialFields.vue:21
|
2573 |
msgid "Twitter"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
-
#: includes/Privacy.php:203 includes/functions.php:
|
2577 |
#: src/admin/pages/VendorSocialFields.vue:36
|
2578 |
msgid "Pinterest"
|
2579 |
msgstr ""
|
@@ -2582,17 +2582,17 @@ msgstr ""
|
|
2582 |
msgid "Linkedin"
|
2583 |
msgstr ""
|
2584 |
|
2585 |
-
#: includes/Privacy.php:205 includes/functions.php:
|
2586 |
#: src/admin/pages/VendorSocialFields.vue:26
|
2587 |
msgid "Youtube"
|
2588 |
msgstr ""
|
2589 |
|
2590 |
-
#: includes/Privacy.php:206 includes/functions.php:
|
2591 |
#: src/admin/pages/VendorSocialFields.vue:41
|
2592 |
msgid "Instagram"
|
2593 |
msgstr ""
|
2594 |
|
2595 |
-
#: includes/Privacy.php:207 includes/functions.php:
|
2596 |
#: src/admin/pages/VendorSocialFields.vue:16
|
2597 |
msgid "Flickr"
|
2598 |
msgstr ""
|
@@ -2845,7 +2845,7 @@ msgstr ""
|
|
2845 |
msgid "Catalog"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
-
#: includes/Product/functions.php:335 templates/products/listing-filter.php:
|
2849 |
msgid "Search"
|
2850 |
msgstr ""
|
2851 |
|
@@ -2896,7 +2896,7 @@ msgstr ""
|
|
2896 |
msgid "Total"
|
2897 |
msgstr ""
|
2898 |
|
2899 |
-
#: includes/REST/AdminReportController.php:150 includes/template-tags.php:
|
2900 |
#: templates/dashboard/orders-widget.php:15
|
2901 |
msgid "Orders"
|
2902 |
msgstr ""
|
@@ -4200,7 +4200,7 @@ msgid "Dokan: Store Category Menu"
|
|
4200 |
msgstr ""
|
4201 |
|
4202 |
#: includes/Widgets/StoreCategoryMenu.php:36
|
4203 |
-
#: includes/Widgets/StoreCategoryMenu.php:80 includes/template-tags.php:
|
4204 |
msgid "Store Product Category"
|
4205 |
msgstr ""
|
4206 |
|
@@ -4213,7 +4213,7 @@ msgid "Dokan: Store Contact Form"
|
|
4213 |
msgstr ""
|
4214 |
|
4215 |
#: includes/Widgets/StoreContactForm.php:42
|
4216 |
-
#: includes/Widgets/StoreContactForm.php:119 includes/template-tags.php:
|
4217 |
msgid "Contact Vendor"
|
4218 |
msgstr ""
|
4219 |
|
@@ -4226,7 +4226,7 @@ msgid "Dokan: Store Location"
|
|
4226 |
msgstr ""
|
4227 |
|
4228 |
#: includes/Widgets/StoreLocation.php:42 includes/Widgets/StoreLocation.php:103
|
4229 |
-
#: includes/template-tags.php:
|
4230 |
msgid "Store Location"
|
4231 |
msgstr ""
|
4232 |
|
@@ -4239,7 +4239,7 @@ msgid "Dokan: Store Opening Closing Time Widget"
|
|
4239 |
msgstr ""
|
4240 |
|
4241 |
#: includes/Widgets/StoreOpenClose.php:41
|
4242 |
-
#: includes/Widgets/StoreOpenClose.php:111 includes/template-tags.php:
|
4243 |
msgid "Store Time"
|
4244 |
msgstr ""
|
4245 |
|
@@ -4344,399 +4344,399 @@ msgstr ""
|
|
4344 |
msgid "Swift code"
|
4345 |
msgstr ""
|
4346 |
|
4347 |
-
#: includes/functions.php:
|
4348 |
msgid "Online"
|
4349 |
msgstr ""
|
4350 |
|
4351 |
-
#: includes/functions.php:
|
4352 |
msgid "Draft"
|
4353 |
msgstr ""
|
4354 |
|
4355 |
-
#: includes/functions.php:
|
4356 |
#: templates/withdraw/pending-request-listing.php:41
|
4357 |
msgid "Pending Review"
|
4358 |
msgstr ""
|
4359 |
|
4360 |
-
#: includes/functions.php:
|
4361 |
msgid "Scheduled"
|
4362 |
msgstr ""
|
4363 |
|
4364 |
-
#: includes/functions.php:
|
4365 |
msgid "Simple Product"
|
4366 |
msgstr ""
|
4367 |
|
4368 |
-
#: includes/functions.php:
|
4369 |
msgid "Variable Product"
|
4370 |
msgstr ""
|
4371 |
|
4372 |
-
#: includes/functions.php:
|
4373 |
msgid "Grouped Product"
|
4374 |
msgstr ""
|
4375 |
|
4376 |
-
#: includes/functions.php:
|
4377 |
msgid "External/Affiliate Product"
|
4378 |
msgstr ""
|
4379 |
|
4380 |
-
#: includes/functions.php:
|
4381 |
msgid "Author"
|
4382 |
msgstr ""
|
4383 |
|
4384 |
-
#: includes/functions.php:
|
4385 |
#: src/admin/pages/Dashboard.vue:54 templates/dashboard/products-widget.php:16
|
4386 |
msgid "Products"
|
4387 |
msgstr ""
|
4388 |
|
4389 |
-
#: includes/functions.php:
|
4390 |
msgid "Terms and Conditions"
|
4391 |
msgstr ""
|
4392 |
|
4393 |
-
#: includes/functions.php:
|
4394 |
msgid "Account Name: %s"
|
4395 |
msgstr ""
|
4396 |
|
4397 |
-
#: includes/functions.php:
|
4398 |
msgid "Account Number: %s"
|
4399 |
msgstr ""
|
4400 |
|
4401 |
-
#: includes/functions.php:
|
4402 |
msgid "Bank Name: %s"
|
4403 |
msgstr ""
|
4404 |
|
4405 |
-
#: includes/functions.php:
|
4406 |
msgid "Address: %s"
|
4407 |
msgstr ""
|
4408 |
|
4409 |
-
#: includes/functions.php:
|
4410 |
msgid "Routing Number: %s"
|
4411 |
msgstr ""
|
4412 |
|
4413 |
-
#: includes/functions.php:
|
4414 |
msgid "IBAN: %s"
|
4415 |
msgstr ""
|
4416 |
|
4417 |
-
#: includes/functions.php:
|
4418 |
msgid "SWIFT: %s"
|
4419 |
msgstr ""
|
4420 |
|
4421 |
-
#: includes/functions.php:
|
4422 |
msgid "Date is not valid"
|
4423 |
msgstr ""
|
4424 |
|
4425 |
-
#: includes/functions.php:
|
4426 |
msgid "- Select a location -"
|
4427 |
msgstr ""
|
4428 |
|
4429 |
-
#: includes/functions.php:
|
4430 |
msgid "Everywhere Else"
|
4431 |
msgstr ""
|
4432 |
|
4433 |
-
#: includes/functions.php:
|
4434 |
msgid "- Select a State -"
|
4435 |
msgstr ""
|
4436 |
|
4437 |
-
#: includes/functions.php:
|
4438 |
msgid "Ready to ship in..."
|
4439 |
msgstr ""
|
4440 |
|
4441 |
-
#: includes/functions.php:
|
4442 |
msgid "1 business day"
|
4443 |
msgstr ""
|
4444 |
|
4445 |
-
#: includes/functions.php:
|
4446 |
msgid "1-2 business days"
|
4447 |
msgstr ""
|
4448 |
|
4449 |
-
#: includes/functions.php:
|
4450 |
msgid "1-3 business days"
|
4451 |
msgstr ""
|
4452 |
|
4453 |
-
#: includes/functions.php:
|
4454 |
msgid "3-5 business days"
|
4455 |
msgstr ""
|
4456 |
|
4457 |
-
#: includes/functions.php:
|
4458 |
msgid "1-2 weeks"
|
4459 |
msgstr ""
|
4460 |
|
4461 |
-
#: includes/functions.php:
|
4462 |
msgid "2-3 weeks"
|
4463 |
msgstr ""
|
4464 |
|
4465 |
-
#: includes/functions.php:
|
4466 |
msgid "3-4 weeks"
|
4467 |
msgstr ""
|
4468 |
|
4469 |
-
#: includes/functions.php:
|
4470 |
msgid "4-6 weeks"
|
4471 |
msgstr ""
|
4472 |
|
4473 |
-
#: includes/functions.php:
|
4474 |
msgid "6-8 weeks"
|
4475 |
msgstr ""
|
4476 |
|
4477 |
-
#: includes/functions.php:
|
4478 |
msgid "All dates"
|
4479 |
msgstr ""
|
4480 |
|
4481 |
-
#: includes/functions.php:
|
4482 |
#. translators: 1: month name, 2: 4-digit year
|
4483 |
msgid "%1$s %2$d"
|
4484 |
msgstr ""
|
4485 |
|
4486 |
-
#: includes/functions.php:
|
4487 |
msgid "LinkedIn"
|
4488 |
msgstr ""
|
4489 |
|
4490 |
-
#: includes/functions.php:
|
4491 |
msgid "Dokan Store Sidebar"
|
4492 |
msgstr ""
|
4493 |
|
4494 |
-
#: includes/functions.php:
|
4495 |
msgid "View sales overview"
|
4496 |
msgstr ""
|
4497 |
|
4498 |
-
#: includes/functions.php:
|
4499 |
msgid "View sales report chart"
|
4500 |
msgstr ""
|
4501 |
|
4502 |
-
#: includes/functions.php:
|
4503 |
msgid "View announcement"
|
4504 |
msgstr ""
|
4505 |
|
4506 |
-
#: includes/functions.php:
|
4507 |
msgid "View order report"
|
4508 |
msgstr ""
|
4509 |
|
4510 |
-
#: includes/functions.php:
|
4511 |
msgid "View review report"
|
4512 |
msgstr ""
|
4513 |
|
4514 |
-
#: includes/functions.php:
|
4515 |
msgid "View product status report"
|
4516 |
msgstr ""
|
4517 |
|
4518 |
-
#: includes/functions.php:
|
4519 |
msgid "View overview report"
|
4520 |
msgstr ""
|
4521 |
|
4522 |
-
#: includes/functions.php:
|
4523 |
msgid "View daily sales report"
|
4524 |
msgstr ""
|
4525 |
|
4526 |
-
#: includes/functions.php:
|
4527 |
msgid "View top selling report"
|
4528 |
msgstr ""
|
4529 |
|
4530 |
-
#: includes/functions.php:
|
4531 |
msgid "View top earning report"
|
4532 |
msgstr ""
|
4533 |
|
4534 |
-
#: includes/functions.php:
|
4535 |
msgid "View statement report"
|
4536 |
msgstr ""
|
4537 |
|
4538 |
-
#: includes/functions.php:
|
4539 |
msgid "View order"
|
4540 |
msgstr ""
|
4541 |
|
4542 |
-
#: includes/functions.php:
|
4543 |
msgid "Manage order"
|
4544 |
msgstr ""
|
4545 |
|
4546 |
-
#: includes/functions.php:
|
4547 |
msgid "Manage order note"
|
4548 |
msgstr ""
|
4549 |
|
4550 |
-
#: includes/functions.php:
|
4551 |
msgid "Manage refund"
|
4552 |
msgstr ""
|
4553 |
|
4554 |
-
#: includes/functions.php:
|
4555 |
msgid "Add coupon"
|
4556 |
msgstr ""
|
4557 |
|
4558 |
-
#: includes/functions.php:
|
4559 |
msgid "Edit coupon"
|
4560 |
msgstr ""
|
4561 |
|
4562 |
-
#: includes/functions.php:
|
4563 |
msgid "Delete coupon"
|
4564 |
msgstr ""
|
4565 |
|
4566 |
-
#: includes/functions.php:
|
4567 |
msgid "View reviews"
|
4568 |
msgstr ""
|
4569 |
|
4570 |
-
#: includes/functions.php:
|
4571 |
msgid "Manage reviews"
|
4572 |
msgstr ""
|
4573 |
|
4574 |
-
#: includes/functions.php:
|
4575 |
msgid "Manage withdraw"
|
4576 |
msgstr ""
|
4577 |
|
4578 |
-
#: includes/functions.php:
|
4579 |
msgid "Add product"
|
4580 |
msgstr ""
|
4581 |
|
4582 |
-
#: includes/functions.php:
|
4583 |
msgid "Edit product"
|
4584 |
msgstr ""
|
4585 |
|
4586 |
-
#: includes/functions.php:
|
4587 |
msgid "Delete product"
|
4588 |
msgstr ""
|
4589 |
|
4590 |
-
#: includes/functions.php:
|
4591 |
msgid "View product"
|
4592 |
msgstr ""
|
4593 |
|
4594 |
-
#: includes/functions.php:
|
4595 |
msgid "Duplicate product"
|
4596 |
msgstr ""
|
4597 |
|
4598 |
-
#: includes/functions.php:
|
4599 |
msgid "Import product"
|
4600 |
msgstr ""
|
4601 |
|
4602 |
-
#: includes/functions.php:
|
4603 |
msgid "Export product"
|
4604 |
msgstr ""
|
4605 |
|
4606 |
-
#: includes/functions.php:
|
4607 |
msgid "View overview menu"
|
4608 |
msgstr ""
|
4609 |
|
4610 |
-
#: includes/functions.php:
|
4611 |
msgid "View product menu"
|
4612 |
msgstr ""
|
4613 |
|
4614 |
-
#: includes/functions.php:
|
4615 |
msgid "View order menu"
|
4616 |
msgstr ""
|
4617 |
|
4618 |
-
#: includes/functions.php:
|
4619 |
msgid "View coupon menu"
|
4620 |
msgstr ""
|
4621 |
|
4622 |
-
#: includes/functions.php:
|
4623 |
msgid "View report menu"
|
4624 |
msgstr ""
|
4625 |
|
4626 |
-
#: includes/functions.php:
|
4627 |
msgid "Vuew review menu"
|
4628 |
msgstr ""
|
4629 |
|
4630 |
-
#: includes/functions.php:
|
4631 |
msgid "View withdraw menu"
|
4632 |
msgstr ""
|
4633 |
|
4634 |
-
#: includes/functions.php:
|
4635 |
msgid "View store settings menu"
|
4636 |
msgstr ""
|
4637 |
|
4638 |
-
#: includes/functions.php:
|
4639 |
msgid "View payment settings menu"
|
4640 |
msgstr ""
|
4641 |
|
4642 |
-
#: includes/functions.php:
|
4643 |
msgid "View shipping settings menu"
|
4644 |
msgstr ""
|
4645 |
|
4646 |
-
#: includes/functions.php:
|
4647 |
msgid "View social settings menu"
|
4648 |
msgstr ""
|
4649 |
|
4650 |
-
#: includes/functions.php:
|
4651 |
msgid "View seo settings menu"
|
4652 |
msgstr ""
|
4653 |
|
4654 |
-
#: includes/functions.php:
|
4655 |
msgid "Overview"
|
4656 |
msgstr ""
|
4657 |
|
4658 |
-
#: includes/functions.php:
|
4659 |
msgid "Report"
|
4660 |
msgstr ""
|
4661 |
|
4662 |
-
#: includes/functions.php:
|
4663 |
#: templates/my-orders.php:27 templates/orders/details.php:21
|
4664 |
#: templates/orders/listing.php:51 templates/orders/listing.php:71
|
4665 |
#: templates/sub-orders.php:25
|
4666 |
msgid "Order"
|
4667 |
msgstr ""
|
4668 |
|
4669 |
-
#: includes/functions.php:
|
4670 |
msgid "Coupon"
|
4671 |
msgstr ""
|
4672 |
|
4673 |
-
#: includes/functions.php:
|
4674 |
msgid "Review"
|
4675 |
msgstr ""
|
4676 |
|
4677 |
-
#: includes/functions.php:
|
4678 |
#: templates/emails/vendor-new-order.php:46
|
4679 |
msgid "Product"
|
4680 |
msgstr ""
|
4681 |
|
4682 |
-
#: includes/functions.php:
|
4683 |
msgid "Menu"
|
4684 |
msgstr ""
|
4685 |
|
4686 |
-
#: includes/functions.php:
|
4687 |
msgid "Saturday"
|
4688 |
msgstr ""
|
4689 |
|
4690 |
-
#: includes/functions.php:
|
4691 |
msgid "Sunday"
|
4692 |
msgstr ""
|
4693 |
|
4694 |
-
#: includes/functions.php:
|
4695 |
msgid "Monday"
|
4696 |
msgstr ""
|
4697 |
|
4698 |
-
#: includes/functions.php:
|
4699 |
msgid "Tuesday"
|
4700 |
msgstr ""
|
4701 |
|
4702 |
-
#: includes/functions.php:
|
4703 |
msgid "Wednesday"
|
4704 |
msgstr ""
|
4705 |
|
4706 |
-
#: includes/functions.php:
|
4707 |
msgid "Thursday"
|
4708 |
msgstr ""
|
4709 |
|
4710 |
-
#: includes/functions.php:
|
4711 |
msgid "Friday"
|
4712 |
msgstr ""
|
4713 |
|
4714 |
-
#: includes/functions.php:
|
4715 |
msgid "Off Day"
|
4716 |
msgstr ""
|
4717 |
|
4718 |
-
#: includes/functions.php:
|
4719 |
msgid "privacy policy"
|
4720 |
msgstr ""
|
4721 |
|
4722 |
-
#: includes/functions.php:
|
4723 |
#: src/admin/pages/VendorPaymentFields.vue:155
|
4724 |
msgid "Flat"
|
4725 |
msgstr ""
|
4726 |
|
4727 |
-
#: includes/functions.php:
|
4728 |
msgid "Percentage"
|
4729 |
msgstr ""
|
4730 |
|
4731 |
-
#: includes/functions.php:
|
4732 |
msgid "Please Login to Continue"
|
4733 |
msgstr ""
|
4734 |
|
4735 |
-
#: includes/functions.php:
|
4736 |
msgid "Unable to fetch plugin information from wordpress.org for %s."
|
4737 |
msgstr ""
|
4738 |
|
4739 |
-
#: includes/functions.php:
|
4740 |
msgid "Unable to install %s from wordpress.org"
|
4741 |
msgstr ""
|
4742 |
|
@@ -4761,61 +4761,61 @@ msgstr ""
|
|
4761 |
msgid "Product succesfully deleted"
|
4762 |
msgstr ""
|
4763 |
|
4764 |
-
#: includes/template-tags.php:
|
4765 |
#: templates/products/listing-status-filter.php:13
|
4766 |
#. translators: %d : order count total
|
4767 |
msgid "All (%d)"
|
4768 |
msgstr ""
|
4769 |
|
4770 |
-
#: includes/template-tags.php:
|
4771 |
#. translators: %d : order count completed status
|
4772 |
msgid "Completed (%d)"
|
4773 |
msgstr ""
|
4774 |
|
4775 |
-
#: includes/template-tags.php:
|
4776 |
#. translators: %d : order count processing status
|
4777 |
msgid "Processing (%d)"
|
4778 |
msgstr ""
|
4779 |
|
4780 |
-
#: includes/template-tags.php:
|
4781 |
#. translators: %d : order count on hold status
|
4782 |
msgid "On-hold (%d)"
|
4783 |
msgstr ""
|
4784 |
|
4785 |
-
#: includes/template-tags.php:
|
4786 |
#. translators: %d : order count pending status
|
4787 |
msgid "Pending (%d)"
|
4788 |
msgstr ""
|
4789 |
|
4790 |
-
#: includes/template-tags.php:
|
4791 |
#. translators: %d : order count cancelled status
|
4792 |
msgid "Cancelled (%d)"
|
4793 |
msgstr ""
|
4794 |
|
4795 |
-
#: includes/template-tags.php:
|
4796 |
#. translators: %d : order count refunded status
|
4797 |
msgid "Refunded (%d)"
|
4798 |
msgstr ""
|
4799 |
|
4800 |
-
#: includes/template-tags.php:
|
4801 |
#. translators: %d : order count failed status
|
4802 |
msgid "Failed (%d)"
|
4803 |
msgstr ""
|
4804 |
|
4805 |
-
#: includes/template-tags.php:
|
4806 |
msgid "Back to Dashboard"
|
4807 |
msgstr ""
|
4808 |
|
4809 |
-
#: includes/template-tags.php:
|
4810 |
#: templates/store-lists-loop.php:94
|
4811 |
msgid "Visit Store"
|
4812 |
msgstr ""
|
4813 |
|
4814 |
-
#: includes/template-tags.php:
|
4815 |
msgid "Edit Account"
|
4816 |
msgstr ""
|
4817 |
|
4818 |
-
#: includes/template-tags.php:
|
4819 |
msgid "Log out"
|
4820 |
msgstr ""
|
4821 |
|
@@ -4898,11 +4898,11 @@ msgstr ""
|
|
4898 |
msgid "Order – %s"
|
4899 |
msgstr ""
|
4900 |
|
4901 |
-
#: includes/wc-template.php:
|
4902 |
msgid "— No change —"
|
4903 |
msgstr ""
|
4904 |
|
4905 |
-
#: includes/wc-template.php:
|
4906 |
msgid "Go to Vendor Dashboard"
|
4907 |
msgstr ""
|
4908 |
|
@@ -5597,13 +5597,13 @@ msgstr ""
|
|
5597 |
msgid "Generate Password"
|
5598 |
msgstr ""
|
5599 |
|
5600 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5601 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5602 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5603 |
msgid "Searching..."
|
5604 |
msgstr ""
|
5605 |
|
5606 |
-
#: src/admin/pages/VendorAccountFields.vue:
|
5607 |
msgid "This email is already registered, please choose another one."
|
5608 |
msgstr ""
|
5609 |
|
@@ -6526,7 +6526,7 @@ msgstr ""
|
|
6526 |
msgid "Filter by registered customer"
|
6527 |
msgstr ""
|
6528 |
|
6529 |
-
#: templates/orders/date-export.php:39 templates/products/listing-filter.php:
|
6530 |
#: templates/store-lists-filter.php:42
|
6531 |
msgid "Filter"
|
6532 |
msgstr ""
|
@@ -6888,17 +6888,29 @@ msgstr ""
|
|
6888 |
msgid "Allow only one quantity of this product to be bought in a single order"
|
6889 |
msgstr ""
|
6890 |
|
6891 |
-
#: templates/products/listing-filter.php:
|
6892 |
#: templates/products/new-product-single.php:271
|
6893 |
#: templates/products/new-product.php:204
|
6894 |
#: templates/products/tmpl-add-product-popup.php:100
|
6895 |
msgid "- Select a category -"
|
6896 |
msgstr ""
|
6897 |
|
6898 |
-
#: templates/products/listing-filter.php:
|
|
|
|
|
|
|
|
|
6899 |
msgid "Search Products"
|
6900 |
msgstr ""
|
6901 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6902 |
#: templates/products/new-product-single.php:11
|
6903 |
msgid "Access Denied, No product found"
|
6904 |
msgstr ""
|
@@ -7168,27 +7180,27 @@ msgid "Last Modified"
|
|
7168 |
msgstr ""
|
7169 |
|
7170 |
#: templates/products/products-listing.php:57
|
7171 |
-
#: templates/products/products-listing.php:
|
7172 |
msgid "Add new product"
|
7173 |
msgstr ""
|
7174 |
|
7175 |
-
#: templates/products/products-listing.php:
|
7176 |
msgid "No product found"
|
7177 |
msgstr ""
|
7178 |
|
7179 |
-
#: templates/products/products-listing.php:
|
7180 |
msgid "« Previous"
|
7181 |
msgstr ""
|
7182 |
|
7183 |
-
#: templates/products/products-listing.php:
|
7184 |
msgid "Next »"
|
7185 |
msgstr ""
|
7186 |
|
7187 |
-
#: templates/products/products-listing.php:
|
7188 |
msgid "No Products Found!"
|
7189 |
msgstr ""
|
7190 |
|
7191 |
-
#: templates/products/products-listing.php:
|
7192 |
msgid "Ready to start selling something awesome?"
|
7193 |
msgstr ""
|
7194 |
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Dokan 3.2.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2021-04-30 15:46:48+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
52 |
|
53 |
#: dokan.php:444 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 ""
|
121 |
msgstr ""
|
122 |
|
123 |
#: includes/Admin/AdminBar.php:54 includes/Admin/Menu.php:43
|
124 |
+
#: includes/Admin/Settings.php:505 includes/Install/Installer.php:157
|
125 |
+
#: includes/template-tags.php:386 src/admin/pages/Dashboard.vue:5
|
126 |
msgid "Dashboard"
|
127 |
msgstr ""
|
128 |
|
129 |
#: includes/Admin/AdminBar.php:63 includes/Admin/Menu.php:32
|
130 |
#: includes/Admin/Menu.php:44 includes/Admin/SetupWizard.php:160
|
131 |
+
#: includes/functions.php:3044 includes/template-tags.php:408
|
132 |
#: templates/withdraw/header.php:11
|
133 |
msgid "Withdraw"
|
134 |
msgstr ""
|
145 |
#: includes/Admin/Hooks.php:357 includes/Admin/Hooks.php:379
|
146 |
#: includes/Admin/Settings.php:402 includes/Admin/Settings.php:413
|
147 |
#: includes/Admin/SetupWizard.php:345 includes/Install/Installer.php:93
|
148 |
+
#: includes/wc-template.php:17 includes/wc-template.php:166
|
149 |
+
#: includes/wc-template.php:315 src/admin/pages/Dashboard.vue:38
|
150 |
#: src/admin/pages/Dashboard.vue:47 templates/my-orders.php:31
|
151 |
msgid "Vendor"
|
152 |
msgstr ""
|
341 |
msgid "You have no permission to get settings value"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: includes/Admin/Settings.php:94 includes/Admin/Settings.php:710
|
345 |
msgid "You are not authorized to perform this action."
|
346 |
msgstr ""
|
347 |
|
365 |
msgid "Appearance"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/Admin/Settings.php:288 includes/Admin/Settings.php:646
|
369 |
msgid "Privacy Policy"
|
370 |
msgstr ""
|
371 |
|
524 |
"minimum limits."
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: includes/Admin/Settings.php:482 includes/Admin/SetupWizard.php:518
|
528 |
+
msgid "Order Status for Withdraw"
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#: includes/Admin/Settings.php:483 includes/Admin/SetupWizard.php:535
|
532 |
+
msgid "Order status for which vendor can make a withdraw request."
|
533 |
+
msgstr ""
|
534 |
+
|
535 |
+
#: includes/Admin/Settings.php:489 includes/Admin/SetupWizard.php:524
|
536 |
+
#: includes/Dashboard/Templates/Dashboard.php:101
|
537 |
+
#: includes/Order/functions.php:527 templates/dashboard/orders-widget.php:26
|
538 |
+
msgid "Completed"
|
539 |
+
msgstr ""
|
540 |
+
|
541 |
+
#: includes/Admin/Settings.php:490 includes/Admin/SetupWizard.php:530
|
542 |
+
#: includes/Dashboard/Templates/Dashboard.php:111
|
543 |
+
#: includes/Order/functions.php:542 templates/dashboard/orders-widget.php:36
|
544 |
+
#: templates/orders/listing.php:140
|
545 |
+
msgid "Processing"
|
546 |
+
msgstr ""
|
547 |
+
|
548 |
+
#: includes/Admin/Settings.php:491 includes/Order/functions.php:537
|
549 |
+
msgid "On-hold"
|
550 |
+
msgstr ""
|
551 |
+
|
552 |
+
#: includes/Admin/Settings.php:496
|
553 |
msgid "Exclude COD Payments"
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: includes/Admin/Settings.php:497
|
557 |
msgid ""
|
558 |
"If an order is paid with Cash on Delivery (COD), then exclude that payment "
|
559 |
"from vendor balance."
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: includes/Admin/Settings.php:506
|
563 |
msgid "Select a page to show Vendor Dashboard"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/Admin/Settings.php:508 includes/Admin/Settings.php:516
|
567 |
+
#: includes/Admin/Settings.php:524 includes/Admin/Settings.php:531
|
568 |
+
#: includes/Admin/Settings.php:641
|
569 |
msgid "Select page"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: includes/Admin/Settings.php:513 includes/Install/Installer.php:169
|
573 |
#: templates/global/header-menu.php:46
|
574 |
msgid "My Orders"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: includes/Admin/Settings.php:514
|
578 |
msgid "Select a page to show My Orders"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: includes/Admin/Settings.php:521
|
582 |
msgid "Store Listing"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: includes/Admin/Settings.php:522
|
586 |
msgid "Select a page to show all Stores"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: includes/Admin/Settings.php:529
|
590 |
msgid "Terms and Conditions Page"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: includes/Admin/Settings.php:534
|
594 |
#. translators: %s: dokan pages
|
595 |
msgid ""
|
596 |
"Select where you want to add Dokan pages <a target=\"_blank\" href=\"%s\"> "
|
597 |
"Learn More </a>"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: includes/Admin/Settings.php:540
|
601 |
msgid "Show Map on Store Page"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: includes/Admin/Settings.php:541
|
605 |
msgid "Enable Map of the Store Location in the store sidebar"
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: includes/Admin/Settings.php:547
|
609 |
#: templates/admin-setup-wizard/step-store.php:42
|
610 |
msgid "Map API Source"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: includes/Admin/Settings.php:548
|
614 |
#: templates/admin-setup-wizard/step-store.php:52
|
615 |
msgid "Which Map API source you want to use in your site?"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: includes/Admin/Settings.php:553 includes/Admin/SetupWizard.php:359
|
619 |
#: src/admin/pages/Premium.vue:388
|
620 |
msgid "Google Maps"
|
621 |
msgstr ""
|
622 |
|
623 |
+
#: includes/Admin/Settings.php:554 includes/Admin/SetupWizard.php:360
|
624 |
msgid "Mapbox"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: includes/Admin/Settings.php:564
|
628 |
#: templates/admin-setup-wizard/step-store.php:56
|
629 |
msgid "Google Map API Key"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: includes/Admin/Settings.php:565
|
633 |
msgid ""
|
634 |
"<a href=\"https://developers.google.com/maps/documentation/javascript/\" "
|
635 |
"target=\"_blank\" rel=\"noopener noreferrer\">API Key</a> is needed to "
|
636 |
"display map on store page"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: includes/Admin/Settings.php:575
|
640 |
#: templates/admin-setup-wizard/step-store.php:71
|
641 |
msgid "Mapbox Access Token"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: includes/Admin/Settings.php:576
|
645 |
#: templates/admin-setup-wizard/step-store.php:75
|
646 |
msgid ""
|
647 |
"<a href=\"https://docs.mapbox.com/help/how-mapbox-works/access-tokens/\" "
|
649 |
"display map on store page"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/Admin/Settings.php:581
|
653 |
msgid "Show Contact Form on Store Page"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/Admin/Settings.php:582
|
657 |
msgid "Display a vendor contact form in the store sidebar"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: includes/Admin/Settings.php:588
|
661 |
msgid "Store Header Template"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: includes/Admin/Settings.php:600
|
665 |
msgid "Store Opening Closing Time Widget"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: includes/Admin/Settings.php:601
|
669 |
msgid "Enable store opening & closing time widget in the store sidebar"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/Admin/Settings.php:607
|
673 |
msgid "Enable Store Sidebar From Theme"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: includes/Admin/Settings.php:608
|
677 |
msgid "Enable showing Store Sidebar From Your Theme."
|
678 |
msgstr ""
|
679 |
|
680 |
+
#: includes/Admin/Settings.php:614
|
681 |
msgid "Hide Vendor Info"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: includes/Admin/Settings.php:622
|
685 |
msgid "Email Address"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: includes/Admin/Settings.php:623 includes/Admin/UserProfile.php:212
|
689 |
#: src/admin/pages/VendorAccountFields.vue:64
|
690 |
#: templates/account/vendor-registration.php:33
|
691 |
#: templates/global/seller-registration-form.php:36
|
692 |
msgid "Phone Number"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: includes/Admin/Settings.php:624
|
696 |
msgid "Store Address"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: includes/Admin/Settings.php:631
|
700 |
msgid "Enable Privacy Policy"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: includes/Admin/Settings.php:633
|
704 |
msgid "Enable privacy policy for Vendor store contact form"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: includes/Admin/Settings.php:638
|
708 |
msgid "Privacy Page"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: includes/Admin/Settings.php:640
|
712 |
msgid "Select a page to show your privacy policy"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: includes/Admin/Settings.php:649 includes/functions.php:3616
|
716 |
msgid ""
|
717 |
"Your personal data will be used to support your experience throughout this "
|
718 |
"website, to manage access to your account, and for other purposes described "
|
719 |
"in our [dokan_privacy_policy]"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: includes/Admin/Settings.php:722
|
723 |
msgid "Both section and field params are required."
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: includes/Admin/Settings.php:731
|
727 |
msgid "No filter found to refresh the setting options"
|
728 |
msgstr ""
|
729 |
|
732 |
msgstr ""
|
733 |
|
734 |
#: includes/Admin/SetupWizard.php:150 includes/Vendor/SetupWizard.php:75
|
735 |
+
#: includes/template-tags.php:431
|
736 |
msgid "Store"
|
737 |
msgstr ""
|
738 |
|
799 |
"no limits )"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: includes/Admin/SetupWizard.php:540 includes/Admin/SetupWizard.php:603
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
#: includes/Admin/SetupWizardWCAdmin.php:232
|
804 |
#: includes/Vendor/SetupWizard.php:243 includes/Vendor/SetupWizard.php:390
|
805 |
#: templates/admin-setup-wizard/step-selling.php:53
|
806 |
+
#: templates/admin-setup-wizard/step-store.php:102
|
807 |
msgid "Continue"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: includes/Admin/SetupWizard.php:541 includes/Vendor/SetupWizard.php:244
|
811 |
#: includes/Vendor/SetupWizard.php:391
|
812 |
#: templates/admin-setup-wizard/step-selling.php:54
|
813 |
+
#: templates/admin-setup-wizard/step-store.php:103
|
814 |
msgid "Skip this step"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: includes/Admin/SetupWizard.php:557
|
818 |
msgid "Recommended for All Dokan Marketplaces"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: includes/Admin/SetupWizard.php:559
|
822 |
msgid "Enhance your store with these recommended features."
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: includes/Admin/SetupWizard.php:569 includes/Admin/SetupWizard.php:575
|
826 |
+
#: includes/Admin/SetupWizard.php:627
|
827 |
msgid "WooCommerce Conversion Tracking"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: includes/Admin/SetupWizard.php:570
|
831 |
msgid "Track conversions on your WooCommerce store like a pro!"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: includes/Admin/SetupWizard.php:572
|
835 |
msgid "WooCommerce Conversion Tracking logo"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: includes/Admin/SetupWizard.php:585 includes/Admin/SetupWizard.php:591
|
839 |
+
#: includes/Admin/SetupWizard.php:638
|
840 |
msgid "weMail"
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: includes/Admin/SetupWizard.php:586
|
844 |
msgid "Simplified Email Marketing Solution for WordPress!"
|
845 |
msgstr ""
|
846 |
|
847 |
+
#: includes/Admin/SetupWizard.php:588
|
848 |
msgid "weMail logo"
|
849 |
msgstr ""
|
850 |
|
851 |
+
#: includes/Admin/SetupWizard.php:698
|
852 |
msgid "Your Marketplace is Ready!"
|
853 |
msgstr ""
|
854 |
|
855 |
+
#: includes/Admin/SetupWizard.php:703
|
856 |
msgid "Visit Dokan Dashboard"
|
857 |
msgstr ""
|
858 |
|
859 |
+
#: includes/Admin/SetupWizard.php:704
|
860 |
msgid "More Settings"
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: includes/Admin/SetupWizard.php:815
|
864 |
msgid "The following plugins will be installed and activated for you:"
|
865 |
msgstr ""
|
866 |
|
873 |
msgstr ""
|
874 |
|
875 |
#: includes/Admin/SetupWizardNoWC.php:176 includes/Vendor/SetupWizard.php:80
|
876 |
+
#: includes/template-tags.php:438
|
877 |
msgid "Payment"
|
878 |
msgstr ""
|
879 |
|
953 |
msgstr ""
|
954 |
|
955 |
#: includes/Admin/UserProfile.php:38 includes/Ajax.php:143
|
956 |
+
#: includes/Assets.php:413 src/admin/pages/VendorAccountFields.vue:278
|
957 |
+
#: src/admin/pages/VendorAccountFields.vue:310
|
958 |
+
#: src/admin/pages/VendorAccountFields.vue:342
|
959 |
msgid "Available"
|
960 |
msgstr ""
|
961 |
|
962 |
#: includes/Admin/UserProfile.php:39 includes/Assets.php:414
|
963 |
+
#: src/admin/pages/VendorAccountFields.vue:286
|
964 |
+
#: src/admin/pages/VendorAccountFields.vue:318
|
965 |
msgid "Not Available"
|
966 |
msgstr ""
|
967 |
|
1676 |
msgid "You have no permission to view this order"
|
1677 |
msgstr ""
|
1678 |
|
1679 |
+
#: includes/Dashboard/Templates/Products.php:196
|
1680 |
#: includes/Dashboard/Templates/Settings.php:143
|
1681 |
#: includes/Dashboard/Templates/Settings.php:154
|
1682 |
#: includes/Shortcodes/Dashboard.php:29 templates/global/no-permission.php:53
|
1683 |
msgid "You have no permission to view this page"
|
1684 |
msgstr ""
|
1685 |
|
1686 |
+
#: includes/Dashboard/Templates/Products.php:213 src/admin/main.js:25
|
1687 |
#: templates/orders/listing.php:11
|
1688 |
msgid "Bulk Actions"
|
1689 |
msgstr ""
|
1690 |
|
1691 |
+
#: includes/Dashboard/Templates/Products.php:214
|
1692 |
#: includes/Product/functions.php:459
|
1693 |
msgid "Delete Permanently"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
+
#: includes/Dashboard/Templates/Products.php:243
|
1697 |
msgid "Details of your product ..."
|
1698 |
msgstr ""
|
1699 |
|
1700 |
+
#: includes/Dashboard/Templates/Products.php:252
|
1701 |
+
#: includes/Dashboard/Templates/Products.php:403
|
1702 |
#: includes/Product/functions.php:31
|
1703 |
msgid "Please enter product title"
|
1704 |
msgstr ""
|
1705 |
|
1706 |
+
#: includes/Dashboard/Templates/Products.php:259
|
1707 |
+
#: includes/Dashboard/Templates/Products.php:410
|
1708 |
#: includes/Product/functions.php:36
|
1709 |
msgid "Please select a category"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
+
#: includes/Dashboard/Templates/Products.php:264
|
1713 |
+
#: includes/Dashboard/Templates/Products.php:415
|
1714 |
#: includes/Product/functions.php:40
|
1715 |
msgid "Please select AT LEAST ONE category"
|
1716 |
msgstr ""
|
1717 |
|
1718 |
+
#: includes/Dashboard/Templates/Products.php:422
|
1719 |
msgid "No product found!"
|
1720 |
msgstr ""
|
1721 |
|
1722 |
+
#: includes/Dashboard/Templates/Products.php:426
|
1723 |
#: includes/Product/functions.php:64
|
1724 |
msgid "I swear this is not your product!"
|
1725 |
msgstr ""
|
2563 |
msgid "Gravatar Url"
|
2564 |
msgstr ""
|
2565 |
|
2566 |
+
#: includes/Privacy.php:201 includes/functions.php:2409
|
2567 |
#: src/admin/pages/VendorSocialFields.vue:11
|
2568 |
msgid "Facebook"
|
2569 |
msgstr ""
|
2570 |
|
2571 |
+
#: includes/Privacy.php:202 includes/functions.php:2413
|
2572 |
#: src/admin/pages/VendorSocialFields.vue:21
|
2573 |
msgid "Twitter"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
+
#: includes/Privacy.php:203 includes/functions.php:2417
|
2577 |
#: src/admin/pages/VendorSocialFields.vue:36
|
2578 |
msgid "Pinterest"
|
2579 |
msgstr ""
|
2582 |
msgid "Linkedin"
|
2583 |
msgstr ""
|
2584 |
|
2585 |
+
#: includes/Privacy.php:205 includes/functions.php:2425
|
2586 |
#: src/admin/pages/VendorSocialFields.vue:26
|
2587 |
msgid "Youtube"
|
2588 |
msgstr ""
|
2589 |
|
2590 |
+
#: includes/Privacy.php:206 includes/functions.php:2429
|
2591 |
#: src/admin/pages/VendorSocialFields.vue:41
|
2592 |
msgid "Instagram"
|
2593 |
msgstr ""
|
2594 |
|
2595 |
+
#: includes/Privacy.php:207 includes/functions.php:2433
|
2596 |
#: src/admin/pages/VendorSocialFields.vue:16
|
2597 |
msgid "Flickr"
|
2598 |
msgstr ""
|
2845 |
msgid "Catalog"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
+
#: includes/Product/functions.php:335 templates/products/listing-filter.php:68
|
2849 |
msgid "Search"
|
2850 |
msgstr ""
|
2851 |
|
2896 |
msgid "Total"
|
2897 |
msgstr ""
|
2898 |
|
2899 |
+
#: includes/REST/AdminReportController.php:150 includes/template-tags.php:400
|
2900 |
#: templates/dashboard/orders-widget.php:15
|
2901 |
msgid "Orders"
|
2902 |
msgstr ""
|
4200 |
msgstr ""
|
4201 |
|
4202 |
#: includes/Widgets/StoreCategoryMenu.php:36
|
4203 |
+
#: includes/Widgets/StoreCategoryMenu.php:80 includes/template-tags.php:720
|
4204 |
msgid "Store Product Category"
|
4205 |
msgstr ""
|
4206 |
|
4213 |
msgstr ""
|
4214 |
|
4215 |
#: includes/Widgets/StoreContactForm.php:42
|
4216 |
+
#: includes/Widgets/StoreContactForm.php:119 includes/template-tags.php:759
|
4217 |
msgid "Contact Vendor"
|
4218 |
msgstr ""
|
4219 |
|
4226 |
msgstr ""
|
4227 |
|
4228 |
#: includes/Widgets/StoreLocation.php:42 includes/Widgets/StoreLocation.php:103
|
4229 |
+
#: includes/template-tags.php:733
|
4230 |
msgid "Store Location"
|
4231 |
msgstr ""
|
4232 |
|
4239 |
msgstr ""
|
4240 |
|
4241 |
#: includes/Widgets/StoreOpenClose.php:41
|
4242 |
+
#: includes/Widgets/StoreOpenClose.php:111 includes/template-tags.php:746
|
4243 |
msgid "Store Time"
|
4244 |
msgstr ""
|
4245 |
|
4344 |
msgid "Swift code"
|
4345 |
msgstr ""
|
4346 |
|
4347 |
+
#: includes/functions.php:827 templates/products/others.php:16
|
4348 |
msgid "Online"
|
4349 |
msgstr ""
|
4350 |
|
4351 |
+
#: includes/functions.php:828 templates/products/others.php:17
|
4352 |
msgid "Draft"
|
4353 |
msgstr ""
|
4354 |
|
4355 |
+
#: includes/functions.php:829 templates/dashboard/products-widget.php:41
|
4356 |
#: templates/withdraw/pending-request-listing.php:41
|
4357 |
msgid "Pending Review"
|
4358 |
msgstr ""
|
4359 |
|
4360 |
+
#: includes/functions.php:830 templates/products/products-listing-row.php:157
|
4361 |
msgid "Scheduled"
|
4362 |
msgstr ""
|
4363 |
|
4364 |
+
#: includes/functions.php:875
|
4365 |
msgid "Simple Product"
|
4366 |
msgstr ""
|
4367 |
|
4368 |
+
#: includes/functions.php:876 src/admin/pages/VendorCapabilities.vue:99
|
4369 |
msgid "Variable Product"
|
4370 |
msgstr ""
|
4371 |
|
4372 |
+
#: includes/functions.php:877
|
4373 |
msgid "Grouped Product"
|
4374 |
msgstr ""
|
4375 |
|
4376 |
+
#: includes/functions.php:878
|
4377 |
msgid "External/Affiliate Product"
|
4378 |
msgstr ""
|
4379 |
|
4380 |
+
#: includes/functions.php:1093
|
4381 |
msgid "Author"
|
4382 |
msgstr ""
|
4383 |
|
4384 |
+
#: includes/functions.php:1278 includes/template-tags.php:393
|
4385 |
#: src/admin/pages/Dashboard.vue:54 templates/dashboard/products-widget.php:16
|
4386 |
msgid "Products"
|
4387 |
msgstr ""
|
4388 |
|
4389 |
+
#: includes/functions.php:1282 templates/settings/store-form.php:200
|
4390 |
msgid "Terms and Conditions"
|
4391 |
msgstr ""
|
4392 |
|
4393 |
+
#: includes/functions.php:1321
|
4394 |
msgid "Account Name: %s"
|
4395 |
msgstr ""
|
4396 |
|
4397 |
+
#: includes/functions.php:1325
|
4398 |
msgid "Account Number: %s"
|
4399 |
msgstr ""
|
4400 |
|
4401 |
+
#: includes/functions.php:1329
|
4402 |
msgid "Bank Name: %s"
|
4403 |
msgstr ""
|
4404 |
|
4405 |
+
#: includes/functions.php:1333
|
4406 |
msgid "Address: %s"
|
4407 |
msgstr ""
|
4408 |
|
4409 |
+
#: includes/functions.php:1337
|
4410 |
msgid "Routing Number: %s"
|
4411 |
msgstr ""
|
4412 |
|
4413 |
+
#: includes/functions.php:1341
|
4414 |
msgid "IBAN: %s"
|
4415 |
msgstr ""
|
4416 |
|
4417 |
+
#: includes/functions.php:1345
|
4418 |
msgid "SWIFT: %s"
|
4419 |
msgstr ""
|
4420 |
|
4421 |
+
#: includes/functions.php:1706
|
4422 |
msgid "Date is not valid"
|
4423 |
msgstr ""
|
4424 |
|
4425 |
+
#: includes/functions.php:2157
|
4426 |
msgid "- Select a location -"
|
4427 |
msgstr ""
|
4428 |
|
4429 |
+
#: includes/functions.php:2161 includes/functions.php:2185
|
4430 |
msgid "Everywhere Else"
|
4431 |
msgstr ""
|
4432 |
|
4433 |
+
#: includes/functions.php:2181
|
4434 |
msgid "- Select a State -"
|
4435 |
msgstr ""
|
4436 |
|
4437 |
+
#: includes/functions.php:2204
|
4438 |
msgid "Ready to ship in..."
|
4439 |
msgstr ""
|
4440 |
|
4441 |
+
#: includes/functions.php:2205
|
4442 |
msgid "1 business day"
|
4443 |
msgstr ""
|
4444 |
|
4445 |
+
#: includes/functions.php:2206
|
4446 |
msgid "1-2 business days"
|
4447 |
msgstr ""
|
4448 |
|
4449 |
+
#: includes/functions.php:2207
|
4450 |
msgid "1-3 business days"
|
4451 |
msgstr ""
|
4452 |
|
4453 |
+
#: includes/functions.php:2208
|
4454 |
msgid "3-5 business days"
|
4455 |
msgstr ""
|
4456 |
|
4457 |
+
#: includes/functions.php:2209
|
4458 |
msgid "1-2 weeks"
|
4459 |
msgstr ""
|
4460 |
|
4461 |
+
#: includes/functions.php:2210
|
4462 |
msgid "2-3 weeks"
|
4463 |
msgstr ""
|
4464 |
|
4465 |
+
#: includes/functions.php:2211
|
4466 |
msgid "3-4 weeks"
|
4467 |
msgstr ""
|
4468 |
|
4469 |
+
#: includes/functions.php:2212
|
4470 |
msgid "4-6 weeks"
|
4471 |
msgstr ""
|
4472 |
|
4473 |
+
#: includes/functions.php:2213
|
4474 |
msgid "6-8 weeks"
|
4475 |
msgstr ""
|
4476 |
|
4477 |
+
#: includes/functions.php:2320
|
4478 |
msgid "All dates"
|
4479 |
msgstr ""
|
4480 |
|
4481 |
+
#: includes/functions.php:2335
|
4482 |
#. translators: 1: month name, 2: 4-digit year
|
4483 |
msgid "%1$s %2$d"
|
4484 |
msgstr ""
|
4485 |
|
4486 |
+
#: includes/functions.php:2421
|
4487 |
msgid "LinkedIn"
|
4488 |
msgstr ""
|
4489 |
|
4490 |
+
#: includes/functions.php:2702
|
4491 |
msgid "Dokan Store Sidebar"
|
4492 |
msgstr ""
|
4493 |
|
4494 |
+
#: includes/functions.php:2965
|
4495 |
msgid "View sales overview"
|
4496 |
msgstr ""
|
4497 |
|
4498 |
+
#: includes/functions.php:2966
|
4499 |
msgid "View sales report chart"
|
4500 |
msgstr ""
|
4501 |
|
4502 |
+
#: includes/functions.php:2967
|
4503 |
msgid "View announcement"
|
4504 |
msgstr ""
|
4505 |
|
4506 |
+
#: includes/functions.php:2968
|
4507 |
msgid "View order report"
|
4508 |
msgstr ""
|
4509 |
|
4510 |
+
#: includes/functions.php:2969
|
4511 |
msgid "View review report"
|
4512 |
msgstr ""
|
4513 |
|
4514 |
+
#: includes/functions.php:2970
|
4515 |
msgid "View product status report"
|
4516 |
msgstr ""
|
4517 |
|
4518 |
+
#: includes/functions.php:2973
|
4519 |
msgid "View overview report"
|
4520 |
msgstr ""
|
4521 |
|
4522 |
+
#: includes/functions.php:2974
|
4523 |
msgid "View daily sales report"
|
4524 |
msgstr ""
|
4525 |
|
4526 |
+
#: includes/functions.php:2975
|
4527 |
msgid "View top selling report"
|
4528 |
msgstr ""
|
4529 |
|
4530 |
+
#: includes/functions.php:2976
|
4531 |
msgid "View top earning report"
|
4532 |
msgstr ""
|
4533 |
|
4534 |
+
#: includes/functions.php:2977
|
4535 |
msgid "View statement report"
|
4536 |
msgstr ""
|
4537 |
|
4538 |
+
#: includes/functions.php:2980
|
4539 |
msgid "View order"
|
4540 |
msgstr ""
|
4541 |
|
4542 |
+
#: includes/functions.php:2981
|
4543 |
msgid "Manage order"
|
4544 |
msgstr ""
|
4545 |
|
4546 |
+
#: includes/functions.php:2982
|
4547 |
msgid "Manage order note"
|
4548 |
msgstr ""
|
4549 |
|
4550 |
+
#: includes/functions.php:2983
|
4551 |
msgid "Manage refund"
|
4552 |
msgstr ""
|
4553 |
|
4554 |
+
#: includes/functions.php:2987
|
4555 |
msgid "Add coupon"
|
4556 |
msgstr ""
|
4557 |
|
4558 |
+
#: includes/functions.php:2988
|
4559 |
msgid "Edit coupon"
|
4560 |
msgstr ""
|
4561 |
|
4562 |
+
#: includes/functions.php:2989
|
4563 |
msgid "Delete coupon"
|
4564 |
msgstr ""
|
4565 |
|
4566 |
+
#: includes/functions.php:2992
|
4567 |
msgid "View reviews"
|
4568 |
msgstr ""
|
4569 |
|
4570 |
+
#: includes/functions.php:2993 src/admin/pages/Premium.vue:395
|
4571 |
msgid "Manage reviews"
|
4572 |
msgstr ""
|
4573 |
|
4574 |
+
#: includes/functions.php:2997
|
4575 |
msgid "Manage withdraw"
|
4576 |
msgstr ""
|
4577 |
|
4578 |
+
#: includes/functions.php:3000
|
4579 |
msgid "Add product"
|
4580 |
msgstr ""
|
4581 |
|
4582 |
+
#: includes/functions.php:3001
|
4583 |
msgid "Edit product"
|
4584 |
msgstr ""
|
4585 |
|
4586 |
+
#: includes/functions.php:3002
|
4587 |
msgid "Delete product"
|
4588 |
msgstr ""
|
4589 |
|
4590 |
+
#: includes/functions.php:3003
|
4591 |
msgid "View product"
|
4592 |
msgstr ""
|
4593 |
|
4594 |
+
#: includes/functions.php:3004
|
4595 |
msgid "Duplicate product"
|
4596 |
msgstr ""
|
4597 |
|
4598 |
+
#: includes/functions.php:3005
|
4599 |
msgid "Import product"
|
4600 |
msgstr ""
|
4601 |
|
4602 |
+
#: includes/functions.php:3006
|
4603 |
msgid "Export product"
|
4604 |
msgstr ""
|
4605 |
|
4606 |
+
#: includes/functions.php:3009
|
4607 |
msgid "View overview menu"
|
4608 |
msgstr ""
|
4609 |
|
4610 |
+
#: includes/functions.php:3010
|
4611 |
msgid "View product menu"
|
4612 |
msgstr ""
|
4613 |
|
4614 |
+
#: includes/functions.php:3011
|
4615 |
msgid "View order menu"
|
4616 |
msgstr ""
|
4617 |
|
4618 |
+
#: includes/functions.php:3012
|
4619 |
msgid "View coupon menu"
|
4620 |
msgstr ""
|
4621 |
|
4622 |
+
#: includes/functions.php:3013
|
4623 |
msgid "View report menu"
|
4624 |
msgstr ""
|
4625 |
|
4626 |
+
#: includes/functions.php:3014
|
4627 |
msgid "Vuew review menu"
|
4628 |
msgstr ""
|
4629 |
|
4630 |
+
#: includes/functions.php:3015
|
4631 |
msgid "View withdraw menu"
|
4632 |
msgstr ""
|
4633 |
|
4634 |
+
#: includes/functions.php:3016
|
4635 |
msgid "View store settings menu"
|
4636 |
msgstr ""
|
4637 |
|
4638 |
+
#: includes/functions.php:3017
|
4639 |
msgid "View payment settings menu"
|
4640 |
msgstr ""
|
4641 |
|
4642 |
+
#: includes/functions.php:3018
|
4643 |
msgid "View shipping settings menu"
|
4644 |
msgstr ""
|
4645 |
|
4646 |
+
#: includes/functions.php:3019
|
4647 |
msgid "View social settings menu"
|
4648 |
msgstr ""
|
4649 |
|
4650 |
+
#: includes/functions.php:3020
|
4651 |
msgid "View seo settings menu"
|
4652 |
msgstr ""
|
4653 |
|
4654 |
+
#: includes/functions.php:3039 src/admin/pages/Dashboard.vue:106
|
4655 |
msgid "Overview"
|
4656 |
msgstr ""
|
4657 |
|
4658 |
+
#: includes/functions.php:3040
|
4659 |
msgid "Report"
|
4660 |
msgstr ""
|
4661 |
|
4662 |
+
#: includes/functions.php:3041 templates/dashboard/big-counter-widget.php:29
|
4663 |
#: templates/my-orders.php:27 templates/orders/details.php:21
|
4664 |
#: templates/orders/listing.php:51 templates/orders/listing.php:71
|
4665 |
#: templates/sub-orders.php:25
|
4666 |
msgid "Order"
|
4667 |
msgstr ""
|
4668 |
|
4669 |
+
#: includes/functions.php:3042
|
4670 |
msgid "Coupon"
|
4671 |
msgstr ""
|
4672 |
|
4673 |
+
#: includes/functions.php:3043
|
4674 |
msgid "Review"
|
4675 |
msgstr ""
|
4676 |
|
4677 |
+
#: includes/functions.php:3045 templates/emails/vendor-completed-order.php:46
|
4678 |
#: templates/emails/vendor-new-order.php:46
|
4679 |
msgid "Product"
|
4680 |
msgstr ""
|
4681 |
|
4682 |
+
#: includes/functions.php:3046
|
4683 |
msgid "Menu"
|
4684 |
msgstr ""
|
4685 |
|
4686 |
+
#: includes/functions.php:3223
|
4687 |
msgid "Saturday"
|
4688 |
msgstr ""
|
4689 |
|
4690 |
+
#: includes/functions.php:3226
|
4691 |
msgid "Sunday"
|
4692 |
msgstr ""
|
4693 |
|
4694 |
+
#: includes/functions.php:3229
|
4695 |
msgid "Monday"
|
4696 |
msgstr ""
|
4697 |
|
4698 |
+
#: includes/functions.php:3232
|
4699 |
msgid "Tuesday"
|
4700 |
msgstr ""
|
4701 |
|
4702 |
+
#: includes/functions.php:3235
|
4703 |
msgid "Wednesday"
|
4704 |
msgstr ""
|
4705 |
|
4706 |
+
#: includes/functions.php:3238
|
4707 |
msgid "Thursday"
|
4708 |
msgstr ""
|
4709 |
|
4710 |
+
#: includes/functions.php:3241
|
4711 |
msgid "Friday"
|
4712 |
msgstr ""
|
4713 |
|
4714 |
+
#: includes/functions.php:3244
|
4715 |
msgid "Off Day"
|
4716 |
msgstr ""
|
4717 |
|
4718 |
+
#: includes/functions.php:3596
|
4719 |
msgid "privacy policy"
|
4720 |
msgstr ""
|
4721 |
|
4722 |
+
#: includes/functions.php:3641 src/admin/pages/VendorPaymentFields.vue:142
|
4723 |
#: src/admin/pages/VendorPaymentFields.vue:155
|
4724 |
msgid "Flat"
|
4725 |
msgstr ""
|
4726 |
|
4727 |
+
#: includes/functions.php:3642 src/admin/pages/VendorPaymentFields.vue:146
|
4728 |
msgid "Percentage"
|
4729 |
msgstr ""
|
4730 |
|
4731 |
+
#: includes/functions.php:3659
|
4732 |
msgid "Please Login to Continue"
|
4733 |
msgstr ""
|
4734 |
|
4735 |
+
#: includes/functions.php:3841
|
4736 |
msgid "Unable to fetch plugin information from wordpress.org for %s."
|
4737 |
msgstr ""
|
4738 |
|
4739 |
+
#: includes/functions.php:3853
|
4740 |
msgid "Unable to install %s from wordpress.org"
|
4741 |
msgstr ""
|
4742 |
|
4761 |
msgid "Product succesfully deleted"
|
4762 |
msgstr ""
|
4763 |
|
4764 |
+
#: includes/template-tags.php:232
|
4765 |
#: templates/products/listing-status-filter.php:13
|
4766 |
#. translators: %d : order count total
|
4767 |
msgid "All (%d)"
|
4768 |
msgstr ""
|
4769 |
|
4770 |
+
#: includes/template-tags.php:250
|
4771 |
#. translators: %d : order count completed status
|
4772 |
msgid "Completed (%d)"
|
4773 |
msgstr ""
|
4774 |
|
4775 |
+
#: includes/template-tags.php:268
|
4776 |
#. translators: %d : order count processing status
|
4777 |
msgid "Processing (%d)"
|
4778 |
msgstr ""
|
4779 |
|
4780 |
+
#: includes/template-tags.php:286
|
4781 |
#. translators: %d : order count on hold status
|
4782 |
msgid "On-hold (%d)"
|
4783 |
msgstr ""
|
4784 |
|
4785 |
+
#: includes/template-tags.php:304
|
4786 |
#. translators: %d : order count pending status
|
4787 |
msgid "Pending (%d)"
|
4788 |
msgstr ""
|
4789 |
|
4790 |
+
#: includes/template-tags.php:322
|
4791 |
#. translators: %d : order count cancelled status
|
4792 |
msgid "Cancelled (%d)"
|
4793 |
msgstr ""
|
4794 |
|
4795 |
+
#: includes/template-tags.php:340
|
4796 |
#. translators: %d : order count refunded status
|
4797 |
msgid "Refunded (%d)"
|
4798 |
msgstr ""
|
4799 |
|
4800 |
+
#: includes/template-tags.php:359
|
4801 |
#. translators: %d : order count failed status
|
4802 |
msgid "Failed (%d)"
|
4803 |
msgstr ""
|
4804 |
|
4805 |
+
#: includes/template-tags.php:425
|
4806 |
msgid "Back to Dashboard"
|
4807 |
msgstr ""
|
4808 |
|
4809 |
+
#: includes/template-tags.php:555 templates/settings/header.php:14
|
4810 |
#: templates/store-lists-loop.php:94
|
4811 |
msgid "Visit Store"
|
4812 |
msgstr ""
|
4813 |
|
4814 |
+
#: includes/template-tags.php:556 templates/global/header-menu.php:48
|
4815 |
msgid "Edit Account"
|
4816 |
msgstr ""
|
4817 |
|
4818 |
+
#: includes/template-tags.php:557
|
4819 |
msgid "Log out"
|
4820 |
msgstr ""
|
4821 |
|
4898 |
msgid "Order – %s"
|
4899 |
msgstr ""
|
4900 |
|
4901 |
+
#: includes/wc-template.php:173
|
4902 |
msgid "— No change —"
|
4903 |
msgstr ""
|
4904 |
|
4905 |
+
#: includes/wc-template.php:284
|
4906 |
msgid "Go to Vendor Dashboard"
|
4907 |
msgstr ""
|
4908 |
|
5597 |
msgid "Generate Password"
|
5598 |
msgstr ""
|
5599 |
|
5600 |
+
#: src/admin/pages/VendorAccountFields.vue:266
|
5601 |
+
#: src/admin/pages/VendorAccountFields.vue:298
|
5602 |
+
#: src/admin/pages/VendorAccountFields.vue:330
|
5603 |
msgid "Searching..."
|
5604 |
msgstr ""
|
5605 |
|
5606 |
+
#: src/admin/pages/VendorAccountFields.vue:350
|
5607 |
msgid "This email is already registered, please choose another one."
|
5608 |
msgstr ""
|
5609 |
|
6526 |
msgid "Filter by registered customer"
|
6527 |
msgstr ""
|
6528 |
|
6529 |
+
#: templates/orders/date-export.php:39 templates/products/listing-filter.php:60
|
6530 |
#: templates/store-lists-filter.php:42
|
6531 |
msgid "Filter"
|
6532 |
msgstr ""
|
6888 |
msgid "Allow only one quantity of this product to be bought in a single order"
|
6889 |
msgstr ""
|
6890 |
|
6891 |
+
#: templates/products/listing-filter.php:25
|
6892 |
#: templates/products/new-product-single.php:271
|
6893 |
#: templates/products/new-product.php:204
|
6894 |
#: templates/products/tmpl-add-product-popup.php:100
|
6895 |
msgid "- Select a category -"
|
6896 |
msgstr ""
|
6897 |
|
6898 |
+
#: templates/products/listing-filter.php:44
|
6899 |
+
msgid "Product type"
|
6900 |
+
msgstr ""
|
6901 |
+
|
6902 |
+
#: templates/products/listing-filter.php:73
|
6903 |
msgid "Search Products"
|
6904 |
msgstr ""
|
6905 |
|
6906 |
+
#: templates/products/listing-status-filter.php:27
|
6907 |
+
msgid "In stock"
|
6908 |
+
msgstr ""
|
6909 |
+
|
6910 |
+
#: templates/products/listing-status-filter.php:33
|
6911 |
+
msgid "Out of stock"
|
6912 |
+
msgstr ""
|
6913 |
+
|
6914 |
#: templates/products/new-product-single.php:11
|
6915 |
msgid "Access Denied, No product found"
|
6916 |
msgstr ""
|
7180 |
msgstr ""
|
7181 |
|
7182 |
#: templates/products/products-listing.php:57
|
7183 |
+
#: templates/products/products-listing.php:252
|
7184 |
msgid "Add new product"
|
7185 |
msgstr ""
|
7186 |
|
7187 |
+
#: templates/products/products-listing.php:201
|
7188 |
msgid "No product found"
|
7189 |
msgstr ""
|
7190 |
|
7191 |
+
#: templates/products/products-listing.php:224
|
7192 |
msgid "« Previous"
|
7193 |
msgstr ""
|
7194 |
|
7195 |
+
#: templates/products/products-listing.php:225
|
7196 |
msgid "Next »"
|
7197 |
msgstr ""
|
7198 |
|
7199 |
+
#: templates/products/products-listing.php:240
|
7200 |
msgid "No Products Found!"
|
7201 |
msgstr ""
|
7202 |
|
7203 |
+
#: templates/products/products-listing.php:245
|
7204 |
msgid "Ready to start selling something awesome?"
|
7205 |
msgstr ""
|
7206 |
|
readme.txt
CHANGED
@@ -3,11 +3,11 @@ Contributors: tareq1988, wedevs, nizamuddinbabu
|
|
3 |
Donate Link: http://tareq.co/donate/
|
4 |
Tags: WooCommerce multivendor marketplace, multi vendor marketplace, multi seller store, multi-vendor, multi seller, commissions, multivendor, marketplace, product vendors, woocommerce vendor, commission rate, e-commerce, woocommerce, ebay, ecommerce, yith, yithemes
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.7
|
7 |
WC requires at least: 3.0
|
8 |
-
WC tested up to: 5.
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable tag: 3.2.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -292,7 +292,25 @@ A. Just install and activate the PRO version without deleting the free plugin. A
|
|
292 |
|
293 |
== Changelog ==
|
294 |
|
295 |
-
= v3.2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
|
297 |
- **new:** Enter key allow for vendor search on store listing page
|
298 |
- **feat:** Vendors able to edit product slug from their product edit page
|
3 |
Donate Link: http://tareq.co/donate/
|
4 |
Tags: WooCommerce multivendor marketplace, multi vendor marketplace, multi seller store, multi-vendor, multi seller, commissions, multivendor, marketplace, product vendors, woocommerce vendor, commission rate, e-commerce, woocommerce, ebay, ecommerce, yith, yithemes
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.7.1
|
7 |
WC requires at least: 3.0
|
8 |
+
WC tested up to: 5.2.2
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable tag: 3.2.5
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
292 |
|
293 |
== Changelog ==
|
294 |
|
295 |
+
= v3.2.5 ( April 30, 2021 ) =
|
296 |
+
|
297 |
+
- **fix:** Fix single store page template layout
|
298 |
+
- **fix:** [wpml] Fix malformed dashboard subpage URL when page_link is filtered to add a query parameter
|
299 |
+
- **fix:** product count exclude booking product
|
300 |
+
- **fix:** order export not filtered customer filtered data
|
301 |
+
- **fix:** [wpml] Fix malformed store URL when the home URL contains a query parameter
|
302 |
+
- **fix:** capitalise vendor url in add new vendor
|
303 |
+
- **new:** Sub orders set dynamic post status on WooCommerce my account order details page
|
304 |
+
- **new:** Store listing shortcode enhancements, Store Category wise: [dokan-stores category="clothing"] Order wise: [dokan-stores order="ASC"] Orderby wise: [dokan-stores orderby="registered"] Store_id wise: [dokan-stores store_id="1, 2, 3"
|
305 |
+
- **new:** Vendor product listing page added 2 new filters options stock wise and product type wise
|
306 |
+
- **new:** Order status for withdraw option added on dokan admin setting page
|
307 |
+
- **new:** Store open close option disabled by default when a vendor register
|
308 |
+
- **fix:** Vendor setup wizard page broken issue fixed
|
309 |
+
- **fix:** Inconsistency template CSS class dokan-w3 issue fixed on vendor setting page
|
310 |
+
- **fix:** Unable to add multiple lines to the short Description field issue fixed
|
311 |
+
- **fix:** AZERTY keyboard restrict registration issue fixed for vendor register form
|
312 |
+
|
313 |
+
= v3.2.4 ( April 01, 2021 ) =
|
314 |
|
315 |
- **new:** Enter key allow for vendor search on store listing page
|
316 |
- **feat:** Vendors able to edit product slug from their product edit page
|
templates/admin-setup-wizard/step-store.php
CHANGED
@@ -95,6 +95,8 @@
|
|
95 |
</p>
|
96 |
</td>
|
97 |
</tr>
|
|
|
|
|
98 |
</table>
|
99 |
<p class="wc-setup-actions step">
|
100 |
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
|
95 |
</p>
|
96 |
</td>
|
97 |
</tr>
|
98 |
+
|
99 |
+
<?php do_action( 'dokan_admin_setup_wizard_step_store_after', $setup_wizard ); ?>
|
100 |
</table>
|
101 |
<p class="wc-setup-actions step">
|
102 |
<input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
|
templates/products/download-virtual.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<div class="dokan-form-group dokan-product-type-container <?php echo esc_attr( $class ); ?>">
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
<div class="content-half-part virtual-checkbox">
|
8 |
<label>
|
9 |
<input type="checkbox" <?php checked( $is_virtual, true ); ?> class="_is_virtual" name="_virtual" id="_virtual"> <?php esc_html_e( 'Virtual', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Virtual products are intangible and aren\'t shipped.', 'dokan-lite' ); ?>"></i>
|
1 |
<div class="dokan-form-group dokan-product-type-container <?php echo esc_attr( $class ); ?>">
|
2 |
+
<div class="content-half-part downloadable-checkbox">
|
3 |
+
<label>
|
4 |
+
<input type="checkbox" <?php checked( $is_downloadable, true ); ?> class="_is_downloadable" name="_downloadable" id="_downloadable"> <?php esc_html_e( 'Downloadable', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Downloadable products give access to a file upon purchase.', 'dokan-lite' ); ?>"></i>
|
5 |
+
</label>
|
6 |
+
</div>
|
7 |
<div class="content-half-part virtual-checkbox">
|
8 |
<label>
|
9 |
<input type="checkbox" <?php checked( $is_virtual, true ); ?> class="_is_virtual" name="_virtual" id="_virtual"> <?php esc_html_e( 'Virtual', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Virtual products are intangible and aren\'t shipped.', 'dokan-lite' ); ?>"></i>
|
templates/products/listing-filter.php
CHANGED
@@ -9,6 +9,8 @@ $get_data = wp_unslash( $_GET ); // WPCS: CSRF ok.
|
|
9 |
$post_data = wp_unslash( $_POST ); // WPCS: CSRF ok.
|
10 |
|
11 |
do_action( 'dokan_product_listing_filter_before_form' );
|
|
|
|
|
12 |
?>
|
13 |
|
14 |
<form class="dokan-form-inline dokan-w8 dokan-product-date-filter" method="get" >
|
@@ -36,6 +38,17 @@ do_action( 'dokan_product_listing_filter_before_form' );
|
|
36 |
?>
|
37 |
</div>
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
<?php do_action( 'dokan_product_listing_filter_from_end', $get_data ); ?>
|
40 |
|
41 |
<?php
|
9 |
$post_data = wp_unslash( $_POST ); // WPCS: CSRF ok.
|
10 |
|
11 |
do_action( 'dokan_product_listing_filter_before_form' );
|
12 |
+
$product_types = apply_filters( 'dokan_product_types', ['simple'] );
|
13 |
+
$product_type = isset( $get_data['product_type'] ) ? $get_data['product_type'] : '';
|
14 |
?>
|
15 |
|
16 |
<form class="dokan-form-inline dokan-w8 dokan-product-date-filter" method="get" >
|
38 |
?>
|
39 |
</div>
|
40 |
|
41 |
+
<?php if ( is_array( $product_types ) ) : ?>
|
42 |
+
<div class="dokan-form-group">
|
43 |
+
<select name="product_type" id="filter-by-type" class="dokan-form-control" style="max-width:140px;">
|
44 |
+
<option value=""><?php esc_html_e( 'Product type', 'dokan-lite' ); ?></option>
|
45 |
+
<?php foreach ( $product_types as $type_key => $p_type ) : ?>
|
46 |
+
<option value="<?php echo esc_attr( $type_key ); ?>" <?php echo selected( $product_type, $type_key ); ?>><?php echo esc_html( $p_type ); ?></option>
|
47 |
+
<?php endforeach; ?>
|
48 |
+
</select>
|
49 |
+
</div>
|
50 |
+
<?php endif; ?>
|
51 |
+
|
52 |
<?php do_action( 'dokan_product_listing_filter_from_end', $get_data ); ?>
|
53 |
|
54 |
<?php
|
templates/products/listing-status-filter.php
CHANGED
@@ -22,4 +22,15 @@
|
|
22 |
<a href="<?php echo esc_url( add_query_arg( array( 'post_status' => $status ), $permalink ) ); ?>"><?php echo esc_html( $status_label ). ' (' . esc_html( $post_counts->{$status} ) . ')'; ?></a>
|
23 |
</li>
|
24 |
<?php endforeach ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</ul> <!-- .post-statuses-filter -->
|
22 |
<a href="<?php echo esc_url( add_query_arg( array( 'post_status' => $status ), $permalink ) ); ?>"><?php echo esc_html( $status_label ). ' (' . esc_html( $post_counts->{$status} ) . ')'; ?></a>
|
23 |
</li>
|
24 |
<?php endforeach ?>
|
25 |
+
<?php if ( $instock_counts ) : ?>
|
26 |
+
<li<?php echo $status_class == 'instock' ? ' class="active"' : ''; ?>>
|
27 |
+
<a href="<?php echo esc_url( add_query_arg( array( 'post_status' => 'instock' ), $permalink ) ); ?>"><?php echo esc_html_e( 'In stock' ). ' (' . esc_html( $instock_counts ) . ')'; ?></a>
|
28 |
+
</li>
|
29 |
+
<?php endif; ?>
|
30 |
+
|
31 |
+
<?php if ( $outofstock_counts ) : ?>
|
32 |
+
<li<?php echo $status_class == 'outofstock' ? ' class="active"' : ''; ?>>
|
33 |
+
<a href="<?php echo esc_url( add_query_arg( array( 'post_status' => 'outofstock' ), $permalink ) ); ?>"><?php echo esc_html_e( 'Out of stock' ). ' (' . esc_html( $outofstock_counts ) . ')'; ?></a>
|
34 |
+
</li>
|
35 |
+
<?php endif; ?>
|
36 |
</ul> <!-- .post-statuses-filter -->
|
templates/products/products-listing.php
CHANGED
@@ -112,9 +112,11 @@
|
|
112 |
</thead>
|
113 |
<tbody>
|
114 |
<?php
|
115 |
-
$pagenum
|
116 |
-
$post_statuses
|
117 |
-
$
|
|
|
|
|
118 |
|
119 |
$args = array(
|
120 |
'posts_per_page' => 15,
|
@@ -131,7 +133,7 @@
|
|
131 |
),
|
132 |
);
|
133 |
|
134 |
-
if ( isset( $get_data['post_status']) && in_array( $get_data['post_status'], $post_statuses ) ) {
|
135 |
$args['post_status'] = $get_data['post_status'];
|
136 |
}
|
137 |
|
@@ -148,10 +150,26 @@
|
|
148 |
);
|
149 |
}
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
if ( isset( $get_data['product_search_name']) && !empty( $get_data['product_search_name'] ) ) {
|
152 |
$args['s'] = $get_data['product_search_name'];
|
153 |
}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
$original_post = $post;
|
156 |
$product_args = apply_filters( 'dokan_pre_product_listing_args', $args, $get_data );
|
157 |
$product_query = dokan()->product->all( apply_filters( 'dokan_product_listing_arg', $product_args ) );
|
112 |
</thead>
|
113 |
<tbody>
|
114 |
<?php
|
115 |
+
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
|
116 |
+
$post_statuses = apply_filters( 'dokan_product_listing_post_statuses', [ 'publish', 'draft', 'pending', 'future' ] );
|
117 |
+
$stock_statuses = apply_filters( 'dokan_product_stock_statuses', [ 'instock', 'outofstock' ] );
|
118 |
+
$product_types = apply_filters( 'dokan_product_types', 'simple' );
|
119 |
+
$get_data = wp_unslash( $_GET );
|
120 |
|
121 |
$args = array(
|
122 |
'posts_per_page' => 15,
|
133 |
),
|
134 |
);
|
135 |
|
136 |
+
if ( isset( $get_data['post_status']) && in_array( $get_data['post_status'], $post_statuses, true ) ) {
|
137 |
$args['post_status'] = $get_data['post_status'];
|
138 |
}
|
139 |
|
150 |
);
|
151 |
}
|
152 |
|
153 |
+
if ( isset( $get_data['product_type']) && array_key_exists( $get_data['product_type'], $product_types ) ) {
|
154 |
+
$args['tax_query'][] = array(
|
155 |
+
'taxonomy' => 'product_type',
|
156 |
+
'field' => 'slug',
|
157 |
+
'terms' => $get_data['product_type'],
|
158 |
+
);
|
159 |
+
}
|
160 |
+
|
161 |
if ( isset( $get_data['product_search_name']) && !empty( $get_data['product_search_name'] ) ) {
|
162 |
$args['s'] = $get_data['product_search_name'];
|
163 |
}
|
164 |
|
165 |
+
if ( isset( $get_data['post_status']) && in_array( $get_data['post_status'], $stock_statuses, true ) ) {
|
166 |
+
$args['meta_query'][] = array(
|
167 |
+
'key' => '_stock_status',
|
168 |
+
'value' => $get_data['post_status'],
|
169 |
+
'compare' => '='
|
170 |
+
);
|
171 |
+
}
|
172 |
+
|
173 |
$original_post = $post;
|
174 |
$product_args = apply_filters( 'dokan_pre_product_listing_args', $args, $get_data );
|
175 |
$product_query = dokan()->product->all( apply_filters( 'dokan_product_listing_arg', $product_args ) );
|
templates/settings/address-form.php
CHANGED
@@ -25,7 +25,7 @@ $address_state = isset( $profile_info['address']['state'] ) ? $profile_info['a
|
|
25 |
<div class="dokan-w5 dokan-text-left dokan-address-fields">
|
26 |
<?php if ( $seller_address_fields['street_1'] ) { ?>
|
27 |
<div class="dokan-form-group">
|
28 |
-
<label class="
|
29 |
<?php
|
30 |
$required_attr = '';
|
31 |
if ( $seller_address_fields['street_1']['required'] ) {
|
@@ -38,7 +38,7 @@ $address_state = isset( $profile_info['address']['state'] ) ? $profile_info['a
|
|
38 |
<?php }
|
39 |
if ( $seller_address_fields['street_2'] ) { ?>
|
40 |
<div class="dokan-form-group">
|
41 |
-
<label class="
|
42 |
<?php
|
43 |
$required_attr = '';
|
44 |
if ( $seller_address_fields['street_2']['required'] ) {
|
@@ -115,7 +115,7 @@ $address_state = isset( $profile_info['address']['state'] ) ? $profile_info['a
|
|
115 |
}
|
116 |
?>
|
117 |
<div id="dokan-states-box" class="dokan-form-group">
|
118 |
-
<label class="
|
119 |
<?php
|
120 |
$required_attr = '';
|
121 |
if ( $seller_address_fields['state']['required'] ) {
|
25 |
<div class="dokan-w5 dokan-text-left dokan-address-fields">
|
26 |
<?php if ( $seller_address_fields['street_1'] ) { ?>
|
27 |
<div class="dokan-form-group">
|
28 |
+
<label class="control-label" for="dokan_address[street_1]"><?php esc_html_e( 'Street ', 'dokan-lite' ); ?>
|
29 |
<?php
|
30 |
$required_attr = '';
|
31 |
if ( $seller_address_fields['street_1']['required'] ) {
|
38 |
<?php }
|
39 |
if ( $seller_address_fields['street_2'] ) { ?>
|
40 |
<div class="dokan-form-group">
|
41 |
+
<label class="control-label" for="dokan_address[street_2]"><?php esc_html_e( 'Street 2', 'dokan-lite' ); ?>
|
42 |
<?php
|
43 |
$required_attr = '';
|
44 |
if ( $seller_address_fields['street_2']['required'] ) {
|
115 |
}
|
116 |
?>
|
117 |
<div id="dokan-states-box" class="dokan-form-group">
|
118 |
+
<label class="control-label" for="dokan_address[state]"><?php esc_html_e( 'State ', 'dokan-lite' ); ?>
|
119 |
<?php
|
120 |
$required_attr = '';
|
121 |
if ( $seller_address_fields['state']['required'] ) {
|
templates/store-toc.php
CHANGED
@@ -24,7 +24,7 @@ get_header( 'shop' );
|
|
24 |
<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
|
25 |
<?php } ?>
|
26 |
|
27 |
-
<div id="primary" class="content-area dokan-single-store
|
28 |
<div id="dokan-content" class="site-content store-review-wrap woocommerce" role="main">
|
29 |
|
30 |
<?php dokan_get_template_part( 'store-header' ); ?>
|
24 |
<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
|
25 |
<?php } ?>
|
26 |
|
27 |
+
<div id="primary" class="content-area dokan-single-store">
|
28 |
<div id="dokan-content" class="site-content store-review-wrap woocommerce" role="main">
|
29 |
|
30 |
<?php dokan_get_template_part( 'store-header' ); ?>
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitcd397790dc16861a7e55ae9d5965afa4::getLoader();
|
vendor/composer/autoload_files.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// autoload_files.php @generated by Composer
|
4 |
+
|
5 |
+
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
+
|
8 |
+
return array(
|
9 |
+
'b45b351e6b6f7487d819961fef2fda77' => $vendorDir . '/jakeasmith/http_build_url/src/http_build_url.php',
|
10 |
+
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit4d61ec1b003f7b094a4ea9632ad3810a
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -50,6 +50,24 @@ class ComposerAutoloaderInit4d61ec1b003f7b094a4ea9632ad3810a
|
|
50 |
|
51 |
$loader->register(true);
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
return $loader;
|
54 |
}
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitcd397790dc16861a7e55ae9d5965afa4
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitcd397790dc16861a7e55ae9d5965afa4', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitcd397790dc16861a7e55ae9d5965afa4', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
50 |
|
51 |
$loader->register(true);
|
52 |
|
53 |
+
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4::$files;
|
55 |
+
} else {
|
56 |
+
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
+
}
|
58 |
+
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequirecd397790dc16861a7e55ae9d5965afa4($fileIdentifier, $file);
|
60 |
+
}
|
61 |
+
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
+
|
66 |
+
function composerRequirecd397790dc16861a7e55ae9d5965afa4($fileIdentifier, $file)
|
67 |
+
{
|
68 |
+
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
+
require $file;
|
70 |
+
|
71 |
+
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
72 |
+
}
|
73 |
+
}
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,8 +4,12 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
|
|
|
|
|
|
|
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
11 |
array (
|
@@ -178,9 +182,9 @@ class ComposerStaticInit4d61ec1b003f7b094a4ea9632ad3810a
|
|
178 |
public static function getInitializer(ClassLoader $loader)
|
179 |
{
|
180 |
return \Closure::bind(function () use ($loader) {
|
181 |
-
$loader->prefixLengthsPsr4 =
|
182 |
-
$loader->prefixDirsPsr4 =
|
183 |
-
$loader->classMap =
|
184 |
|
185 |
}, null, ClassLoader::class);
|
186 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4
|
8 |
{
|
9 |
+
public static $files = array (
|
10 |
+
'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
|
11 |
+
);
|
12 |
+
|
13 |
public static $prefixLengthsPsr4 = array (
|
14 |
'W' =>
|
15 |
array (
|
182 |
public static function getInitializer(ClassLoader $loader)
|
183 |
{
|
184 |
return \Closure::bind(function () use ($loader) {
|
185 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4::$prefixLengthsPsr4;
|
186 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4::$prefixDirsPsr4;
|
187 |
+
$loader->classMap = ComposerStaticInitcd397790dc16861a7e55ae9d5965afa4::$classMap;
|
188 |
|
189 |
}, null, ClassLoader::class);
|
190 |
}
|
vendor/composer/installed.json
CHANGED
@@ -42,5 +42,40 @@
|
|
42 |
"theme",
|
43 |
"wordpress"
|
44 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
]
|
42 |
"theme",
|
43 |
"wordpress"
|
44 |
]
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"name": "jakeasmith/http_build_url",
|
48 |
+
"version": "1.0.1",
|
49 |
+
"version_normalized": "1.0.1.0",
|
50 |
+
"source": {
|
51 |
+
"type": "git",
|
52 |
+
"url": "https://github.com/jakeasmith/http_build_url.git",
|
53 |
+
"reference": "93c273e77cb1edead0cf8bcf8cd2003428e74e37"
|
54 |
+
},
|
55 |
+
"dist": {
|
56 |
+
"type": "zip",
|
57 |
+
"url": "https://api.github.com/repos/jakeasmith/http_build_url/zipball/93c273e77cb1edead0cf8bcf8cd2003428e74e37",
|
58 |
+
"reference": "93c273e77cb1edead0cf8bcf8cd2003428e74e37",
|
59 |
+
"shasum": ""
|
60 |
+
},
|
61 |
+
"time": "2017-05-01T15:36:40+00:00",
|
62 |
+
"type": "library",
|
63 |
+
"installation-source": "dist",
|
64 |
+
"autoload": {
|
65 |
+
"files": [
|
66 |
+
"src/http_build_url.php"
|
67 |
+
]
|
68 |
+
},
|
69 |
+
"notification-url": "https://packagist.org/downloads/",
|
70 |
+
"license": [
|
71 |
+
"MIT"
|
72 |
+
],
|
73 |
+
"authors": [
|
74 |
+
{
|
75 |
+
"name": "Jake A. Smith",
|
76 |
+
"email": "theman@jakeasmith.com"
|
77 |
+
}
|
78 |
+
],
|
79 |
+
"description": "Provides functionality for http_build_url() to environments without pecl_http."
|
80 |
}
|
81 |
]
|
vendor/jakeasmith/http_build_url/.gitignore
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.DS_Store
|
2 |
+
.idea
|
3 |
+
build
|
4 |
+
composer.lock
|
5 |
+
vendor
|
vendor/jakeasmith/http_build_url/.travis.yml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
sudo: false
|
2 |
+
|
3 |
+
language: php
|
4 |
+
php:
|
5 |
+
- 5.3
|
6 |
+
- 5.4
|
7 |
+
- 5.5
|
8 |
+
- 5.6
|
9 |
+
- 7.0
|
10 |
+
- 7.1
|
11 |
+
- hhvm
|
12 |
+
|
13 |
+
script: phpunit --coverage-text
|
vendor/jakeasmith/http_build_url/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The MIT License (MIT)
|
2 |
+
|
3 |
+
Copyright (c) 2015 Jake A. Smith
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
vendor/jakeasmith/http_build_url/composer.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jakeasmith/http_build_url",
|
3 |
+
"description": "Provides functionality for http_build_url() to environments without pecl_http.",
|
4 |
+
"license": "MIT",
|
5 |
+
"authors": [
|
6 |
+
{
|
7 |
+
"name": "Jake A. Smith",
|
8 |
+
"email": "theman@jakeasmith.com"
|
9 |
+
}
|
10 |
+
],
|
11 |
+
"support": {
|
12 |
+
"issues": "https://github.com/jakeasmith/http_build_url/issues",
|
13 |
+
"source": "https://github.com/jakeasmith/http_build_url"
|
14 |
+
},
|
15 |
+
"autoload": {
|
16 |
+
"files": ["src/http_build_url.php"]
|
17 |
+
}
|
18 |
+
}
|
vendor/jakeasmith/http_build_url/phpunit.xml.dist
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
|
3 |
+
<testsuites>
|
4 |
+
<testsuite>
|
5 |
+
<directory>./tests</directory>
|
6 |
+
</testsuite>
|
7 |
+
</testsuites>
|
8 |
+
<filter>
|
9 |
+
<whitelist>
|
10 |
+
<directory suffix=".php">./src</directory>
|
11 |
+
</whitelist>
|
12 |
+
</filter>
|
13 |
+
<logging>
|
14 |
+
<log type="coverage-html" target="build/coverage" title="http_build_url()"
|
15 |
+
charset="UTF-8" yui="true" highlight="true"
|
16 |
+
lowUpperBound="35" highLowerBound="70"/>
|
17 |
+
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
18 |
+
<log type="junit" target="build/logs/junit.xml"
|
19 |
+
logIncompleteSkipped="false"/>
|
20 |
+
</logging>
|
21 |
+
</phpunit>
|
vendor/jakeasmith/http_build_url/readme.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# http_build_url() for PHP
|
2 |
+
|
3 |
+
[![Build Status](https://travis-ci.org/jakeasmith/http_build_url.png)](https://travis-ci.org/jakeasmith/http_build_url)
|
4 |
+
[![Code Climate](https://codeclimate.com/github/jakeasmith/http_build_url/badges/gpa.svg)](https://codeclimate.com/github/jakeasmith/http_build_url)
|
5 |
+
[![Latest Stable Version](https://poser.pugx.org/jakeasmith/http_build_url/v/stable.png)](https://packagist.org/packages/jakeasmith/http_build_url)
|
6 |
+
[![Total Downloads](https://poser.pugx.org/jakeasmith/http_build_url/downloads.png)](https://packagist.org/packages/jakeasmith/http_build_url)
|
7 |
+
|
8 |
+
This simple library provides functionality for [`http_build_url()`](http://us2.php.net/manual/en/function.http-build-url.php) to environments without pecl_http. It aims to mimic the functionality of the pecl function in every way and ships with a full suite of tests that have been run against both the original function and the one in this package.
|
9 |
+
|
10 |
+
## Installation
|
11 |
+
|
12 |
+
The easiest way to install this library is to use [Composer](https://getcomposer.org/) from the command line.
|
13 |
+
|
14 |
+
```
|
15 |
+
$ composer require jakeasmith/http_build_url ^1
|
16 |
+
```
|
17 |
+
|
18 |
+
## License
|
19 |
+
|
20 |
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
vendor/jakeasmith/http_build_url/src/http_build_url.php
ADDED
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* URL constants as defined in the PHP Manual under "Constants usable with
|
5 |
+
* http_build_url()".
|
6 |
+
*
|
7 |
+
* @see http://us2.php.net/manual/en/http.constants.php#http.constants.url
|
8 |
+
*/
|
9 |
+
if (!defined('HTTP_URL_REPLACE')) {
|
10 |
+
define('HTTP_URL_REPLACE', 1);
|
11 |
+
}
|
12 |
+
if (!defined('HTTP_URL_JOIN_PATH')) {
|
13 |
+
define('HTTP_URL_JOIN_PATH', 2);
|
14 |
+
}
|
15 |
+
if (!defined('HTTP_URL_JOIN_QUERY')) {
|
16 |
+
define('HTTP_URL_JOIN_QUERY', 4);
|
17 |
+
}
|
18 |
+
if (!defined('HTTP_URL_STRIP_USER')) {
|
19 |
+
define('HTTP_URL_STRIP_USER', 8);
|
20 |
+
}
|
21 |
+
if (!defined('HTTP_URL_STRIP_PASS')) {
|
22 |
+
define('HTTP_URL_STRIP_PASS', 16);
|
23 |
+
}
|
24 |
+
if (!defined('HTTP_URL_STRIP_AUTH')) {
|
25 |
+
define('HTTP_URL_STRIP_AUTH', 32);
|
26 |
+
}
|
27 |
+
if (!defined('HTTP_URL_STRIP_PORT')) {
|
28 |
+
define('HTTP_URL_STRIP_PORT', 64);
|
29 |
+
}
|
30 |
+
if (!defined('HTTP_URL_STRIP_PATH')) {
|
31 |
+
define('HTTP_URL_STRIP_PATH', 128);
|
32 |
+
}
|
33 |
+
if (!defined('HTTP_URL_STRIP_QUERY')) {
|
34 |
+
define('HTTP_URL_STRIP_QUERY', 256);
|
35 |
+
}
|
36 |
+
if (!defined('HTTP_URL_STRIP_FRAGMENT')) {
|
37 |
+
define('HTTP_URL_STRIP_FRAGMENT', 512);
|
38 |
+
}
|
39 |
+
if (!defined('HTTP_URL_STRIP_ALL')) {
|
40 |
+
define('HTTP_URL_STRIP_ALL', 1024);
|
41 |
+
}
|
42 |
+
|
43 |
+
if (!function_exists('http_build_url')) {
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Build a URL.
|
47 |
+
*
|
48 |
+
* The parts of the second URL will be merged into the first according to
|
49 |
+
* the flags argument.
|
50 |
+
*
|
51 |
+
* @param mixed $url (part(s) of) an URL in form of a string or
|
52 |
+
* associative array like parse_url() returns
|
53 |
+
* @param mixed $parts same as the first argument
|
54 |
+
* @param int $flags a bitmask of binary or'ed HTTP_URL constants;
|
55 |
+
* HTTP_URL_REPLACE is the default
|
56 |
+
* @param array $new_url if set, it will be filled with the parts of the
|
57 |
+
* composed url like parse_url() would return
|
58 |
+
* @return string
|
59 |
+
*/
|
60 |
+
function http_build_url($url, $parts = array(), $flags = HTTP_URL_REPLACE, &$new_url = array())
|
61 |
+
{
|
62 |
+
is_array($url) || $url = parse_url($url);
|
63 |
+
is_array($parts) || $parts = parse_url($parts);
|
64 |
+
|
65 |
+
isset($url['query']) && is_string($url['query']) || $url['query'] = null;
|
66 |
+
isset($parts['query']) && is_string($parts['query']) || $parts['query'] = null;
|
67 |
+
|
68 |
+
$keys = array('user', 'pass', 'port', 'path', 'query', 'fragment');
|
69 |
+
|
70 |
+
// HTTP_URL_STRIP_ALL and HTTP_URL_STRIP_AUTH cover several other flags.
|
71 |
+
if ($flags & HTTP_URL_STRIP_ALL) {
|
72 |
+
$flags |= HTTP_URL_STRIP_USER | HTTP_URL_STRIP_PASS
|
73 |
+
| HTTP_URL_STRIP_PORT | HTTP_URL_STRIP_PATH
|
74 |
+
| HTTP_URL_STRIP_QUERY | HTTP_URL_STRIP_FRAGMENT;
|
75 |
+
} elseif ($flags & HTTP_URL_STRIP_AUTH) {
|
76 |
+
$flags |= HTTP_URL_STRIP_USER | HTTP_URL_STRIP_PASS;
|
77 |
+
}
|
78 |
+
|
79 |
+
// Schema and host are alwasy replaced
|
80 |
+
foreach (array('scheme', 'host') as $part) {
|
81 |
+
if (isset($parts[$part])) {
|
82 |
+
$url[$part] = $parts[$part];
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
if ($flags & HTTP_URL_REPLACE) {
|
87 |
+
foreach ($keys as $key) {
|
88 |
+
if (isset($parts[$key])) {
|
89 |
+
$url[$key] = $parts[$key];
|
90 |
+
}
|
91 |
+
}
|
92 |
+
} else {
|
93 |
+
if (isset($parts['path']) && ($flags & HTTP_URL_JOIN_PATH)) {
|
94 |
+
if (isset($url['path']) && substr($parts['path'], 0, 1) !== '/') {
|
95 |
+
// Workaround for trailing slashes
|
96 |
+
$url['path'] .= 'a';
|
97 |
+
$url['path'] = rtrim(
|
98 |
+
str_replace(basename($url['path']), '', $url['path']),
|
99 |
+
'/'
|
100 |
+
) . '/' . ltrim($parts['path'], '/');
|
101 |
+
} else {
|
102 |
+
$url['path'] = $parts['path'];
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
if (isset($parts['query']) && ($flags & HTTP_URL_JOIN_QUERY)) {
|
107 |
+
if (isset($url['query'])) {
|
108 |
+
parse_str($url['query'], $url_query);
|
109 |
+
parse_str($parts['query'], $parts_query);
|
110 |
+
|
111 |
+
$url['query'] = http_build_query(
|
112 |
+
array_replace_recursive(
|
113 |
+
$url_query,
|
114 |
+
$parts_query
|
115 |
+
)
|
116 |
+
);
|
117 |
+
} else {
|
118 |
+
$url['query'] = $parts['query'];
|
119 |
+
}
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
if (isset($url['path']) && $url['path'] !== '' && substr($url['path'], 0, 1) !== '/') {
|
124 |
+
$url['path'] = '/' . $url['path'];
|
125 |
+
}
|
126 |
+
|
127 |
+
foreach ($keys as $key) {
|
128 |
+
$strip = 'HTTP_URL_STRIP_' . strtoupper($key);
|
129 |
+
if ($flags & constant($strip)) {
|
130 |
+
unset($url[$key]);
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
$parsed_string = '';
|
135 |
+
|
136 |
+
if (!empty($url['scheme'])) {
|
137 |
+
$parsed_string .= $url['scheme'] . '://';
|
138 |
+
}
|
139 |
+
|
140 |
+
if (!empty($url['user'])) {
|
141 |
+
$parsed_string .= $url['user'];
|
142 |
+
|
143 |
+
if (isset($url['pass'])) {
|
144 |
+
$parsed_string .= ':' . $url['pass'];
|
145 |
+
}
|
146 |
+
|
147 |
+
$parsed_string .= '@';
|
148 |
+
}
|
149 |
+
|
150 |
+
if (!empty($url['host'])) {
|
151 |
+
$parsed_string .= $url['host'];
|
152 |
+
}
|
153 |
+
|
154 |
+
if (!empty($url['port'])) {
|
155 |
+
$parsed_string .= ':' . $url['port'];
|
156 |
+
}
|
157 |
+
|
158 |
+
if (!empty($url['path'])) {
|
159 |
+
$parsed_string .= $url['path'];
|
160 |
+
}
|
161 |
+
|
162 |
+
if (!empty($url['query'])) {
|
163 |
+
$parsed_string .= '?' . $url['query'];
|
164 |
+
}
|
165 |
+
|
166 |
+
if (!empty($url['fragment'])) {
|
167 |
+
$parsed_string .= '#' . $url['fragment'];
|
168 |
+
}
|
169 |
+
|
170 |
+
$new_url = $url;
|
171 |
+
|
172 |
+
return $parsed_string;
|
173 |
+
}
|
174 |
+
}
|
vendor/jakeasmith/http_build_url/tests/HttpBuildUrlTest.php
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class HttpBuildUrlTest extends \PHPUnit_Framework_TestCase
|
4 |
+
{
|
5 |
+
private $full_url = "http://user:pass@www.example.com:8080/pub/index.php?a=b#files";
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Test example one.
|
9 |
+
*
|
10 |
+
* @see http://us2.php.net/manual/en/function.http-build-url.php
|
11 |
+
*/
|
12 |
+
public function testExampleOne()
|
13 |
+
{
|
14 |
+
$expected = 'ftp://ftp.example.com/pub/files/current/?a=c';
|
15 |
+
$actual = http_build_url(
|
16 |
+
"http://user@www.example.com/pub/index.php?a=b#files",
|
17 |
+
array(
|
18 |
+
"scheme" => "ftp",
|
19 |
+
"host" => "ftp.example.com",
|
20 |
+
"path" => "files/current/",
|
21 |
+
"query" => "a=c"
|
22 |
+
),
|
23 |
+
HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT
|
24 |
+
);
|
25 |
+
|
26 |
+
$this->assertSame($expected, $actual);
|
27 |
+
}
|
28 |
+
|
29 |
+
public function trailingSlashProvider()
|
30 |
+
{
|
31 |
+
return array(
|
32 |
+
array(
|
33 |
+
'http://example.com',
|
34 |
+
array(
|
35 |
+
'scheme' => 'http',
|
36 |
+
'host' => 'example.com'
|
37 |
+
)
|
38 |
+
),
|
39 |
+
array(
|
40 |
+
'http://example.com',
|
41 |
+
array(
|
42 |
+
'scheme' => 'http',
|
43 |
+
'host' => 'example.com',
|
44 |
+
'path' => ''
|
45 |
+
)
|
46 |
+
),
|
47 |
+
array(
|
48 |
+
'http://example.com/',
|
49 |
+
array(
|
50 |
+
'scheme' => 'http',
|
51 |
+
'host' => 'example.com',
|
52 |
+
'path' => '/'
|
53 |
+
)
|
54 |
+
),
|
55 |
+
array(
|
56 |
+
'http://example.com/yes',
|
57 |
+
array(
|
58 |
+
'scheme' => 'http',
|
59 |
+
'host' => 'example.com',
|
60 |
+
'path' => 'yes'
|
61 |
+
)
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'http://example.com/yes',
|
65 |
+
array(
|
66 |
+
'scheme' => 'http',
|
67 |
+
'host' => 'example.com',
|
68 |
+
'path' => '/yes'
|
69 |
+
)
|
70 |
+
),
|
71 |
+
array(
|
72 |
+
'http://example.com:81?a=b',
|
73 |
+
array(
|
74 |
+
'scheme' => 'http',
|
75 |
+
'host' => 'example.com',
|
76 |
+
'query' => 'a=b',
|
77 |
+
'port' => 81
|
78 |
+
)
|
79 |
+
)
|
80 |
+
);
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* @dataProvider trailingSlashProvider
|
85 |
+
*/
|
86 |
+
public function testTrailingSlash($expected, $config)
|
87 |
+
{
|
88 |
+
$this->assertEquals($expected, http_build_url($config));
|
89 |
+
}
|
90 |
+
|
91 |
+
public function testUrlQueryArrayIsIgnored()
|
92 |
+
{
|
93 |
+
$expected = 'http://user:pass@www.example.com:8080/pub/index.php#files';
|
94 |
+
$url = parse_url($this->full_url);
|
95 |
+
parse_str($url['query'], $url['query']);
|
96 |
+
$actual = http_build_url($url);
|
97 |
+
|
98 |
+
$this->assertSame($expected, $actual);
|
99 |
+
}
|
100 |
+
|
101 |
+
public function testPartsQueryArrayIsIgnored()
|
102 |
+
{
|
103 |
+
$expected = $this->full_url;
|
104 |
+
$actual = http_build_url($this->full_url, array('query' => array('foo' => 'bar')));
|
105 |
+
|
106 |
+
$this->assertSame($expected, $actual);
|
107 |
+
}
|
108 |
+
|
109 |
+
public function testAcceptStrings()
|
110 |
+
{
|
111 |
+
$expected = 'http://user:pass@foobar.com:8080/pub/index.php?a=b#files';
|
112 |
+
$actual = http_build_url($this->full_url, 'http://foobar.com:8080');
|
113 |
+
|
114 |
+
$this->assertSame($expected, $actual);
|
115 |
+
}
|
116 |
+
|
117 |
+
public function testAcceptArrays()
|
118 |
+
{
|
119 |
+
$expected = 'http://user:pass@foobar.com:8080/pub/index.php?a=b#files';
|
120 |
+
$actual = http_build_url(parse_url($this->full_url), parse_url('http://foobar.com:8080'));
|
121 |
+
|
122 |
+
$this->assertSame($expected, $actual);
|
123 |
+
}
|
124 |
+
|
125 |
+
public function testDefaults()
|
126 |
+
{
|
127 |
+
$expected = $this->full_url;
|
128 |
+
$actual = http_build_url($this->full_url);
|
129 |
+
|
130 |
+
$this->assertSame($expected, $actual);
|
131 |
+
}
|
132 |
+
|
133 |
+
public function testNewUrl()
|
134 |
+
{
|
135 |
+
$expected = parse_url($this->full_url);
|
136 |
+
http_build_url($this->full_url, null, null, $actual);
|
137 |
+
|
138 |
+
$this->assertEquals($expected, $actual);
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* @dataProvider queryProvider
|
143 |
+
*/
|
144 |
+
public function testJoinQuery($query, $expected)
|
145 |
+
{
|
146 |
+
$actual = http_build_url($this->full_url, array('query' => $query), HTTP_URL_JOIN_QUERY);
|
147 |
+
|
148 |
+
$this->assertSame($expected, $actual);
|
149 |
+
}
|
150 |
+
|
151 |
+
/**
|
152 |
+
* @dataProvider pathProvider
|
153 |
+
*/
|
154 |
+
public function testJoinPath($path, $expected)
|
155 |
+
{
|
156 |
+
$actual = http_build_url($this->full_url, array('path' => $path), HTTP_URL_JOIN_PATH);
|
157 |
+
|
158 |
+
$this->assertSame($expected, $actual);
|
159 |
+
}
|
160 |
+
|
161 |
+
public function testJoinPathTwo()
|
162 |
+
{
|
163 |
+
$expected = "http://site.testing.com/preview/testing/09-2013/p04/image/15.jpg";
|
164 |
+
$actual = http_build_url(
|
165 |
+
"http://site.testing.com/preview/testing/09-2013/p04/?code=asdfghjkl",
|
166 |
+
array('path' => 'image/15.jpg'),
|
167 |
+
HTTP_URL_JOIN_PATH | HTTP_URL_STRIP_FRAGMENT | HTTP_URL_STRIP_QUERY
|
168 |
+
);
|
169 |
+
|
170 |
+
$this->assertSame($expected, $actual);
|
171 |
+
}
|
172 |
+
|
173 |
+
/**
|
174 |
+
* @dataProvider bitmaskProvider
|
175 |
+
*/
|
176 |
+
public function testBitmasks($constant, $expected)
|
177 |
+
{
|
178 |
+
$actual = http_build_url($this->full_url, array(), constant($constant));
|
179 |
+
|
180 |
+
$this->assertSame($expected, $actual);
|
181 |
+
}
|
182 |
+
|
183 |
+
public function pathProvider()
|
184 |
+
{
|
185 |
+
return array(
|
186 |
+
array('/donuts/brownies', 'http://user:pass@www.example.com:8080/donuts/brownies?a=b#files'),
|
187 |
+
array('chicken/wings', 'http://user:pass@www.example.com:8080/pub/chicken/wings?a=b#files'),
|
188 |
+
array('sausage/bacon/', 'http://user:pass@www.example.com:8080/pub/sausage/bacon/?a=b#files')
|
189 |
+
);
|
190 |
+
}
|
191 |
+
|
192 |
+
public function queryProvider()
|
193 |
+
{
|
194 |
+
return array(
|
195 |
+
array('a=c', 'http://user:pass@www.example.com:8080/pub/index.php?a=c#files'),
|
196 |
+
array('d=a', 'http://user:pass@www.example.com:8080/pub/index.php?a=b&d=a#files')
|
197 |
+
);
|
198 |
+
}
|
199 |
+
|
200 |
+
public function bitmaskProvider()
|
201 |
+
{
|
202 |
+
return array(
|
203 |
+
array('HTTP_URL_REPLACE', 'http://user:pass@www.example.com:8080/pub/index.php?a=b#files'),
|
204 |
+
array('HTTP_URL_JOIN_PATH', 'http://user:pass@www.example.com:8080/pub/index.php?a=b#files'),
|
205 |
+
array('HTTP_URL_JOIN_QUERY', 'http://user:pass@www.example.com:8080/pub/index.php?a=b#files'),
|
206 |
+
array('HTTP_URL_STRIP_USER', 'http://www.example.com:8080/pub/index.php?a=b#files'),
|
207 |
+
array('HTTP_URL_STRIP_PASS', 'http://user@www.example.com:8080/pub/index.php?a=b#files'),
|
208 |
+
array('HTTP_URL_STRIP_AUTH', 'http://www.example.com:8080/pub/index.php?a=b#files'),
|
209 |
+
array('HTTP_URL_STRIP_PORT', 'http://user:pass@www.example.com/pub/index.php?a=b#files'),
|
210 |
+
array('HTTP_URL_STRIP_PATH', 'http://user:pass@www.example.com:8080?a=b#files'),
|
211 |
+
array('HTTP_URL_STRIP_QUERY', 'http://user:pass@www.example.com:8080/pub/index.php#files'),
|
212 |
+
array('HTTP_URL_STRIP_FRAGMENT', 'http://user:pass@www.example.com:8080/pub/index.php?a=b'),
|
213 |
+
array('HTTP_URL_STRIP_ALL', 'http://www.example.com'),
|
214 |
+
);
|
215 |
+
}
|
216 |
+
}
|
vendor/jakeasmith/http_build_url/tests/bootstrap.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require dirname( __DIR__ ) . '/src/http_build_url.php';
|
3 |
+
|
4 |
+
// PHPUnit 6 compatibility for previous versions
|
5 |
+
if ( class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) ) {
|
6 |
+
class_alias( 'PHPUnit\Framework\Assert', 'PHPUnit_Framework_Assert' );
|
7 |
+
class_alias( 'PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase' );
|
8 |
+
class_alias( 'PHPUnit\Framework\Error\Error', 'PHPUnit_Framework_Error' );
|
9 |
+
class_alias( 'PHPUnit\Framework\Error\Notice', 'PHPUnit_Framework_Error_Notice' );
|
10 |
+
class_alias( 'PHPUnit\Framework\Error\Warning', 'PHPUnit_Framework_Error_Warning' );
|
11 |
+
}
|
12 |
+
|
13 |
+
// Past this point, tests will start
|