@ozdao/prometheus-framework 0.2.50 → 0.2.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. package/dist/main-482dc398.mjs +13626 -0
  2. package/dist/main-b2JI9sFg.js +91 -0
  3. package/dist/main-c56d4c09.js +91 -0
  4. package/dist/main-x-9D8zvb.mjs +13604 -0
  5. package/dist/main.css +1 -1
  6. package/dist/organizations.server.js +22 -16
  7. package/dist/organizations.server.mjs +22 -16
  8. package/dist/products.server.js +32 -16
  9. package/dist/products.server.mjs +32 -16
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue.js +223 -2
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  14. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +19 -19
  16. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  18. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  20. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  22. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +2 -2
  24. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Map/Map.vue.js +35 -2
  26. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Map/Map.vue2.js +2 -35
  28. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  30. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  32. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  56. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  60. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -0
  63. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +37 -0
  64. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -14
  68. package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.cjs +1 -0
  69. package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.js +24 -0
  70. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  74. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  76. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +49 -101
  84. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +25 -25
  85. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +68 -39
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +38 -47
  89. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +69 -62
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +134 -129
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +128 -158
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +13 -13
  107. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  111. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +44 -44
  119. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  123. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +64 -51
  125. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +22 -23
  133. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/products/store/products.js +23 -23
  137. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  143. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  147. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
  151. package/dist/prometheus-framework.cjs.js +1 -1
  152. package/dist/prometheus-framework.es.js +1 -1
  153. package/dist/style.css +1 -1
  154. package/dist/web-6dcbb74b.mjs +55 -0
  155. package/dist/web-caJAdsxy.js +1 -0
  156. package/dist/web-ee302c1d.js +1 -0
  157. package/dist/web-i08OVMw9.mjs +55 -0
  158. package/package.json +1 -1
  159. package/src/components/Button/Button.vue +3 -3
  160. package/src/components/Feed/Feed.vue +2 -1
  161. package/src/components/LocationMarker/LocationMarker.vue +1 -0
  162. package/src/modules/applications/applications.client.js +0 -1
  163. package/src/modules/globals/components/blocks/BlockSearch.vue +42 -0
  164. package/src/modules/icons/entities/IconProfile.vue +10 -1
  165. package/src/modules/icons/entities/IconShopcart.vue +12 -2
  166. package/src/modules/marketplace/components/layouts/Marketplace.vue +7 -14
  167. package/src/modules/mobile/components/BottomNavigation/BottomNavigation.vue +86 -0
  168. package/src/modules/mobile/components/BottomSheet/BottomSheet.vue +86 -0
  169. package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +152 -0
  170. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +195 -0
  171. package/src/modules/orders/components/partials/ShopCart.vue +4 -1
  172. package/src/modules/organizations/components/blocks/CardDepartment.vue +34 -66
  173. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +50 -13
  174. package/src/modules/organizations/components/blocks/User.vue +19 -10
  175. package/src/modules/organizations/components/pages/Department.vue +19 -3
  176. package/src/modules/organizations/components/pages/DepartmentEdit.vue +14 -10
  177. package/src/modules/organizations/components/pages/Organization.vue +38 -72
  178. package/src/modules/organizations/components/sections/Feed.vue +1 -1
  179. package/src/modules/organizations/controllers/memberships.controller.js +27 -24
  180. package/src/modules/organizations/controllers/organizations.controller.js +0 -1
  181. package/src/modules/products/components/pages/EditLeftover.vue +6 -4
  182. package/src/modules/products/components/pages/Products.vue +58 -38
  183. package/src/modules/products/components/sections/FilterProducts.vue +5 -5
  184. package/src/modules/products/controllers/leftovers.controller.js +12 -5
  185. package/src/modules/products/controllers/products.controller.js +30 -9
  186. package/src/modules/products/store/products.js +4 -0
  187. package/src/styles/layout.scss +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../../globals/store/globals.cjs");require("../../store/orders.cjs");const a=require("../../../../components/Block/Block.vue.cjs"),o=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/FieldPhone/FieldPhone2.vue.cjs"),s=require("../../../../components/Select/Select.vue2.cjs"),m=require("../../../../components/Address/Address.vue2.cjs"),c=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),n=require("../../../../components/Radio/Radio.vue.cjs"),y={class:"order-form col"},f=t.createElementVNode("p",{class:"mn-b-small"}," Prefer to chat instead of calling? Just drop your messenger info here: ",-1),v={class:"flex-nowrap flex"},b={class:"mn-b-small flex-nowrap flex"},p={class:"mn-b-small flex-nowrap flex"},g={__name:"FormOrderDetails",props:{order:Object},setup(l){const i=l;return t.onMounted(()=>{r.state.position&&(i.order.delivery.address=r.state.position.address),r.state.position&&(i.order.delivery.location=r.state.position.location)}),(w,e)=>(t.openBlock(),t.createElementBlock("div",y,[t.createVNode(a.default,{title:"Personal Data",class:"mn-b-thin"},{default:t.withCtx(()=>[t.createVNode(o.default,{field:l.order.user.name,"onUpdate:field":e[0]||(e[0]=d=>l.order.user.name=d),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),t.createVNode(u.default,{modelValue:l.order.user.phone,"onUpdate:modelValue":e[1]||(e[1]=d=>l.order.user.phone=d),onCountry:e[2]||(e[2]=d=>{l.order.user.number=d}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"]),f,t.createElementVNode("div",v,[t.createVNode(s.default,{options:[{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[3]||(e[3]=d=>l.order.user.messenger.type=d.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),t.createVNode(o.default,{field:l.order.user.messenger.value,"onUpdate:field":e[4]||(e[4]=d=>l.order.user.messenger.value=d),placeholder:"Enter your contact here",class:"bg-white pd-medium radius-small w-100"},null,8,["field"])])]),_:1}),t.createVNode(a.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[t.createElementVNode("div",b,[t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[5]||(e[5]=d=>l.order.delivery.type=d),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[6]||(e[6]=d=>l.order.delivery.type=d),label:"Post",value:"Post",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),t.createVNode(m.default,{label:"Address",apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":e[7]||(e[7]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[8]||(e[8]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(c.default,{apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":e[9]||(e[9]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[10]||(e[10]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(o.default,{field:l.order.comment,"onUpdate:field":e[11]||(e[11]=d=>l.order.comment=d),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]),t.createVNode(a.default,{title:"Payment"},{default:t.withCtx(()=>[t.createElementVNode("div",p,[t.createVNode(s.default,{select:l.order.payment.type,"onUpdate:select":e[12]||(e[12]=d=>l.order.payment.type=d),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../../globals/store/globals.cjs");require("../../store/orders.cjs");const a=require("../../../../components/Block/Block.vue.cjs"),o=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/FieldPhone/FieldPhone2.vue.cjs"),s=require("../../../../components/Select/Select.vue2.cjs"),m=require("../../../../components/Address/Address.vue2.cjs"),c=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),n=require("../../../../components/Radio/Radio.vue.cjs"),y={class:"order-form col"},f=t.createElementVNode("p",{class:"mn-b-small"}," Prefer to chat instead of calling? Just drop your messenger info here: ",-1),v={class:"flex-nowrap flex"},b={class:"mn-b-small flex-nowrap flex"},p={class:"mn-b-small flex-nowrap flex"},g={__name:"FormOrderDetails",props:{order:Object},setup(l){const i=l;return t.onMounted(()=>{r.state.position&&(i.order.delivery.address=r.state.position.address),r.state.position&&(i.order.delivery.location=r.state.position.location)}),(w,e)=>(t.openBlock(),t.createElementBlock("div",y,[t.createVNode(a.default,{title:"Personal Data",class:"mn-b-thin"},{default:t.withCtx(()=>[t.createVNode(o.default,{field:l.order.user.name,"onUpdate:field":e[0]||(e[0]=d=>l.order.user.name=d),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),t.createVNode(u.default,{modelValue:l.order.user.phone,"onUpdate:modelValue":e[1]||(e[1]=d=>l.order.user.phone=d),onCountry:e[2]||(e[2]=d=>{l.order.user.number=d}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"]),f,t.createElementVNode("div",v,[t.createVNode(s.default,{options:[{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[3]||(e[3]=d=>l.order.user.messenger.type=d.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),t.createVNode(o.default,{field:l.order.user.messenger.value,"onUpdate:field":e[4]||(e[4]=d=>l.order.user.messenger.value=d),placeholder:"Enter your contact here",class:"bg-white pd-medium radius-small w-100"},null,8,["field"])])]),_:1}),t.createVNode(a.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[t.createElementVNode("div",b,[t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[5]||(e[5]=d=>l.order.delivery.type=d),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[6]||(e[6]=d=>l.order.delivery.type=d),label:"Post",value:"Post",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),t.createVNode(m.default,{label:"Address",apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":e[7]||(e[7]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[8]||(e[8]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(c.default,{apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":e[9]||(e[9]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[10]||(e[10]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(o.default,{field:l.order.comment,"onUpdate:field":e[11]||(e[11]=d=>l.order.comment=d),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]),t.createVNode(a.default,{title:"Payment"},{default:t.withCtx(()=>[t.createElementVNode("div",p,[t.createVNode(s.default,{select:l.order.payment.type,"onUpdate:select":e[12]||(e[12]=d=>l.order.payment.type=d),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1})]))}};exports.default=g;
@@ -2,7 +2,7 @@ import { onMounted as y, openBlock as p, createElementBlock as f, createVNode as
2
2
  import { state as t } from "../../../globals/store/globals.js";
3
3
  import "../../store/orders.js";
4
4
  import i from "../../../../components/Block/Block.vue.js";
5
- import s from "../../../../components/Field/Field.vue2.js";
5
+ import s from "../../../../components/Field/Field.vue.js";
6
6
  import v from "../../../../components/FieldPhone/FieldPhone2.vue.js";
7
7
  import m from "../../../../components/Select/Select.vue2.js";
8
8
  import b from "../../../../components/Address/Address.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Spoiler/Spoiler.vue2.cjs");require("../../../../components/Map/Map.vue.cjs");const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),m=require("./DepartmentSub.vue.cjs"),u=require("./User.vue.cjs");require("./CardDepartment.vue2.cjs");const l=t=>(e.pushScopeId("data-v-05e8aa03"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden cols-2-1_3"},h={class:"pd-medium w-100"},g=l(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"rgb(var(--black))"},null,-1)),L=[g],b=["innerHTML"],v={class:"pd-small flex-v-center flex-nowrap flex"},w=l(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),k={class:"mn-r-small"},f=l(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),C={key:0},_={class:"pd-small flex-v-center flex-nowrap flex"},E=l(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),V={class:"mn-r-small"},B=l(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),N={key:0},x={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const a=t;return(o,r)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[(e.openBlock(),e.createElementBlock("svg",{onClick:r[0]||(r[0]=n=>o.$router.push(`/organizations/${a.organization}/departments/${t.department._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L)),e.createElementVNode("h3",{onClick:r[1]||(r[1]=n=>o.$router.push(`/organizations/${a.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,b),e.createVNode(d.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",v,[w,e.createElementVNode("p",k,e.toDisplayString(t.department.members.length)+" человек",1),f])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",C,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(n,s)=>(e.openBlock(),e.createBlock(u.default,{class:"br-b br-solid br-grey",key:s,user:n.user,position:n.position,onClick:i=>o.$router.push(`/app/profile/${n.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(d.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",_,[E,e.createElementVNode("p",V,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),B])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",N,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(n,s)=>(e.openBlock(),e.createBlock(m.default,{onClick:i=>o.$router.push(`/organization/departments/${n._id}`),key:s,class:"br-b br-solid br-grey",department:n},null,8,["onClick","department"]))),128))])]),_:1})])]))}},$=c.default(x,[["__scopeId","data-v-05e8aa03"]]);exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=require("./User.vue.cjs");require("./CardDepartment.vue2.cjs");const d={class:"radius-big o-hidden cols-2-1_3"},p={class:"pd-medium w-100"},m=["innerHTML"],g={key:0},k={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const n=t;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",p,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:t.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=r=>o.$router.push(`/organizations/${n.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,m),e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",g,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(r,i)=>(e.openBlock(),e.createBlock(c.default,{class:"br-b br-solid br-grey",key:i,user:r.user,position:r.position,onClick:b=>o.$router.push(`/app/profile/${r.user._id}`)},null,8,["user","position","onClick"]))),128))])])])}}},_=u.default(k,[["__scopeId","data-v-745afcf2"]]);exports.default=_;
@@ -1,112 +1,60 @@
1
- import { openBlock as s, createElementBlock as o, createElementVNode as t, createVNode as p, withCtx as a, toDisplayString as c, createCommentVNode as h, Fragment as u, renderList as g, createBlock as L, pushScopeId as w, popScopeId as f } from "vue";
2
- import b from "../../../../components/Spoiler/Spoiler.vue2.js";
3
- import "../../../../components/Map/Map.vue.js";
4
- import _ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- import C from "./DepartmentSub.vue.js";
1
+ import { resolveComponent as p, openBlock as r, createElementBlock as o, createElementVNode as n, createVNode as l, withCtx as c, createCommentVNode as u, Fragment as _, renderList as f, createBlock as g } from "vue";
2
+ import h from "../../../icons/navigation/IconEdit.vue.js";
3
+ import "../../../../components/Spoiler/Spoiler.vue.js";
4
+ import "./DepartmentSub.vue2.js";
5
+ import b from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
6
  import k from "./User.vue.js";
7
7
  import "./CardDepartment.vue2.js";
8
- const r = (e) => (w("data-v-05e8aa03"), e = e(), f(), e), $ = { class: "radius-big o-hidden cols-2-1_3" }, x = { class: "pd-medium w-100" }, y = /* @__PURE__ */ r(() => /* @__PURE__ */ t("path", {
9
- d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
10
- fill: "rgb(var(--black))"
11
- }, null, -1)), M = [
12
- y
13
- ], z = ["innerHTML"], A = { class: "pd-small flex-v-center flex-nowrap flex" }, B = /* @__PURE__ */ r(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Contacts ", -1)), Z = { class: "mn-r-small" }, S = /* @__PURE__ */ r(() => /* @__PURE__ */ t("svg", {
14
- width: "14",
15
- height: "9",
16
- viewBox: "0 0 14 9",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- }, [
20
- /* @__PURE__ */ t("path", {
21
- "fill-rule": "evenodd",
22
- "clip-rule": "evenodd",
23
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
24
- fill: "#8A8A8A"
25
- })
26
- ], -1)), D = { key: 0 }, H = { class: "pd-small flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ r(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Working Hours ", -1)), N = { class: "mn-r-small" }, V = /* @__PURE__ */ r(() => /* @__PURE__ */ t("svg", {
27
- width: "14",
28
- height: "9",
29
- viewBox: "0 0 14 9",
30
- fill: "none",
31
- xmlns: "http://www.w3.org/2000/svg"
32
- }, [
33
- /* @__PURE__ */ t("path", {
34
- "fill-rule": "evenodd",
35
- "clip-rule": "evenodd",
36
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
37
- fill: "#8A8A8A"
38
- })
39
- ], -1)), j = { key: 0 }, E = {
8
+ const C = { class: "radius-big o-hidden cols-2-1_3" }, $ = { class: "pd-medium w-100" }, v = ["innerHTML"], w = { key: 0 }, z = {
40
9
  __name: "CardDepartment",
41
10
  props: {
42
11
  department: Object,
43
12
  organization: Object
44
13
  },
45
14
  setup(e) {
46
- const m = e;
47
- return (l, i) => (s(), o("div", $, [
48
- t("div", x, [
49
- (s(), o("svg", {
50
- onClick: i[0] || (i[0] = (n) => l.$router.push(`/organizations/${m.organization}/departments/${e.department._id}/edit`)),
51
- class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
52
- width: "652",
53
- height: "652",
54
- viewBox: "0 0 652 652",
55
- fill: "none",
56
- xmlns: "http://www.w3.org/2000/svg"
57
- }, M)),
58
- t("h3", {
59
- onClick: i[1] || (i[1] = (n) => l.$router.push(`/organizations/${m.organization}/departments/${e.department._id}`)),
60
- class: "mn-b-small w-100",
61
- innerHTML: e.department.profile.name
62
- }, null, 8, z),
63
- p(b, { class: "radius-small o-hidden br-1px br-solid br-grey mn-b-thin" }, {
64
- header: a(() => [
65
- t("div", A, [
66
- B,
67
- t("p", Z, c(e.department.members.length) + " человек", 1),
68
- S
69
- ])
70
- ]),
71
- content: a(() => [
72
- t("ul", null, [
73
- e.department.members.length < 1 ? (s(), o("li", D, "В отделе еще нет участников")) : h("", !0),
74
- (s(!0), o(u, null, g(e.department.members, (n, d) => (s(), L(k, {
75
- class: "br-b br-solid br-grey",
76
- key: d,
77
- user: n.user,
78
- position: n.position,
79
- onClick: (v) => l.$router.push(`/app/profile/${n.user._id}`)
80
- }, null, 8, ["user", "position", "onClick"]))), 128))
81
- ])
82
- ]),
83
- _: 1
84
- }),
85
- p(b, { class: "radius-small o-hidden br-1px br-solid br-grey mn-b-thin" }, {
86
- header: a(() => [
87
- t("div", H, [
88
- I,
89
- t("p", N, c(e.department.subdepartments ? e.department.subdepartments.length : 0) + " отделов", 1),
90
- V
91
- ])
92
- ]),
93
- content: a(() => [
94
- t("ul", null, [
95
- e.department.subdepartments.length < 1 ? (s(), o("li", j, "В отделе еще нет подотделов")) : h("", !0),
96
- (s(!0), o(u, null, g(e.department.subdepartments, (n, d) => (s(), L(C, {
97
- onClick: (v) => l.$router.push(`/organization/departments/${n._id}`),
98
- key: d,
99
- class: "br-b br-solid br-grey",
100
- department: n
101
- }, null, 8, ["onClick", "department"]))), 128))
102
- ])
103
- ]),
104
- _: 1
105
- })
106
- ])
107
- ]));
15
+ const s = e;
16
+ return (i, a) => {
17
+ const m = p("router-link");
18
+ return r(), o("div", C, [
19
+ n("div", $, [
20
+ l(m, {
21
+ to: {
22
+ name: "Department Edit",
23
+ params: {
24
+ _id: s.organization,
25
+ department: e.department._id
26
+ }
27
+ },
28
+ class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
29
+ }, {
30
+ default: c(() => [
31
+ l(h, {
32
+ class: "i-regular",
33
+ classes: "fill-white"
34
+ })
35
+ ]),
36
+ _: 1
37
+ }, 8, ["to"]),
38
+ n("h3", {
39
+ onClick: a[0] || (a[0] = (t) => i.$router.push(`/organizations/${s.organization}/departments/${e.department._id}`)),
40
+ class: "mn-b-small w-100",
41
+ innerHTML: e.department.profile.name
42
+ }, null, 8, v),
43
+ n("ul", null, [
44
+ e.department.members.length < 1 ? (r(), o("li", w, "В отделе еще нет участников")) : u("", !0),
45
+ (r(!0), o(_, null, f(e.department.members, (t, d) => (r(), g(k, {
46
+ class: "br-b br-solid br-grey",
47
+ key: d,
48
+ user: t.user,
49
+ position: t.position,
50
+ onClick: (x) => i.$router.push(`/app/profile/${t.user._id}`)
51
+ }, null, 8, ["user", "position", "onClick"]))), 128))
52
+ ])
53
+ ])
54
+ ]);
55
+ };
108
56
  }
109
- }, J = /* @__PURE__ */ _(E, [["__scopeId", "data-v-05e8aa03"]]);
57
+ }, j = /* @__PURE__ */ b(z, [["__scopeId", "data-v-745afcf2"]]);
110
58
  export {
111
- J as default
59
+ j as default
112
60
  };
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as r, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
1
+ import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as s, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
2
2
  import { useRouter as w } from "vue-router";
3
3
  import b from "../../../orders/components/blocks/CardOrderItem.vue.js";
4
4
  import z from "../../../../components/Chips/Chips.vue.js";
@@ -7,16 +7,16 @@ import y from "../../../icons/entities/IconPrice.vue.js";
7
7
  import x from "../../../icons/entities/IconShopcart.vue.js";
8
8
  import v from "../../../icons/entities/IconTime.vue.js";
9
9
  import k from "../elements/ButtonToggleMembership.vue.js";
10
- const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100" }, C = { class: "h4 t-truncate" }, O = {
10
+ const B = { class: "flex pos-relative" }, M = ["src"], C = { class: "pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100" }, O = { class: "h4 t-truncate" }, P = {
11
11
  key: 1,
12
12
  class: "flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"
13
- }, P = { class: "mn-t-thin mn-b-thin" }, F = {
13
+ }, S = { class: "mn-t-thin mn-b-thin" }, $ = {
14
14
  key: 0,
15
15
  class: "mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"
16
- }, $ = { class: "mn-r-thin" }, E = {
16
+ }, F = { class: "mn-r-thin" }, E = {
17
17
  key: 0,
18
18
  class: "t-transp mn-r-thin"
19
- }, I = { class: "mn-r-thin" }, R = { class: "mn-r-thin" }, V = { class: "mn-r-thin" }, N = {
19
+ }, R = { class: "mn-r-thin" }, V = { class: "mn-r-thin" }, I = { class: "mn-r-thin" }, N = {
20
20
  key: 1,
21
21
  class: "w-100 o-scroll"
22
22
  }, U = { class: "w-max flex-nowrap flex gap-thin" }, L = /* @__PURE__ */ i("button", { class: "pd-thin w-15r radius-medium bg-main button" }, " View menu ", -1), X = {
@@ -49,30 +49,30 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
49
49
  },
50
50
  emits: ["updateMembership"],
51
51
  setup(e, { emit: T }) {
52
- return w(), (s, l) => {
52
+ return w(), (r, l) => {
53
53
  var m, u;
54
54
  return t(), n("div", {
55
55
  class: "o-hidden pos-relative cursor-pointer bg-grey pd-small",
56
- onClick: l[1] || (l[1] = (a) => s.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
56
+ onClick: l[1] || (l[1] = (a) => r.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
57
57
  }, [
58
58
  i("div", B, [
59
59
  e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (t(), n("img", {
60
60
  key: 0,
61
- src: (s.FILE_SERVER_URL || "") + e.organization.profile.photo,
61
+ src: (r.FILE_SERVER_URL || "") + e.organization.profile.photo,
62
62
  class: "h-4r w-4r radius-extra bg-white"
63
63
  }, null, 8, M)) : (t(), c(p, {
64
64
  key: 1,
65
65
  class: "h-4r w-4r"
66
66
  })),
67
- i("div", S, [
68
- i("p", C, o(e.organization.profile.name), 1),
67
+ i("div", C, [
68
+ i("p", O, o(e.organization.profile.name), 1),
69
69
  e.showTags && ((m = e.organization.profile.tags) == null ? void 0 : m.length) > 0 ? (t(), c(z, {
70
70
  key: 0,
71
71
  chips: e.organization.profile.tags.slice(0, 3),
72
72
  class: "pos-relative p-small"
73
- }, null, 8, ["chips"])) : r("", !0),
74
- e.showFollowers ? (t(), n("div", O, [
75
- i("p", P, o(e.organization.numberOfSubscribers) + " followers", 1),
73
+ }, null, 8, ["chips"])) : s("", !0),
74
+ e.showFollowers ? (t(), n("div", P, [
75
+ i("p", S, o(e.organization.numberOfSubscribers) + " followers", 1),
76
76
  (u = e.user) != null && u._id && e.organization.owner !== e.user._id ? (t(), c(k, {
77
77
  key: 0,
78
78
  user: e.user._id,
@@ -81,26 +81,26 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
81
81
  target: e.organization._id,
82
82
  status: e.organization.isSubscriber,
83
83
  text: { create: "+", remove: "-" },
84
- onUpdateMembership: l[0] || (l[0] = (a) => s.handleMembershipUpdate(a, "isSubscriber", "numberOfSubscribers")),
84
+ onUpdateMembership: l[0] || (l[0] = (a) => r.handleMembershipUpdate(a, "isSubscriber", "numberOfSubscribers")),
85
85
  class: "i-semi"
86
- }, null, 8, ["user", "target", "status"])) : r("", !0)
87
- ])) : r("", !0)
86
+ }, null, 8, ["user", "target", "status"])) : s("", !0)
87
+ ])) : s("", !0)
88
88
  ])
89
89
  ]),
90
- e.showProducts ? (t(), n("div", F, [
90
+ e.showProducts ? (t(), n("div", $, [
91
91
  d(v, { class: "i-medium mn-r-micro" }),
92
- i("span", $, o(e.organization.distance ? Math.ceil((5 + 5 + 3 * e.organization.distance) / 5) * 5 + "-" + Math.ceil((15 + 5 + 3 * e.organization.distance) / 5) * 5 + " MIN" : "Unavailable"), 1),
93
- e.organization.distance ? (t(), n("span", E, "|")) : r("", !0),
94
- i("span", I, o(e.organization.distance ? e.organization.distance.toFixed(1) + " KM" : ""), 1),
92
+ i("span", F, o(e.organization.distance ? Math.ceil((5 + 5 + 3 * e.organization.distance) / 5) * 5 + "-" + Math.ceil((15 + 5 + 3 * e.organization.distance) / 5) * 5 + " MIN" : "Unavailable"), 1),
93
+ e.organization.distance ? (t(), n("span", E, "|")) : s("", !0),
94
+ i("span", R, o(e.organization.distance ? e.organization.distance.toFixed(1) + " KM" : ""), 1),
95
95
  d(y, { class: "i-medium mn-r-micro" }),
96
- i("span", R, o(s.returnCurrency()) + "500 ", 1),
96
+ i("span", V, o(r.returnCurrency()) + "500 ", 1),
97
97
  d(x, { class: "i-medium mn-r-micro" }),
98
- i("span", V, o(e.organization.products.length) + " products", 1)
99
- ])) : r("", !0),
98
+ i("span", I, o(e.organization.products.length) + " products", 1)
99
+ ])) : s("", !0),
100
100
  e.showProducts && e.organization.products.length > 0 ? (t(), n("div", N, [
101
101
  i("div", U, [
102
102
  (t(!0), n(h, null, g(e.organization.products.slice(0, 10), (a) => (t(), c(b, {
103
- onClick: f((j) => s.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: a._id } }), ["stop"]),
103
+ onClick: f((j) => r.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: a._id } }), ["stop"]),
104
104
  key: a._id,
105
105
  editable: !1,
106
106
  product: a,
@@ -108,7 +108,7 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
108
108
  }, null, 8, ["onClick", "product"]))), 128)),
109
109
  L
110
110
  ])
111
- ])) : r("", !0)
111
+ ])) : s("", !0)
112
112
  ]);
113
113
  };
114
114
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),d=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./DepartmentMemberModify.vue2.cjs");const p={class:"br-grey radius-small mn-small"},v={key:1,class:"pd-small br-grey br-1px br-solid"},f=["disabled"],y={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,member:Number,members:Array,users:Array},emits:["callback","remove"],setup(s,{emit:i}){const t=s,o=i,l=e.ref({user:"",position:""});t.member!==null&&(l.value=t.members[t.member]),e.ref(null);async function n(){t.member!==null?(t.members[t.member]=l.value,o("callback")):(t.members.push(l.value),o("callback"))}async function u(){t.members.splice(t.member,1),o("callback")}return(m,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",p,[e.createTextVNode(e.toDisplayString(l.value.id)+" ",1),t.member===null?(e.openBlock(),e.createBlock(c.default,{key:0,modelValue:l.value.user,"onUpdate:modelValue":r[0]||(r[0]=a=>l.value.user=a),options:s.users,multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue","options"])):(e.openBlock(),e.createElementBlock("div",v,e.toDisplayString(l.value.user.name?l.value.user.name:"Безымянный")+", "+e.toDisplayString(l.value.user.id),1)),e.createVNode(d.default,{field:l.value.position,"onUpdate:field":r[1]||(r[1]=a=>l.value.position=a),label:"Должность",placeholder:"Название должности",class:"bg-white",validation:m.organizationName},null,8,["field","validation"])]),e.createElementVNode("button",{disabled:!l.value.user._id||!l.value.position,onClick:n,class:"w-100 button bg-blue t-white"},e.toDisplayString(t.member!==null?"Редактировать участника":"Добавить участника"),9,f),t.member!==null?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:"w-100 button bg-red t-white"}," Удалить участника ")):e.createCommentVNode("",!0)]))}},g=b.default(y,[["__scopeId","data-v-d08f2f00"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const v=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),h=require("../../../../components/Feed/Feed.vue.cjs"),k=require("./User.vue.cjs"),g=require("../../store/memberships.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./DepartmentMemberModify.vue2.cjs");const y=o=>(e.pushScopeId("data-v-7a0830c1"),o=o(),e.popScopeId(),o),_={class:"br-grey radius-small mn-small"},V=y(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Add to deparment",-1)),B={class:"bg-grey mn-b-thin h-min-10r h-max-10r o-scroll pd-medium radius-big"},N=["disabled"],q={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,member:Number,members:Array,users:Array},emits:["callback","remove"],setup(o,{emit:m}){const l=o,i=m,s=e.ref(null),n=e.ref(null);l.member!==null&&(s.value=l.members[l.member]),e.ref(null);async function d(){l.member!==null?(l.members[l.member]=s,l.members[l.member].role=n.value,i("callback")):(l.members.push({...s.value,role:n.value}),i("callback"))}async function c(){l.members.splice(l.member,1),i("callback")}return(u,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",_,[V,e.createElementVNode("div",B,[e.createVNode(h.default,{states:{empty:{title:"No Members Found",description:"Currently, there are no members available."}},store:{read:r=>g.actions.read(r),state:null},options:{target:u.$route.params._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,p)=>(e.openBlock(),e.createBlock(k.default,{key:p,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,user:t,position:t.position,onClick:a[0]||(a[0]=S=>u.$router.push(`/app/profile/${u.user._id}`)),class:"mn-b-thin"},null,8,["photo","name","user","position"]))),128))]),_:1},8,["states","store","options"])]),l.member===null?(e.openBlock(),e.createBlock(b.default,{key:0,modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=r=>s.value=r),options:o.users,multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),e.createVNode(f.default,{field:n.value,"onUpdate:field":a[2]||(a[2]=r=>n.value=r),label:"Должность",placeholder:"Название должности",class:"bg-white",validation:u.organizationName},null,8,["field","validation"])]),e.createElementVNode("button",{disabled:!s.value||!n.value,onClick:d,class:"w-100 button bg-blue t-white"},e.toDisplayString(l.member!==null?"Редактировать участника":"Добавить участника"),9,N),l.member!==null?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c,class:"w-100 button bg-red t-white"}," Удалить участника ")):e.createCommentVNode("",!0)]))}},M=v.default(q,[["__scopeId","data-v-7a0830c1"]]);exports.default=M;
@@ -1,14 +1,14 @@
1
- import { ref as n, openBlock as r, createElementBlock as s, createElementVNode as u, createTextVNode as f, toDisplayString as t, createBlock as v, createVNode as y, createCommentVNode as g } from "vue";
2
- import k from "../../../../components/SelectMulti/SelectMulti.vue.js";
3
- import _ from "../../../../components/Field/Field.vue2.js";
1
+ import { ref as p, openBlock as m, createElementBlock as d, createElementVNode as i, createVNode as b, withCtx as k, Fragment as _, renderList as w, createBlock as c, createCommentVNode as f, toDisplayString as C, pushScopeId as I, popScopeId as M } from "vue";
2
+ import N from "../../../../components/SelectMulti/SelectMulti.vue.js";
3
+ import S from "../../../../components/Field/Field.vue.js";
4
4
  import "../../../../components/Select/Select.vue.js";
5
- import h from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
+ import V from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
+ import $ from "../../../../components/Feed/Feed.vue.js";
7
+ import B from "./User.vue.js";
8
+ import { actions as D } from "../../store/memberships.js";
6
9
  import "../../../middlewares/client/inputs.validation.js";
7
10
  import "./DepartmentMemberModify.vue2.js";
8
- const V = { class: "br-grey radius-small mn-small" }, N = {
9
- key: 1,
10
- class: "pd-small br-grey br-1px br-solid"
11
- }, w = ["disabled"], M = {
11
+ const F = (t) => (I("data-v-7a0830c1"), t = t(), M(), t), A = { class: "br-grey radius-small mn-small" }, U = /* @__PURE__ */ F(() => /* @__PURE__ */ i("h3", { class: "mn-b-semi" }, "Add to deparment", -1)), z = { class: "bg-grey mn-b-thin h-min-10r h-max-10r o-scroll pd-medium radius-big" }, E = ["disabled"], x = {
12
12
  __name: "DepartmentMemberModify",
13
13
  props: {
14
14
  isPopupOpen: Boolean,
@@ -17,53 +17,82 @@ const V = { class: "br-grey radius-small mn-small" }, N = {
17
17
  users: Array
18
18
  },
19
19
  emits: ["callback", "remove"],
20
- setup(i, { emit: d }) {
21
- const l = i, a = d, e = n({
22
- user: "",
23
- position: ""
24
- });
25
- l.member !== null && (e.value = l.members[l.member]), n(null);
26
- async function b() {
27
- l.member !== null ? (l.members[l.member] = e.value, a("callback")) : (l.members.push(e.value), a("callback"));
20
+ setup(t, { emit: v }) {
21
+ const e = t, u = v, l = p(null), a = p(null);
22
+ e.member !== null && (l.value = e.members[e.member]), p(null);
23
+ async function h() {
24
+ e.member !== null ? (e.members[e.member] = l, e.members[e.member].role = a.value, u("callback")) : (e.members.push({ ...l.value, role: a.value }), u("callback"));
28
25
  }
29
- async function c() {
30
- l.members.splice(l.member, 1), a("callback");
26
+ async function y() {
27
+ e.members.splice(e.member, 1), u("callback");
31
28
  }
32
- return (p, o) => (r(), s("div", null, [
33
- u("div", V, [
34
- f(t(e.value.id) + " ", 1),
35
- l.member === null ? (r(), v(k, {
29
+ return (n, s) => (m(), d("div", null, [
30
+ i("div", A, [
31
+ U,
32
+ i("div", z, [
33
+ b($, {
34
+ states: {
35
+ empty: {
36
+ title: "No Members Found",
37
+ description: "Currently, there are no members available."
38
+ }
39
+ },
40
+ store: {
41
+ read: (o) => D.read(o),
42
+ state: null
43
+ },
44
+ options: {
45
+ target: n.$route.params._id
46
+ }
47
+ }, {
48
+ default: k(({
49
+ items: o
50
+ }) => [
51
+ (m(!0), d(_, null, w(o, (r, g) => (m(), c(B, {
52
+ key: g,
53
+ photo: r.user.profile.photo,
54
+ name: r.user.profile.name || r.user.phone || r.user.email || r.user._id,
55
+ user: r,
56
+ position: r.position,
57
+ onClick: s[0] || (s[0] = (L) => n.$router.push(`/app/profile/${n.user._id}`)),
58
+ class: "mn-b-thin"
59
+ }, null, 8, ["photo", "name", "user", "position"]))), 128))
60
+ ]),
61
+ _: 1
62
+ }, 8, ["states", "store", "options"])
63
+ ]),
64
+ e.member === null ? (m(), c(N, {
36
65
  key: 0,
37
- modelValue: e.value.user,
38
- "onUpdate:modelValue": o[0] || (o[0] = (m) => e.value.user = m),
39
- options: i.users,
66
+ modelValue: l.value,
67
+ "onUpdate:modelValue": s[1] || (s[1] = (o) => l.value = o),
68
+ options: t.users,
40
69
  multiple: !1,
41
70
  taggable: !1,
42
71
  placeholder: "Type to search or add type of organization",
43
72
  class: "mn-b-semi bg-grey pd-medium radius-small"
44
- }, null, 8, ["modelValue", "options"])) : (r(), s("div", N, t(e.value.user.name ? e.value.user.name : "Безымянный") + ", " + t(e.value.user.id), 1)),
45
- y(_, {
46
- field: e.value.position,
47
- "onUpdate:field": o[1] || (o[1] = (m) => e.value.position = m),
73
+ }, null, 8, ["modelValue", "options"])) : f("", !0),
74
+ b(S, {
75
+ field: a.value,
76
+ "onUpdate:field": s[2] || (s[2] = (o) => a.value = o),
48
77
  label: "Должность",
49
78
  placeholder: "Название должности",
50
79
  class: "bg-white",
51
- validation: p.organizationName
80
+ validation: n.organizationName
52
81
  }, null, 8, ["field", "validation"])
53
82
  ]),
54
- u("button", {
55
- disabled: !e.value.user._id || !e.value.position,
56
- onClick: b,
83
+ i("button", {
84
+ disabled: !l.value || !a.value,
85
+ onClick: h,
57
86
  class: "w-100 button bg-blue t-white"
58
- }, t(l.member !== null ? "Редактировать участника" : "Добавить участника"), 9, w),
59
- l.member !== null ? (r(), s("button", {
87
+ }, C(e.member !== null ? "Редактировать участника" : "Добавить участника"), 9, E),
88
+ e.member !== null ? (m(), d("button", {
60
89
  key: 0,
61
- onClick: c,
90
+ onClick: y,
62
91
  class: "w-100 button bg-red t-white"
63
- }, " Удалить участника ")) : g("", !0)
92
+ }, " Удалить участника ")) : f("", !0)
64
93
  ]));
65
94
  }
66
- }, A = /* @__PURE__ */ h(M, [["__scopeId", "data-v-d08f2f00"]]);
95
+ }, R = /* @__PURE__ */ V(x, [["__scopeId", "data-v-7a0830c1"]]);
67
96
  export {
68
- A as default
97
+ R as default
69
98
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs");require("./User.vue2.cjs");const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d=t=>(e.pushScopeId("data-v-94253368"),t=t(),e.popScopeId(),t),m={class:""},p=["src"],h={class:"mn-r-auto"},f={class:"mn-r-small"},k={class:"t-transp"},v=d(()=>e.createElementVNode("br",null,null,-1)),y={class:"mn-r-auto t-transp"},E={key:2,class:"mn-l-medium flex-v-center flex"},b={__name:"User",props:{user:{type:Object,required:!0}},setup(t){return(r,o)=>{var s,n,i,l;return e.openBlock(),e.createElementBlock("div",m,[((s=t.user.profile)==null?void 0:s.photo.length)>0&&r.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(r.FILE_SERVER_URL||"")+r.member.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:o[0]||(o[0]=e.withModifiers(a=>r.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,p)):e.createCommentVNode("",!0),!((n=t.user.profile)!=null&&n.photo)&&r.type!=="short"?(e.openBlock(),e.createBlock(u.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:o[1]||(o[1]=e.withModifiers(a=>r.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",h,[e.createElementVNode("span",f,e.toDisplayString((i=t.user.profile)==null?void 0:i.email)+" "+e.toDisplayString((l=t.user.profile)==null?void 0:l.phone),1),e.createElementVNode("span",k,e.toDisplayString(t.user.role),1),v,e.createElementVNode("span",y,"Member since (date) "+e.toDisplayString(t.user.createdAt),1)]),t.user.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("button",{onClick:o[2]||(o[2]=a=>r.removeMember(t.user)),class:"button-small button"},"×")])):e.createCommentVNode("",!0)])}}},g=c.default(b,[["__scopeId","data-v-94253368"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs");require("./User.vue2.cjs");const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),s={class:"flex-v-center flex-nowrap flex"},l=["src"],a={__name:"User",props:{user:{type:Object,required:!0},photo:{type:String,default:null},name:{type:String,default:"Anonymous"}},setup(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",s,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(n=>o.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,l)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(n=>o.$router.push({name:"User Profile",params:{_id:t.user._id}}),["stop"]))})),e.createElementVNode("p",null,e.toDisplayString(t.name),1)]))}},d=u.default(a,[["__scopeId","data-v-84de60e5"]]);exports.default=d;