@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
@@ -2,9 +2,12 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
- require("./CardCategory.vue2.cjs");
6
- const _hoisted_1 = { class: "flex-v-center flex-column flex" };
7
- const _hoisted_2 = { class: "mn-r-auto" };
5
+ const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
6
+ const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
7
+ ;/* empty css */
8
+ const _hoisted_1 = { class: "flex-v-center bg-light pd-small radius-small flex-column flex" };
9
+ const _hoisted_2 = { class: "w-100 flex-nowrap gap-thin flex" };
10
+ const _hoisted_3 = { class: "my-handle mn-r-auto" };
8
11
  const _sfc_main = {
9
12
  __name: "CardCategory",
10
13
  props: {
@@ -21,26 +24,36 @@ const _sfc_main = {
21
24
  return (_ctx, _cache) => {
22
25
  const _component_router_link = vue.resolveComponent("router-link");
23
26
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
24
- vue.createElementVNode("h4", _hoisted_2, vue.toDisplayString(__props.category.order) + " / " + vue.toDisplayString(__props.category.name), 1),
25
- vue.createVNode(_component_router_link, {
26
- to: {
27
- name: "Category Edit",
28
- params: {
29
- _id: vue.unref(route).params._id,
30
- category: __props.category.url
31
- }
32
- },
33
- class: "mn-r-medium nav-link"
34
- }, {
35
- default: vue.withCtx(() => _cache[1] || (_cache[1] = [
36
- vue.createTextVNode(" Edit ")
37
- ])),
38
- _: 1
39
- }, 8, ["to"]),
40
- vue.createElementVNode("a", {
41
- class: "nav-link",
42
- onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category))
43
- }, " Delete ")
27
+ vue.createElementVNode("div", _hoisted_2, [
28
+ vue.createElementVNode("h4", _hoisted_3, vue.toDisplayString(__props.category.name), 1),
29
+ vue.createVNode(_component_router_link, {
30
+ to: {
31
+ name: "Category Edit",
32
+ params: {
33
+ _id: vue.unref(route).params._id,
34
+ category: __props.category.url
35
+ }
36
+ },
37
+ class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
38
+ }, {
39
+ default: vue.withCtx(() => [
40
+ vue.createVNode(IconEdit.default, {
41
+ class: "w-100 h-100",
42
+ classes: "fill-white"
43
+ })
44
+ ]),
45
+ _: 1
46
+ }, 8, ["to"]),
47
+ vue.createElementVNode("button", {
48
+ onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category)),
49
+ class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
50
+ }, [
51
+ vue.createVNode(IconAdd.default, {
52
+ class: "w-100 h-100",
53
+ fill: "white"
54
+ })
55
+ ])
56
+ ])
44
57
  ]);
45
58
  };
46
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CardCategory.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center flex-column flex\">\n <h4 class=\"mn-r-auto\">{{category.order}} / {{category.name}}</h4>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n <router-link \n \t:to=\"{\n\t\t\t\tname: 'Category Edit', \n\t\t\t\tparams: { \n\t\t\t\t\t_id: route.params._id,\n\t\t\t\t\tcategory: category.url\n\t\t\t\t} \n\t\t\t}\"\n \tclass=\"mn-r-medium nav-link\"\n >\n \tEdit\n \t</router-link>\n\n <a \n \tclass=\"nav-link\" \n \t@click=\"deleteCategory(category)\"\n >\n \t\tDelete\n \t</a>\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n<style lang=\"scss\">\n.categories-card {\n\n}\n</style>\n\n\n"],"names":["useRoute","useRouter"],"mappings":";;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAEd,UAAM,QAAQA,UAAQ,SAAA;AACPC,cAAAA,UAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CardCategory.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center bg-light pd-small radius-small flex-column flex\">\n <div class=\"w-100 flex-nowrap gap-thin flex\">\n <h4 class=\"my-handle mn-r-auto\">{{category.name}}</h4>\n\n <router-link\n :to=\"{\n name: 'Category Edit', \n params: { \n _id: route.params._id,\n category: category.url\n } \n }\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconEdit\n class=\"w-100 h-100\" \n classes=\"fill-white\"\n />\n </router-link>\n\n <button\n @click=\"deleteCategory(category)\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconAdd\n class=\"w-100 h-100\"\n :fill=\"'white'\"\n />\n </button>\n </div>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n\n<style lang=\"scss\">\n.card-title {\n .card-page-actions {\n display: none;\n }\n\n &:hover {\n .card-page-actions {\n display: block;\n }\n }\n}\n</style>\n"],"names":["useRoute","useRouter"],"mappings":";;;;;;;;;;;;;;;;;AAqEA,UAAM,QAAQ;AAEd,UAAM,QAAQA,UAAQ,SAAA;AACPC,cAAAA,UAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,11 @@
1
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, withCtx, createTextVNode } from "vue";
1
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, withCtx } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
- import "./CardCategory.vue2.js";
4
- const _hoisted_1 = { class: "flex-v-center flex-column flex" };
5
- const _hoisted_2 = { class: "mn-r-auto" };
3
+ import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
4
+ import _sfc_main$2 from "../../../icons/navigation/IconAdd.vue.js";
5
+ /* empty css */
6
+ const _hoisted_1 = { class: "flex-v-center bg-light pd-small radius-small flex-column flex" };
7
+ const _hoisted_2 = { class: "w-100 flex-nowrap gap-thin flex" };
8
+ const _hoisted_3 = { class: "my-handle mn-r-auto" };
6
9
  const _sfc_main = {
7
10
  __name: "CardCategory",
8
11
  props: {
@@ -19,26 +22,36 @@ const _sfc_main = {
19
22
  return (_ctx, _cache) => {
20
23
  const _component_router_link = resolveComponent("router-link");
21
24
  return openBlock(), createElementBlock("div", _hoisted_1, [
22
- createElementVNode("h4", _hoisted_2, toDisplayString(__props.category.order) + " / " + toDisplayString(__props.category.name), 1),
23
- createVNode(_component_router_link, {
24
- to: {
25
- name: "Category Edit",
26
- params: {
27
- _id: unref(route).params._id,
28
- category: __props.category.url
29
- }
30
- },
31
- class: "mn-r-medium nav-link"
32
- }, {
33
- default: withCtx(() => _cache[1] || (_cache[1] = [
34
- createTextVNode(" Edit ")
35
- ])),
36
- _: 1
37
- }, 8, ["to"]),
38
- createElementVNode("a", {
39
- class: "nav-link",
40
- onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category))
41
- }, " Delete ")
25
+ createElementVNode("div", _hoisted_2, [
26
+ createElementVNode("h4", _hoisted_3, toDisplayString(__props.category.name), 1),
27
+ createVNode(_component_router_link, {
28
+ to: {
29
+ name: "Category Edit",
30
+ params: {
31
+ _id: unref(route).params._id,
32
+ category: __props.category.url
33
+ }
34
+ },
35
+ class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
36
+ }, {
37
+ default: withCtx(() => [
38
+ createVNode(_sfc_main$1, {
39
+ class: "w-100 h-100",
40
+ classes: "fill-white"
41
+ })
42
+ ]),
43
+ _: 1
44
+ }, 8, ["to"]),
45
+ createElementVNode("button", {
46
+ onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category)),
47
+ class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
48
+ }, [
49
+ createVNode(_sfc_main$2, {
50
+ class: "w-100 h-100",
51
+ fill: "white"
52
+ })
53
+ ])
54
+ ])
42
55
  ]);
