@ozdao/prometheus-framework 0.2.312 → 0.2.313

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +4 -3
  3. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs.map +1 -1
  4. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +5 -4
  5. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js.map +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +3 -2
  7. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
  8. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +3 -2
  9. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +21 -14
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +21 -14
  13. package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -1
  18. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  26. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  28. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +6 -1
  31. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs.map +1 -1
  32. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +6 -1
  33. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js.map +1 -1
  34. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +6 -18
  35. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  36. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +10 -22
  37. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  38. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +34 -14
  41. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
  42. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +34 -14
  43. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
  44. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +323 -312
  47. package/dist/prometheus-framework/src/modules/pages/pages.client.js +323 -312
  48. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +36 -23
  49. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
  50. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +37 -24
  51. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
  52. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +10 -17
  55. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  56. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +11 -18
  57. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  58. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +12 -2
  59. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
  60. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +13 -3
  61. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js.map +1 -1
  62. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +3 -1
  63. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -1
  64. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +3 -1
  65. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -1
  66. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +6 -73
  69. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  70. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +6 -73
  71. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +7 -7
  75. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  76. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +8 -8
  77. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
  78. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +19 -24
  79. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +19 -24
  81. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  82. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs +8 -8
  83. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs.map +1 -1
  84. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js +9 -9
  85. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js.map +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +60 -28
  91. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +63 -31
  93. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  94. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -1
  96. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -1
  98. package/dist/prometheus-framework.cjs.js +15 -15
  99. package/dist/prometheus-framework.es.js +640 -629
  100. package/package.json +1 -1
  101. package/src/components/BottomSheet/BottomSheet.vue +4 -2
  102. package/src/components/Feed/Feed.vue +1 -0
  103. package/src/components/Field/Field.vue +11 -4
  104. package/src/modules/auth/views/router/users.js +1 -1
  105. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  106. package/src/modules/globals/views/components/blocks/BlockSearch.vue +5 -0
  107. package/src/modules/globals/views/components/layouts/Client.vue +2 -2
  108. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +15 -0
  109. package/src/modules/products/components/blocks/CardCategory.vue +56 -25
  110. package/src/modules/products/components/blocks/CardProduct.vue +17 -11
  111. package/src/modules/products/components/elements/Price.vue +8 -0
  112. package/src/modules/products/components/pages/Catalog.vue +3 -1
  113. package/src/modules/products/components/pages/CategoryEdit.vue +2 -32
  114. package/src/modules/products/components/pages/Product.vue +5 -21
  115. package/src/modules/products/components/pages/Products.vue +5 -8
  116. package/src/modules/products/components/sections/CategoriesTree.vue +3 -5
  117. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  118. package/src/modules/products/components/sections/SectionProduct.vue +48 -26
  119. package/src/modules/products/store/marketplace.js +1 -1
@@ -1,5 +1,6 @@
1
- import { computed, openBlock, createElementBlock, createElementVNode, createBlock, createCommentVNode, toDisplayString, unref, createVNode, Fragment, renderList, withCtx, createTextVNode } from "vue";
2
- import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
1
+ import { computed, ref, openBlock, createElementBlock, createElementVNode, createBlock, createCommentVNode, toDisplayString, unref, createVNode, Transition, withCtx, Fragment, renderList, createTextVNode } from "vue";
2
+ import _sfc_main$3 from "../../../../components/Button/Button.vue2.js";
3
+ import _sfc_main$2 from "../../../../components/Tab/Tab.vue2.js";
3
4
  import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
4
5
  import Images360 from "../blocks/Images360.vue.js";
5
6
  import ImagesThumbnails from "../blocks/ImagesThumbnails.vue.js";
@@ -7,33 +8,44 @@ import ImagesThumbnails from "../blocks/ImagesThumbnails.vue.js";
7
8
  import _sfc_main$1 from "../elements/Price.vue.js";
8
9
  import { useI18n } from "vue-i18n";
9
10
  import { state, actions } from "../../../orders/store/shopcart.js";
10
- const _hoisted_1 = { class: "cols-2-1_2 w-100 gap-thin" };
11
+ const _hoisted_1 = { class: "cols-2-1_2 pd-small w-100 gap-thin" };
11
12
  const _hoisted_2 = { class: "pd-small bg-light radius-big flex-nowrap flex-column flex pos-relative" };
12
13
  const _hoisted_3 = { class: "w-100 bg-light radius-semi o-hidden" };
13
14
  const _hoisted_4 = ["src"];
14
- const _hoisted_5 = { class: "pd-big bg-light radius-big pos-relative w-100 h-100 flex-column flex-justify flex col" };
15
+ const _hoisted_5 = { class: "radius-big pos-relative w-100 h-100 flex-column flex-justify flex col" };
15
16
  const _hoisted_6 = {
16
17
  key: 0,
17
18
  class: "t-main t-semi p-big"
18
19
  };
