@ozdao/prometheus-framework 0.1.68 → 0.1.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/dist/BackofficeGallery-59a591ab.js +1 -0
  2. package/dist/BackofficeGallery-be6f69a9.mjs +307 -0
  3. package/dist/BackofficeReports-06166952.js +1 -0
  4. package/dist/BackofficeReports-50fd799c.mjs +44 -0
  5. package/dist/BlockTags-00325fa0.mjs +853 -0
  6. package/dist/BlockTags-58f95c8a.js +1 -0
  7. package/dist/ButtonToggleMembership-84d0e018.mjs +90 -0
  8. package/dist/ButtonToggleMembership-b905812f.js +1 -0
  9. package/dist/CardBlogpost-1b81b54e.mjs +246 -0
  10. package/dist/CardBlogpost-7107e04a.js +1 -0
  11. package/dist/CardOrganization-49ab5190.mjs +234 -0
  12. package/dist/CardOrganization-e6ac27f1.js +1 -0
  13. package/dist/CardProduct-4c0cb9a1.js +1 -0
  14. package/dist/CardProduct-ea0e1f84.mjs +192 -0
  15. package/dist/Chips-817cf959.js +1 -0
  16. package/dist/Chips-8c836ba6.mjs +213 -0
  17. package/dist/Community-8c4e011b.js +1 -0
  18. package/dist/Community-bd6f0cbb.mjs +131 -0
  19. package/dist/Dashboard-73b50724.js +1 -0
  20. package/dist/Dashboard-bc81b5f6.mjs +151 -0
  21. package/dist/Dropdown-60e3dc6c.js +1 -0
  22. package/dist/Dropdown-d1c81d45.mjs +169 -0
  23. package/dist/EditOrder-2b746caf.mjs +221 -0
  24. package/dist/EditOrder-e632f0cc.js +1 -0
  25. package/dist/Events-999cc8ed.js +1 -0
  26. package/dist/Events-ad8bbf27.mjs +134 -0
  27. package/dist/Feed-35e13c22.mjs +156 -0
  28. package/dist/Feed-53d96b18.mjs +361 -0
  29. package/dist/Feed-694a2fad.js +1 -0
  30. package/dist/Feed-ac4bb6ea.js +1 -0
  31. package/dist/Feed-d1d01771.js +1 -0
  32. package/dist/Feed-f7c04014.mjs +124 -0
  33. package/dist/Image-61cfd52d.js +9 -0
  34. package/dist/Image-e8be4acc.mjs +480 -0
  35. package/dist/LeftoverAdd-a268a95c.js +1 -0
  36. package/dist/LeftoverAdd-e4d93760.mjs +229 -0
  37. package/dist/Leftovers-6976802d.mjs +135 -0
  38. package/dist/Leftovers-d8f1d152.js +1 -0
  39. package/dist/Members-aeb2bca1.mjs +109 -0
  40. package/dist/Members-b9664e83.js +1 -0
  41. package/dist/Menu-93d34d9f.js +1 -0
  42. package/dist/Menu-eaf6b44c.mjs +13 -0
  43. package/dist/MenuItem-4a5881bd.mjs +85 -0
  44. package/dist/MenuItem-f35cad93.js +1 -0
  45. package/dist/Orders-8bc8963c.js +1 -0
  46. package/dist/Orders-eb262d8c.mjs +75 -0
  47. package/dist/Organizations-9926aa51.mjs +72 -0
  48. package/dist/Organizations-c653d814.js +1 -0
  49. package/dist/Payments-98328000.js +1 -0
  50. package/dist/Payments-a9066cdf.mjs +11 -0
  51. package/dist/Popup-0d8e1392.mjs +96 -0
  52. package/dist/Popup-eb11fa82.js +1 -0
  53. package/dist/Product-15043af7.mjs +651 -0
  54. package/dist/Product-82c022a4.js +7 -0
  55. package/dist/ProductEdit-05da9866.mjs +258 -0
  56. package/dist/ProductEdit-2f075296.js +1 -0
  57. package/dist/ProductsBackoffice-8462f626.js +1 -0
  58. package/dist/ProductsBackoffice-8d0f0ee8.mjs +85 -0
  59. package/dist/ProfileBlogposts-43855cb9.js +1 -0
  60. package/dist/ProfileBlogposts-f32170a3.mjs +78 -0
  61. package/dist/ProfileEvents-54be2d43.mjs +69 -0
  62. package/dist/ProfileEvents-ab69e27e.js +1 -0
  63. package/dist/ProfileOrganizations-0787cf34.mjs +72 -0
  64. package/dist/ProfileOrganizations-eb62dde4.js +1 -0
  65. package/dist/Publics-8e726d20.mjs +45 -0
  66. package/dist/Publics-ae589bf1.js +1 -0
  67. package/dist/Select-95f4701a.js +1 -0
  68. package/dist/Select-dab17282.mjs +80 -0
  69. package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js +1 -0
  70. package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs +1 -0
  71. package/dist/Socials-43293869.js +1 -0
  72. package/dist/Socials-8193477c.mjs +189 -0
  73. package/dist/UploadImage-0e8e4278.mjs +83 -0
  74. package/dist/UploadImage-8c71bda6.js +1 -0
  75. package/dist/UploadImageMultiple-c34a6c6f.mjs +58 -0
  76. package/dist/UploadImageMultiple-d1316df5.js +1 -0
  77. package/dist/Wallet-727195d9.mjs +21700 -0
  78. package/dist/Wallet-f4dda407.js +10 -0
  79. package/dist/auth-04684a60.js +7 -0
  80. package/dist/auth-7e39361f.mjs +633 -0
  81. package/dist/auth.client.cjs +1 -1
  82. package/dist/auth.client.js +5 -5
  83. package/dist/auth.validation-d614130d.js +1 -0
  84. package/dist/auth.validation-f4bf1deb.mjs +24 -0
  85. package/dist/axios-33aeb810.mjs +1435 -0
  86. package/dist/axios-ceccf20e.js +5 -0
  87. package/dist/backoffice.client.cjs +1 -1
  88. package/dist/backoffice.client.js +20 -20
  89. package/dist/categories-7e17a7eb.js +1 -0
  90. package/dist/categories-b7f9e8c0.mjs +122 -0
  91. package/dist/community.client.cjs +1 -1
  92. package/dist/community.client.js +209 -202
  93. package/dist/events.client.cjs +2 -2
  94. package/dist/events.client.js +24 -27
  95. package/dist/landing.client.cjs +1 -1
  96. package/dist/landing.client.js +64 -40
  97. package/dist/leftovers-86e7d438.mjs +67 -0
  98. package/dist/leftovers-c9f70579.js +1 -0
  99. package/dist/legal.client.cjs +1 -1
  100. package/dist/legal.client.js +6 -7
  101. package/dist/memberships-559590ad.mjs +68 -0
  102. package/dist/memberships-58af22e0.js +1 -0
  103. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -1
  104. package/dist/orders-1325c51b.js +1 -0
  105. package/dist/orders-c7cbe706.mjs +85 -0
  106. package/dist/organizations-71777b32.js +1 -0
  107. package/dist/organizations-93f7b610.mjs +122 -0
  108. package/dist/organizations.client-6ca27fb3.js +3 -0
  109. package/dist/organizations.client-bd63a7b2.mjs +2997 -0
  110. package/dist/organizations.client.cjs +1 -1
  111. package/dist/organizations.client.js +56 -61
  112. package/dist/products-61d83d74.js +1 -0
  113. package/dist/products-7f1e5a75.mjs +108 -0
  114. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  116. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  117. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  118. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  120. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  122. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  126. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  127. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  128. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  129. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  130. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  134. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +24 -21
  138. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  168. package/dist/reports-a67b4fb4.js +1 -0
  169. package/dist/reports-c579b02a.mjs +91 -0
  170. package/dist/reports.client.cjs +1 -1
  171. package/dist/reports.client.js +2 -2
  172. package/dist/states.validation-3b4604bc.mjs +13 -0
  173. package/dist/states.validation-9b43a097.js +1 -0
  174. package/dist/style.css +1 -1
  175. package/dist/users.client.cjs +1 -1
  176. package/dist/users.client.js +279 -208
  177. package/package.json +1 -1
  178. package/src/components/Search/Search.vue +1 -1
  179. package/src/components/Status/Status.vue +1 -1
  180. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  181. package/src/modules/backoffice/components/admin/Categories.vue +1 -1
  182. package/src/modules/backoffice/components/admin/CategoryEdit.vue +1 -1
  183. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  184. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  185. package/src/modules/backoffice/components/admin/PageEdit.vue +1 -1
  186. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  187. package/src/modules/backoffice/components/admin/User.vue +1 -1
  188. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  189. package/src/modules/events/components/pages/Events.vue +2 -2
  190. package/src/modules/orders/components/blocks/Positions.vue +1 -1
  191. package/src/modules/orders/components/pages/ViewOrder.vue +1 -1
  192. package/src/modules/products/components/sections/ProductInformationSection.vue +2 -5