43
56
  };
44
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CardCategory.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center flex-column flex\">\n <h4 class=\"mn-r-auto\">{{category.order}} / {{category.name}}</h4>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n <router-link \n \t:to=\"{\n\t\t\t\tname: 'Category Edit', \n\t\t\t\tparams: { \n\t\t\t\t\t_id: route.params._id,\n\t\t\t\t\tcategory: category.url\n\t\t\t\t} \n\t\t\t}\"\n \tclass=\"mn-r-medium nav-link\"\n >\n \tEdit\n \t</router-link>\n\n <a \n \tclass=\"nav-link\" \n \t@click=\"deleteCategory(category)\"\n >\n \t\tDelete\n \t</a>\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n<style lang=\"scss\">\n.categories-card {\n\n}\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAQ;AACP,cAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CardCategory.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center bg-light pd-small radius-small flex-column flex\">\n <div class=\"w-100 flex-nowrap gap-thin flex\">\n <h4 class=\"my-handle mn-r-auto\">{{category.name}}</h4>\n\n <router-link\n :to=\"{\n name: 'Category Edit', \n params: { \n _id: route.params._id,\n category: category.url\n } \n }\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconEdit\n class=\"w-100 h-100\" \n classes=\"fill-white\"\n />\n </router-link>\n\n <button\n @click=\"deleteCategory(category)\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconAdd\n class=\"w-100 h-100\"\n :fill=\"'white'\"\n />\n </button>\n </div>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n\n<style lang=\"scss\">\n.card-title {\n .card-page-actions {\n display: none;\n }\n\n &:hover {\n .card-page-actions {\n display: block;\n }\n }\n}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqEA,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAQ;AACP,cAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const Field = require("../../../../components/Field/Field.vue2.cjs");
5
5
  const Select = require("../../../../components/Select/Select.vue.cjs");
6
- ;/* empty css */
6
+ ;/* empty css */
7
7
  const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
8
8
  const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
9
9
  const _hoisted_1 = { class: "gap-thin" };
@@ -1,7 +1,7 @@
1
1
  import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, unref } from "vue";
2
2
  import Field from "../../../../components/Field/Field.vue2.js";
3
3
  import Select from "../../../../components/Select/Select.vue.js";
4
- /* empty css */
4
+ /* empty css */
5
5
  import _sfc_main$1 from "../../../icons/navigation/IconAdd.vue.js";
6
6
  import _sfc_main$2 from "../../../icons/navigation/IconDelete.vue.js";
7
7
  const _hoisted_1 = { class: "gap-thin" };
@@ -6,6 +6,7 @@ const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
6
6
  const THC = require("../elements/THC.vue.cjs");
7
7
  const Price = require("../elements/Price.vue.cjs");
8
8
  const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
9
+ ;/* empty css */
9
10
  const _hoisted_1 = { class: "radius-medium cols-1 o-hidden pos-relative" };
10
11
  const _hoisted_2 = ["src"];
11
12
  const _hoisted_3 = {
@@ -13,19 +14,17 @@ const _hoisted_3 = {
13
14
  class: "pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium"
14
15
  };
15
16
  const _hoisted_4 = { class: "pd-small t-left product-card-content" };
16
- const _hoisted_5 = { class: "mn-b-thin t-medium h4" };
17
+ const _hoisted_5 = {
18
+ style: { "hyphens": "auto" },
19
+ class: "word-break mn-b-thin w-100 w-max-100 t-regular h5"
20
+ };
17
21
  const _hoisted_6 = {
18
22
  key: 1,
19
23
  class: "mn-b-small t-transp p-small"
20
24
  };
21
25
  const _hoisted_7 = { class: "flex-v-center flex-nowrap flex" };
22
26
  const _hoisted_8 = {
23
- key: 1,
24
- class: "mn-r-auto"
25
- };
26
- const _hoisted_9 = { class: "t-second h5" };
27
- const _hoisted_10 = {
28
- key: 2,
27
+ key: 0,
29
28
  class: "z-index-2 cursor-pointer radius-extra pd-thin bg-main"
30
29
  };
31
30
  const _sfc_main = {
@@ -96,21 +95,15 @@ const _sfc_main = {
96
95
  __props.product.information[2] && __props.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
97
96
  ])
98
97
  }, vue.toDisplayString(__props.product.information[0].value), 3)) : vue.createCommentVNode("", true),
99
- vue.createElementVNode("p", _hoisted_5, vue.toDisplayString(__props.product.name.substring(0, 16)) + "... ", 1),
98
+ vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(__props.product.name.substring(0, 32)) + "... ", 1),
100
99
  __props.product.description && !__props.product.localization && __props.product.listing !== "rent" ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6, vue.toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : vue.createCommentVNode("", true),
