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

Version Description

Download this release

Release Info

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

Code changes from version 3.3.3 to 3.3.4

assets/js/dokan-admin-notice.js ADDED
@@ -0,0 +1,684 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dokanWebpack([4],{
2
+
3
+ /***/ 1:
4
+ /***/ (function(module, exports) {
5
+
6
+ module.exports = jQuery;
7
+
8
+ /***/ }),
9
+
10
+ /***/ 17:
11
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12
+
13
+ "use strict";
14
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_AdminNotice_vue__ = __webpack_require__(2);
15
+ /* unused harmony namespace reexport */
16
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f724387_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_AdminNotice_vue__ = __webpack_require__(18);
17
+ var disposed = false
18
+ var normalizeComponent = __webpack_require__(0)
19
+ /* script */
20
+
21
+
22
+ /* template */
23
+
24
+ /* template functional */
25
+ var __vue_template_functional__ = false
26
+ /* styles */
27
+ var __vue_styles__ = null
28
+ /* scopeId */
29
+ var __vue_scopeId__ = null
30
+ /* moduleIdentifier (server only) */
31
+ var __vue_module_identifier__ = null
32
+ var Component = normalizeComponent(
33
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_AdminNotice_vue__["a" /* default */],
34
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f724387_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_AdminNotice_vue__["a" /* default */],
35
+ __vue_template_functional__,
36
+ __vue_styles__,
37
+ __vue_scopeId__,
38
+ __vue_module_identifier__
39
+ )
40
+ Component.options.__file = "src/admin/components/AdminNotice.vue"
41
+
42
+ /* hot reload */
43
+ if (false) {(function () {
44
+ var hotAPI = require("vue-hot-reload-api")
45
+ hotAPI.install(require("vue"), false)
46
+ if (!hotAPI.compatible) return
47
+ module.hot.accept()
48
+ if (!module.hot.data) {
49
+ hotAPI.createRecord("data-v-0f724387", Component.options)
50
+ } else {
51
+ hotAPI.reload("data-v-0f724387", Component.options)
52
+ }
53
+ module.hot.dispose(function (data) {
54
+ disposed = true
55
+ })
56
+ })()}
57
+
58
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
59
+
60
+
61
+ /***/ }),
62
+
63
+ /***/ 18:
64
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
65
+
66
+ "use strict";
67
+ var render = function() {
68
+ var _vm = this
69
+ var _h = _vm.$createElement
70
+ var _c = _vm._self._c || _h
71
+ return _c("div", { staticClass: "notice dokan-admin-notices-wrap" }, [
72
+ _vm.notices && _vm.notices.length
73
+ ? _c(
74
+ "div",
75
+ { staticClass: "dokan-admin-notices" },
76
+ [
77
+ _c(
78
+ "transition-group",
79
+ {
80
+ staticClass: "dokan-notice-slides",
81
+ attrs: { name: _vm.transitionName, tag: "div" }
82
+ },
83
+ [
84
+ _vm._l(_vm.notices, function(notice, index) {
85
+ return [
86
+ _c(
87
+ "div",
88
+ {
89
+ directives: [
90
+ {
91
+ name: "show",
92
+ rawName: "v-show",
93
+ value: index + 1 === _vm.current_notice,
94
+ expression: "(index + 1) === current_notice"
95
+ }
96
+ ],
97
+ key: index,
98
+ staticClass: "dokan-admin-notice",
99
+ class: "dokan-" + notice.type,
100
+ on: {
101
+ mouseenter: _vm.stopAutoSlide,
102
+ mouseleave: _vm.startAutoSlide
103
+ }
104
+ },
105
+ [
106
+ _c(
107
+ "div",
108
+ {
109
+ staticClass: "notice-content",
110
+ style:
111
+ !notice.title ||
112
+ !notice.actions ||
113
+ !notice.description
114
+ ? "align-items: center"
115
+ : ""
116
+ },
117
+ [
118
+ _c("div", { staticClass: "logo-wrap" }, [
119
+ _c("div", { staticClass: "dokan-logo" }),
120
+ _vm._v(" "),
121
+ _c("span", {
122
+ staticClass: "dokan-icon",
123
+ class: "dokan-icon-" + notice.type
124
+ })
125
+ ]),
126
+ _vm._v(" "),
127
+ _c(
128
+ "div",
129
+ { staticClass: "dokan-message" },
130
+ [
131
+ notice.title
132
+ ? _c("h3", [_vm._v(_vm._s(notice.title))])
133
+ : _vm._e(),
134
+ _vm._v(" "),
135
+ notice.description
136
+ ? _c("div", {
137
+ domProps: {
138
+ innerHTML: _vm._s(notice.description)
139
+ }
140
+ })
141
+ : _vm._e(),
142
+ _vm._v(" "),
143
+ notice.actions && notice.actions.length
144
+ ? [
145
+ _vm._l(notice.actions, function(action) {
146
+ return [
147
+ action.action
148
+ ? _c(
149
+ "a",
150
+ {
151
+ staticClass: "dokan-btn",
152
+ class: [
153
+ "dokan-btn-" + action.type,
154
+ action.class
155
+ ],
156
+ attrs: {
157
+ target: action.target
158
+ ? action.target
159
+ : "_self",
160
+ href: action.action
161
+ }
162
+ },
163
+ [_vm._v(_vm._s(action.text))]
164
+ )
165
+ : _c(
166
+ "button",
167
+ {
168
+ staticClass:
169
+ "dokan-btn btn-dokan",
170
+ class: [
171
+ "dokan-btn-" + action.type,
172
+ action.class
173
+ ],
174
+ attrs: {
175
+ disabled: _vm.loading
176
+ },
177
+ on: {
178
+ click: function($event) {
179
+ return _vm.handleAction(
180
+ action,
181
+ index
182
+ )
183
+ }
184
+ }
185
+ },
186
+ [
187
+ _vm._v(
188
+ _vm._s(
189
+ _vm.loading ||
190
+ _vm.task_completed
191
+ ? _vm.button_text
192
+ : action.text
193
+ )
194
+ )
195
+ ]
196
+ )
197
+ ]
198
+ })
199
+ ]
200
+ : _vm._e()
201
+ ],
202
+ 2
203
+ ),
204
+ _vm._v(" "),
205
+ notice.show_close_button && notice.close_url
206
+ ? _c(
207
+ "a",
208
+ {
209
+ staticClass: "close-notice",
210
+ attrs: { href: notice.close_url }
211
+ },
212
+ [
213
+ _c("span", {
214
+ staticClass: "dashicons dashicons-no-alt"
215
+ })
216
+ ]
217
+ )
218
+ : _vm._e(),
219
+ _vm._v(" "),
220
+ notice.show_close_button && notice.ajax_data
221
+ ? _c(
222
+ "button",
223
+ {
224
+ staticClass: "close-notice",
225
+ attrs: { disabled: _vm.loading },
226
+ on: {
227
+ click: function($event) {
228
+ return _vm.hideNotice(notice, index)
229
+ }
230
+ }
231
+ },
232
+ [
233
+ _c("span", {
234
+ staticClass: "dashicons dashicons-no-alt"
235
+ })
236
+ ]
237
+ )
238
+ : _vm._e()
239
+ ]
240
+ )
241
+ ]
242
+ )
243
+ ]
244
+ })
245
+ ],
246
+ 2
247
+ ),
248
+ _vm._v(" "),
249
+ _c(
250
+ "div",
251
+ {
252
+ directives: [
253
+ {
254
+ name: "show",
255
+ rawName: "v-show",
256
+ value: _vm.notices.length > 1,
257
+ expression: "notices.length > 1"
258
+ }
259
+ ],
260
+ staticClass: "slide-notice"
261
+ },
262
+ [
263
+ _c(
264
+ "span",
265
+ {
266
+ staticClass: "prev",
267
+ class: { active: _vm.current_notice > 1 },
268
+ on: {
269
+ click: function($event) {
270
+ return _vm.prevNotice()
271
+ }
272
+ }
273
+ },
274
+ [
275
+ _c(
276
+ "svg",
277
+ {
278
+ attrs: {
279
+ width: "8",
280
+ height: "13",
281
+ viewBox: "0 0 8 13",
282
+ fill: "none",
283
+ xmlns: "http://www.w3.org/2000/svg"
284
+ }
285
+ },
286
+ [
287
+ _c("path", {
288
+ attrs: {
289
+ d:
290
+ "M0.791129 6.10203L6.4798 0.415254C6.72942 0.166269 7.13383 0.166269 7.38408 0.415254C7.63369 0.664239 7.63369 1.06866 7.38408 1.31764L2.14663 6.5532L7.38345 11.7888C7.63306 12.0377 7.63306 12.4422 7.38345 12.6918C7.13383 12.9408 6.72879 12.9408 6.47917 12.6918L0.790498 7.005C0.544665 6.75859 0.544666 6.34781 0.791129 6.10203Z",
291
+ fill: "#DADFE4"
292
+ }
293
+ })
294
+ ]
295
+ )
296
+ ]
297
+ ),
298
+ _vm._v(" "),
299
+ _c("span", { staticClass: "notice-count" }, [
300
+ _c(
301
+ "span",
302
+ {
303
+ staticClass: "current-notice",
304
+ class: { active: _vm.current_notice > 1 }
305
+ },
306
+ [_vm._v(_vm._s(_vm.current_notice))]
307
+ ),
308
+ _vm._v(" of "),
309
+ _c(
310
+ "span",
311
+ {
312
+ staticClass: "total-notice",
313
+ class: { active: _vm.current_notice < _vm.notices.length }
314
+ },
315
+ [_vm._v(_vm._s(_vm.notices.length))]
316
+ )
317
+ ]),
318
+ _vm._v(" "),
319
+ _c(
320
+ "span",
321
+ {
322
+ staticClass: "next",
323
+ class: { active: _vm.current_notice < _vm.notices.length },
324
+ on: {
325
+ click: function($event) {
326
+ return _vm.nextNotice()
327
+ }
328
+ }
329
+ },
330
+ [
331
+ _c(
332
+ "svg",
333
+ {
334
+ attrs: {
335
+ width: "8",
336
+ height: "13",
337
+ viewBox: "0 0 8 13",
338
+ fill: "none",
339
+ xmlns: "http://www.w3.org/2000/svg"
340
+ }
341
+ },
342
+ [
343
+ _c("path", {
344
+ attrs: {
345
+ d:
346
+ "M7.43934 6.10203L1.75067 0.415254C1.50105 0.166269 1.09664 0.166269 0.846391 0.415254C0.596776 0.664239 0.596776 1.06866 0.846391 1.31764L6.08384 6.5532L0.847021 11.7888C0.597406 12.0377 0.597406 12.4422 0.847021 12.6918C1.09664 12.9408 1.50168 12.9408 1.7513 12.6918L7.43997 7.005C7.6858 6.75859 7.6858 6.34781 7.43934 6.10203Z",
347
+ fill: "#DADFE4"
348
+ }
349
+ })
350
+ ]
351
+ )
352
+ ]
353
+ )
354
+ ]
355
+ )
356
+ ],
357
+ 1
358
+ )
359
+ : _vm._e()
360
+ ])
361
+ }
362
+ var staticRenderFns = []
363
+ render._withStripped = true
364
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
365
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
366
+ if (false) {
367
+ module.hot.accept()
368
+ if (module.hot.data) {
369
+ require("vue-hot-reload-api") .rerender("data-v-0f724387", esExports)
370
+ }
371
+ }
372
+
373
+ /***/ }),
374
+
375
+ /***/ 2:
376
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
377
+
378
+ "use strict";
379
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(1);
380
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
381
+ //
382
+ //
383
+ //
384
+ //
385
+ //
386
+ //
387
+ //
388
+ //
389
+ //
390
+ //
391
+ //
392
+ //
393
+ //
394
+ //
395
+ //
396
+ //
397
+ //
398
+ //
399
+ //
400
+ //
401
+ //
402
+ //
403
+ //
404
+ //
405
+ //
406
+ //
407
+ //
408
+ //
409
+ //
410
+ //
411
+ //
412
+ //
413
+ //
414
+ //
415
+ //
416
+ //
417
+ //
418
+ //
419
+ //
420
+ //
421
+ //
422
+ //
423
+ //
424
+ //
425
+ //
426
+ //
427
+ //
428
+ //
429
+ //
430
+
431
+ /* harmony default export */ __webpack_exports__["a"] = ({
432
+ name: "AdminNotice",
433
+ props: {
434
+ endpoint: {
435
+ type: String,
436
+ default: 'admin'
437
+ },
438
+ interval: {
439
+ type: Number,
440
+ default: 5000
441
+ }
442
+ },
443
+ data: function data() {
444
+ return {
445
+ timer: null,
446
+ notices: [],
447
+ loading: false,
448
+ button_text: '',
449
+ current_notice: 1,
450
+ task_completed: false,
451
+ transitionName: 'slide-next'
452
+ };
453
+ },
454
+ created: function created() {
455
+ this.fetch();
456
+ },
457
+ methods: {
458
+ fetch: function fetch() {
459
+ var _this = this;
460
+
461
+ dokan.api.get("/admin/notices/".concat(this.endpoint)).done(function (response) {
462
+ _this.notices = response.filter(function (notice) {
463
+ return notice.description || notice.title;
464
+ });
465
+
466
+ _this.startAutoSlide();
467
+ });
468
+ },
469
+ slideNotice: function slideNotice(n) {
470
+ this.current_notice += n;
471
+ n === 1 ? this.transitionName = "slide-next" : this.transitionName = "slide-prev";
472
+ var len = this.notices.length;
473
+
474
+ if (this.current_notice < 1) {
475
+ this.current_notice = len;
476
+ }
477
+
478
+ if (this.current_notice > len) {
479
+ this.current_notice = 1;
480
+ }
481
+ },
482
+ nextNotice: function nextNotice() {
483
+ this.stopAutoSlide();
484
+ this.slideNotice(1);
485
+ },
486
+ prevNotice: function prevNotice() {
487
+ this.stopAutoSlide();
488
+ this.slideNotice(-1);
489
+ },
490
+ startAutoSlide: function startAutoSlide() {
491
+ var _this2 = this;
492
+
493
+ if (!this.loading && this.notices.length > 1) {
494
+ this.timer = setInterval(function () {
495
+ _this2.slideNotice(1);
496
+ }, this.interval);
497
+ }
498
+ },
499
+ stopAutoSlide: function stopAutoSlide() {
500
+ if (!this.loading && this.notices.length > 1) {
501
+ clearInterval(this.timer);
502
+ this.timer = null;
503
+ }
504
+ },
505
+ hideNotice: function hideNotice(notice, index) {
506
+ var _this3 = this;
507
+
508
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.ajax({
509
+ url: dokan.ajaxurl,
510
+ method: 'post',
511
+ dataType: 'json',
512
+ data: notice.ajax_data
513
+ }).done(function () {
514
+ _this3.notices.splice(index, 1);
515
+
516
+ _this3.current_notice = 1;
517
+ });
518
+ },
519
+ handleAction: function handleAction(action, index) {
520
+ var _this4 = this;
521
+
522
+ if (action.confirm_message) {
523
+ this.$swal({
524
+ title: this.__('Are you sure?', 'dokan-lite'),
525
+ type: 'warning',
526
+ html: action.confirm_message,
527
+ showCancelButton: true,
528
+ confirmButtonText: action.text,
529
+ cancelButtonText: this.__('Cancel', 'dokan-lite')
530
+ }).then(function (response) {
531
+ if (response.value) {
532
+ _this4.handleRequest(action, index);
533
+ }
534
+ });
535
+ } else {
536
+ this.handleRequest(action, index);
537
+ }
538
+ },
539
+ handleRequest: function handleRequest(action, index) {
540
+ var _this5 = this;
541
+
542
+ this.loading = true;
543
+ this.button_text = action.loading_text ? action.loading_text : this.__('Loading...', 'dokan-lite');
544
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.ajax({
545
+ url: dokan.ajaxurl,
546
+ method: 'post',
547
+ dataType: 'json',
548
+ data: action.ajax_data
549
+ }).always(function () {
550
+ _this5.loading = false;
551
+ }).done(function () {
552
+ _this5.button_text = action.completed_text ? action.completed_text : action.text;
553
+ _this5.task_completed = true;
554
+
555
+ if (action.reload) {
556
+ window.location.reload();
557
+ } else {
558
+ _this5.notices.splice(index, 1);
559
+
560
+ _this5.current_notice = 1;
561
+ }
562
+ });
563
+ }
564
+ }
565
+ });
566
+
567
+ /***/ }),
568
+
569
+ /***/ 260:
570
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
571
+
572
+ "use strict";
573
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
574
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__App_vue__ = __webpack_require__(261);
575
+
576
+ var Vue = dokan_get_lib('Vue');
577
+ new Vue({
578
+ el: '#dokan-admin-notices',
579
+ render: function render(h) {
580
+ return h(__WEBPACK_IMPORTED_MODULE_0__App_vue__["a" /* default */]);
581
+ },
582
+ created: function created() {
583
+ this.setLocaleData(dokan.i18n['dokan-lite']);
584
+ }
585
+ });
586
+
587
+ /***/ }),
588
+
589
+ /***/ 261:
590
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
591
+
592
+ "use strict";
593
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__ = __webpack_require__(95);
594
+ /* unused harmony namespace reexport */
595
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_8a647c3a_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__ = __webpack_require__(262);
596
+ var disposed = false
597
+ var normalizeComponent = __webpack_require__(0)
598
+ /* script */
599
+
600
+
601
+ /* template */
602
+
603
+ /* template functional */
604
+ var __vue_template_functional__ = false
605
+ /* styles */
606
+ var __vue_styles__ = null
607
+ /* scopeId */
608
+ var __vue_scopeId__ = null
609
+ /* moduleIdentifier (server only) */
610
+ var __vue_module_identifier__ = null
611
+ var Component = normalizeComponent(
612
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__["a" /* default */],
613
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_8a647c3a_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__["a" /* default */],
614
+ __vue_template_functional__,
615
+ __vue_styles__,
616
+ __vue_scopeId__,
617
+ __vue_module_identifier__
618
+ )
619
+ Component.options.__file = "src/notice/App.vue"
620
+
621
+ /* hot reload */
622
+ if (false) {(function () {
623
+ var hotAPI = require("vue-hot-reload-api")
624
+ hotAPI.install(require("vue"), false)
625
+ if (!hotAPI.compatible) return
626
+ module.hot.accept()
627
+ if (!module.hot.data) {
628
+ hotAPI.createRecord("data-v-8a647c3a", Component.options)
629
+ } else {
630
+ hotAPI.reload("data-v-8a647c3a", Component.options)
631
+ }
632
+ module.hot.dispose(function (data) {
633
+ disposed = true
634
+ })
635
+ })()}
636
+
637
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
638
+
639
+
640
+ /***/ }),
641
+
642
+ /***/ 262:
643
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
644
+
645
+ "use strict";
646
+ var render = function() {
647
+ var _vm = this
648
+ var _h = _vm.$createElement
649
+ var _c = _vm._self._c || _h
650
+ return _c("AdminNotice", { attrs: { endpoint: "global" } })
651
+ }
652
+ var staticRenderFns = []
653
+ render._withStripped = true
654
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
655
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
656
+ if (false) {
657
+ module.hot.accept()
658
+ if (module.hot.data) {
659
+ require("vue-hot-reload-api") .rerender("data-v-8a647c3a", esExports)
660
+ }
661
+ }
662
+
663
+ /***/ }),
664
+
665
+ /***/ 95:
666
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
667
+
668
+ "use strict";
669
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__admin_components_AdminNotice_vue__ = __webpack_require__(17);
670
+ //
671
+ //
672
+ //
673
+ //
674
+
675
+ /* harmony default export */ __webpack_exports__["a"] = ({
676
+ name: "App",
677
+ components: {
678
+ AdminNotice: __WEBPACK_IMPORTED_MODULE_0__admin_components_AdminNotice_vue__["a" /* default */]
679
+ }
680
+ });
681
+
682
+ /***/ })
683
+
684
+ },[260]);
assets/js/dokan-admin-notice.min.js ADDED
@@ -0,0 +1 @@
 