@@ -0,0 +1,151 @@
1
+ import { openBlock as p, createElementBlock as u, createVNode as a, withCtx as e, unref as o, createElementVNode as t } from "vue";
2
+ import { _ as m } from "./Menu-eaf6b44c.mjs";
3
+ import { _ as i } from "./MenuItem-4a5881bd.mjs";
4
+ import { useRoute as d, useRouter as _ } from "vue-router";
5
+ import "./_plugin-vue_export-helper-dad06003.mjs";
6
+ const f = { class: "" }, c = /* @__PURE__ */ t("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ t("span", null, " Organizations ", -1), v = /* @__PURE__ */ t("span", null, " Events ", -1), B = /* @__PURE__ */ t("span", null, " Community ", -1), C = /* @__PURE__ */ t("span", null, " Products ", -1), $ = /* @__PURE__ */ t("span", null, " Leftovers ", -1), y = /* @__PURE__ */ t("span", null, " Orders ", -1), h = /* @__PURE__ */ t("span", null, " Payments ", -1), g = /* @__PURE__ */ t("span", null, " Gallery ", -1), E = /* @__PURE__ */ t("span", null, " Reports ", -1), L = {
7
+ __name: "Dashboard",
8
+ props: {
9
+ favorites: Array
10
+ },
11
+ setup(O) {
12
+ const n = d(), r = _();
13
+ return (P, s) => (p(), u("div", f, [
14
+ c,
15
+ a(m, { class: "bg-grey" }, {
16
+ default: e(() => [
17
+ a(i, {
18
+ onClick: s[0] || (s[0] = (l) => o(r).push({
19
+ name: "Backoffice Organizations",
20
+ params: {
21
+ _id: o(n).params._id
22
+ }
23
+ })),
24
+ class: "cursor-pointer"
25
+ }, {
26
+ default: e(() => [
27
+ k
28
+ ]),
29
+ _: 1
30
+ }),
31
+ a(i, {
32
+ onClick: s[1] || (s[1] = (l) => o(r).push({
33
+ name: "Backoffice Events",
34
+ params: {
35
+ _id: o(n).params._id
36
+ }
37
+ })),
38
+ class: "cursor-pointer"
39
+ }, {
40
+ default: e(() => [
41
+ v
42
+ ]),
43
+ _: 1
44
+ }),
45
+ a(i, {
46
+ onClick: s[2] || (s[2] = (l) => o(r).push({
47
+ name: "Backoffice Community",
48
+ params: {
49
+ _id: o(n).params._id
50
+ }
51
+ })),
52
+ class: "cursor-pointer"
53
+ }, {
54
+ default: e(() => [
55
+ B
56
+ ]),
57
+ _: 1
58
+ }),
59
+ a(i, {
60
+ onClick: s[3] || (s[3] = (l) => o(r).push({
61
+ name: "Backoffice Products",
62
+ params: {
63
+ _id: o(n).params._id
64
+ }
65
+ })),
66
+ class: "cursor-pointer"
67
+ }, {
68
+ default: e(() => [
69
+ C
70
+ ]),
71
+ _: 1
72
+ }),
73
+ a(i, {
74
+ onClick: s[4] || (s[4] = (l) => o(r).push({
75
+ name: "Backoffice Leftovers",
76
+ params: {
77
+ _id: o(n).params._id
78
+ }
79
+ })),
80
+ class: "cursor-pointer"
81
+ }, {
82
+ default: e(() => [
83
+ $
84
+ ]),
85
+ _: 1
86
+ }),
87
+ a(i, {
88
+ onClick: s[5] || (s[5] = (l) => o(r).push({
89
+ name: "Backoffice Orders",
90
+ params: {
91
+ _id: o(n).params._id
92
+ }
93
+ })),
94
+ class: "cursor-pointer"
95
+ }, {
96
+ default: e(() => [
97
+ y
98
+ ]),
99
+ _: 1
100
+ }),
101
+ a(i, {
102
+ onClick: s[6] || (s[6] = (l) => o(r).push({
103
+ name: "Backoffice Payments",
104
+ params: {
105
+ _id: o(n).params._id
106
+ }
107
+ })),
108
+ class: "cursor-pointer"
109
+ }, {
110
+ default: e(() => [
111
+ h
112
+ ]),
113
+ _: 1
114
+ }),
115
+ a(i, {
116
+ onClick: s[7] || (s[7] = (l) => o(r).push({
117
+ name: "Backoffice Gallery",
118
+ params: {
119
+ _id: o(n).params._id
120
+ }
121
+ })),
122
+ class: "cursor-pointer"
123
+ }, {
124
+ default: e(() => [
125
+ g
126
+ ]),
127
+ _: 1
128
+ }),
129
+ a(i, {
130
+ onClick: s[8] || (s[8] = (l) => o(r).push({
131
+ name: "Backoffice Reports",
132
+ params: {
133
+ _id: o(n).params._id
134
+ }
135
+ })),
136
+ class: "cursor-pointer"
137
+ }, {
138
+ default: e(() => [
139
+ E
140
+ ]),
141
+ _: 1
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]));
147
+ }
148
+ };
149
+ export {
150
+ L as default
151
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("./_plugin-vue_export-helper-f246444f.js"),d=require("./Popup-eb11fa82.js"),f=require("./Button-7643c9aa.js"),m=require("./Select-95f4701a.js"),_=require("./reports-a67b4fb4.js"),g=require("./click-outside-0b0727d1.js"),v={},h={viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),y=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),b=[w,y];function C(o,r){return e.openBlock(),e.createElementBlock("svg",h,b)}const k=u._export_sfc(v,[["render",C]]),S=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),x=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),V=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),N={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(o){const r=o,t=e.reactive({user:r.user,type:r.type,reason:r.reason,target:r.target,status:r.status});function l(){t.user===null&&delete t.user,_.actions.create(t)}const n=e.ref(!1);function s(){n.value=!0}function a(){n.value=!1}return(p,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:i[0]||(i[0]=c=>s())},[e.renderSlot(p.$slots,"default")]),e.createVNode(d._sfc_main,{onClosePopup:a,isPopupOpen:n.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[S,x,e.createVNode(m.Select,{select:t.reason,"onUpdate:select":i[1]||(i[1]=c=>t.reason=c),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),V,e.createVNode(f._sfc_main,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};const q={__name:"Dropdown",props:{label:{type:String,default:"Open"},align:{type:String,default:"left"}},setup(o){let r=g.clickOutside;const t=e.ref(!1);function l(){t.value=!1}return(n,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:s[0]||(s[0]=e.withModifiers(a=>t.value=!t.value,["stop"]))},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:o.align==="left"?"0":"auto",right:o.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(n.$slots,"default",{},void 0,!0)],4),[[e.vShow,t.value]])]),_:3})])),[[e.unref(r),l]])}},$=u._export_sfc(q,[["__scopeId","data-v-5646d77f"]]);exports.Dropdown=$;exports.PlaceholderUserpic=k;exports._sfc_main=N;
@@ -0,0 +1,169 @@
1
+ import { openBlock as c, createElementBlock as d, createElementVNode as o, reactive as y, ref as _, Fragment as b, renderSlot as g, createVNode as a, withCtx as u, createTextVNode as v, withDirectives as f, withModifiers as C, toDisplayString as S, Transition as k, normalizeStyle as x, vShow as $, unref as O } from "vue";
2
+ import { _ as h } from "./_plugin-vue_export-helper-dad06003.mjs";
3
+ import { _ as P } from "./Popup-0d8e1392.mjs";
4
+ import { _ as D } from "./Button-9e1a9284.mjs";
5
+ import { S as R } from "./Select-dab17282.mjs";
6
+ import { a as q } from "./reports-c579b02a.mjs";
7
+ import { c as T } from "./click-outside-6101836c.mjs";
8
+ const B = {}, M = {
9
+ viewBox: "0 0 42 42",
10
+ fill: "none",
11
+ xmlns: "http://www.w3.org/2000/svg"
12
+ }, N = /* @__PURE__ */ o("circle", {
13
+ fill: "rgb(var(--main))",
14
+ cx: "21",
15
+ cy: "21",
16
+ r: "21"
17
+ }, null, -1), V = /* @__PURE__ */ o("path", {
18
+ fill: "#242424",
19
+ "fill-opacity": "0.1",
20
+ "fill-rule": "evenodd",
21
+ "clip-rule": "evenodd",
22
+ d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
23
+ }, null, -1), E = [
24
+ N,
25
+ V
26
+ ];
27
+ function F(s, t) {
28
+ return c(), d("svg", M, E);
29
+ }
30
+ const K = /* @__PURE__ */ h(B, [["render", F]]), I = /* @__PURE__ */ o("h3", { class: "mn-small" }, " Report Content ", -1), U = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), Z = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), L = {
31
+ __name: "FormReport",
32
+ props: {
33
+ user: {
34
+ type: String,
35
+ required: !1
36
+ },
37
+ type: {
38
+ type: String,
39
+ required: !1
40
+ },
41
+ reason: {
42
+ type: String,
43
+ required: !1
44
+ },
45
+ target: {
46
+ type: String,
47
+ required: !0
48
+ },
49
+ text: {
50
+ type: String,
51
+ default: "!"
52
+ },
53
+ status: {
54
+ type: String,
55
+ default: "new"
56
+ }
57
+ },
58
+ setup(s) {
59
+ const t = s, e = y({
60
+ user: t.user,
61
+ type: t.type,
62
+ reason: t.reason,
63
+ target: t.target,
64
+ status: t.status
65
+ });
66
+ function l() {
67
+ e.user === null && delete e.user, q.create(e);
68
+ }
69
+ const r = _(!1);
70
+ function n() {
71
+ r.value = !0;
72
+ }
73
+ function p() {
74
+ r.value = !1;
75
+ }
76
+ return (w, i) => (c(), d(b, null, [
77
+ o("div", {
78
+ onClick: i[0] || (i[0] = (m) => n())
79
+ }, [
80
+ g(w.$slots, "default")
81
+ ]),
82
+ a(P, {
83
+ onClosePopup: p,
84
+ isPopupOpen: r.value,
85
+ class: "w-m-33r t-left pd-big bg-white radius-big"
86
+ }, {
87
+ default: u(() => [
88
+ I,
89
+ U,
90
+ a(R, {
91
+ select: e.reason,
92
+ "onUpdate:select": i[1] || (i[1] = (m) => e.reason = m),
93
+ options: [
94
+ "harassment",
95
+ "spam",
96
+ "inappropriate",
97
+ "misinformation",
98
+ "copyright",
99
+ "other"
100
+ ],
101
+ placeholder: "Select reason",
102
+ class: "mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"
103
+ }, null, 8, ["select"]),
104
+ Z,
105
+ a(D, {
106
+ submit: l,
107
+ callback: p,
108
+ class: "w-100 bg-black t-white"
109
+ }, {
110
+ default: u(() => [
111
+ v(" Report ")
112
+ ]),
113
+ _: 1
114
+ })
115
+ ]),
116
+ _: 1
117
+ }, 8, ["isPopupOpen"])
118
+ ], 64));
119
+ }
120
+ };
121
+ const z = {
122
+ __name: "Dropdown",
123
+ props: {
124
+ label: {
125
+ type: String,
126
+ default: "Open"
127
+ },
128
+ align: {
129
+ type: String,
130
+ default: "left"
131
+ }
132
+ },
133
+ setup(s) {
134
+ let t = T;
135
+ const e = _(!1);
136
+ function l() {
137
+ e.value = !1;
138
+ }
139
+ return (r, n) => f((c(), d("div", {
140
+ class: "dropdown pos-relative",
141
+ onClick: n[0] || (n[0] = C((p) => e.value = !e.value, ["stop"]))
142
+ }, [
143
+ v(S(s.label) + " ", 1),
144
+ a(k, {
145
+ name: "TransitionTranslateY",
146
+ mode: "out-in"
147
+ }, {
148
+ default: u(() => [
149
+ f(o("div", {
150
+ style: x({ left: s.align === "left" ? "0" : "auto", right: s.align === "right" ? "0" : "auto" }),
151
+ class: "dropdown-content w-15r radius-big"
152
+ }, [
153
+ g(r.$slots, "default", {}, void 0, !0)
154
+ ], 4), [
155
+ [$, e.value]
156
+ ])
157
+ ]),
158
+ _: 3
159
+ })
160
+ ])), [
161
+ [O(t), l]
162
+ ]);
163
+ }
164
+ }, Q = /* @__PURE__ */ h(z, [["__scopeId", "data-v-5646d77f"]]);
165
+ export {
166
+ Q as D,
167
+ K as P,
168
+ L as _
169
+ };
@@ -0,0 +1,221 @@
1
+ import { reactive as K, toRefs as Q, ref as f, onMounted as W, computed as k, resolveComponent as X, openBlock as o, createElementBlock as n, Fragment as B, createElementVNode as s, createTextVNode as _, toDisplayString as l, unref as e, createCommentVNode as i, createVNode as Y, renderList as Z } from "vue";
2
+ import { useRoute as ss } from "vue-router";
3
+ import { a as h, s as y } from "./orders-c7cbe706.mjs";
4
+ import "./axios-33aeb810.mjs";
5
+ import "./globals-96ba60e4.mjs";
6
+ import "vue-i18n";
7
+ const es = /* @__PURE__ */ s("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
8
+ /* @__PURE__ */ s("h2", { class: "mn-r-medium" }, "Edit Order")
9
+ ], -1), ts = { class: "gap-thin flex-nowrap flex mn-semi" }, os = { class: "w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium" }, ns = { class: "mn-small p-big" }, ls = /* @__PURE__ */ s("br", null, null, -1), is = /* @__PURE__ */ s("button", { class: "button" }, "Подтвердить заказ", -1), as = { class: "w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium" }, cs = { class: "mn-semi p-big" }, ds = /* @__PURE__ */ s("br", null, null, -1), rs = /* @__PURE__ */ s("button", { class: "button" }, "Изменить статус оплаты", -1), _s = { class: "mn-thin cols-2" }, ms = { class: "" }, us = { class: "w-100 mn-small" }, hs = { class: "cols-2 mn-medium" }, ps = { class: "col flex block" }, vs = { class: "mn-small w-100" }, fs = /* @__PURE__ */ s("br", null, null, -1), ks = { class: "mn-small w-100" }, ys = { class: "mn-small w-100" }, bs = { class: "col flex block" }, ws = { class: "mn-small w-100" }, gs = { class: "mn-small w-100" }, Cs = { class: "mn-small w-100" }, xs = { class: "block" }, Os = { class: "w-100" }, $s = { class: "" }, Ps = { class: "order-list" }, Is = { class: "flex" }, Vs = /* @__PURE__ */ s("h5", { class: "mn-small" }, " Состав заказа ", -1), Es = {
10
+ key: 0,
11
+ class: "mn-small w-100 block"
12
+ }, zs = { class: "mn-semi" }, Ns = { class: "text-left" }, Ts = { class: "name" }, Ls = { class: "mn-small flex" }, qs = { class: "small-underline variant" }, Ss = {
13
+ key: 0,
14
+ class: ""
15
+ }, As = {
16
+ key: 1,
17
+ class: ""
18
+ }, Bs = {
19
+ key: 2,
20
+ class: ""
21
+ }, Fs = {
22
+ key: 3,
23
+ class: ""
24
+ }, Rs = { key: 4 }, Ds = { class: "t-demi" }, Ms = {
25
+ key: 0,
26
+ class: "flex-nowrap flex w-100"
27
+ }, Us = ["onInput", "value"], js = ["onClick"], Gs = ["onClick"], Hs = ["onClick"], Js = { class: "mn-thinw-100 flex-v-center flex block" }, Ks = { class: "p-big" }, Qs = {
28
+ key: 0,
29
+ class: "p-big t-semi"
30
+ }, Ws = {
31
+ key: 1,
32
+ class: "p-big t-semi"
33
+ }, Xs = {
34
+ key: 2,
35
+ class: "p-big t-semi"
36
+ }, Ys = { key: 3 }, Zs = { key: 4 }, se = { key: 5 }, ee = /* @__PURE__ */ s("button", { class: "mn-l-auto button" }, "Запросить онлайн", -1), ce = {
37
+ __name: "EditOrder",
38
+ props: ["showProduct"],
39
+ setup(F) {
40
+ const R = F, b = ss();
41
+ R.showProduct = [];
42
+ let m = K([]);
43
+ Q(m);
44
+ var r = f(!1);
45
+ let a = f({}), D = f([]);
46
+ function M() {
47
+ h.addProductToOrder(), r.value = !r.value;
48
+ }
49
+ W(async () => {
50
+ await h.fetchProducts(), await h.fetchOrder(b.params.id), a.value = y.current, D.value = y.all;
51
+ });
52
+ function U(d) {
53
+ h.deleteItemFromOrder(d);
54
+ }
55
+ function j() {
56
+ h.updateOrderItems(b.params.id);
57
+ }
58
+ function w(d) {
59
+ m[d] = !m[d];
60
+ }
61
+ function g() {
62
+ r.value = !r.value;
63
+ }
64
+ const G = k(() => y.products.all), p = k(() => 100), H = k(() => []);
65
+ return (d, c) => {
66
+ var C, x, O, $, P, I, V, E, z, N, T, L, q, S, A;
67
+ const J = X("vue-select");
68
+ return o(), n(B, null, [
69
+ es,
70
+ s("section", ts, [
71
+ s("div", os, [
72
+ s("p", ns, [
73
+ _(" Статус заказа:"),
74
+ ls,
75
+ _(l(e(a).status), 1)
76
+ ]),
77
+ is
78
+ ]),
79
+ s("div", as, [
80
+ s("p", cs, [
81
+ _("Статус оплаты:"),
82
+ ds,
83
+ _(l((C = e(a).payment) == null ? void 0 : C.status), 1)
84
+ ]),
85
+ rs
86
+ ])
87
+ ]),
88
+ s("div", _s, [
89
+ s("section", ms, [
90
+ s("h5", us, [
91
+ _("Информация о заказе "),
92
+ e(r) === !1 ? (o(), n("a", {
93
+ key: 0,
94
+ class: "mn-l-small t-main h5",
95
+ onClick: c[0] || (c[0] = (t) => d.reserOrderList())
96
+ }, "Редактировать")) : i("", !0)
97
+ ]),
98
+ s("div", hs, [
99
+ s("div", ps, [
100
+ s("p", vs, [
101
+ _(" Номер клиента: " + l((x = e(a).info) == null ? void 0 : x.phone), 1),
102
+ fs
103
+ ]),
104
+ s("p", ks, " Имя клиента: " + l((O = e(a).info) == null ? void 0 : O.name) + " " + l(($ = e(a).info) == null ? void 0 : $.surname), 1),
105
+ s("p", ys, " Контактный email: " + l((P = e(a).info) == null ? void 0 : P.email), 1)
106
+ ]),
107
+ s("div", bs, [
108
+ s("p", ws, " Тип доставки: " + l((I = e(a).info) == null ? void 0 : I.delivery), 1),
109
+ s("p", gs, " Город: " + l((V = e(a).info) == null ? void 0 : V.city), 1),
110
+ s("p", Cs, " Адресс: " + l((E = e(a).info) == null ? void 0 : E.adress), 1)
111
+ ])
112
+ ]),
113
+ s("div", xs, [
114
+ s("p", Os, " Комментарий: " + l((z = e(a).info) == null ? void 0 : z.comment), 1)
115
+ ])
116
+ ]),
117
+ s("section", $s, [
118
+ s("div", Ps, [
119
+ s("div", Is, [
120
+ Vs,
121
+ s("div", null, [
122
+ e(r) === !1 ? (o(), n("a", {
123
+ key: 0,
124
+ class: "t-main h5",
125
+ onClick: c[1] || (c[1] = (t) => g())
126
+ }, "Добавить")) : (o(), n("a", {
127
+ key: 1,
128
+ class: "t-main h5",
129
+ onClick: c[2] || (c[2] = (t) => g())
130
+ }, "Закрыть")),
131
+ e(r) === !1 ? (o(), n("a", {
132
+ key: 2,
133
+ class: "mn-l-small t-main h5",
134
+ onClick: c[3] || (c[3] = (t) => d.reserOrderList())
135
+ }, "Сбросить")) : i("", !0),
136
+ e(r) === !1 ? (o(), n("a", {
137
+ key: 3,
138
+ class: "mn-l-small t-main h5",
139
+ onClick: c[4] || (c[4] = (t) => j())
140
+ }, "Сохранить")) : i("", !0)
141
+ ])
142
+ ]),
143
+ e(r) !== !1 ? (o(), n("div", Es, [
144
+ Y(J, {
145
+ options: e(G),
146
+ modelValue: d.techStack,
147
+ "onUpdate:modelValue": c[5] || (c[5] = (t) => d.techStack = t),
148
+ "label-by": "name",
149
+ searchable: "",
150
+ "clear-on-close": "",
151
+ "close-on-select": !0
152
+ }, null, 8, ["options", "modelValue"]),
153
+ s("button", {
154
+ onClick: c[6] || (c[6] = (t) => M()),
155
+ class: "w-25 button"
156
+ }, "Добавить в заказ")
157
+ ])) : i("", !0),
158
+ s("ul", zs, [
159
+ (o(!0), n(B, null, Z(e(H), (t, u) => (o(), n("li", {
160
+ key: t.id,
161
+ class: "shop-cart-item mn-small block"
162
+ }, [
163
+ s("div", Ns, [
164
+ s("p", Ts, l(t.name), 1),
165
+ s("div", Ls, [
166
+ s("div", qs, [
167
+ !t.size && !t.color ? (o(), n("span", Ss, "One-size")) : i("", !0),
168
+ t.size ? (o(), n("span", As, l(t.size), 1)) : i("", !0),
169
+ t.color && t.size ? (o(), n("span", Bs, ", ")) : i("", !0),
170
+ t.color ? (o(), n("span", Fs, l(t.color), 1)) : i("", !0),
171
+ t.edit ? (o(), n("div", Rs, l(t.edit), 1)) : i("", !0)
172
+ ]),
173
+ s("p", Ds, l(t.quantity) + " x " + l(t.price / 100) + " ₽ ", 1)
174
+ ]),
175
+ e(m)[u] ? (o(), n("div", Ms, [
176
+ s("input", {
177
+ onInput: (v) => d.updateInputText("orders", "current.items[" + u + "].quantity", v),
178
+ value: t.quantity,
179
+ placeholder: "Маргарита",
180
+ class: "mn-small input-text input"
181
+ }, null, 40, Us)
182
+ ])) : i("", !0),
183
+ e(m)[u] ? i("", !0) : (o(), n("a", {
184
+ key: 1,
185
+ onClick: (v) => w(u)
186
+ }, "Редактировать", 8, js)),
187
+ e(m)[u] ? (o(), n("a", {
188
+ key: 2,
189
+ onClick: (v) => U(t)
190
+ }, "Удалить", 8, Gs)) : i("", !0),
191
+ e(m)[u] ? (o(), n("a", {
192
+ key: 3,
193
+ onClick: (v) => w(u)
194
+ }, "Закрыть", 8, Hs)) : i("", !0)
195
+ ])
196
+ ]))), 128))
197
+ ])
198
+ ])
199
+ ])
200
+ ]),
201
+ s("div", Js, [
202
+ s("p", Ks, [
203
+ _("Сумма к оплате: "),
204
+ ((N = e(a).info) == null ? void 0 : N.delivery) === "Самовывоз" ? (o(), n("span", Qs, l(e(p) / 100) + " ₽", 1)) : i("", !0),
205
+ ((T = e(a).info) == null ? void 0 : T.delivery) === "Курьером" ? (o(), n("span", Ws, l(e(p) / 100 + 350) + " ₽", 1)) : i("", !0),
206
+ ((L = e(a).info) == null ? void 0 : L.delivery) === "Почтой" ? (o(), n("span", Xs, l(e(p) / 100 + 550) + " ₽", 1)) : i("", !0),
207
+ _(" (Заказ " + l(e(p) / 100) + " ₽ + доставка ", 1),
208
+ ((q = e(a).info) == null ? void 0 : q.delivery) === "Самовывоз" ? (o(), n("span", Ys, "0")) : i("", !0),
209
+ ((S = e(a).info) == null ? void 0 : S.delivery) === "Курьером" ? (o(), n("span", Zs, "350")) : i("", !0),
210
+ ((A = e(a).info) == null ? void 0 : A.delivery) === "Почтой" ? (o(), n("span", se, "550")) : i("", !0),
211
+ _(" ₽) ")
212
+ ]),
213
+ ee
214
+ ])
215
+ ], 64);
216
+ };
217
+ }
218
+ };
219
+ export {
220
+ ce as default
221
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("vue-router"),c=require("./orders-1325c51b.js");require("./axios-ceccf20e.js");require("./globals-928eb13c.js");require("vue-i18n");const F=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Edit Order")],-1),R={class:"gap-thin flex-nowrap flex mn-semi"},A={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},M={class:"mn-small p-big"},j=e.createElementVNode("br",null,null,-1),U=e.createElementVNode("button",{class:"button"},"Подтвердить заказ",-1),G={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},H={class:"mn-semi p-big"},J=e.createElementVNode("br",null,null,-1),K=e.createElementVNode("button",{class:"button"},"Изменить статус оплаты",-1),Q={class:"mn-thin cols-2"},W={class:""},X={class:"w-100 mn-small"},Y={class:"cols-2 mn-medium"},Z={class:"col flex block"},ee={class:"mn-small w-100"},te=e.createElementVNode("br",null,null,-1),oe={class:"mn-small w-100"},ne={class:"mn-small w-100"},se={class:"col flex block"},le={class:"mn-small w-100"},ce={class:"mn-small w-100"},ae={class:"mn-small w-100"},re={class:"block"},ie={class:"w-100"},de={class:""},me={class:"order-list"},ue={class:"flex"},_e=e.createElementVNode("h5",{class:"mn-small"}," Состав заказа ",-1),pe={key:0,class:"mn-small w-100 block"},ke={class:"mn-semi"},fe={class:"text-left"},Ve={class:"name"},Ne={class:"mn-small flex"},Ee={class:"small-underline variant"},he={key:0,class:""},ye={key:1,class:""},ve={key:2,class:""},Be={key:3,class:""},be={key:4},ge={class:"t-demi"},Ce={key:0,class:"flex-nowrap flex w-100"},Se=["onInput","value"],we=["onClick"],De=["onClick"],xe=["onClick"],Te={class:"mn-thinw-100 flex-v-center flex block"},Oe={class:"p-big"},$e={key:0,class:"p-big t-semi"},qe={key:1,class:"p-big t-semi"},Pe={key:2,class:"p-big t-semi"},Ie={key:3},ze={key:4},Le={key:5},Fe=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),Re={__name:"EditOrder",props:["showProduct"],setup(D){const x=D,m=L.useRoute();x.showProduct=[];let a=e.reactive([]);e.toRefs(a);var l=e.ref(!1);let o=e.ref({}),T=e.ref([]);function O(){c.actions.addProductToOrder(),l.value=!l.value}e.onMounted(async()=>{await c.actions.fetchProducts(),await c.actions.fetchOrder(m.params.id),o.value=c.state.current,T.value=c.state.all});function $(s){c.actions.deleteItemFromOrder(s)}function q(){c.actions.updateOrderItems(m.params.id)}function u(s){a[s]=!a[s]}function _(){l.value=!l.value}const P=e.computed(()=>c.state.products.all),i=e.computed(()=>100),I=e.computed(()=>[]);return(s,n)=>{var p,k,f,V,N,E,h,y,v,B,b,g,C,S,w;const z=e.resolveComponent("vue-select");return e.openBlock(),e.createElementBlock(e.Fragment,null,[F,e.createElementVNode("section",R,[e.createElementVNode("div",A,[e.createElementVNode("p",M,[e.createTextVNode(" Статус заказа:"),j,e.createTextVNode(e.toDisplayString(e.unref(o).status),1)]),U]),e.createElementVNode("div",G,[e.createElementVNode("p",H,[e.createTextVNode("Статус оплаты:"),J,e.createTextVNode(e.toDisplayString((p=e.unref(o).payment)==null?void 0:p.status),1)]),K])]),e.createElementVNode("div",Q,[e.createElementVNode("section",W,[e.createElementVNode("h5",X,[e.createTextVNode("Информация о заказе "),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:0,class:"mn-l-small t-main h5",onClick:n[0]||(n[0]=t=>s.reserOrderList())},"Редактировать")):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[e.createElementVNode("p",ee,[e.createTextVNode(" Номер клиента: "+e.toDisplayString((k=e.unref(o).info)==null?void 0:k.phone),1),te]),e.createElementVNode("p",oe," Имя клиента: "+e.toDisplayString((f=e.unref(o).info)==null?void 0:f.name)+" "+e.toDisplayString((V=e.unref(o).info)==null?void 0:V.surname),1),e.createElementVNode("p",ne," Контактный email: "+e.toDisplayString((N=e.unref(o).info)==null?void 0:N.email),1)]),e.createElementVNode("div",se,[e.createElementVNode("p",le," Тип доставки: "+e.toDisplayString((E=e.unref(o).info)==null?void 0:E.delivery),1),e.createElementVNode("p",ce," Город: "+e.toDisplayString((h=e.unref(o).info)==null?void 0:h.city),1),e.createElementVNode("p",ae," Адресс: "+e.toDisplayString((y=e.unref(o).info)==null?void 0:y.adress),1)])]),e.createElementVNode("div",re,[e.createElementVNode("p",ie," Комментарий: "+e.toDisplayString((v=e.unref(o).info)==null?void 0:v.comment),1)])]),e.createElementVNode("section",de,[e.createElementVNode("div",me,[e.createElementVNode("div",ue,[_e,e.createElementVNode("div",null,[e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:0,class:"t-main h5",onClick:n[1]||(n[1]=t=>_())},"Добавить")):(e.openBlock(),e.createElementBlock("a",{key:1,class:"t-main h5",onClick:n[2]||(n[2]=t=>_())},"Закрыть")),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:2,class:"mn-l-small t-main h5",onClick:n[3]||(n[3]=t=>s.reserOrderList())},"Сбросить")):e.createCommentVNode("",!0),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:3,class:"mn-l-small t-main h5",onClick:n[4]||(n[4]=t=>q())},"Сохранить")):e.createCommentVNode("",!0)])]),e.unref(l)!==!1?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(z,{options:e.unref(P),modelValue:s.techStack,"onUpdate:modelValue":n[5]||(n[5]=t=>s.techStack=t),"label-by":"name",searchable:"","clear-on-close":"","close-on-select":!0},null,8,["options","modelValue"]),e.createElementVNode("button",{onClick:n[6]||(n[6]=t=>O()),class:"w-25 button"},"Добавить в заказ")])):e.createCommentVNode("",!0),e.createElementVNode("ul",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),(t,r)=>(e.openBlock(),e.createElementBlock("li",{key:t.id,class:"shop-cart-item mn-small block"},[e.createElementVNode("div",fe,[e.createElementVNode("p",Ve,e.toDisplayString(t.name),1),e.createElementVNode("div",Ne,[e.createElementVNode("div",Ee,[!t.size&&!t.color?(e.openBlock(),e.createElementBlock("span",he,"One-size")):e.createCommentVNode("",!0),t.size?(e.openBlock(),e.createElementBlock("span",ye,e.toDisplayString(t.size),1)):e.createCommentVNode("",!0),t.color&&t.size?(e.openBlock(),e.createElementBlock("span",ve,", ")):e.createCommentVNode("",!0),t.color?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(t.color),1)):e.createCommentVNode("",!0),t.edit?(e.openBlock(),e.createElementBlock("div",be,e.toDisplayString(t.edit),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",ge,e.toDisplayString(t.quantity)+" x "+e.toDisplayString(t.price/100)+" ₽ ",1)]),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("input",{onInput:d=>s.updateInputText("orders","current.items["+r+"].quantity",d),value:t.quantity,placeholder:"Маргарита",class:"mn-small input-text input"},null,40,Se)])):e.createCommentVNode("",!0),e.unref(a)[r]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:1,onClick:d=>u(r)},"Редактировать",8,we)),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:d=>$(t)},"Удалить",8,De)):e.createCommentVNode("",!0),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:d=>u(r)},"Закрыть",8,xe)):e.createCommentVNode("",!0)])]))),128))])])])]),e.createElementVNode("div",Te,[e.createElementVNode("p",Oe,[e.createTextVNode("Сумма к оплате: "),((B=e.unref(o).info)==null?void 0:B.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(e.unref(i)/100)+" ₽",1)):e.createCommentVNode("",!0),((b=e.unref(o).info)==null?void 0:b.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",qe,e.toDisplayString(e.unref(i)/100+350)+" ₽",1)):e.createCommentVNode("",!0),((g=e.unref(o).info)==null?void 0:g.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(e.unref(i)/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(e.unref(i)/100)+" ₽ + доставка ",1),((C=e.unref(o).info)==null?void 0:C.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",Ie,"0")):e.createCommentVNode("",!0),((S=e.unref(o).info)==null?void 0:S.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",ze,"350")):e.createCommentVNode("",!0),((w=e.unref(o).info)==null?void 0:w.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",Le,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),Fe])],64)}}};exports.default=Re;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("vue-router");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const o=require("./Feed-694a2fad.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const f=require("./EmptyState-d65bab5b.js"),m=require("./_plugin-vue_export-helper-f246444f.js"),u=require("./auth-04684a60.js"),y={},h={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},k=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),v=[k];function b(c,t){return e.openBlock(),e.createElementBlock("svg",h,v)}const w=m._export_sfc(y,[["render",b]]);const x={class:"today-events"},d={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(c){const t=c,r=e.ref([]),a=e.ref(!0),p=e.ref(0),i=e.ref(5);return e.onMounted(async()=>{const l=await o.read({skip:p.value,limit:i.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=l,a.value=!1}),(l,q)=>(e.openBlock(),e.createElementBlock("section",x,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,n=>(e.openBlock(),e.createBlock(w,{key:n}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&r.value.length<1?(e.openBlock(),e.createBlock(f._sfc_main,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(n,g)=>(e.openBlock(),e.createBlock(o._sfc_main$1,{onClick:E=>l.$router.push({name:"Event",params:{url:n.url}}),key:n._id,event:n,owner:c.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},_={__name:"Events",setup(c){const t=s.useRoute();return s.useRouter(),(r,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(d,{user:u.state.user._id,class:"bg-grey mn-thin radius-big",phase:"week"},null,8,["user"]),e.createVNode(o._sfc_main,{category:e.unref(t).params.category,user:u.state.user._id,period:e.unref(t).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},B=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"}));exports.Events=B;exports._sfc_main=d;exports._sfc_main$1=_;