101
100
  vue.createElementVNode("div", _hoisted_7, [
102
- __props.product.listing !== "rent" ? (vue.openBlock(), vue.createBlock(Price.default, {
103
- key: 0,
101
+ vue.createVNode(Price.default, {
104
102
  product: __props.product,
105
103
  size: "small",
106
104
  class: "mn-r-auto"
107
- }, null, 8, ["product"])) : vue.createCommentVNode("", true),
108
- __props.product.listing === "rent" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
109
- vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(__props.product.price + __props.product.price_currency), 1),
110
- _cache[0] || (_cache[0] = vue.createTextVNode()),
111
- _cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
112
- ])) : vue.createCommentVNode("", true),
113
- __props.user && __props.product.listing === "rent" ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_10, _cache[2] || (_cache[2] = [
105
+ }, null, 8, ["product"]),
106
+ __props.user && __props.product.listing === "rent" ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_8, _cache[0] || (_cache[0] = [
114
107
  vue.createElementVNode("svg", {
115
108
  class: "i-medium",
116
109
  xmlns: "http://www.w3.org/2000/svg",
@@ -1 +1 @@
1
- {"version":3,"file":"CardProduct.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<span v-if=\"product.quantity <= 0 && product.listing === 'rent'\" class=\"pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium\">Out of Stock</span>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<p class=\"mn-b-thin t-medium h4\">\n\t\t\t\t{{product.name.substring(0,16)}}...\n\t\t\t</p>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\tv-if=\"product.listing !== 'rent'\"\n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\t<div\n\t\t\t\t\t\tv-if=\"product.listing === 'rent'\"\n\t\t\t\t\t\tclass=\"mn-r-auto\"\n\t\t\t\t>\n\t\t\t\t\t<span class=\"t-second h5 \"> {{product.price+product.price_currency }}</span> <span class=\"p-small t-transp\">/ per day </span>\n\t\t\t\t</div>\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <path d=\"M8.19141 15.582C7.49414 15.582 6.95638 15.3861 6.57812 14.9941C6.19987 14.6022 5.95833 14.0622 5.85352 13.374L4.52734 4.30957H1.9502C1.68587 4.30957 1.45801 4.21387 1.2666 4.02246C1.0752 3.8265 0.979492 3.59408 0.979492 3.3252C0.979492 3.05632 1.0752 2.82617 1.2666 2.63477C1.45801 2.4388 1.68587 2.34082 1.9502 2.34082H4.91699C5.43197 2.34082 5.79655 2.44564 6.01074 2.65527C6.22493 2.86035 6.36393 3.16797 6.42773 3.57812L6.55078 4.42578H14.7471C14.7288 4.5625 14.7152 4.69922 14.7061 4.83594C14.6969 4.97266 14.6924 5.10938 14.6924 5.24609C14.6924 6.04362 14.8405 6.79102 15.1367 7.48828C15.4329 8.18555 15.8454 8.80306 16.374 9.34082C16.9072 9.87858 17.5247 10.3024 18.2266 10.6123C18.9284 10.9176 19.6826 11.0771 20.4893 11.0908L20.4209 11.248C20.2432 11.5671 20.0016 11.8132 19.6963 11.9863C19.391 12.1595 19.0127 12.2461 18.5615 12.2461H7.67188L7.80859 13.1963C7.84049 13.3831 7.90885 13.5335 8.01367 13.6475C8.11849 13.7614 8.25977 13.8184 8.4375 13.8184H18.459C18.696 13.8184 18.9056 13.8981 19.0879 14.0576C19.2702 14.2171 19.3613 14.429 19.3613 14.6934C19.3613 14.9622 19.2702 15.1787 19.0879 15.3428C18.9056 15.5023 18.696 15.582 18.459 15.582H8.19141ZM7.34375 18.4873C7.34375 18.1865 7.41667 17.9108 7.5625 17.6602C7.71289 17.4141 7.91113 17.2181 8.15723 17.0723C8.40788 16.9264 8.68359 16.8535 8.98438 16.8535C9.28516 16.8535 9.55859 16.9264 9.80469 17.0723C10.0553 17.2181 10.2536 17.4141 10.3994 17.6602C10.5452 17.9108 10.6182 18.1865 10.6182 18.4873C10.6182 18.7926 10.5452 19.0684 10.3994 19.3145C10.2536 19.5651 10.0553 19.7611 9.80469 19.9023C9.55859 20.0482 9.28516 20.1211 8.98438 20.1211C8.68359 20.1211 8.40788 20.0482 8.15723 19.9023C7.91113 19.7611 7.71289 19.5651 7.5625 19.3145C7.41667 19.0684 7.34375 18.7926 7.34375 18.4873ZM15.3555 18.4873C15.3555 18.1865 15.4284 17.9108 15.5742 17.6602C15.7246 17.4141 15.9229 17.2181 16.1689 17.0723C16.4196 16.9264 16.6953 16.8535 16.9961 16.8535C17.3014 16.8535 17.5771 16.9264 17.8232 17.0723C18.0693 17.2181 18.2653 17.4141 18.4111 17.6602C18.5615 17.9108 18.6367 18.1865 18.6367 18.4873C18.6367 18.7926 18.5615 19.0684 18.4111 19.3145C18.2653 19.5651 18.0693 19.7611 17.8232 19.9023C17.5771 20.0482 17.3014 20.1211 16.9961 20.1211C16.6953 20.1211 16.4196 20.0482 16.1689 19.9023C15.9229 19.7611 15.7246 19.5651 15.5742 19.3145C15.4284 19.0684 15.3555 18.7926 15.3555 18.4873ZM20.5439 9.82617C19.915 9.82617 19.3226 9.70768 18.7666 9.4707C18.2152 9.23372 17.7275 8.90332 17.3037 8.47949C16.8799 8.05566 16.5472 7.56803 16.3057 7.0166C16.0687 6.46061 15.9502 5.86816 15.9502 5.23926C15.9502 4.61035 16.0687 4.02018 16.3057 3.46875C16.5472 2.91732 16.8799 2.42969 17.3037 2.00586C17.7275 1.58203 18.2152 1.25163 18.7666 1.01465C19.3226 0.773112 19.915 0.652344 20.5439 0.652344C21.1729 0.652344 21.763 0.773112 22.3145 1.01465C22.8704 1.25163 23.3581 1.58203 23.7773 2.00586C24.2012 2.42513 24.5316 2.91276 24.7686 3.46875C25.0055 4.02018 25.124 4.61035 25.124 5.23926C25.124 5.86361 25.0033 6.45378 24.7617 7.00977C24.5247 7.5612 24.1943 8.04883 23.7705 8.47266C23.3467 8.89648 22.8568 9.22917 22.3008 9.4707C21.7493 9.70768 21.1637 9.82617 20.5439 9.82617ZM20.5439 8.19922C20.7445 8.19922 20.904 8.13997 21.0225 8.02148C21.141 7.89844 21.2002 7.73893 21.2002 7.54297V5.89551H22.8408C23.0368 5.89551 23.194 5.83626 23.3125 5.71777C23.4355 5.59928 23.4971 5.44206 23.4971 5.24609C23.4971 5.04557 23.4355 4.88607 23.3125 4.76758C23.194 4.64453 23.0368 4.58301 22.8408 4.58301H21.2002V2.95605C21.2002 2.75553 21.141 2.59603 21.0225 2.47754C20.904 2.35905 20.7445 2.2998 20.5439 2.2998C20.3434 2.2998 20.1839 2.36133 20.0654 2.48438C19.9469 2.60286 19.8877 2.76009 19.8877 2.95605V4.58301H18.2539C18.0534 4.58301 17.8916 4.64453 17.7686 4.76758C17.6501 4.88607 17.5908 5.04557 17.5908 5.24609C17.5908 5.44206 17.6523 5.59928 17.7754 5.71777C17.8984 5.83626 18.0579 5.89551 18.2539 5.89551H19.8877V7.54297C19.8877 7.73893 19.9469 7.89844 20.0654 8.02148C20.1839 8.13997 20.3434 8.19922 20.5439 8.19922Z\" fill=\"white\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n\n</style>\n\n\n"],"names":["useI18n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwJgBA,oBAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CardProduct.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<span v-if=\"product.quantity <= 0 && product.listing === 'rent'\" class=\"pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium\">Out of Stock</span>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<span style=\" hyphens: auto;\" class=\"word-break mn-b-thin w-100 w-max-100 t-regular h5\">\n\t\t\t\t{{product.name.substring(0,32)}}...\n\t\t\t</span>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <path d=\"M8.19141 15.582C7.49414 15.582 6.95638 15.3861 6.57812 14.9941C6.19987 14.6022 5.95833 14.0622 5.85352 13.374L4.52734 4.30957H1.9502C1.68587 4.30957 1.45801 4.21387 1.2666 4.02246C1.0752 3.8265 0.979492 3.59408 0.979492 3.3252C0.979492 3.05632 1.0752 2.82617 1.2666 2.63477C1.45801 2.4388 1.68587 2.34082 1.9502 2.34082H4.91699C5.43197 2.34082 5.79655 2.44564 6.01074 2.65527C6.22493 2.86035 6.36393 3.16797 6.42773 3.57812L6.55078 4.42578H14.7471C14.7288 4.5625 14.7152 4.69922 14.7061 4.83594C14.6969 4.97266 14.6924 5.10938 14.6924 5.24609C14.6924 6.04362 14.8405 6.79102 15.1367 7.48828C15.4329 8.18555 15.8454 8.80306 16.374 9.34082C16.9072 9.87858 17.5247 10.3024 18.2266 10.6123C18.9284 10.9176 19.6826 11.0771 20.4893 11.0908L20.4209 11.248C20.2432 11.5671 20.0016 11.8132 19.6963 11.9863C19.391 12.1595 19.0127 12.2461 18.5615 12.2461H7.67188L7.80859 13.1963C7.84049 13.3831 7.90885 13.5335 8.01367 13.6475C8.11849 13.7614 8.25977 13.8184 8.4375 13.8184H18.459C18.696 13.8184 18.9056 13.8981 19.0879 14.0576C19.2702 14.2171 19.3613 14.429 19.3613 14.6934C19.3613 14.9622 19.2702 15.1787 19.0879 15.3428C18.9056 15.5023 18.696 15.582 18.459 15.582H8.19141ZM7.34375 18.4873C7.34375 18.1865 7.41667 17.9108 7.5625 17.6602C7.71289 17.4141 7.91113 17.2181 8.15723 17.0723C8.40788 16.9264 8.68359 16.8535 8.98438 16.8535C9.28516 16.8535 9.55859 16.9264 9.80469 17.0723C10.0553 17.2181 10.2536 17.4141 10.3994 17.6602C10.5452 17.9108 10.6182 18.1865 10.6182 18.4873C10.6182 18.7926 10.5452 19.0684 10.3994 19.3145C10.2536 19.5651 10.0553 19.7611 9.80469 19.9023C9.55859 20.0482 9.28516 20.1211 8.98438 20.1211C8.68359 20.1211 8.40788 20.0482 8.15723 19.9023C7.91113 19.7611 7.71289 19.5651 7.5625 19.3145C7.41667 19.0684 7.34375 18.7926 7.34375 18.4873ZM15.3555 18.4873C15.3555 18.1865 15.4284 17.9108 15.5742 17.6602C15.7246 17.4141 15.9229 17.2181 16.1689 17.0723C16.4196 16.9264 16.6953 16.8535 16.9961 16.8535C17.3014 16.8535 17.5771 16.9264 17.8232 17.0723C18.0693 17.2181 18.2653 17.4141 18.4111 17.6602C18.5615 17.9108 18.6367 18.1865 18.6367 18.4873C18.6367 18.7926 18.5615 19.0684 18.4111 19.3145C18.2653 19.5651 18.0693 19.7611 17.8232 19.9023C17.5771 20.0482 17.3014 20.1211 16.9961 20.1211C16.6953 20.1211 16.4196 20.0482 16.1689 19.9023C15.9229 19.7611 15.7246 19.5651 15.5742 19.3145C15.4284 19.0684 15.3555 18.7926 15.3555 18.4873ZM20.5439 9.82617C19.915 9.82617 19.3226 9.70768 18.7666 9.4707C18.2152 9.23372 17.7275 8.90332 17.3037 8.47949C16.8799 8.05566 16.5472 7.56803 16.3057 7.0166C16.0687 6.46061 15.9502 5.86816 15.9502 5.23926C15.9502 4.61035 16.0687 4.02018 16.3057 3.46875C16.5472 2.91732 16.8799 2.42969 17.3037 2.00586C17.7275 1.58203 18.2152 1.25163 18.7666 1.01465C19.3226 0.773112 19.915 0.652344 20.5439 0.652344C21.1729 0.652344 21.763 0.773112 22.3145 1.01465C22.8704 1.25163 23.3581 1.58203 23.7773 2.00586C24.2012 2.42513 24.5316 2.91276 24.7686 3.46875C25.0055 4.02018 25.124 4.61035 25.124 5.23926C25.124 5.86361 25.0033 6.45378 24.7617 7.00977C24.5247 7.5612 24.1943 8.04883 23.7705 8.47266C23.3467 8.89648 22.8568 9.22917 22.3008 9.4707C21.7493 9.70768 21.1637 9.82617 20.5439 9.82617ZM20.5439 8.19922C20.7445 8.19922 20.904 8.13997 21.0225 8.02148C21.141 7.89844 21.2002 7.73893 21.2002 7.54297V5.89551H22.8408C23.0368 5.89551 23.194 5.83626 23.3125 5.71777C23.4355 5.59928 23.4971 5.44206 23.4971 5.24609C23.4971 5.04557 23.4355 4.88607 23.3125 4.76758C23.194 4.64453 23.0368 4.58301 22.8408 4.58301H21.2002V2.95605C21.2002 2.75553 21.141 2.59603 21.0225 2.47754C20.904 2.35905 20.7445 2.2998 20.5439 2.2998C20.3434 2.2998 20.1839 2.36133 20.0654 2.48438C19.9469 2.60286 19.8877 2.76009 19.8877 2.95605V4.58301H18.2539C18.0534 4.58301 17.8916 4.64453 17.7686 4.76758C17.6501 4.88607 17.5908 5.04557 17.5908 5.24609C17.5908 5.44206 17.6523 5.59928 17.7754 5.71777C17.8984 5.83626 18.0579 5.89551 18.2539 5.89551H19.8877V7.54297C19.8877 7.73893 19.9469 7.89844 20.0654 8.02148C20.1839 8.13997 20.3434 8.19922 20.5439 8.19922Z\" fill=\"white\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n.word-break {\n width: 100%; \n overflow: auto;\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: -moz-pre-wrap;\n white-space: -hp-pre-wrap;\n white-space: -o-pre-wrap;\n white-space: -pre-wrap; \n white-space: pre-wrap; \n white-space: pre-line; \n word-wrap: break-word;\n}\n</style>\n\n\n"],"names":["useI18n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkJgBA,oBAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,10 @@
1
- import { resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createVNode, createCommentVNode, createElementVNode, normalizeClass, toDisplayString, createTextVNode } from "vue";
1
+ import { resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createVNode, createCommentVNode, createElementVNode, normalizeClass, toDisplayString } from "vue";
2
2
  import { useI18n } from "vue-i18n";
3
3
  import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
4
4
  import _sfc_main$2 from "../elements/THC.vue.js";
5
5
  import _sfc_main$3 from "../elements/Price.vue.js";
6
6
  import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
7
+ /* empty css */
7
8
  const _hoisted_1 = { class: "radius-medium cols-1 o-hidden pos-relative" };
8
9
  const _hoisted_2 = ["src"];
9
10
  const _hoisted_3 = {
@@ -11,19 +12,17 @@ const _hoisted_3 = {
11
12
  class: "pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium"
12
13
  };
13
14
  const _hoisted_4 = { class: "pd-small t-left product-card-content" };
14
- const _hoisted_5 = { class: "mn-b-thin t-medium h4" };
15
+ const _hoisted_5 = {
16
+ style: { "hyphens": "auto" },
17
+ class: "word-break mn-b-thin w-100 w-max-100 t-regular h5"
18
+ };
15
19
  const _hoisted_6 = {
16
20
  key: 1,
17
21
  class: "mn-b-small t-transp p-small"
18
22
  };
19
23
  const _hoisted_7 = { class: "flex-v-center flex-nowrap flex" };
20
24
  const _hoisted_8 = {
21
- key: 1,
22
- class: "mn-r-auto"
23
- };
24
- const _hoisted_9 = { class: "t-second h5" };
25
- const _hoisted_10 = {
26
- key: 2,
25
+ key: 0,
27
26
  class: "z-index-2 cursor-pointer radius-extra pd-thin bg-main"
28
27
  };
29
28
  const _sfc_main = {
@@ -94,21 +93,15 @@ const _sfc_main = {
94
93
  __props.product.information[2] && __props.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
95
94
  ])
96
95
  }, toDisplayString(__props.product.information[0].value), 3)) : createCommentVNode("", true),
97
- createElementVNode("p", _hoisted_5, toDisplayString(__props.product.name.substring(0, 16)) + "... ", 1),
96
+ createElementVNode("span", _hoisted_5, toDisplayString(__props.product.name.substring(0, 32)) + "... ", 1),
98
97
  __props.product.description && !__props.product.localization && __props.product.listing !== "rent" ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : createCommentVNode("", true),
99
98
  createElementVNode("div", _hoisted_7, [
100
- __props.product.listing !== "rent" ? (openBlock(), createBlock(_sfc_main$3, {
101
- key: 0,
99
+ createVNode(_sfc_main$3, {
102
100
  product: __props.product,
103
101
  size: "small",
104
102
  class: "mn-r-auto"
105
- }, null, 8, ["product"])) : createCommentVNode("", true),
106
- __props.product.listing === "rent" ? (openBlock(), createElementBlock("div", _hoisted_8, [
107
- createElementVNode("span", _hoisted_9, toDisplayString(__props.product.price + __props.product.price_currency), 1),
108
- _cache[0] || (_cache[0] = createTextVNode()),
109
- _cache[1] || (_cache[1] = createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
110
- ])) : createCommentVNode("", true),
111
- __props.user && __props.product.listing === "rent" ? (openBlock(), createElementBlock("button", _hoisted_10, _cache[2] || (_cache[2] = [
103
+ }, null, 8, ["product"]),
104
+ __props.user && __props.product.listing === "rent" ? (openBlock(), createElementBlock("button", _hoisted_8, _cache[0] || (_cache[0] = [
112
105
  createElementVNode("svg", {
113
106
  class: "i-medium",
114
107
  xmlns: "http://www.w3.org/2000/svg",
@@ -1 +1 @@
1
- {"version":3,"file":"CardProduct.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<span v-if=\"product.quantity <= 0 && product.listing === 'rent'\" class=\"pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium\">Out of Stock</span>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<p class=\"mn-b-thin t-medium h4\">\n\t\t\t\t{{product.name.substring(0,16)}}...\n\t\t\t</p>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\tv-if=\"product.listing !== 'rent'\"\n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\t<div\n\t\t\t\t\t\tv-if=\"product.listing === 'rent'\"\n\t\t\t\t\t\tclass=\"mn-r-auto\"\n\t\t\t\t>\n\t\t\t\t\t<span class=\"t-second h5 \"> {{product.price+product.price_currency }}</span> <span class=\"p-small t-transp\">/ per day </span>\n\t\t\t\t</div>\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <path d=\"M8.19141 15.582C7.49414 15.582 6.95638 15.3861 6.57812 14.9941C6.19987 14.6022 5.95833 14.0622 5.85352 13.374L4.52734 4.30957H1.9502C1.68587 4.30957 1.45801 4.21387 1.2666 4.02246C1.0752 3.8265 0.979492 3.59408 0.979492 3.3252C0.979492 3.05632 1.0752 2.82617 1.2666 2.63477C1.45801 2.4388 1.68587 2.34082 1.9502 2.34082H4.91699C5.43197 2.34082 5.79655 2.44564 6.01074 2.65527C6.22493 2.86035 6.36393 3.16797 6.42773 3.57812L6.55078 4.42578H14.7471C14.7288 4.5625 14.7152 4.69922 14.7061 4.83594C14.6969 4.97266 14.6924 5.10938 14.6924 5.24609C14.6924 6.04362 14.8405 6.79102 15.1367 7.48828C15.4329 8.18555 15.8454 8.80306 16.374 9.34082C16.9072 9.87858 17.5247 10.3024 18.2266 10.6123C18.9284 10.9176 19.6826 11.0771 20.4893 11.0908L20.4209 11.248C20.2432 11.5671 20.0016 11.8132 19.6963 11.9863C19.391 12.1595 19.0127 12.2461 18.5615 12.2461H7.67188L7.80859 13.1963C7.84049 13.3831 7.90885 13.5335 8.01367 13.6475C8.11849 13.7614 8.25977 13.8184 8.4375 13.8184H18.459C18.696 13.8184 18.9056 13.8981 19.0879 14.0576C19.2702 14.2171 19.3613 14.429 19.3613 14.6934C19.3613 14.9622 19.2702 15.1787 19.0879 15.3428C18.9056 15.5023 18.696 15.582 18.459 15.582H8.19141ZM7.34375 18.4873C7.34375 18.1865 7.41667 17.9108 7.5625 17.6602C7.71289 17.4141 7.91113 17.2181 8.15723 17.0723C8.40788 16.9264 8.68359 16.8535 8.98438 16.8535C9.28516 16.8535 9.55859 16.9264 9.80469 17.0723C10.0553 17.2181 10.2536 17.4141 10.3994 17.6602C10.5452 17.9108 10.6182 18.1865 10.6182 18.4873C10.6182 18.7926 10.5452 19.0684 10.3994 19.3145C10.2536 19.5651 10.0553 19.7611 9.80469 19.9023C9.55859 20.0482 9.28516 20.1211 8.98438 20.1211C8.68359 20.1211 8.40788 20.0482 8.15723 19.9023C7.91113 19.7611 7.71289 19.5651 7.5625 19.3145C7.41667 19.0684 7.34375 18.7926 7.34375 18.4873ZM15.3555 18.4873C15.3555 18.1865 15.4284 17.9108 15.5742 17.6602C15.7246 17.4141 15.9229 17.2181 16.1689 17.0723C16.4196 16.9264 16.6953 16.8535 16.9961 16.8535C17.3014 16.8535 17.5771 16.9264 17.8232 17.0723C18.0693 17.2181 18.2653 17.4141 18.4111 17.6602C18.5615 17.9108 18.6367 18.1865 18.6367 18.4873C18.6367 18.7926 18.5615 19.0684 18.4111 19.3145C18.2653 19.5651 18.0693 19.7611 17.8232 19.9023C17.5771 20.0482 17.3014 20.1211 16.9961 20.1211C16.6953 20.1211 16.4196 20.0482 16.1689 19.9023C15.9229 19.7611 15.7246 19.5651 15.5742 19.3145C15.4284 19.0684 15.3555 18.7926 15.3555 18.4873ZM20.5439 9.82617C19.915 9.82617 19.3226 9.70768 18.7666 9.4707C18.2152 9.23372 17.7275 8.90332 17.3037 8.47949C16.8799 8.05566 16.5472 7.56803 16.3057 7.0166C16.0687 6.46061 15.9502 5.86816 15.9502 5.23926C15.9502 4.61035 16.0687 4.02018 16.3057 3.46875C16.5472 2.91732 16.8799 2.42969 17.3037 2.00586C17.7275 1.58203 18.2152 1.25163 18.7666 1.01465C19.3226 0.773112 19.915 0.652344 20.5439 0.652344C21.1729 0.652344 21.763 0.773112 22.3145 1.01465C22.8704 1.25163 23.3581 1.58203 23.7773 2.00586C24.2012 2.42513 24.5316 2.91276 24.7686 3.46875C25.0055 4.02018 25.124 4.61035 25.124 5.23926C25.124 5.86361 25.0033 6.45378 24.7617 7.00977C24.5247 7.5612 24.1943 8.04883 23.7705 8.47266C23.3467 8.89648 22.8568 9.22917 22.3008 9.4707C21.7493 9.70768 21.1637 9.82617 20.5439 9.82617ZM20.5439 8.19922C20.7445 8.19922 20.904 8.13997 21.0225 8.02148C21.141 7.89844 21.2002 7.73893 21.2002 7.54297V5.89551H22.8408C23.0368 5.89551 23.194 5.83626 23.3125 5.71777C23.4355 5.59928 23.4971 5.44206 23.4971 5.24609C23.4971 5.04557 23.4355 4.88607 23.3125 4.76758C23.194 4.64453 23.0368 4.58301 22.8408 4.58301H21.2002V2.95605C21.2002 2.75553 21.141 2.59603 21.0225 2.47754C20.904 2.35905 20.7445 2.2998 20.5439 2.2998C20.3434 2.2998 20.1839 2.36133 20.0654 2.48438C19.9469 2.60286 19.8877 2.76009 19.8877 2.95605V4.58301H18.2539C18.0534 4.58301 17.8916 4.64453 17.7686 4.76758C17.6501 4.88607 17.5908 5.04557 17.5908 5.24609C17.5908 5.44206 17.6523 5.59928 17.7754 5.71777C17.8984 5.83626 18.0579 5.89551 18.2539 5.89551H19.8877V7.54297C19.8877 7.73893 19.9469 7.89844 20.0654 8.02148C20.1839 8.13997 20.3434 8.19922 20.5439 8.19922Z\" fill=\"white\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwJgB,YAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CardProduct.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<span v-if=\"product.quantity <= 0 && product.listing === 'rent'\" class=\"pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium\">Out of Stock</span>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<span style=\" hyphens: auto;\" class=\"word-break mn-b-thin w-100 w-max-100 t-regular h5\">\n\t\t\t\t{{product.name.substring(0,32)}}...\n\t\t\t</span>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <path d=\"M8.19141 15.582C7.49414 15.582 6.95638 15.3861 6.57812 14.9941C6.19987 14.6022 5.95833 14.0622 5.85352 13.374L4.52734 4.30957H1.9502C1.68587 4.30957 1.45801 4.21387 1.2666 4.02246C1.0752 3.8265 0.979492 3.59408 0.979492 3.3252C0.979492 3.05632 1.0752 2.82617 1.2666 2.63477C1.45801 2.4388 1.68587 2.34082 1.9502 2.34082H4.91699C5.43197 2.34082 5.79655 2.44564 6.01074 2.65527C6.22493 2.86035 6.36393 3.16797 6.42773 3.57812L6.55078 4.42578H14.7471C14.7288 4.5625 14.7152 4.69922 14.7061 4.83594C14.6969 4.97266 14.6924 5.10938 14.6924 5.24609C14.6924 6.04362 14.8405 6.79102 15.1367 7.48828C15.4329 8.18555 15.8454 8.80306 16.374 9.34082C16.9072 9.87858 17.5247 10.3024 18.2266 10.6123C18.9284 10.9176 19.6826 11.0771 20.4893 11.0908L20.4209 11.248C20.2432 11.5671 20.0016 11.8132 19.6963 11.9863C19.391 12.1595 19.0127 12.2461 18.5615 12.2461H7.67188L7.80859 13.1963C7.84049 13.3831 7.90885 13.5335 8.01367 13.6475C8.11849 13.7614 8.25977 13.8184 8.4375 13.8184H18.459C18.696 13.8184 18.9056 13.8981 19.0879 14.0576C19.2702 14.2171 19.3613 14.429 19.3613 14.6934C19.3613 14.9622 19.2702 15.1787 19.0879 15.3428C18.9056 15.5023 18.696 15.582 18.459 15.582H8.19141ZM7.34375 18.4873C7.34375 18.1865 7.41667 17.9108 7.5625 17.6602C7.71289 17.4141 7.91113 17.2181 8.15723 17.0723C8.40788 16.9264 8.68359 16.8535 8.98438 16.8535C9.28516 16.8535 9.55859 16.9264 9.80469 17.0723C10.0553 17.2181 10.2536 17.4141 10.3994 17.6602C10.5452 17.9108 10.6182 18.1865 10.6182 18.4873C10.6182 18.7926 10.5452 19.0684 10.3994 19.3145C10.2536 19.5651 10.0553 19.7611 9.80469 19.9023C9.55859 20.0482 9.28516 20.1211 8.98438 20.1211C8.68359 20.1211 8.40788 20.0482 8.15723 19.9023C7.91113 19.7611 7.71289 19.5651 7.5625 19.3145C7.41667 19.0684 7.34375 18.7926 7.34375 18.4873ZM15.3555 18.4873C15.3555 18.1865 15.4284 17.9108 15.5742 17.6602C15.7246 17.4141 15.9229 17.2181 16.1689 17.0723C16.4196 16.9264 16.6953 16.8535 16.9961 16.8535C17.3014 16.8535 17.5771 16.9264 17.8232 17.0723C18.0693 17.2181 18.2653 17.4141 18.4111 17.6602C18.5615 17.9108 18.6367 18.1865 18.6367 18.4873C18.6367 18.7926 18.5615 19.0684 18.4111 19.3145C18.2653 19.5651 18.0693 19.7611 17.8232 19.9023C17.5771 20.0482 17.3014 20.1211 16.9961 20.1211C16.6953 20.1211 16.4196 20.0482 16.1689 19.9023C15.9229 19.7611 15.7246 19.5651 15.5742 19.3145C15.4284 19.0684 15.3555 18.7926 15.3555 18.4873ZM20.5439 9.82617C19.915 9.82617 19.3226 9.70768 18.7666 9.4707C18.2152 9.23372 17.7275 8.90332 17.3037 8.47949C16.8799 8.05566 16.5472 7.56803 16.3057 7.0166C16.0687 6.46061 15.9502 5.86816 15.9502 5.23926C15.9502 4.61035 16.0687 4.02018 16.3057 3.46875C16.5472 2.91732 16.8799 2.42969 17.3037 2.00586C17.7275 1.58203 18.2152 1.25163 18.7666 1.01465C19.3226 0.773112 19.915 0.652344 20.5439 0.652344C21.1729 0.652344 21.763 0.773112 22.3145 1.01465C22.8704 1.25163 23.3581 1.58203 23.7773 2.00586C24.2012 2.42513 24.5316 2.91276 24.7686 3.46875C25.0055 4.02018 25.124 4.61035 25.124 5.23926C25.124 5.86361 25.0033 6.45378 24.7617 7.00977C24.5247 7.5612 24.1943 8.04883 23.7705 8.47266C23.3467 8.89648 22.8568 9.22917 22.3008 9.4707C21.7493 9.70768 21.1637 9.82617 20.5439 9.82617ZM20.5439 8.19922C20.7445 8.19922 20.904 8.13997 21.0225 8.02148C21.141 7.89844 21.2002 7.73893 21.2002 7.54297V5.89551H22.8408C23.0368 5.89551 23.194 5.83626 23.3125 5.71777C23.4355 5.59928 23.4971 5.44206 23.4971 5.24609C23.4971 5.04557 23.4355 4.88607 23.3125 4.76758C23.194 4.64453 23.0368 4.58301 22.8408 4.58301H21.2002V2.95605C21.2002 2.75553 21.141 2.59603 21.0225 2.47754C20.904 2.35905 20.7445 2.2998 20.5439 2.2998C20.3434 2.2998 20.1839 2.36133 20.0654 2.48438C19.9469 2.60286 19.8877 2.76009 19.8877 2.95605V4.58301H18.2539C18.0534 4.58301 17.8916 4.64453 17.7686 4.76758C17.6501 4.88607 17.5908 5.04557 17.5908 5.24609C17.5908 5.44206 17.6523 5.59928 17.7754 5.71777C17.8984 5.83626 18.0579 5.89551 18.2539 5.89551H19.8877V7.54297C19.8877 7.73893 19.9469 7.89844 20.0654 8.02148C20.1839 8.13997 20.3434 8.19922 20.5439 8.19922Z\" fill=\"white\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n.word-break {\n width: 100%; \n overflow: auto;\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: -moz-pre-wrap;\n white-space: -hp-pre-wrap;\n white-space: -o-pre-wrap;\n white-space: -pre-wrap; \n white-space: pre-wrap; \n white-space: pre-line; \n word-wrap: break-word;\n}\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkJgB,YAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,6 +6,11 @@ const _hoisted_1 = {
6
6
  key: 0,
7
7
  class: "pd-r-small t-transp t-transp p-medium line-through price"
8
8
  };
9
+ const _hoisted_2 = {
10
+ key: 1,
11
+ class: "mn-r-auto"
12
+ };
13
+ const _hoisted_3 = { class: "t-second h5" };
9
14
  const _sfc_main = {
10
15
  __name: "Price",
11
16
  props: {
@@ -14,7 +19,8 @@ const _sfc_main = {
14
19
  },
15
20
  setup(__props) {
16
21
  return (_ctx, _cache) => {
17
- return vue.openBlock(), vue.createElementBlock("div", {
22
+ return __props.product.listing !== "rent" ? (vue.openBlock(), vue.createElementBlock("div", {
23
+ key: 0,
18
24
  class: vue.normalizeClass([
19
25
  "price-tag radius-small",
20
26
  {
@@ -33,7 +39,11 @@ const _sfc_main = {
33
39
  )
34
40
  }, vue.toDisplayString(__props.product.price) + " " + vue.toDisplayString(__props.product.price_currency) + " " + vue.toDisplayString(__props.product.listing === "rent" ? "per day" : ""), 3),
35
41
  __props.product.sale ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1, vue.toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + vue.toDisplayString(__props.product.price_currency), 1)) : vue.createCommentVNode("", true)
36
- ], 2);
42
+ ], 2)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
43
+ vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(__props.product.price + __props.product.price_currency), 1),
44
+ _cache[0] || (_cache[0] = vue.createTextVNode()),
45
+ _cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
46
+ ]));
37
47
  };
38
48
  }
39
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Price.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Price.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,14 @@
1
- import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
1
+ import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createTextVNode } from "vue";
2
2
  /* empty css */
3
3
  const _hoisted_1 = {
4
4
  key: 0,
5
5
  class: "pd-r-small t-transp t-transp p-medium line-through price"
6
6
  };
7
+ const _hoisted_2 = {
8
+ key: 1,
9
+ class: "mn-r-auto"
10
+ };
11
+ const _hoisted_3 = { class: "t-second h5" };
7
12
  const _sfc_main = {
8
13
  __name: "Price",
9
14
  props: {
@@ -12,7 +17,8 @@ const _sfc_main = {
12
17
  },
13
18
  setup(__props) {
14
19
  return (_ctx, _cache) => {
15
- return openBlock(), createElementBlock("div", {
20
+ return __props.product.listing !== "rent" ? (openBlock(), createElementBlock("div", {
21
+ key: 0,
16
22
  class: normalizeClass([
17
23
  "price-tag radius-small",
18
24
  {
@@ -31,7 +37,11 @@ const _sfc_main = {
31
37
  )
32
38
  }, toDisplayString(__props.product.price) + " " + toDisplayString(__props.product.price_currency) + " " + toDisplayString(__props.product.listing === "rent" ? "per day" : ""), 3),
33
39
  __props.product.sale ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + toDisplayString(__props.product.price_currency), 1)) : createCommentVNode("", true)
34
- ], 2);
40
+ ], 2)) : (openBlock(), createElementBlock("div", _hoisted_2, [
41
+ createElementVNode("span", _hoisted_3, toDisplayString(__props.product.price + __props.product.price_currency), 1),
42
+ _cache[0] || (_cache[0] = createTextVNode()),
43
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
44
+ ]));
35
45
  };
36
46
  }
37
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Price.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Price.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -18,7 +18,9 @@ const _sfc_main = {
18
18
  "onUpdate:sort": _cache[0] || (_cache[0] = ($event) => marketplace.state.sort = $event),
19
19
  filter: marketplace.state.filter,
20
20
  "onUpdate:filter": _cache[1] || (_cache[1] = ($event) => marketplace.state.filter = $event),
21
- search: true,
21
+ search: {
22
+ autofocus: true
23
+ },
22
24
  showLoadMore: false,
23
25
  states: {
24
26
  empty: {
@@ -1 +1 @@
1
- {"version":3,"file":"Catalog.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"true\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute"],"mappings":";;;;;;;;;;;;AAuDC,UAAM,QAAQA,UAAAA,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Catalog.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"{\n \tautofocus:true\n }\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute"],"mappings":";;;;;;;;;;;;AAyDC,UAAM,QAAQA,UAAAA,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -16,7 +16,9 @@ const _sfc_main = {
16
16
  "onUpdate:sort": _cache[0] || (_cache[0] = ($event) => state.sort = $event),
17
17
  filter: state.filter,
18
18
  "onUpdate:filter": _cache[1] || (_cache[1] = ($event) => state.filter = $event),
19
- search: true,
19
+ search: {
20
+ autofocus: true
21
+ },
20
22
  showLoadMore: false,
21
23
  states: {
22
24
  empty: {
@@ -1 +1 @@
1
- {"version":3,"file":"Catalog.vue.js","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"true\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":[],"mappings":";;;;;;;;;;AAuDC,UAAM,QAAQ,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Catalog.vue.js","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"{\n \tautofocus:true\n }\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":[],"mappings":";;;;;;;;;;AAyDC,UAAM,QAAQ,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -13,7 +13,7 @@ const Block = require("../../../../components/Block/Block.vue.cjs");
13
13
  ;/* empty css */
14
14
  ;/* empty css */
15
15
  ;/* empty css */
16
- require("../blocks/CardCategory.vue2.cjs");
16
+ ;/* empty css */
17
17
  const CategoriesTree = require("../sections/CategoriesTree.vue.cjs");
18
18
  const IconPlus = require("../../../icons/navigation/IconPlus.vue.cjs");
19
19
  const _hoisted_1 = { class: "pd-thin bg-white" };
@@ -11,7 +11,7 @@ import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
- import "../blocks/CardCategory.vue2.js";
14
+ /* empty css */
15
15
  import _sfc_main$4 from "../sections/CategoriesTree.vue.js";
16
16
  import _sfc_main$1 from "../../../icons/navigation/IconPlus.vue.js";
17
17
  const _hoisted_1 = { class: "pd-thin bg-white" };