1
+ dokanWebpack([4],{1:function(t,e){t.exports=jQuery},17:function(t,e,n){"use strict";var i=n(2),s=n(18),a=n(0)(i.a,s.a,!1,null,null,null);a.options.__file="src/admin/components/AdminNotice.vue",e.a=a.exports},18:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notice dokan-admin-notices-wrap"},[t.notices&&t.notices.length?n("div",{staticClass:"dokan-admin-notices"},[n("transition-group",{staticClass:"dokan-notice-slides",attrs:{name:t.transitionName,tag:"div"}},[t._l(t.notices,function(e,i){return[n("div",{directives:[{name:"show",rawName:"v-show",value:i+1===t.current_notice,expression:"(index + 1) === current_notice"}],key:i,staticClass:"dokan-admin-notice",class:"dokan-"+e.type,on:{mouseenter:t.stopAutoSlide,mouseleave:t.startAutoSlide}},[n("div",{staticClass:"notice-content",style:e.title&&e.actions&&e.description?"":"align-items: center"},[n("div",{staticClass:"logo-wrap"},[n("div",{staticClass:"dokan-logo"}),t._v(" "),n("span",{staticClass:"dokan-icon",class:"dokan-icon-"+e.type})]),t._v(" "),n("div",{staticClass:"dokan-message"},[e.title?n("h3",[t._v(t._s(e.title))]):t._e(),t._v(" "),e.description?n("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),e.actions&&e.actions.length?[t._l(e.actions,function(e){return[e.action?n("a",{staticClass:"dokan-btn",class:["dokan-btn-"+e.type,e.class],attrs:{target:e.target?e.target:"_self",href:e.action}},[t._v(t._s(e.text))]):n("button",{staticClass:"dokan-btn btn-dokan",class:["dokan-btn-"+e.type,e.class],attrs:{disabled:t.loading},on:{click:function(n){return t.handleAction(e,i)}}},[t._v(t._s(t.loading||t.task_completed?t.button_text:e.text))])]})]:t._e()],2),t._v(" "),e.show_close_button&&e.close_url?n("a",{staticClass:"close-notice",attrs:{href:e.close_url}},[n("span",{staticClass:"dashicons dashicons-no-alt"})]):t._e(),t._v(" "),e.show_close_button&&e.ajax_data?n("button",{staticClass:"close-notice",attrs:{disabled:t.loading},on:{click:function(n){return t.hideNotice(e,i)}}},[n("span",{staticClass:"dashicons dashicons-no-alt"})]):t._e()])])]})],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.notices.length>1,expression:"notices.length > 1"}],staticClass:"slide-notice"},[n("span",{staticClass:"prev",class:{active:t.current_notice>1},on:{click:function(e){return t.prevNotice()}}},[n("svg",{attrs:{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0.791129 6.10203L6.4798 0.415254C6.72942 0.166269 7.13383 0.166269 7.38408 0.415254C7.63369 0.664239 7.63369 1.06866 7.38408 1.31764L2.14663 6.5532L7.38345 11.7888C7.63306 12.0377 7.63306 12.4422 7.38345 12.6918C7.13383 12.9408 6.72879 12.9408 6.47917 12.6918L0.790498 7.005C0.544665 6.75859 0.544666 6.34781 0.791129 6.10203Z",fill:"#DADFE4"}})])]),t._v(" "),n("span",{staticClass:"notice-count"},[n("span",{staticClass:"current-notice",class:{active:t.current_notice>1}},[t._v(t._s(t.current_notice))]),t._v(" of "),n("span",{staticClass:"total-notice",class:{active:t.current_notice<t.notices.length}},[t._v(t._s(t.notices.length))])]),t._v(" "),n("span",{staticClass:"next",class:{active:t.current_notice<t.notices.length},on:{click:function(e){return t.nextNotice()}}},[n("svg",{attrs:{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.43934 6.10203L1.75067 0.415254C1.50105 0.166269 1.09664 0.166269 0.846391 0.415254C0.596776 0.664239 0.596776 1.06866 0.846391 1.31764L6.08384 6.5532L0.847021 11.7888C0.597406 12.0377 0.597406 12.4422 0.847021 12.6918C1.09664 12.9408 1.50168 12.9408 1.7513 12.6918L7.43997 7.005C7.6858 6.75859 7.6858 6.34781 7.43934 6.10203Z",fill:"#DADFE4"}})])])])],1):t._e()])};i._withStripped=!0;var s={render:i,staticRenderFns:[]};e.a=s},2:function(t,e,n){"use strict";var i=n(1),s=n.n(i);e.a={name:"AdminNotice",props:{endpoint:{type:String,default:"admin"},interval:{type:Number,default:5e3}},data:function(){return{timer:null,notices:[],loading:!1,button_text:"",current_notice:1,task_completed:!1,transitionName:"slide-next"}},created:function(){this.fetch()},methods:{fetch:function(){var t=this;dokan.api.get("/admin/notices/".concat(this.endpoint)).done(function(e){t.notices=e.filter(function(t){return t.description||t.title}),t.startAutoSlide()})},slideNotice:function(t){this.current_notice+=t,this.transitionName=1===t?"slide-next":"slide-prev";var e=this.notices.length;this.current_notice<1&&(this.current_notice=e),this.current_notice>e&&(this.current_notice=1)},nextNotice:function(){this.stopAutoSlide(),this.slideNotice(1)},prevNotice:function(){this.stopAutoSlide(),this.slideNotice(-1)},startAutoSlide:function(){var t=this;!this.loading&&this.notices.length>1&&(this.timer=setInterval(function(){t.slideNotice(1)},this.interval))},stopAutoSlide:function(){!this.loading&&this.notices.length>1&&(clearInterval(this.timer),this.timer=null)},hideNotice:function(t,e){var n=this;s.a.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:t.ajax_data}).done(function(){n.notices.splice(e,1),n.current_notice=1})},handleAction:function(t,e){var n=this;t.confirm_message?this.$swal({title:this.__("Are you sure?","dokan-lite"),type:"warning",html:t.confirm_message,showCancelButton:!0,confirmButtonText:t.text,cancelButtonText:this.__("Cancel","dokan-lite")}).then(function(i){i.value&&n.handleRequest(t,e)}):this.handleRequest(t,e)},handleRequest:function(t,e){var n=this;this.loading=!0,this.button_text=t.loading_text?t.loading_text:this.__("Loading...","dokan-lite"),s.a.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:t.ajax_data}).always(function(){n.loading=!1}).done(function(){n.button_text=t.completed_text?t.completed_text:t.text,n.task_completed=!0,t.reload?window.location.reload():(n.notices.splice(e,1),n.current_notice=1)})}}}},260:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(261);new(dokan_get_lib("Vue"))({el:"#dokan-admin-notices",render:function(t){return t(i.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"])}})},261:function(t,e,n){"use strict";var i=n(94),s=n(262),a=n(0)(i.a,s.a,!1,null,null,null);a.options.__file="src/notice/App.vue",e.a=a.exports},262:function(t,e,n){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("AdminNotice",{attrs:{endpoint:"global"}})};i._withStripped=!0;var s={render:i,staticRenderFns:[]};e.a=s},94:function(t,e,n){"use strict";var i=n(17);e.a={name:"App",components:{AdminNotice:i.a}}}},[260]);
assets/js/dokan-promo-notice.js ADDED
@@ -0,0 +1,684 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dokanWebpack([3],{
2
+
3
+ /***/ 1:
4
+ /***/ (function(module, exports) {
5
+
6
+ module.exports = jQuery;
7
+
8
+ /***/ }),
9
+
10
+ /***/ 17:
11
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12
+
13
+ "use strict";
14
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_AdminNotice_vue__ = __webpack_require__(2);
15
+ /* unused harmony namespace reexport */
16
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f724387_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_AdminNotice_vue__ = __webpack_require__(18);
17
+ var disposed = false
18
+ var normalizeComponent = __webpack_require__(0)
19
+ /* script */
20
+
21
+
22
+ /* template */
23
+
24
+ /* template functional */
25
+ var __vue_template_functional__ = false
26
+ /* styles */
27
+ var __vue_styles__ = null
28
+ /* scopeId */
29
+ var __vue_scopeId__ = null
30
+ /* moduleIdentifier (server only) */
31
+ var __vue_module_identifier__ = null
32
+ var Component = normalizeComponent(
33
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_AdminNotice_vue__["a" /* default */],
34
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0f724387_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_AdminNotice_vue__["a" /* default */],
35
+ __vue_template_functional__,
36
+ __vue_styles__,
37
+ __vue_scopeId__,
38
+ __vue_module_identifier__
39
+ )
40
+ Component.options.__file = "src/admin/components/AdminNotice.vue"
41
+
42
+ /* hot reload */
43
+ if (false) {(function () {
44
+ var hotAPI = require("vue-hot-reload-api")
45
+ hotAPI.install(require("vue"), false)
46
+ if (!hotAPI.compatible) return
47
+ module.hot.accept()
48
+ if (!module.hot.data) {
49
+ hotAPI.createRecord("data-v-0f724387", Component.options)
50
+ } else {
51
+ hotAPI.reload("data-v-0f724387", Component.options)
52
+ }
53
+ module.hot.dispose(function (data) {
54
+ disposed = true
55
+ })
56
+ })()}
57
+
58
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
59
+
60
+
61
+ /***/ }),
62
+
63
+ /***/ 18:
64
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
65
+
66
+ "use strict";
67
+ var render = function() {
68
+ var _vm = this
69
+ var _h = _vm.$createElement
70
+ var _c = _vm._self._c || _h
71
+ return _c("div", { staticClass: "notice dokan-admin-notices-wrap" }, [
72
+ _vm.notices && _vm.notices.length
73
+ ? _c(
74
+ "div",
75
+ { staticClass: "dokan-admin-notices" },
76
+ [
77
+ _c(
78
+ "transition-group",
79
+ {
80
+ staticClass: "dokan-notice-slides",
81
+ attrs: { name: _vm.transitionName, tag: "div" }
82
+ },
83
+ [
84
+ _vm._l(_vm.notices, function(notice, index) {
85
+ return [
86
+ _c(
87
+ "div",
88
+ {
89
+ directives: [
90
+ {
91
+ name: "show",
92
+ rawName: "v-show",
93
+ value: index + 1 === _vm.current_notice,
94
+ expression: "(index + 1) === current_notice"
95
+ }
96
+ ],
97
+ key: index,
98
+ staticClass: "dokan-admin-notice",
99
+ class: "dokan-" + notice.type,
100
+ on: {
101
+ mouseenter: _vm.stopAutoSlide,
102
+ mouseleave: _vm.startAutoSlide
103
+ }
104
+ },
105
+ [
106
+ _c(
107
+ "div",
108
+ {
109
+ staticClass: "notice-content",
110
+ style:
111
+ !notice.title ||
112
+ !notice.actions ||
113
+ !notice.description
114
+ ? "align-items: center"
115
+ : ""
116
+ },
117
+ [
118
+ _c("div", { staticClass: "logo-wrap" }, [
119
+ _c("div", { staticClass: "dokan-logo" }),
120
+ _vm._v(" "),
121
+ _c("span", {
122
+ staticClass: "dokan-icon",
123
+ class: "dokan-icon-" + notice.type
124
+ })
125
+ ]),
126
+ _vm._v(" "),
127
+ _c(
128
+ "div",
129
+ { staticClass: "dokan-message" },
130
+ [
131
+ notice.title
132
+ ? _c("h3", [_vm._v(_vm._s(notice.title))])
133
+ : _vm._e(),
134
+ _vm._v(" "),
135
+ notice.description
136
+ ? _c("div", {
137
+ domProps: {
138
+ innerHTML: _vm._s(notice.description)
139
+ }
140
+ })
141
+ : _vm._e(),
142
+ _vm._v(" "),
143
+ notice.actions && notice.actions.length
144
+ ? [
145
+ _vm._l(notice.actions, function(action) {
146
+ return [
147
+ action.action
148
+ ? _c(
149
+ "a",
150
+ {
151
+ staticClass: "dokan-btn",
152
+ class: [
153
+ "dokan-btn-" + action.type,
154
+ action.class
155
+ ],
156
+ attrs: {
157
+ target: action.target
158
+ ? action.target
159
+ : "_self",
160
+ href: action.action
161
+ }
162
+ },
163
+ [_vm._v(_vm._s(action.text))]
164
+ )
165
+ : _c(
166
+ "button",
167
+ {
168
+ staticClass:
169
+ "dokan-btn btn-dokan",
170
+ class: [
171
+ "dokan-btn-" + action.type,
172
+ action.class
173
+ ],
174
+ attrs: {
175
+ disabled: _vm.loading
176
+ },
177
+ on: {
178
+ click: function($event) {
179
+ return _vm.handleAction(
180
+ action,
181
+ index
182
+ )
183
+ }
184
+ }
185
+ },
186
+ [
187
+ _vm._v(
188
+ _vm._s(
189
+ _vm.loading ||
190
+ _vm.task_completed
191
+ ? _vm.button_text
192
+ : action.text
193
+ )
194
+ )
195
+ ]
196
+ )
197
+ ]
198
+ })
199
+ ]
200
+ : _vm._e()
201
+ ],
202
+ 2
203
+ ),
204
+ _vm._v(" "),
205
+ notice.show_close_button && notice.close_url
206
+ ? _c(
207
+ "a",
208
+ {
209
+ staticClass: "close-notice",
210
+ attrs: { href: notice.close_url }
211
+ },
212
+ [
213
+ _c("span", {
214
+ staticClass: "dashicons dashicons-no-alt"
215
+ })
216
+ ]
217
+ )
218
+ : _vm._e(),
219
+ _vm._v(" "),
220
+ notice.show_close_button && notice.ajax_data
221
+ ? _c(
222
+ "button",
223
+ {
224
+ staticClass: "close-notice",
225
+ attrs: { disabled: _vm.loading },
226
+ on: {
227
+ click: function($event) {
228
+ return _vm.hideNotice(notice, index)
229
+ }
230
+ }
231
+ },
232
+ [
233
+ _c("span", {
234
+ staticClass: "dashicons dashicons-no-alt"
235
+ })
236
+ ]
237
+ )
238
+ : _vm._e()
239
+ ]
240
+ )
241
+ ]
242
+ )
243
+ ]
244
+ })
245
+ ],
246
+ 2
247
+ ),
248
+ _vm._v(" "),
249
+ _c(
250
+ "div",
251
+ {
252
+ directives: [
253
+ {
254
+ name: "show",
255
+ rawName: "v-show",
256
+ value: _vm.notices.length > 1,
257
+ expression: "notices.length > 1"
258
+ }
259
+ ],
260
+ staticClass: "slide-notice"
261
+ },
262
+ [
263
+ _c(
264
+ "span",
265
+ {
266
+ staticClass: "prev",
267
+ class: { active: _vm.current_notice > 1 },
268
+ on: {
269
+ click: function($event) {
270
+ return _vm.prevNotice()
271
+ }
272
+ }
273
+ },
274
+ [
275
+ _c(
276
+ "svg",
277
+ {
278
+ attrs: {
279
+ width: "8",
280
+ height: "13",
281
+ viewBox: "0 0 8 13",
282
+ fill: "none",
283
+ xmlns: "http://www.w3.org/2000/svg"
284
+ }
285
+ },
286
+ [
287
+ _c("path", {
288
+ attrs: {
289
+ d:
290
+ "M0.791129 6.10203L6.4798 0.415254C6.72942 0.166269 7.13383 0.166269 7.38408 0.415254C7.63369 0.664239 7.63369 1.06866 7.38408 1.31764L2.14663 6.5532L7.38345 11.7888C7.63306 12.0377 7.63306 12.4422 7.38345 12.6918C7.13383 12.9408 6.72879 12.9408 6.47917 12.6918L0.790498 7.005C0.544665 6.75859 0.544666 6.34781 0.791129 6.10203Z",
291
+ fill: "#DADFE4"
292
+ }
293
+ })
294
+ ]
295
+ )
296
+ ]
297
+ ),
298
+ _vm._v(" "),
299
+ _c("span", { staticClass: "notice-count" }, [
300
+ _c(
301
+ "span",
302
+ {
303
+ staticClass: "current-notice",
304
+ class: { active: _vm.current_notice > 1 }
305
+ },
306
+ [_vm._v(_vm._s(_vm.current_notice))]
307
+ ),
308
+ _vm._v(" of "),
309
+ _c(
310
+ "span",
311
+ {
312
+ staticClass: "total-notice",
313
+ class: { active: _vm.current_notice < _vm.notices.length }
314
+ },
315
+ [_vm._v(_vm._s(_vm.notices.length))]
316
+ )
317
+ ]),
318
+ _vm._v(" "),
319
+ _c(
320
+ "span",
321
+ {
322
+ staticClass: "next",
323
+ class: { active: _vm.current_notice < _vm.notices.length },
324
+ on: {
325
+ click: function($event) {
326
+ return _vm.nextNotice()
327
+ }
328
+ }
329
+ },
330
+ [
331
+ _c(
332
+ "svg",
333
+ {
334
+ attrs: {
335
+ width: "8",
336
+ height: "13",
337
+ viewBox: "0 0 8 13",
338
+ fill: "none",
339
+ xmlns: "http://www.w3.org/2000/svg"
340
+ }
341
+ },
342
+ [
343
+ _c("path", {
344
+ attrs: {
345
+ d:
346
+ "M7.43934 6.10203L1.75067 0.415254C1.50105 0.166269 1.09664 0.166269 0.846391 0.415254C0.596776 0.664239 0.596776 1.06866 0.846391 1.31764L6.08384 6.5532L0.847021 11.7888C0.597406 12.0377 0.597406 12.4422 0.847021 12.6918C1.09664 12.9408 1.50168 12.9408 1.7513 12.6918L7.43997 7.005C7.6858 6.75859 7.6858 6.34781 7.43934 6.10203Z",
347
+ fill: "#DADFE4"
348
+ }
349
+ })
350
+ ]
351
+ )
352
+ ]
353
+ )
354
+ ]
355
+ )
356
+ ],
357
+ 1
358
+ )
359
+ : _vm._e()
360
+ ])
361
+ }
362
+ var staticRenderFns = []
363
+ render._withStripped = true
364
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
365
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
366
+ if (false) {
367
+ module.hot.accept()
368
+ if (module.hot.data) {
369
+ require("vue-hot-reload-api") .rerender("data-v-0f724387", esExports)
370
+ }
371
+ }
372
+
373
+ /***/ }),
374
+
375
+ /***/ 2:
376
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
377
+
378
+ "use strict";
379
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(1);
380
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
381
+ //
382
+ //
383
+ //
384
+ //
385
+ //
386
+ //
387
+ //
388
+ //
389
+ //
390
+ //
391
+ //
392
+ //
393
+ //
394
+ //
395
+ //
396
+ //
397
+ //
398
+ //
399
+ //
400
+ //
401
+ //
402
+ //
403
+ //
404
+ //
405
+ //
406
+ //
407
+ //
408
+ //
409
+ //
410
+ //
411
+ //
412
+ //
413
+ //
414
+ //
415
+ //
416
+ //
417
+ //
418
+ //
419
+ //
420
+ //
421
+ //
422
+ //
423
+ //
424
+ //
425
+ //
426
+ //
427
+ //
428
+ //
429
+ //
430
+
431
+ /* harmony default export */ __webpack_exports__["a"] = ({
432
+ name: "AdminNotice",
433
+ props: {
434
+ endpoint: {
435
+ type: String,
436
+ default: 'admin'
437
+ },
438
+ interval: {
439
+ type: Number,
440
+ default: 5000
441
+ }
442
+ },
443
+ data: function data() {
444
+ return {
445
+ timer: null,
446
+ notices: [],
447
+ loading: false,
448
+ button_text: '',
449
+ current_notice: 1,
450
+ task_completed: false,
451
+ transitionName: 'slide-next'
452
+ };
453
+ },
454
+ created: function created() {
455
+ this.fetch();
456
+ },
457
+ methods: {
458
+ fetch: function fetch() {
459
+ var _this = this;
460
+
461
+ dokan.api.get("/admin/notices/".concat(this.endpoint)).done(function (response) {
462
+ _this.notices = response.filter(function (notice) {
463
+ return notice.description || notice.title;
464
+ });
465
+
466
+ _this.startAutoSlide();
467
+ });
468
+ },
469
+ slideNotice: function slideNotice(n) {
470
+ this.current_notice += n;
471
+ n === 1 ? this.transitionName = "slide-next" : this.transitionName = "slide-prev";
472
+ var len = this.notices.length;
473
+
474
+ if (this.current_notice < 1) {
475
+ this.current_notice = len;
476
+ }
477
+
478
+ if (this.current_notice > len) {
479
+ this.current_notice = 1;
480
+ }
481
+ },
482
+ nextNotice: function nextNotice() {
483
+ this.stopAutoSlide();
484
+ this.slideNotice(1);
485
+ },
486
+ prevNotice: function prevNotice() {
487
+ this.stopAutoSlide();
488
+ this.slideNotice(-1);
489
+ },
490
+ startAutoSlide: function startAutoSlide() {
491
+ var _this2 = this;
492
+
493
+ if (!this.loading && this.notices.length > 1) {
494
+ this.timer = setInterval(function () {
495
+ _this2.slideNotice(1);
496
+ }, this.interval);
497
+ }
498
+ },
499
+ stopAutoSlide: function stopAutoSlide() {
500
+ if (!this.loading && this.notices.length > 1) {
501
+ clearInterval(this.timer);
502
+ this.timer = null;
503
+ }
504
+ },
505
+ hideNotice: function hideNotice(notice, index) {
506
+ var _this3 = this;
507
+
508
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.ajax({
509
+ url: dokan.ajaxurl,
510
+ method: 'post',
511
+ dataType: 'json',
512
+ data: notice.ajax_data
513
+ }).done(function () {
514
+ _this3.notices.splice(index, 1);
515
+
516
+ _this3.current_notice = 1;
517
+ });
518
+ },
519
+ handleAction: function handleAction(action, index) {
520
+ var _this4 = this;
521
+
522
+ if (action.confirm_message) {
523
+ this.$swal({
524
+ title: this.__('Are you sure?', 'dokan-lite'),
525
+ type: 'warning',
526
+ html: action.confirm_message,
527
+ showCancelButton: true,
528
+ confirmButtonText: action.text,
529
+ cancelButtonText: this.__('Cancel', 'dokan-lite')
530
+ }).then(function (response) {
531
+ if (response.value) {
532
+ _this4.handleRequest(action, index);
533
+ }
534
+ });
535
+ } else {
536
+ this.handleRequest(action, index);
537
+ }
538
+ },
539
+ handleRequest: function handleRequest(action, index) {
540
+ var _this5 = this;
541
+
542
+ this.loading = true;
543
+ this.button_text = action.loading_text ? action.loading_text : this.__('Loading...', 'dokan-lite');
544
+ __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.ajax({
545
+ url: dokan.ajaxurl,
546
+ method: 'post',
547
+ dataType: 'json',
548
+ data: action.ajax_data
549
+ }).always(function () {
550
+ _this5.loading = false;
551
+ }).done(function () {
552
+ _this5.button_text = action.completed_text ? action.completed_text : action.text;
553
+ _this5.task_completed = true;
554
+
555
+ if (action.reload) {
556
+ window.location.reload();
557
+ } else {
558
+ _this5.notices.splice(index, 1);
559
+
560
+ _this5.current_notice = 1;
561
+ }
562
+ });
563
+ }
564
+ }
565
+ });
566
+
567
+ /***/ }),
568
+
569
+ /***/ 263:
570
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
571
+
572
+ "use strict";
573
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
574
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__App_vue__ = __webpack_require__(264);
575
+
576
+ var Vue = dokan_get_lib('Vue');
577
+ new Vue({
578
+ el: '#dokan-promo-notices',
579
+ render: function render(h) {
580
+ return h(__WEBPACK_IMPORTED_MODULE_0__App_vue__["a" /* default */]);
581
+ },
582
+ created: function created() {
583
+ this.setLocaleData(dokan.i18n['dokan-lite']);
584
+ }
585
+ });
586
+
587
+ /***/ }),
588
+
589
+ /***/ 264:
590
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
591
+
592
+ "use strict";
593
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__ = __webpack_require__(96);
594
+ /* unused harmony namespace reexport */
595
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_46f97cbe_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__ = __webpack_require__(265);
596
+ var disposed = false
597
+ var normalizeComponent = __webpack_require__(0)
598
+ /* script */
599
+
600
+
601
+ /* template */
602
+
603
+ /* template functional */
604
+ var __vue_template_functional__ = false
605
+ /* styles */
606
+ var __vue_styles__ = null
607
+ /* scopeId */
608
+ var __vue_scopeId__ = null
609
+ /* moduleIdentifier (server only) */
610
+ var __vue_module_identifier__ = null
611
+ var Component = normalizeComponent(
612
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__["a" /* default */],
613
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_46f97cbe_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__["a" /* default */],
614
+ __vue_template_functional__,
615
+ __vue_styles__,
616
+ __vue_scopeId__,
617
+ __vue_module_identifier__
618
+ )
619
+ Component.options.__file = "src/promo-notice/App.vue"
620
+
621
+ /* hot reload */
622
+ if (false) {(function () {
623
+ var hotAPI = require("vue-hot-reload-api")
624
+ hotAPI.install(require("vue"), false)
625
+ if (!hotAPI.compatible) return
626
+ module.hot.accept()
627
+ if (!module.hot.data) {
628
+ hotAPI.createRecord("data-v-46f97cbe", Component.options)
629
+ } else {
630
+ hotAPI.reload("data-v-46f97cbe", Component.options)
631
+ }
632
+ module.hot.dispose(function (data) {
633
+ disposed = true
634
+ })
635
+ })()}
636
+
637
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
638
+
639
+
640
+ /***/ }),
641
+
642
+ /***/ 265:
643
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
644
+
645
+ "use strict";
646
+ var render = function() {
647
+ var _vm = this
648
+ var _h = _vm.$createElement
649
+ var _c = _vm._self._c || _h
650
+ return _c("AdminNotice", { attrs: { interval: 10000, endpoint: "promo" } })
651
+ }
652
+ var staticRenderFns = []
653
+ render._withStripped = true
654
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
655
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
656
+ if (false) {
657
+ module.hot.accept()
658
+ if (module.hot.data) {
659
+ require("vue-hot-reload-api") .rerender("data-v-46f97cbe", esExports)
660
+ }
661
+ }
662
+
663
+ /***/ }),
664
+
665
+ /***/ 96:
666
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
667
+
668
+ "use strict";
669
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__admin_components_AdminNotice_vue__ = __webpack_require__(17);
670
+ //
671
+ //
672
+ //
673
+ //
674
+
675
+ /* harmony default export */ __webpack_exports__["a"] = ({
676
+ name: "App",
677
+ components: {
678
+ AdminNotice: __WEBPACK_IMPORTED_MODULE_0__admin_components_AdminNotice_vue__["a" /* default */]
679
+ }
680
+ });
681
+
682
+ /***/ })
683
+
684
+ },[263]);
assets/js/dokan-promo-notice.min.js ADDED
@@ -0,0 +1 @@
 