19
- const _hoisted_7 = { class: "w-100 h1-product mn-b-thin" };
20
+ const _hoisted_7 = { class: "w-100 h1-product mn-b-small" };
20
21
  const _hoisted_8 = {
21
- key: 1,
22
- class: "mn-b-semi"
23
- };
24
- const _hoisted_9 = {
25
22
  key: 2,
26
- class: "w-100 mn-b-medium t-transp"
23
+ class: "mn-b-semi"
27
24
  };
25
+ const _hoisted_9 = { class: "h-min-5r pos-relative" };
28
26
  const _hoisted_10 = {
27
+ key: 0,
28
+ class: "pd-medium radius-medium bg-light"
29
+ };
30
+ const _hoisted_11 = {
31
+ key: 0,
32
+ class: "w-100 t-transp"
33
+ };
34
+ const _hoisted_12 = {
35
+ key: 1,
36
+ class: "w-100 t-transp"
37
+ };
38
+ const _hoisted_13 = {
39
+ key: 1,
40
+ class: "cols-2 w-100 bg-light radius-medium pd-medium gap-small"
41
+ };
42
+ const _hoisted_14 = { class: "w-100 pd-small radius-small bg-white product-information" };
43
+ const _hoisted_15 = { class: "t-demi" };
44
+ const _hoisted_16 = {
29
45
  key: 3,
30
- class: "w-100 mn-b-medium t-transp"
46
+ class: "max-w-33rem mobile-w-100 t-white gap-small cols-2"
31
47
  };
32
- const _hoisted_11 = { class: "cols-2 w-100 gap-small mn-b-semi" };
33
- const _hoisted_12 = { class: "w-100 pd-small radius-small bg-grey-transp-10 product-information" };
34
- const _hoisted_13 = { class: "t-demi" };
35
- const _hoisted_14 = { class: "max-w-33rem mobile-w-100 t-white gap-small cols-2" };
36
- const _hoisted_15 = {
48
+ const _hoisted_17 = {
37
49
  key: 1,
38
50
  class: "flex-center flex uppercase radius-big t-black w-max pd-small t-medium bg-grey h-3r w-100 mn-r-smallbutton"
39
51
  };
@@ -56,6 +68,7 @@ const _sfc_main = {
56
68
  const images = computed(() => {
57
69
  return props.product.images;
58
70
  });
71
+ const tabProduct = ref("description");
59
72
  const text = {
60
73
  messages: {
61
74
  en: {
@@ -118,24 +131,43 @@ const _sfc_main = {
118
131
  createElementVNode("div", _hoisted_5, [
119
132
  __props.recommendation ? (openBlock(), createElementBlock("h2", _hoisted_6, toDisplayString(unref(t)("airecommend")), 1)) : createCommentVNode("", true),
120
133
  createElementVNode("h1", _hoisted_7, toDisplayString(__props.product.name), 1),
121
- createVNode(_sfc_main$1, {
134
+ __props.product.listing !== "rent" ? (openBlock(), createBlock(_sfc_main$1, {
135
+ key: 1,
122
136
  product: __props.product,
123
137
  size: "big",
124
138
  class: "mn-b-semi"
125
- }, null, 8, ["product"]),
139
+ }, null, 8, ["product"])) : createCommentVNode("", true),
126
140
  __props.recommendation ? (openBlock(), createElementBlock("h3", _hoisted_8, toDisplayString(__props.recommendation), 1)) : createCommentVNode("", true),
127
- __props.product.description && !__props.product.localization < 1 && !__props.recommendation ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(__props.product.description), 1)) : createCommentVNode("", true),
128
- __props.product.localization && __props.product.localization.length > 1 && !__props.recommendation ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(unref(t)("description")), 1)) : createCommentVNode("", true),
129
- createElementVNode("div", _hoisted_11, [
130
- __props.product.information.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.product.information, (information) => {
131
- return openBlock(), createElementBlock("div", _hoisted_12, [
132
- createElementVNode("p", _hoisted_13, toDisplayString(information.name), 1),
133
- createElementVNode("p", null, toDisplayString(information.value), 1)
134
- ]);
135
- }), 256)) : createCommentVNode("", true)
141
+ createVNode(_sfc_main$2, {
142
+ selected: tabProduct.value,
143
+ "onUpdate:selected": _cache[0] || (_cache[0] = ($event) => tabProduct.value = $event),
144
+ tabs: [
145
+ { name: "Description", value: "description" },
146
+ { name: "Specifications", value: "specifications" }
147
+ ],
148
+ tabClass: "pd-small pd-r-medium pd-l-medium w-100 pd-small radius-small",
149
+ class: "bg-light mn-b-small"
150
+ }, null, 8, ["selected"]),
151
+ createElementVNode("div", _hoisted_9, [
152
+ createVNode(Transition, { name: "slide-fade" }, {
153
+ default: withCtx(() => [
154
+ tabProduct.value === "description" ? (openBlock(), createElementBlock("div", _hoisted_10, [
155
+ __props.product.description && !__props.product.localization < 1 && !__props.recommendation ? (openBlock(), createElementBlock("p", _hoisted_11, toDisplayString(__props.product.description), 1)) : createCommentVNode("", true),
156
+ __props.product.localization && __props.product.localization.length > 1 && !__props.recommendation ? (openBlock(), createElementBlock("p", _hoisted_12, toDisplayString(unref(t)("description")), 1)) : createCommentVNode("", true)
157
+ ])) : (openBlock(), createElementBlock("div", _hoisted_13, [
158
+ __props.product.information.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.product.information, (information) => {
159
+ return openBlock(), createElementBlock("div", _hoisted_14, [
160
+ createElementVNode("p", _hoisted_15, toDisplayString(information.name), 1),
161
+ createElementVNode("p", null, toDisplayString(information.value), 1)
162
+ ]);
163
+ }), 256)) : createCommentVNode("", true)
164
+ ]))
165
+ ]),
166
+ _: 1
167
+ })
136
168
  ]),
