diff --git a/composer.json b/composer.json
index e44e96319..695056b30 100755
--- a/composer.json
+++ b/composer.json
@@ -99,7 +99,9 @@
"Webkul\\CustomerCreditMax\\": "packages/Webkul/CustomerCreditMax",
"Webkul\\CustomerGroupCatalog\\": "packages/Webkul/CustomerGroupCatalog",
"Webkul\\ShowPriceAfterLogin\\": "packages/Webkul/ShowPriceAfterLogin/src",
- "Webkul\\PreOrder\\": "packages/Webkul/PreOrder/src"
+ "Webkul\\PreOrder\\": "packages/Webkul/PreOrder/src",
+ "Webkul\\Webfont\\": "packages/Webkul/Webfont/src",
+ "Webkul\\GTM\\": "packages/Webkul/GTM/src"
}
},
"autoload-dev": {
diff --git a/config/app.php b/config/app.php
index 8158dce5e..c65f00258 100755
--- a/config/app.php
+++ b/config/app.php
@@ -249,6 +249,8 @@ return [
Webkul\CustomerDocument\Providers\CustomerDocumentServiceProvider::class,
Webkul\BulkAddToCart\Providers\BulkAddToCartServiceProvider::class,
Webkul\AdminAuthCheck\Providers\AdminAuthCheckServiceProvider::class,
+ Webkul\Webfont\Providers\WebfontServiceProvider::class,
+ Webkul\GTM\Providers\GTMServiceProvider::class,
Webkul\StripeConnect\Providers\StripeConnectServiceProvider::class,
Webkul\ShowPriceAfterLogin\Providers\ShowPriceAfterLoginServiceProvider::class,
Webkul\CustomerCreditMax\Providers\CustomerCreditMaxServiceProvider::class,
diff --git a/config/concord.php b/config/concord.php
index 233a450b3..4ffc94270 100755
--- a/config/concord.php
+++ b/config/concord.php
@@ -22,6 +22,7 @@ return [
\Webkul\Discount\Providers\ModuleServiceProvider::class,
\Webkul\CMS\Providers\ModuleServiceProvider::class,
\Webkul\StripeConnect\Providers\ModuleServiceProvider::class,
- \Webkul\PreOrder\Providers\ModuleServiceProvider::class
+ \Webkul\PreOrder\Providers\ModuleServiceProvider::class,
+ \Webkul\Webfont\Providers\ModuleServiceProvider::class
]
];
\ No newline at end of file
diff --git a/packages/Webkul/GTM/composer.json b/packages/Webkul/GTM/composer.json
new file mode 100644
index 000000000..d887d2a7a
--- /dev/null
+++ b/packages/Webkul/GTM/composer.json
@@ -0,0 +1,27 @@
+{
+ "name": "bagisto/laravel-gtm",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Prashant Singh",
+ "email": "prashant.singh852@webkul.com"
+ }
+ ],
+ "require": {},
+ "autoload": {
+ "psr-4": {
+ "Webkul\\GTM\\": "src/"
+ }
+ },
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Webkul\\GTM\\Providers\\GTMServiceProvider"
+ ],
+
+ "aliases": {
+ }
+ }
+ },
+ "minimum-stability": "dev"
+}
\ No newline at end of file
diff --git a/packages/Webkul/GTM/readme.md b/packages/Webkul/GTM/readme.md
new file mode 100644
index 000000000..f93ddb239
--- /dev/null
+++ b/packages/Webkul/GTM/readme.md
@@ -0,0 +1,52 @@
+# Introduction:
+Bagisto webfont is dynamic implementation of google web fonts. It allows you to choose fonts from google fonts directly from your own Bagisto instance. Choose as many google fonts at once and customize your font for storefront or backend or both within few steps.
+
+# Feature of Bagisto webfont module
+
+* Allows you to activate and deactivate module.
+* Allow a default font in case you have chosen none.
+* Separate control for using font in admin panel or storefront.
+
+# Requirements
+* Bagisto v0.1.7 or higher.
+
+# Note:
+Before proceeding you need google fonts API key. You can get your own key by following instructions after opening the link below:
+
+> https://developers.google.com/fonts/docs/developer_api
+
+# Installation
+* Extract contents of the zip file in the root of your Bagisto instance.
+* Do entry in composer.json in psr-4 object:
+
+```
+"Webkul\\Webfont\\": "packages/Webkul/Webfont/src"
+```
+
+* Do entry in config/app.php, inside providers array preferably at the end of it:
+
+```
+Webkul\Webfont\Providers\WebfontServiceProvider::class
+```
+
+* Do entry in config\concord.php file:
+
+```
+\Webkul\Webfont\Providers\ModuleServiceProvider::class
+```
+
+* Run command below:
+1. composer dump-autoload
+> Proceed if there are no errors encountered
+
+2. php artisan migrate
+
+3. php artisan route:cache
+
+* You can now find the module configuration in admin panel under Configuration > General > Design.
+
+* In the configuration page, there is a field for API key which will require to enter your own Google Fonts Developer API key.
+
+* Find the module under CMS > Webfont.
+
+> Congrats, you are all set to use Google fonts from your Bagisto instance.
diff --git a/packages/Webkul/GTM/src/Config/system.php b/packages/Webkul/GTM/src/Config/system.php
new file mode 100644
index 000000000..735f46c1f
--- /dev/null
+++ b/packages/Webkul/GTM/src/Config/system.php
@@ -0,0 +1,39 @@
+ 'general.gtm',
+ 'name' => 'gtm::app.gtm',
+ 'sort' => 3,
+ ], [
+ 'key' => 'general.gtm.values',
+ 'name' => 'gtm::app.values',
+ 'sort' => 1,
+ 'fields' => [
+ [
+ 'name' => 'status',
+ 'title' => 'gtm::app.gtm-status',
+ 'type' => 'select',
+ 'options' => [
+ [
+ 'title' => 'Active',
+ 'value' => true
+ ], [
+ 'title' => 'Inactive',
+ 'value' => false
+ ]
+ ],
+
+ 'channel_based' => false,
+ 'locale_based' => false
+ ], [
+ 'name' => 'container_id',
+ 'title' => 'gtm::app.container-id',
+ 'type' => 'text',
+ 'validation' => 'required',
+ 'channel_based' => false,
+ 'locale_based' => false
+ ]
+ ]
+ ]
+];
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Providers/EventServiceProvider.php b/packages/Webkul/GTM/src/Providers/EventServiceProvider.php
new file mode 100644
index 000000000..c44038f94
--- /dev/null
+++ b/packages/Webkul/GTM/src/Providers/EventServiceProvider.php
@@ -0,0 +1,28 @@
+getConfigData('general.gtm.values.status')) {
+ Event::listen('bagisto.shop.layout.head', function($viewRenderEventManager) {
+ $viewRenderEventManager->addTemplate('gtm::head');
+ });
+
+ Event::listen('bagisto.shop.layout.body.before', function($viewRenderEventManager) {
+ $viewRenderEventManager->addTemplate('gtm::body');
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Providers/GTMServiceProvider.php b/packages/Webkul/GTM/src/Providers/GTMServiceProvider.php
new file mode 100644
index 000000000..c1de00f25
--- /dev/null
+++ b/packages/Webkul/GTM/src/Providers/GTMServiceProvider.php
@@ -0,0 +1,45 @@
+loadViewsFrom(__DIR__ . '/../Resources/views', 'gtm');
+
+ $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
+
+ $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'gtm');
+
+ $this->app->register(EventServiceProvider::class);
+ }
+
+ /**
+ * Register services.
+ *
+ * @return void
+ */
+ public function register()
+ {
+ $this->registerConfig();
+ }
+
+ /**
+ * Registers config
+ */
+ protected function registerConfig()
+ {
+ $this->mergeConfigFrom(
+ dirname(__DIR__) . '/Config/system.php', 'core'
+ );
+ }
+}
diff --git a/packages/Webkul/GTM/src/Resources/lang/en/app.php b/packages/Webkul/GTM/src/Resources/lang/en/app.php
new file mode 100644
index 000000000..80084c573
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/lang/en/app.php
@@ -0,0 +1,8 @@
+ 'Tag Manager',
+ 'container-id' => 'Container ID',
+ 'values' => 'Settings',
+ 'gtm-status' => 'Status'
+];
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/body.blade.php b/packages/Webkul/GTM/src/Resources/views/body.blade.php
new file mode 100644
index 000000000..e08760d41
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/body.blade.php
@@ -0,0 +1,17 @@
+
+
+@if (\Route::current()->getName() == 'shop.products.index')
+ @include('gtm::product')
+@endif
+
+@if (\Route::current()->getName() == 'shop.categories.index')
+ @include('gtm::category')
+@endif
+
+@if (\Route::current()->getName() == 'shop.checkout.cart.index')
+ @include('gtm::cart')
+@endif
+
+@if (\Route::current()->getName() == 'shop.checkout.success')
+ @include('gtm::checkout-success')
+@endif
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/cart.blade.php b/packages/Webkul/GTM/src/Resources/views/cart.blade.php
new file mode 100644
index 000000000..b314c34b7
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/cart.blade.php
@@ -0,0 +1,50 @@
+@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
+
+@inject('productFlat', 'Webkul\Product\Repositories\ProductFlatRepository')
+
+
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/category.blade.php b/packages/Webkul/GTM/src/Resources/views/category.blade.php
new file mode 100644
index 000000000..39cf462ca
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/category.blade.php
@@ -0,0 +1,92 @@
+@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
+
+@inject('productFlat', 'Webkul\Product\Repositories\ProductFlatRepository')
+
+@php
+ $uri = request()->getRequestUri();
+
+ $uri = explode('/', $uri);
+
+ $slug = last($uri);
+
+ $productRepository = app('Webkul\Product\Repositories\ProductRepository');
+
+ $categoryRepository = app('Webkul\Category\Repositories\CategoryRepository');
+
+ $category = $categoryRepository->findBySlugOrFail($slug);
+
+ $products = $productRepository->getAll($category->id);
+
+ $toolbarHelper = app('Webkul\Product\Helpers\Toolbar');
+@endphp
+
+
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/checkout-success.blade.php b/packages/Webkul/GTM/src/Resources/views/checkout-success.blade.php
new file mode 100644
index 000000000..a86ec76fa
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/checkout-success.blade.php
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/head.blade.php b/packages/Webkul/GTM/src/Resources/views/head.blade.php
new file mode 100644
index 000000000..d4bbde5a8
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/head.blade.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/Webkul/GTM/src/Resources/views/product.blade.php b/packages/Webkul/GTM/src/Resources/views/product.blade.php
new file mode 100644
index 000000000..089b36395
--- /dev/null
+++ b/packages/Webkul/GTM/src/Resources/views/product.blade.php
@@ -0,0 +1,60 @@
+@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
+
+@inject('productFlat', 'Webkul\Product\Repositories\ProductFlatRepository')
+
+@php
+ $uri = request()->getRequestUri();
+
+ $uri = explode('/', $uri);
+
+ $slug = last($uri);
+
+ $product = $productFlat->findWhere([
+ 'url_key' => $slug,
+ 'locale' => app()->getLocale(),
+ 'channel' => core()->getCurrentChannel()->code
+ ]);
+@endphp
+
+@if (count($product))
+ @php
+ $product = $product->first()->product;
+
+ $category = $product->categories->first()->slug;
+ @endphp
+
+
+@endif
\ No newline at end of file
diff --git a/packages/Webkul/SAASCustomizer/src/Exceptions/Handler.php b/packages/Webkul/SAASCustomizer/src/Exceptions/Handler.php
index e52b781fc..5cdbed945 100644
--- a/packages/Webkul/SAASCustomizer/src/Exceptions/Handler.php
+++ b/packages/Webkul/SAASCustomizer/src/Exceptions/Handler.php
@@ -29,6 +29,7 @@ class Handler extends ExceptionHandler
public function render($request, Exception $exception)
{
$path = 'saas';
+ dd($exception->getMessage());
if ($exception->getMessage() == 'domain_not_found') {
return $this->response($path, 400, trans('saas::app.exceptions.domain-not-found'), 'domain_not_found');
diff --git a/packages/Webkul/StripeConnect/src/Http/Controllers/StripeConnectController.php b/packages/Webkul/StripeConnect/src/Http/Controllers/StripeConnectController.php
index 631d9b554..25c578957 100644
--- a/packages/Webkul/StripeConnect/src/Http/Controllers/StripeConnectController.php
+++ b/packages/Webkul/StripeConnect/src/Http/Controllers/StripeConnectController.php
@@ -258,10 +258,8 @@ class StripeConnectController extends Controller
if (core()->getConfigData('stripe.connect.details.stripefees') == "customer") {
- $applicationFee1 = $applicationFee + $cart->base_grand_total * (2.9 / 100);
-
$result = StripeCharge::create([
- "amount" => round(Cart::getCart()->base_grand_total + $applicationFee1, 2) * 100,
+ "amount" => round(Cart::getCart()->base_grand_total + $applicationFee, 2) * 100,
"currency" => Cart::getCart()->base_currency_code,
"source" => $stripeToken,
"description" => "Purchased ".Cart::getCart()->items_count." items",
diff --git a/packages/Webkul/Ui/publishable/assets/js/ui.js b/packages/Webkul/Ui/publishable/assets/js/ui.js
index 14f0cb0d8..f69e034a6 100755
--- a/packages/Webkul/Ui/publishable/assets/js/ui.js
+++ b/packages/Webkul/Ui/publishable/assets/js/ui.js
@@ -1 +1 @@
-!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}({"+CM9":function(t,e,n){"use strict";var r=n("Ds5P"),i=n("ot5s")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("NNrz")(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+Mt+":function(t,e,n){"use strict";var r=n("Ds5P"),i=n("7gX0"),o=n("OzIq"),a=n("7O1s"),s=n("nphH");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"+ZMJ":function(t,e,n){var r=n("lOnJ");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"+vXH":function(t,e,n){n("77Ug")("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},"+wdr":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{sample:"",image_file:"",file:null,newImage:""}},mounted:function(){this.sample="";var t=this.$el.getElementsByTagName("input")[0],e=this;t.onchange=function(){var n=new FileReader;n.readAsDataURL(t.files[0]),n.onload=function(t){this.img=document.getElementsByTagName("input")[0],this.img.src=t.target.result,e.newImage=this.img.src,e.changePreview()}}},methods:{removePreviewImage:function(){this.sample=""},changePreview:function(){this.sample=this.newImage}},computed:{getInputImage:function(){console.log(this.imageData)}}}},"+yjc":function(t,e,n){var r=n("UKM+");n("3i66")("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},"/whu":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},0:function(t,e,n){n("J66Q"),n("Oy72"),t.exports=n("MT9B")},"07k+":function(t,e,n){for(var r,i=n("OzIq"),o=n("2p1q"),a=n("ulTY"),s=a("typed_array"),c=a("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[p[f++]])?(o(r.prototype,s,!0),o(r.prototype,c,!0)):l=!1;t.exports={ABV:u,CONSTR:l,TYPED:s,VIEW:c}},"0Rih":function(t,e,n){"use strict";var r=n("OzIq"),i=n("Ds5P"),o=n("R3AP"),a=n("A16L"),s=n("1aA0"),c=n("vmSO"),u=n("9GpA"),l=n("UKM+"),f=n("zgIt"),p=n("qkyc"),d=n("yYvK"),h=n("kic5");t.exports=function(t,e,n,v,g,m){var y=r[t],b=y,w=g?"set":"add",x=b&&b.prototype,_={},k=function(t){var e=x[t];o(x,t,"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||x.forEach&&!f(function(){(new b).entries().next()}))){var S=new b,D=S[w](m?{}:-0,1)!=S,C=f(function(){S.has(1)}),O=p(function(t){new b(t)}),E=!m&&f(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});O||((b=e(function(e,n){u(e,b,t);var r=h(new y,e,b);return void 0!=n&&c(n,g,r[w],r),r})).prototype=x,x.constructor=b),(C||E)&&(k("delete"),k("has"),g&&k("get")),(E||D)&&k(w),m&&x.clear&&delete x.clear}else b=v.getConstructor(e,t,g,w),a(b.prototype,n),s.NEED=!0;return d(b,t),_[t]=b,i(i.G+i.W+i.F*(b!=y),_),m||v.setStrong(b,t,g),b}},"0pGU":function(t,e,n){"use strict";var r=n("DIVP");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"11aO":function(t,e,n){var r=n("VU/8")(n("LxYr"),null,!1,null,null,null);t.exports=r.exports},"13ON":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"tabs"},[n("ul",t._l(t.tabs,function(e){return n("li",{class:{active:e.isActive},on:{click:function(n){return t.selectTab(e)}}},[n("a",[t._v(t._s(e.name))])])}),0)]),t._v(" "),n("div",{staticClass:"tabs-content"},[t._t("default")],2)])},staticRenderFns:[]}},"1A13":function(t,e,n){"use strict";var r=n("49qz")(!0);n("uc2A")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},"1ETD":function(t,e,n){var r=n("kkCw")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"1aA0":function(t,e,n){var r=n("ulTY")("meta"),i=n("UKM+"),o=n("WBcL"),a=n("lDLk").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("zgIt")(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return u&&f.NEED&&c(t)&&!o(t,r)&&l(t),t}}},"1ip3":function(t,e,n){var r=n("Ds5P");r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},"1uLP":function(t,e,n){var r=n("Ds5P");r(r.G+r.W+r.F*!n("07k+").ABV,{DataView:n("LrcN").DataView})},"2JMG":function(t,e,n){var r=n("VU/8")(n("G3lE"),null,!1,null,null,null);t.exports=r.exports},"2VSL":function(t,e,n){var r=n("BbyF"),i=n("xAdt"),o=n("/whu");t.exports=function(t,e,n,a){var s=String(o(t)),c=s.length,u=void 0===n?" ":String(n),l=r(e);if(l<=c||""==u)return s;var f=l-c,p=i.call(u,Math.ceil(f/u.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},"2p1q":function(t,e,n){var r=n("lDLk"),i=n("fU25");t.exports=n("bUqO")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"31/P":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"tree-view",inheritAttrs:!1,props:{inputType:String,nameField:String,idField:String,captionField:String,childrenField:String,valueField:String,items:{type:[Array,String,Object],required:!1,default:null},value:{type:Array,required:!1,default:null},behavior:{type:String,required:!1,default:"reactive"},savedValues:{type:Array,required:!1,default:null}},created:function(){-1!==this.savedValues.indexOf(this.items[this.valueField])&&this.value.push(this.items)},computed:{caption:function(){return this.items[this.captionField]},allChildren:function(){var t=this,e=[];return function n(i){if(i[t.childrenField]&&t.getLength(i[t.childrenField])>0)if("object"==r(i[t.childrenField]))for(var o in i[t.childrenField])n(i[t.childrenField][o]);else i[t.childrenField].forEach(function(t){return n(t)});else e.push(i)}(this.items),e},hasChildren:function(){return!!this.items[this.childrenField]&&this.getLength(this.items[this.childrenField])>0},hasSelection:function(){return!!this.value&&this.value.length>0},isAllChildrenSelected:function(){var t=this;return this.hasChildren&&this.hasSelection&&this.allChildren.every(function(e){return t.value.some(function(n){return n[t.idField]===e[t.idField]})})},isSomeChildrenSelected:function(){var t=this;return this.hasChildren&&this.hasSelection&&this.allChildren.some(function(e){return t.value.some(function(n){return n[t.idField]===e[t.idField]})})}},methods:{getLength:function(t){if("object"==(void 0===t?"undefined":r(t))){var e=0;for(var n in t)e++;return e}return t.length},generateRoot:function(){var t=this;return"checkbox"==this.inputType?"reactive"==this.behavior?this.$createElement("tree-checkbox",{props:{id:this.items[this.idField],label:this.caption,nameField:this.nameField,modelValue:this.items[this.valueField],inputValue:this.hasChildren?this.isSomeChildrenSelected:this.value,value:this.hasChildren?this.isAllChildrenSelected:this.items},on:{change:function(e){t.hasChildren?(t.isAllChildrenSelected?t.allChildren.forEach(function(e){var n=t.value.indexOf(e);t.value.splice(n,1)}):t.allChildren.forEach(function(e){var n=!1;t.value.forEach(function(t){t.key==e.key&&(n=!0)}),n||t.value.push(e)}),t.$emit("input",t.value)):t.$emit("input",e)}}}):this.$createElement("tree-checkbox",{props:{id:this.items[this.idField],label:this.caption,nameField:this.nameField,modelValue:this.items[this.valueField],inputValue:this.value,value:this.items}}):"radio"==this.inputType?this.$createElement("tree-radio",{props:{id:this.items[this.idField],label:this.caption,nameField:this.nameField,modelValue:this.items[this.valueField],value:this.savedValues}}):void 0},generateChild:function(t){var e=this;return this.$createElement("tree-item",{on:{input:function(t){e.$emit("input",t)}},props:{items:t,value:this.value,savedValues:this.savedValues,nameField:this.nameField,inputType:this.inputType,captionField:this.captionField,childrenField:this.childrenField,valueField:this.valueField,idField:this.idField,behavior:this.behavior}})},generateChildren:function(){var t=this,e=[];if(this.items[this.childrenField])if("object"==r(this.items[this.childrenField]))for(var n in this.items[this.childrenField])e.push(this.generateChild(this.items[this.childrenField][n]));else this.items[this.childrenField].forEach(function(n){e.push(t.generateChild(n))});return e},generateIcon:function(){var t=this;return this.$createElement("i",{class:["expand-icon"],on:{click:function(e){t.$el.classList.toggle("active")}}})},generateFolderIcon:function(){return this.$createElement("i",{class:["icon","folder-icon"]})}},render:function(t){return t("div",{class:["tree-item","active",this.hasChildren?"has-children":""]},[this.generateIcon(),this.generateFolderIcon(),this.generateRoot()].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&s.call(r[0],n,function(){for(i=1;i=u?t?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},"4IZP":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"4Q0w":function(t,e,n){var r=n("kkCw")("toPrimitive"),i=Date.prototype;r in i||n("2p1q")(i,r,n("jB26"))},"4RlI":function(t,e,n){"use strict";n("y325")("blink",function(t){return function(){return t(this,"blink","","")}})},"4ZU1":function(t,e,n){var r=n("lDLk"),i=n("Ds5P"),o=n("DIVP"),a=n("s4j0");i(i.S+i.F*n("zgIt")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},"52Wt":function(t,e,n){n("77Ug")("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},"5iw+":function(t,e,n){"use strict";n("y325")("strike",function(t){return function(){return t(this,"strike","","")}})},"6wXy":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{title:String,id:String,className:String,active:Boolean},inject:["$validator"],data:function(){return{isActive:!1,imageData:""}},mounted:function(){this.isActive=this.active},methods:{toggleAccordion:function(){this.isActive=!this.isActive}},computed:{iconClass:function(){return{"accordian-down-icon":!this.isActive,"accordian-up-icon":this.isActive}}}}},"73qY":function(t,e,n){t.exports=n("VWgF")("native-function-to-string",Function.toString)},"77Pl":function(t,e,n){var r=n("EqjI");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"77Ug":function(t,e,n){"use strict";if(n("bUqO")){var r=n("V3l/"),i=n("OzIq"),o=n("zgIt"),a=n("Ds5P"),s=n("07k+"),c=n("LrcN"),u=n("rFzY"),l=n("9GpA"),f=n("fU25"),p=n("2p1q"),d=n("A16L"),h=n("oeih"),v=n("BbyF"),g=n("8D8H"),m=n("zo/l"),y=n("s4j0"),b=n("WBcL"),w=n("wC1N"),x=n("UKM+"),_=n("FryR"),k=n("9vb1"),S=n("7ylX"),D=n("KOrd"),C=n("WcO1").f,O=n("SHe9"),E=n("ulTY"),M=n("kkCw"),P=n("LhTa"),F=n("ot5s"),I=n("7O1s"),T=n("WgSQ"),A=n("bN1p"),L=n("qkyc"),j=n("CEne"),N=n("zCYm"),R=n("DPsE"),V=n("lDLk"),z=n("x9zv"),U=V.f,B=z.f,q=i.RangeError,Y=i.TypeError,W=i.Uint8Array,H=Array.prototype,$=c.ArrayBuffer,G=c.DataView,K=P(0),X=P(2),J=P(3),Z=P(4),Q=P(5),tt=P(6),et=F(!0),nt=F(!1),rt=T.values,it=T.keys,ot=T.entries,at=H.lastIndexOf,st=H.reduce,ct=H.reduceRight,ut=H.join,lt=H.sort,ft=H.slice,pt=H.toString,dt=H.toLocaleString,ht=M("iterator"),vt=M("toStringTag"),gt=E("typed_constructor"),mt=E("def_constructor"),yt=s.CONSTR,bt=s.TYPED,wt=s.VIEW,xt=P(1,function(t,e){return Ct(I(t,t[mt]),e)}),_t=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),kt=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),St=function(t,e){var n=h(t);if(n<0||n%e)throw q("Wrong offset!");return n},Dt=function(t){if(x(t)&&bt in t)return t;throw Y(t+" is not a typed array!")},Ct=function(t,e){if(!(x(t)&> in t))throw Y("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return Et(I(t,t[mt]),e)},Et=function(t,e){for(var n=0,r=e.length,i=Ct(t,r);r>n;)i[n]=e[n++];return i},Mt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,r,i,o,a,s=_(t),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,p=O(s);if(void 0!=p&&!k(p)){for(a=p.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&c>2&&(l=u(l,arguments[2],2)),e=0,n=v(s.length),i=Ct(this,n);n>e;e++)i[e]=f?l(s[e],e):s[e];return i},Ft=function(){for(var t=0,e=arguments.length,n=Ct(this,e);e>t;)n[t]=arguments[t++];return n},It=!!W&&o(function(){dt.call(new W(1))}),Tt=function(){return dt.apply(It?ft.call(Dt(this)):Dt(this),arguments)},At={copyWithin:function(t,e){return R.call(Dt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Dt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Dt(this),arguments)},filter:function(t){return Ot(this,X(Dt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Dt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Dt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Dt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ut.apply(Dt(this),arguments)},lastIndexOf:function(t){return at.apply(Dt(this),arguments)},map:function(t){return xt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Dt(this),arguments)},reduceRight:function(t){return ct.apply(Dt(this),arguments)},reverse:function(){for(var t,e=Dt(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return lt.call(Dt(this),t)},subarray:function(t,e){var n=Dt(this),r=n.length,i=m(t,r);return new(I(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},Lt=function(t,e){return Ot(this,ft.call(Dt(this),t,e))},jt=function(t){Dt(this);var e=St(arguments[1],1),n=this.length,r=_(t),i=v(r.length),o=0;if(i+e>n)throw q("Wrong length!");for(;o255?255:255&r),i.v[d](n*e+i.o,r,_t)}(this,n,t)},enumerable:!0})};b?(h=n(function(t,n,r,i){l(t,h,u,"_d");var o,a,s,c,f=0,d=0;if(x(n)){if(!(n instanceof $||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?Et(h,n):Pt.call(h,n);o=n,d=St(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw q("Wrong length!");if((a=m-d)<0)throw q("Wrong length!")}else if((a=v(i)*e)+d>m)throw q("Wrong length!");s=a/e}else s=g(n),o=new $(a=s*e);for(p(t,"_d",{b:o,o:d,l:a,e:s,v:new G(o)});f0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"7O1s":function(t,e,n){var r=n("DIVP"),i=n("XSOZ"),o=n("kkCw")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},"7aQn":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"tree-view",inheritAttrs:!1,props:{inputType:{type:String,required:!1,default:"checkbox"},nameField:{type:String,required:!1,default:"permissions"},idField:{type:String,required:!1,default:"id"},valueField:{type:String,required:!1,default:"value"},captionField:{type:String,required:!1,default:"name"},childrenField:{type:String,required:!1,default:"children"},items:{type:[Array,String,Object],required:!1,default:function(){return[]}},behavior:{type:String,required:!1,default:"reactive"},value:{type:[Array,String,Object],required:!1,default:function(){return[]}}},data:function(){return{finalValues:[]}},computed:{savedValues:function(){return this.value?"radio"==this.inputType?[this.value]:"string"==typeof this.value?JSON.parse(this.value):this.value:[]}},methods:{generateChildren:function(){var t=[],e="string"==typeof this.items?JSON.parse(this.items):this.items;for(var n in e)t.push(this.generateTreeItem(e[n]));return t},generateTreeItem:function(t){var e=this;return this.$createElement("tree-item",{props:{items:t,value:this.finalValues,savedValues:this.savedValues,nameField:this.nameField,inputType:this.inputType,captionField:this.captionField,childrenField:this.childrenField,valueField:this.valueField,idField:this.idField,behavior:this.behavior},on:{input:function(t){e.finalValues=t}}})}},render:function(t){return t("div",{class:["tree-container"]},[this.generateChildren()])}}},"7gX0":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"7ylX":function(t,e,n){var r=n("DIVP"),i=n("twxM"),o=n("QKXm"),a=n("mZON")("IE_PROTO"),s=function(){},c=function(){var t,e=n("jhxf")("iframe"),r=o.length;for(e.style.display="none",n("d075").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("