1
+ dokanWebpack([3],{1:function(t,e){t.exports=jQuery},17:function(t,e,n){"use strict";var i=n(2),s=n(18),a=n(0)(i.a,s.a,!1,null,null,null);a.options.__file="src/admin/components/AdminNotice.vue",e.a=a.exports},18:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notice dokan-admin-notices-wrap"},[t.notices&&t.notices.length?n("div",{staticClass:"dokan-admin-notices"},[n("transition-group",{staticClass:"dokan-notice-slides",attrs:{name:t.transitionName,tag:"div"}},[t._l(t.notices,function(e,i){return[n("div",{directives:[{name:"show",rawName:"v-show",value:i+1===t.current_notice,expression:"(index + 1) === current_notice"}],key:i,staticClass:"dokan-admin-notice",class:"dokan-"+e.type,on:{mouseenter:t.stopAutoSlide,mouseleave:t.startAutoSlide}},[n("div",{staticClass:"notice-content",style:e.title&&e.actions&&e.description?"":"align-items: center"},[n("div",{staticClass:"logo-wrap"},[n("div",{staticClass:"dokan-logo"}),t._v(" "),n("span",{staticClass:"dokan-icon",class:"dokan-icon-"+e.type})]),t._v(" "),n("div",{staticClass:"dokan-message"},[e.title?n("h3",[t._v(t._s(e.title))]):t._e(),t._v(" "),e.description?n("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),e.actions&&e.actions.length?[t._l(e.actions,function(e){return[e.action?n("a",{staticClass:"dokan-btn",class:["dokan-btn-"+e.type,e.class],attrs:{target:e.target?e.target:"_self",href:e.action}},[t._v(t._s(e.text))]):n("button",{staticClass:"dokan-btn btn-dokan",class:["dokan-btn-"+e.type,e.class],attrs:{disabled:t.loading},on:{click:function(n){return t.handleAction(e,i)}}},[t._v(t._s(t.loading||t.task_completed?t.button_text:e.text))])]})]:t._e()],2),t._v(" "),e.show_close_button&&e.close_url?n("a",{staticClass:"close-notice",attrs:{href:e.close_url}},[n("span",{staticClass:"dashicons dashicons-no-alt"})]):t._e(),t._v(" "),e.show_close_button&&e.ajax_data?n("button",{staticClass:"close-notice",attrs:{disabled:t.loading},on:{click:function(n){return t.hideNotice(e,i)}}},[n("span",{staticClass:"dashicons dashicons-no-alt"})]):t._e()])])]})],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.notices.length>1,expression:"notices.length > 1"}],staticClass:"slide-notice"},[n("span",{staticClass:"prev",class:{active:t.current_notice>1},on:{click:function(e){return t.prevNotice()}}},[n("svg",{attrs:{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0.791129 6.10203L6.4798 0.415254C6.72942 0.166269 7.13383 0.166269 7.38408 0.415254C7.63369 0.664239 7.63369 1.06866 7.38408 1.31764L2.14663 6.5532L7.38345 11.7888C7.63306 12.0377 7.63306 12.4422 7.38345 12.6918C7.13383 12.9408 6.72879 12.9408 6.47917 12.6918L0.790498 7.005C0.544665 6.75859 0.544666 6.34781 0.791129 6.10203Z",fill:"#DADFE4"}})])]),t._v(" "),n("span",{staticClass:"notice-count"},[n("span",{staticClass:"current-notice",class:{active:t.current_notice>1}},[t._v(t._s(t.current_notice))]),t._v(" of "),n("span",{staticClass:"total-notice",class:{active:t.current_notice<t.notices.length}},[t._v(t._s(t.notices.length))])]),t._v(" "),n("span",{staticClass:"next",class:{active:t.current_notice<t.notices.length},on:{click:function(e){return t.nextNotice()}}},[n("svg",{attrs:{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.43934 6.10203L1.75067 0.415254C1.50105 0.166269 1.09664 0.166269 0.846391 0.415254C0.596776 0.664239 0.596776 1.06866 0.846391 1.31764L6.08384 6.5532L0.847021 11.7888C0.597406 12.0377 0.597406 12.4422 0.847021 12.6918C1.09664 12.9408 1.50168 12.9408 1.7513 12.6918L7.43997 7.005C7.6858 6.75859 7.6858 6.34781 7.43934 6.10203Z",fill:"#DADFE4"}})])])])],1):t._e()])};i._withStripped=!0;var s={render:i,staticRenderFns:[]};e.a=s},2:function(t,e,n){"use strict";var i=n(1),s=n.n(i);e.a={name:"AdminNotice",props:{endpoint:{type:String,default:"admin"},interval:{type:Number,default:5e3}},data:function(){return{timer:null,notices:[],loading:!1,button_text:"",current_notice:1,task_completed:!1,transitionName:"slide-next"}},created:function(){this.fetch()},methods:{fetch:function(){var t=this;dokan.api.get("/admin/notices/".concat(this.endpoint)).done(function(e){t.notices=e.filter(function(t){return t.description||t.title}),t.startAutoSlide()})},slideNotice:function(t){this.current_notice+=t,this.transitionName=1===t?"slide-next":"slide-prev";var e=this.notices.length;this.current_notice<1&&(this.current_notice=e),this.current_notice>e&&(this.current_notice=1)},nextNotice:function(){this.stopAutoSlide(),this.slideNotice(1)},prevNotice:function(){this.stopAutoSlide(),this.slideNotice(-1)},startAutoSlide:function(){var t=this;!this.loading&&this.notices.length>1&&(this.timer=setInterval(function(){t.slideNotice(1)},this.interval))},stopAutoSlide:function(){!this.loading&&this.notices.length>1&&(clearInterval(this.timer),this.timer=null)},hideNotice:function(t,e){var n=this;s.a.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:t.ajax_data}).done(function(){n.notices.splice(e,1),n.current_notice=1})},handleAction:function(t,e){var n=this;t.confirm_message?this.$swal({title:this.__("Are you sure?","dokan-lite"),type:"warning",html:t.confirm_message,showCancelButton:!0,confirmButtonText:t.text,cancelButtonText:this.__("Cancel","dokan-lite")}).then(function(i){i.value&&n.handleRequest(t,e)}):this.handleRequest(t,e)},handleRequest:function(t,e){var n=this;this.loading=!0,this.button_text=t.loading_text?t.loading_text:this.__("Loading...","dokan-lite"),s.a.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:t.ajax_data}).always(function(){n.loading=!1}).done(function(){n.button_text=t.completed_text?t.completed_text:t.text,n.task_completed=!0,t.reload?window.location.reload():(n.notices.splice(e,1),n.current_notice=1)})}}}},263:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(264);new(dokan_get_lib("Vue"))({el:"#dokan-promo-notices",render:function(t){return t(i.a)},created:function(){this.setLocaleData(dokan.i18n["dokan-lite"])}})},264:function(t,e,n){"use strict";var i=n(95),s=n(265),a=n(0)(i.a,s.a,!1,null,null,null);a.options.__file="src/promo-notice/App.vue",e.a=a.exports},265:function(t,e,n){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("AdminNotice",{attrs:{interval:1e4,endpoint:"promo"}})};i._withStripped=!0;var s={render:i,staticRenderFns:[]};e.a=s},95:function(t,e,n){"use strict";var i=n(17);e.a={name:"App",components:{AdminNotice:i.a}}}},[263]);
dokan.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Dokan
4
  * Plugin URI: https://wordpress.org/plugins/dokan-lite/
5
  * Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
6
- * Version: 3.3.3
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
@@ -56,7 +56,7 @@ final class WeDevs_Dokan {
56
  *
57
  * @var string
58
  */
59
- public $version = '3.3.3';
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.3.4
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
56
  *
57
  * @var string
58
  */
59
+ public $version = '3.3.4';
60
 
61
  /**
62
  * Instance of self
includes/Assets.php CHANGED
@@ -414,12 +414,12 @@ class Assets {
414
  'dokan-admin-notice-js' => [
415
  'src' => $asset_url . '/js/dokan-admin-notice.js',
416
  'deps' => [ 'jquery', 'dokan-vue-vendor', 'dokan-vue-bootstrap' ],
417
- 'version' => filemtime( $asset_path . '/js/dokan-admin-notice.js' ),
418
  ],
419
  'dokan-promo-notice-js' => [
420
  'src' => $asset_url . '/js/dokan-promo-notice.js',
421
  'deps' => [ 'jquery', 'dokan-vue-vendor', 'dokan-vue-bootstrap' ],
422
- 'version' => filemtime( $asset_path . '/js/dokan-promo-notice.js' ),
423
  ],
424
  ];
425
 
414
  'dokan-admin-notice-js' => [
415
  'src' => $asset_url . '/js/dokan-admin-notice.js',
416
  'deps' => [ 'jquery', 'dokan-vue-vendor', 'dokan-vue-bootstrap' ],
417
+ 'version' => filemtime( $asset_path . 'js/dokan-admin-notice.js' ),
418
  ],
419
  'dokan-promo-notice-js' => [
420
  'src' => $asset_url . '/js/dokan-promo-notice.js',
421
  'deps' => [ 'jquery', 'dokan-vue-vendor', 'dokan-vue-bootstrap' ],
422
+ 'version' => filemtime( $asset_path . 'js/dokan-promo-notice.js' ),
423
  ],
424
  ];
425
 
languages/dokan-lite.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Dokan 3.3.3\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2021-12-15 10:15:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
4
  msgstr ""
5
  "Project-Id-Version: Dokan 3.3.3\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2021-12-15 14:39:26+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tested up to: 5.8.2
7
  WC requires at least: 3.0
8
  WC tested up to: 5.9.0
9
  Requires PHP: 5.6
10
- Stable tag: 3.3.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -306,6 +306,10 @@ A. Just install and activate the PRO version without deleting the free plugin. A
306
 
307
  == Changelog ==
308
 
 
 
 
 
309
  = v3.3.3 ( Dec 15, 2021 ) =
310
 
311
  - **new:** Added what’s New page for Dokan Lite #1427
7
  WC requires at least: 3.0
8
  WC tested up to: 5.9.0
9
  Requires PHP: 5.6
10
+ Stable tag: 3.3.4
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
306
 
307
  == Changelog ==
308
 
309
+ = v3.3.4 ( Dec 15, 2021 ) =
310
+
311
+ - **fix:** Asset loading issue for admin notice
312
+
313
  = v3.3.3 ( Dec 15, 2021 ) =
314
 
315
  - **new:** Added what’s New page for Dokan Lite #1427
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit66f0ab9749861743be81cedb1e4e7437::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit959d905f0a29286473b67f576e7c0f68::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit959d905f0a29286473b67f576e7c0f68
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit959d905f0a29286473b67f576e7c0f68::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire959d905f0a29286473b67f576e7c0f68($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire959d905f0a29286473b67f576e7c0f68($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit66f0ab9749861743be81cedb1e4e7437
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit66f0ab9749861743be81cedb1e4e7437', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit66f0ab9749861743be81cedb1e4e7437', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit66f0ab9749861743be81cedb1e4e7437::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit66f0ab9749861743be81cedb1e4e7437::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire66f0ab9749861743be81cedb1e4e7437($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire66f0ab9749861743be81cedb1e4e7437($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit959d905f0a29286473b67f576e7c0f68
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
@@ -202,9 +202,9 @@ class ComposerStaticInit959d905f0a29286473b67f576e7c0f68
202
  public static function getInitializer(ClassLoader $loader)
203
  {
204
  return \Closure::bind(function () use ($loader) {
205
- $loader->prefixLengthsPsr4 = ComposerStaticInit959d905f0a29286473b67f576e7c0f68::$prefixLengthsPsr4;
206
- $loader->prefixDirsPsr4 = ComposerStaticInit959d905f0a29286473b67f576e7c0f68::$prefixDirsPsr4;
207
- $loader->classMap = ComposerStaticInit959d905f0a29286473b67f576e7c0f68::$classMap;
208
 
209
  }, null, ClassLoader::class);
210
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit66f0ab9749861743be81cedb1e4e7437
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
202
  public static function getInitializer(ClassLoader $loader)
203
  {
204
  return \Closure::bind(function () use ($loader) {
205
+ $loader->prefixLengthsPsr4 = ComposerStaticInit66f0ab9749861743be81cedb1e4e7437::$prefixLengthsPsr4;
206
+ $loader->prefixDirsPsr4 = ComposerStaticInit66f0ab9749861743be81cedb1e4e7437::$prefixDirsPsr4;
207
+ $loader->classMap = ComposerStaticInit66f0ab9749861743be81cedb1e4e7437::$classMap;
208
 
209
  }, null, ClassLoader::class);
210
  }