137
- createElementVNode("div", _hoisted_14, [
138
- __props.product.quantity > 0 ? (openBlock(), createBlock(_sfc_main$2, {
169
+ __props.product.listing !== "rent" ? (openBlock(), createElementBlock("div", _hoisted_16, [
170
+ __props.product.quantity > 0 ? (openBlock(), createBlock(_sfc_main$3, {
139
171
  key: 0,
140
172
  submit: (a) => addToCart(__props.product),
141
173
  disabled: validateToCard(__props.product),
@@ -149,8 +181,8 @@ const _sfc_main = {
149
181
  createTextVNode(toDisplayString(unref(t)("addtoorder")), 1)
150
182
  ]),
151
183
  _: 1
152
- }, 8, ["submit", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_15, " Out of Stock "))
153
- ])
184
+ }, 8, ["submit", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_17, " Out of Stock "))
185
+ ])) : createCommentVNode("", true)
154
186
  ])
155
187
  ]);
156
188
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SectionProduct.vue.js","sources":["../../../../../../../src/modules/products/components/sections/SectionProduct.vue"],"sourcesContent":["<template>\n\t<div class=\"cols-2-1_2 w-100 gap-thin\">\n\t\t\n\t\t<div class=\"pd-small bg-light radius-big flex-nowrap flex-column flex pos-relative\">\n\t\t\t<div class=\"w-100 bg-light radius-semi o-hidden\">\n\t\t\t\t<!-- PRODUCT IMAGE -->\n\t\t\t\t<Images360\n\t\t\t\t\tv-if=\"product && product.image3d\"\n\t\t\t\t\tclass=\"h-100 w-100\"\n\t\t\t\t\t:imagePath=\"`/assets/images/products/${product.image3d}`\"\n\t\t\t\t\t:imageCount=\"36\"\n\t\t\t\t/>\n\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"images[0] && !product.image3d\"\n\t\t\t\t\tclass=\"h-auto bg-light w-100\"\n\t\t\t\t\tstyle=\"object-fit: contain;\"\n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + images[0]\"\n\t\t\t\t/>\n\n\t\t\t\t<PlaceholderImage\n\t\t\t\t\tv-if=\"!images[0] && !product.image3d\"\n\t\t\t\t\tclass=\"h-100 w-100\"\n\t\t\t\t\tstyle=\"object-fit: cover;\"\n\t\t\t\t/>\n\n\t\t\t</div>\n\n\t\t\t<ImagesThumbnails\n\t\t\t\tv-if=\"images.length > 1\"\n\t\t\t\t:images=\"images\"\n\t\t\t\tclass=\"mn-t-thin\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div class=\"pd-big bg-light radius-big pos-relative w-100 h-100 flex-column flex-justify flex col\">\n\n\t\t<!-- <IconEdit\n\t\t\t@click=\"$router.push({\n\t\t\t\tname: 'ProductEdit', \n\t\t\t\tparams: {\n\t\t\t\t\t_id: product.organization,\n\t\t\t\t\tproduct: product._id\n\t\t\t\t}\n\t\t\t})\" \n\t\t\tclass=\"pos-absolute pos-t-regular pos-r-regular i-regular t-transp\"\n\t\t/> -->\n\n\t\t\t<h2 v-if=\"recommendation\" class=\"t-main t-semi p-big\">{{t('airecommend')}}</h2>\n\t\t\t<!-- Name -->\n\t\t\t<h1 class=\"w-100 h1-product mn-b-thin\">{{ product.name }}</h1>\n\t\t\t<!-- Price -->\n\t\t\t<Price :product=\"product\" size=\"big\" class=\"mn-b-semi\" />\n\t\t\t<!-- Modifications -->\n\t\t\t<!-- <div v-if=\"product.modifications.length > 0\" class=\"flex-nojustify flex\">\n\t\t\t\t<SelectElement v-if=\"sizes2.length > 0\" :elements=\"sizes2\" :selected=\"product.selectedSize\" class=\"mn-r-medium\" />\n\t\t\t</div> -->\n\t\t\t<!-- Description -->\n\t\t\t<h3 v-if=\"recommendation\" class=\"mn-b-semi\">\n\t\t\t\t{{ recommendation }}\n\t\t\t</h3>\n\n\n\t\t\t<p v-if=\"product.description && !product.localization < 1 && !recommendation\" class=\"w-100 mn-b-medium t-transp\">\n\t\t\t\t{{ product.description }}\n\t\t\t</p>\n\n\t\t\t<p v-if=\"product.localization && product.localization.length > 1 && !recommendation\" class=\"w-100 mn-b-medium t-transp\">\n\t\t\t\t{{ t('description') }}\n\t\t\t</p>\n\n\t\t\t<div \n\t\t\t\tclass=\"cols-2 w-100 gap-small mn-b-semi\"\n\t\t\t>\n\t\t\t\t<div \n\t\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\t\tv-for=\"information in product.information\" \n\t\t\t\t\tclass=\"w-100 pd-small radius-small bg-grey-transp-10 product-information\"\n\t\t\t\t>\n\t\t\t\t\t<p class=\"t-demi\">{{ information.name }}</p>\n\t\t\t\t\t<p>{{ information.value }}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<!-- Actions -->\n\t\t\t<div class=\"max-w-33rem mobile-w-100 t-white gap-small cols-2\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"product.quantity > 0\"\n\t\t\t\t\t:submit=\"a => addToCart(product)\" \n\t\t\t\t\t:disabled=\"validateToCard(product)\" \n\t\t\t\t\t:text=\"{\n\t\t\t\t\t\tsuccess: ' ✔ Added',\n\t\t\t\t\t\terror: 'error'\n\t\t\t\t\t}\"\n\t\t\t\t\tclass=\"h-3r w-100 mn-r-small bg-main button\"\n\t\t\t\t> \n\t\t\t\t\t\t{{ t('addtoorder') }}\n\t\t\t\t</Button>\n\t\t\t\t<div v-else class=\"flex-center flex uppercase radius-big t-black w-max pd-small t-medium bg-grey h-3r w-100 mn-r-smallbutton\">\n\t\t\t\t\tOut of Stock\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\nimport Button \t\t\t\tfrom '@pf/src/components/Button/Button.vue'\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\nimport Images360 \tfrom '@pf/src/modules/products/components/blocks/Images360.vue'\nimport ImagesThumbnails from \"@pf/src/modules/products/components/blocks/ImagesThumbnails.vue\";\n\nimport THC from '@pf/src/modules/products/components/elements/THC.vue'\nimport Price from '@pf/src/modules/products/components/elements/Price.vue'\n// import SelectElement \tfrom '@/components/elements/SelectElement.vue'\n\nimport { computed } from 'vue'\nimport { useI18n } from 'vue-i18n'\n\nimport * as shopcart from '@pf/src/modules/orders/store/shopcart';\n\n// Props\nconst props = defineProps({\n product: {\n type: Object,\n required: true\n },\n user: {\n type: String,\n },\n recommendation: {\n \ttype: String\n }\n})\n\n// Computed properties\nconst images = computed(() => {\n return props.product.images\n})\n\nconst text = {\n\tmessages: {\n\t en: {\n\t \tairecommend: 'AI Recommends You',\n\t \tdescription: '',\n\t \taddtoorder: 'Add to order',\n\t fastorder: 'Fast Order'\n\t },\n\t ru: {\n\t \tairecommend: 'AI Рекомендует вам',\n\t \tdescription: '',\n\t \taddtoorder: 'Добавить в корзину',\n\t fastorder: 'Быстрый заказ'\n\t }\n\t}\n}\n\n// props.product.localization.forEach(localization => {\n\t// if (localization) text.messages[localization.locale].description = localization.text\n// })\n\n const { t } = useI18n(text)\n\n// Methods\nfunction validateToCard(product) {\n if (product.quantity > 0) {\n return false\n }\n return true\n}\n\nfunction addToCart(product) {\n\tif (shopcart.state.organization !== product.organization) {\n\t\tshopcart.state.positions = []\n\t\tshopcart.state.organization = product.organization\n\t}\n shopcart.actions.addProductToCart(product, product.organization)\n}\n</script>\n"],"names":["shopcart.state","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA,UAAM,QAAQ;AAcd,UAAM,SAAS,SAAS,MAAM;AAC5B,aAAO,MAAM,QAAQ;AAAA,IACvB,CAAC;AAED,UAAM,OAAO;AAAA,MACZ,UAAU;AAAA,QACR,IAAI;AAAA,UACH,aAAa;AAAA,UACb,aAAa;AAAA,UACb,YAAY;AAAA,UACX,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACH,aAAa;AAAA,UACb,aAAa;AAAA,UACb,YAAY;AAAA,UACX,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAMC,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;AAG3B,aAAS,eAAe,SAAS;AAC/B,UAAI,QAAQ,WAAW,GAAG;AACxB,eAAO;AAAA,MACR;AACD,aAAO;AAAA,IACT;AAEA,aAAS,UAAU,SAAS;AAC3B,UAAIA,MAAe,iBAAiB,QAAQ,cAAc;AACzDA,cAAe,YAAY,CAAE;AAC7BA,cAAe,eAAe,QAAQ;AAAA,MACtC;AACAC,cAAiB,iBAAiB,SAAS,QAAQ,YAAY;AAAA,IACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SectionProduct.vue.js","sources":["../../../../../../../src/modules/products/components/sections/SectionProduct.vue"],"sourcesContent":["<template>\n\t<div class=\"cols-2-1_2 pd-small w-100 gap-thin\">\n\t\t\n\t\t<div class=\"pd-small bg-light radius-big flex-nowrap flex-column flex pos-relative\">\n\t\t\t<div class=\"w-100 bg-light radius-semi o-hidden\">\n\t\t\t\t<!-- PRODUCT IMAGE -->\n\t\t\t\t<Images360\n\t\t\t\t\tv-if=\"product && product.image3d\"\n\t\t\t\t\tclass=\"h-100 w-100\"\n\t\t\t\t\t:imagePath=\"`/assets/images/products/${product.image3d}`\"\n\t\t\t\t\t:imageCount=\"36\"\n\t\t\t\t/>\n\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"images[0] && !product.image3d\"\n\t\t\t\t\tclass=\"h-auto bg-light w-100\"\n\t\t\t\t\tstyle=\"object-fit: contain;\"\n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + images[0]\"\n\t\t\t\t/>\n\n\t\t\t\t<PlaceholderImage\n\t\t\t\t\tv-if=\"!images[0] && !product.image3d\"\n\t\t\t\t\tclass=\"h-100 w-100\"\n\t\t\t\t\tstyle=\"object-fit: cover;\"\n\t\t\t\t/>\n\n\t\t\t</div>\n\n\t\t\t<ImagesThumbnails\n\t\t\t\tv-if=\"images.length > 1\"\n\t\t\t\t:images=\"images\"\n\t\t\t\tclass=\"mn-t-thin\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div class=\"radius-big pos-relative w-100 h-100 flex-column flex-justify flex col\">\n\n\t\t<!-- <IconEdit\n\t\t\t@click=\"$router.push({\n\t\t\t\tname: 'ProductEdit', \n\t\t\t\tparams: {\n\t\t\t\t\t_id: product.organization,\n\t\t\t\t\tproduct: product._id\n\t\t\t\t}\n\t\t\t})\" \n\t\t\tclass=\"pos-absolute pos-t-regular pos-r-regular i-regular t-transp\"\n\t\t/> -->\n\n\t\t\t<h2 v-if=\"recommendation\" class=\"t-main t-semi p-big\">{{t('airecommend')}}</h2>\n\t\t\t<!-- Name -->\n\t\t\t<h1 class=\"w-100 h1-product mn-b-small\">{{ product.name }}</h1>\n\t\t\t<!-- Price -->\n\t\t\t<Price v-if=\"product.listing !== 'rent'\" :product=\"product\" size=\"big\" class=\"mn-b-semi\" />\n\t\t\t<!-- Modifications -->\n\t\t\t<!-- <div v-if=\"product.modifications.length > 0\" class=\"flex-nojustify flex\">\n\t\t\t\t<SelectElement v-if=\"sizes2.length > 0\" :elements=\"sizes2\" :selected=\"product.selectedSize\" class=\"mn-r-medium\" />\n\t\t\t</div> -->\n\t\t\t<!-- Description -->\n\t\t\t<h3 v-if=\"recommendation\" class=\"mn-b-semi\">\n\t\t\t\t{{ recommendation }}\n\t\t\t</h3>\n\n\t\t\t<Tab \n\t\t\t\tv-model:selected=\"tabProduct\"\n\t\t\t\t:tabs=\"[\n\t\t\t\t\t{name: 'Description', value: 'description'},\n\t\t\t\t\t{name: 'Specifications', value: 'specifications'}\n\t\t\t\t]\"\n\t\t\t\ttabClass=\"pd-small pd-r-medium pd-l-medium w-100 pd-small radius-small\"\n\t\t\t\tclass=\"bg-light mn-b-small\"\n\t\t\t/>\n\n\t\t\t<div class=\"h-min-5r pos-relative\">\n\t\t\t\t<transition name=\"slide-fade\">\n\n\t\t\t\t\t<div v-if=\"tabProduct === 'description'\" class=\"pd-medium radius-medium bg-light \">\n\t\t\t\t\t\t<p v-if=\"product.description && !product.localization < 1 && !recommendation\" class=\"w-100 t-transp\">\n\t\t\t\t\t\t\t{{ product.description }}\n\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t<p v-if=\"product.localization && product.localization.length > 1 && !recommendation\" class=\"w-100 t-transp\">\n\t\t\t\t\t\t\t{{ t('description') }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div \n\t\t\t\t\t\tv-else\n\t\t\t\t\t\tclass=\"cols-2 w-100 bg-light radius-medium pd-medium gap-small\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div \n\t\t\t\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\t\t\t\tv-for=\"information in product.information\" \n\t\t\t\t\t\t\tclass=\"w-100 pd-small radius-small bg-white product-information\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p class=\"t-demi\">{{ information.name }}</p>\n\t\t\t\t\t\t\t<p>{{ information.value }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</transition>\n\t\t\t</div>\n\n\t\t\t<!-- Actions -->\n\t\t\t<div v-if=\"product.listing !== 'rent'\" class=\"max-w-33rem mobile-w-100 t-white gap-small cols-2\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"product.quantity > 0\"\n\t\t\t\t\t:submit=\"a => addToCart(product)\" \n\t\t\t\t\t:disabled=\"validateToCard(product)\" \n\t\t\t\t\t:text=\"{\n\t\t\t\t\t\tsuccess: ' ✔ Added',\n\t\t\t\t\t\terror: 'error'\n\t\t\t\t\t}\"\n\t\t\t\t\tclass=\"h-3r w-100 mn-r-small bg-main button\"\n\t\t\t\t> \n\t\t\t\t\t\t{{ t('addtoorder') }}\n\t\t\t\t</Button>\n\t\t\t\t<div v-else class=\"flex-center flex uppercase radius-big t-black w-max pd-small t-medium bg-grey h-3r w-100 mn-r-smallbutton\">\n\t\t\t\t\tOut of Stock\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\nimport Button from '@pf/src/components/Button/Button.vue'\nimport Tab from '@pf/src/components/Tab/Tab.vue'\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\nimport Images360 \tfrom '@pf/src/modules/products/components/blocks/Images360.vue'\nimport ImagesThumbnails from \"@pf/src/modules/products/components/blocks/ImagesThumbnails.vue\";\n\nimport THC from '@pf/src/modules/products/components/elements/THC.vue'\nimport Price from '@pf/src/modules/products/components/elements/Price.vue'\n// import SelectElement \tfrom '@/components/elements/SelectElement.vue'\n\nimport { computed, ref } from 'vue'\nimport { useI18n } from 'vue-i18n'\n\nimport * as shopcart from '@pf/src/modules/orders/store/shopcart';\n\n// Props\nconst props = defineProps({\n product: {\n type: Object,\n required: true\n },\n user: {\n type: String,\n },\n recommendation: {\n \ttype: String\n }\n})\n\n// Computed properties\nconst images = computed(() => {\n return props.product.images\n})\n\n\nconst tabProduct = ref('description')\n\n\nconst text = {\n\tmessages: {\n\t en: {\n\t \tairecommend: 'AI Recommends You',\n\t \tdescription: '',\n\t \taddtoorder: 'Add to order',\n\t fastorder: 'Fast Order'\n\t },\n\t ru: {\n\t \tairecommend: 'AI Рекомендует вам',\n\t \tdescription: '',\n\t \taddtoorder: 'Добавить в корзину',\n\t fastorder: 'Быстрый заказ'\n\t }\n\t}\n}\n\n// props.product.localization.forEach(localization => {\n\t// if (localization) text.messages[localization.locale].description = localization.text\n// })\n\n const { t } = useI18n(text)\n\n// Methods\nfunction validateToCard(product) {\n if (product.quantity > 0) {\n return false\n }\n return true\n}\n\nfunction addToCart(product) {\n\tif (shopcart.state.organization !== product.organization) {\n\t\tshopcart.state.positions = []\n\t\tshopcart.state.organization = product.organization\n\t}\n shopcart.actions.addProductToCart(product, product.organization)\n}\n</script>\n"],"names":["shopcart.state","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8IA,UAAM,QAAQ;AAcd,UAAM,SAAS,SAAS,MAAM;AAC5B,aAAO,MAAM,QAAQ;AAAA,IACvB,CAAC;AAGD,UAAM,aAAa,IAAI,aAAa;AAGpC,UAAM,OAAO;AAAA,MACZ,UAAU;AAAA,QACR,IAAI;AAAA,UACH,aAAa;AAAA,UACb,aAAa;AAAA,UACb,YAAY;AAAA,UACX,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACH,aAAa;AAAA,UACb,aAAa;AAAA,UACb,YAAY;AAAA,UACX,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAMC,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;AAG3B,aAAS,eAAe,SAAS;AAC/B,UAAI,QAAQ,WAAW,GAAG;AACxB,eAAO;AAAA,MACR;AACD,aAAO;AAAA,IACT;AAEA,aAAS,UAAU,SAAS;AAC3B,UAAIA,MAAe,iBAAiB,QAAQ,cAAc;AACzDA,cAAe,YAAY,CAAE;AAC7BA,cAAe,eAAe,QAAQ;AAAA,MACtC;AACAC,cAAiB,iBAAiB,SAAS,QAAQ,YAAY;AAAA,IACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -14,7 +14,7 @@ const state = vue.reactive({
14
14
  result: []
15
15
  },
16
16
  filter: {
17
- active: false,
17
+ active: true,
18
18
  class: "mobile-only",
19
19
  selected: {},
20
20
  options: [{
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace.cjs","sources":["../../../../../../src/modules/products/store/marketplace.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\n\n// State\nconst state = reactive({\n shops: [],\n popular: [],\n pagination: {\n page: 1,\n perPage: 18,\n },\n search: {\n active: false,\n current: '',\n result:[]\n },\n filter: {\n active: false,\n class: 'mobile-only',\n selected: {},\n options: [{\n title: 'Delivery',\n value: 'delivery',\n options: [\n { label: 'Pickup', value: 'pickup' },\n { label: 'Courier', value: 'courier' },\n { label: 'Post', value: 'post' }\n ]\n },{\n title: 'Prices', \n value: 'prices',\n options: [\n { label: 'Under 300฿', value: '<300' },\n { label: '300฿ to 600฿', value: '300-600' },\n { label: '600฿ to 1200฿', value: '600-1200' },\n { label: '$1200 and above', value: '>1200' }\n ]\n }],\n },\n sort: {\n param: 'distance',\n order: 'asc',\n options: [{\n label: 'Distance',\n value: 'distance'\n },{\n label: 'Popularity',\n value: 'views'\n },{\n label: 'Products',\n value: 'numberOfProducts'\n }]\n }\n});\n\n\n// History\nconst history = []; history.push(state);\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state\n}"],"names":["reactive","watch"],"mappings":";;;AAGK,MAAC,QAAQA,IAAAA,SAAS;AAAA,EACrB,OAAO,CAAE;AAAA,EACT,SAAS,CAAE;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAO,CAAE;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU,CAAE;AAAA,IACZ,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,UAAU,OAAO,SAAU;AAAA,QACpC,EAAE,OAAO,WAAW,OAAO,UAAW;AAAA,QACtC,EAAE,OAAO,QAAQ,OAAO,OAAQ;AAAA,MACjC;AAAA,IACP,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,cAAqB,OAAO,OAAQ;AAAA,QAC7C,EAAE,OAAO,gBAAqB,OAAO,UAAW;AAAA,QAChD,EAAE,OAAO,iBAAqB,OAAO,WAAY;AAAA,QACjD,EAAE,OAAO,mBAAqB,OAAO,QAAS;AAAA,MAC/C;AAAA,IACP,CAAK;AAAA,EACF;AAAA,EACD,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,CAAK;AAAA,EACF;AACH,CAAC;AAODC,IAAAA,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;;"}
1
+ {"version":3,"file":"marketplace.cjs","sources":["../../../../../../src/modules/products/store/marketplace.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\n\n// State\nconst state = reactive({\n shops: [],\n popular: [],\n pagination: {\n page: 1,\n perPage: 18,\n },\n search: {\n active: false,\n current: '',\n result:[]\n },\n filter: {\n active: true,\n class: 'mobile-only',\n selected: {},\n options: [{\n title: 'Delivery',\n value: 'delivery',\n options: [\n { label: 'Pickup', value: 'pickup' },\n { label: 'Courier', value: 'courier' },\n { label: 'Post', value: 'post' }\n ]\n },{\n title: 'Prices', \n value: 'prices',\n options: [\n { label: 'Under 300฿', value: '<300' },\n { label: '300฿ to 600฿', value: '300-600' },\n { label: '600฿ to 1200฿', value: '600-1200' },\n { label: '$1200 and above', value: '>1200' }\n ]\n }],\n },\n sort: {\n param: 'distance',\n order: 'asc',\n options: [{\n label: 'Distance',\n value: 'distance'\n },{\n label: 'Popularity',\n value: 'views'\n },{\n label: 'Products',\n value: 'numberOfProducts'\n }]\n }\n});\n\n\n// History\nconst history = []; history.push(state);\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state\n}"],"names":["reactive","watch"],"mappings":";;;AAGK,MAAC,QAAQA,IAAAA,SAAS;AAAA,EACrB,OAAO,CAAE;AAAA,EACT,SAAS,CAAE;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAO,CAAE;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU,CAAE;AAAA,IACZ,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,UAAU,OAAO,SAAU;AAAA,QACpC,EAAE,OAAO,WAAW,OAAO,UAAW;AAAA,QACtC,EAAE,OAAO,QAAQ,OAAO,OAAQ;AAAA,MACjC;AAAA,IACP,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,cAAqB,OAAO,OAAQ;AAAA,QAC7C,EAAE,OAAO,gBAAqB,OAAO,UAAW;AAAA,QAChD,EAAE,OAAO,iBAAqB,OAAO,WAAY;AAAA,QACjD,EAAE,OAAO,mBAAqB,OAAO,QAAS;AAAA,MAC/C;AAAA,IACP,CAAK;AAAA,EACF;AAAA,EACD,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,CAAK;AAAA,EACF;AACH,CAAC;AAODC,IAAAA,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;;"}
@@ -12,7 +12,7 @@ const state = reactive({
12
12
  result: []
13
13
  },
14
14
  filter: {
15
- active: false,
15
+ active: true,
16
16
  class: "mobile-only",
17
17
  selected: {},
18
18
  options: [{
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace.js","sources":["../../../../../../src/modules/products/store/marketplace.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\n\n// State\nconst state = reactive({\n shops: [],\n popular: [],\n pagination: {\n page: 1,\n perPage: 18,\n },\n search: {\n active: false,\n current: '',\n result:[]\n },\n filter: {\n active: false,\n class: 'mobile-only',\n selected: {},\n options: [{\n title: 'Delivery',\n value: 'delivery',\n options: [\n { label: 'Pickup', value: 'pickup' },\n { label: 'Courier', value: 'courier' },\n { label: 'Post', value: 'post' }\n ]\n },{\n title: 'Prices', \n value: 'prices',\n options: [\n { label: 'Under 300฿', value: '<300' },\n { label: '300฿ to 600฿', value: '300-600' },\n { label: '600฿ to 1200฿', value: '600-1200' },\n { label: '$1200 and above', value: '>1200' }\n ]\n }],\n },\n sort: {\n param: 'distance',\n order: 'asc',\n options: [{\n label: 'Distance',\n value: 'distance'\n },{\n label: 'Popularity',\n value: 'views'\n },{\n label: 'Products',\n value: 'numberOfProducts'\n }]\n }\n});\n\n\n// History\nconst history = []; history.push(state);\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state\n}"],"names":[],"mappings":";AAGK,MAAC,QAAQ,SAAS;AAAA,EACrB,OAAO,CAAE;AAAA,EACT,SAAS,CAAE;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAO,CAAE;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU,CAAE;AAAA,IACZ,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,UAAU,OAAO,SAAU;AAAA,QACpC,EAAE,OAAO,WAAW,OAAO,UAAW;AAAA,QACtC,EAAE,OAAO,QAAQ,OAAO,OAAQ;AAAA,MACjC;AAAA,IACP,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,cAAqB,OAAO,OAAQ;AAAA,QAC7C,EAAE,OAAO,gBAAqB,OAAO,UAAW;AAAA,QAChD,EAAE,OAAO,iBAAqB,OAAO,WAAY;AAAA,QACjD,EAAE,OAAO,mBAAqB,OAAO,QAAS;AAAA,MAC/C;AAAA,IACP,CAAK;AAAA,EACF;AAAA,EACD,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,CAAK;AAAA,EACF;AACH,CAAC;AAOD,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;"}
1
+ {"version":3,"file":"marketplace.js","sources":["../../../../../../src/modules/products/store/marketplace.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\n\n// State\nconst state = reactive({\n shops: [],\n popular: [],\n pagination: {\n page: 1,\n perPage: 18,\n },\n search: {\n active: false,\n current: '',\n result:[]\n },\n filter: {\n active: true,\n class: 'mobile-only',\n selected: {},\n options: [{\n title: 'Delivery',\n value: 'delivery',\n options: [\n { label: 'Pickup', value: 'pickup' },\n { label: 'Courier', value: 'courier' },\n { label: 'Post', value: 'post' }\n ]\n },{\n title: 'Prices', \n value: 'prices',\n options: [\n { label: 'Under 300฿', value: '<300' },\n { label: '300฿ to 600฿', value: '300-600' },\n { label: '600฿ to 1200฿', value: '600-1200' },\n { label: '$1200 and above', value: '>1200' }\n ]\n }],\n },\n sort: {\n param: 'distance',\n order: 'asc',\n options: [{\n label: 'Distance',\n value: 'distance'\n },{\n label: 'Popularity',\n value: 'views'\n },{\n label: 'Products',\n value: 'numberOfProducts'\n }]\n }\n});\n\n\n// History\nconst history = []; history.push(state);\n\n// Watch\nwatch(state, (newState, oldState) => {\n history.push(newState)\n})\n\n// Module Export\nexport {\n state\n}"],"names":[],"mappings":";AAGK,MAAC,QAAQ,SAAS;AAAA,EACrB,OAAO,CAAE;AAAA,EACT,SAAS,CAAE;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAO,CAAE;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU,CAAE;AAAA,IACZ,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,UAAU,OAAO,SAAU;AAAA,QACpC,EAAE,OAAO,WAAW,OAAO,UAAW;AAAA,QACtC,EAAE,OAAO,QAAQ,OAAO,OAAQ;AAAA,MACjC;AAAA,IACP,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,MACP,SAAS;AAAA,QACP,EAAE,OAAO,cAAqB,OAAO,OAAQ;AAAA,QAC7C,EAAE,OAAO,gBAAqB,OAAO,UAAW;AAAA,QAChD,EAAE,OAAO,iBAAqB,OAAO,WAAY;AAAA,QACjD,EAAE,OAAO,mBAAqB,OAAO,QAAS;AAAA,MAC/C;AAAA,IACP,CAAK;AAAA,EACF;AAAA,EACD,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,CAAC;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,GAAM;AAAA,MACA,OAAO;AAAA,MACP,OAAO;AAAA,IACb,CAAK;AAAA,EACF;AACH,CAAC;AAOD,MAAM,OAAO,CAAC,UAAU,aAAa;AAErC,CAAC;"}