@ozdao/prometheus-framework 0.1.82 → 0.1.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
  2. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
  3. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  4. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
  5. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
  6. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
  7. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  8. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
  9. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
  10. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
  11. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  12. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
  13. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
  14. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
  15. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  16. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  17. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
  19. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
  21. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  23. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  25. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
  27. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
  29. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  31. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  33. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
  35. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  37. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  42. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
  44. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +33 -33
  46. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  48. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  50. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  52. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  54. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  56. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  58. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
  60. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
  62. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
  64. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
  66. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +44 -43
  78. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/auth/store/auth.js +55 -65
  82. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
  84. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
  90. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
  91. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
  92. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
  100. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  101. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
  102. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  103. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
  104. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
  106. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
  108. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
  110. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  112. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +14 -14
  114. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +4 -4
  116. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +51 -53
  118. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
  120. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  122. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +25 -25
  128. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
  130. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
  132. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  136. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +19 -19
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -6
  154. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
  156. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  158. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +21 -21
  160. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  166. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  170. package/dist/prometheus-framework.cjs.js +27 -27
  171. package/dist/prometheus-framework.es.js +1949 -1937
  172. package/dist/style.css +1 -1
  173. package/package.json +2 -4
  174. package/src/modules/auth/components/pages/SignIn.vue +1 -0
  175. package/src/modules/auth/store/auth.js +2 -11
@@ -1,78 +1,4 @@
1
- import { ref as f, openBlock as a, createElementBlock as d, Fragment as m, createElementVNode as o, normalizeClass as b, toDisplayString as s, createCommentVNode as i, renderSlot as c, createVNode as v, Transition as x, withCtx as y } from "vue";
2
- import "./Field.vue2.js";
3
- import h from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const k = {
5
- key: 0,
6
- class: "t-transp mn-r-small"
7
- }, p = { class: "w-100" }, g = ["type", "value", "placeholder", "tabindex"], w = ["value", "placeholder", "tabindex"], F = {
8
- key: 1,
9
- class: "t-transp mn-l-small"
10
- }, B = {
11
- key: 0,
12
- class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
13
- }, C = {
14
- __name: "Field",
15
- props: {
16
- label: null,
17
- symbol: null,
18
- type: "text",
19
- placeholder: "Enter something here",
20
- field: null,
21
- validation: !1,
22
- disabled: !1,
23
- tabindex: -1
24
- },
25
- emits: ["update:field", "focus", "blur"],
26
- setup(e, { emit: n }) {
27
- const u = f(e.field);
28
- return (r, l) => (a(), d(m, null, [
29
- o("div", {
30
- class: b([[
31
- r.$attrs.class,
32
- {
33
- "bg-fourth-nano": e.validation
34
- }
35
- ], "flex-center flex-nowrap flex"])
36
- }, [
37
- e.label ? (a(), d("div", k, [
38
- o("span", null, s(e.label), 1)
39
- ])) : i("", !0),
40
- o("div", p, [
41
- e.type !== "textarea" ? (a(), d("input", {
42
- key: 0,
43
- onInput: l[0] || (l[0] = (t) => u.value = n("update:field", t.target.value)),
44
- onFocus: l[1] || (l[1] = (t) => n("focus", t)),
45
- onBlur: l[2] || (l[2] = (t) => n("blur", t)),
46
- type: e.type,
47
- class: "w-100",
48
- value: e.field,
49
- placeholder: e.placeholder,
50
- tabindex: e.tabindex
51
- }, null, 40, g)) : (a(), d("textarea", {
52
- key: 1,
53
- onInput: l[3] || (l[3] = (t) => u.value = n("update:field", t.target.value)),
54
- onFocus: l[4] || (l[4] = (t) => n("focus", t)),
55
- onBlur: l[5] || (l[5] = (t) => n("blur", t)),
56
- class: "w-100",
57
- value: e.field,
58
- placeholder: e.placeholder,
59
- tabindex: e.tabindex
60
- }, null, 40, w))
61
- ]),
62
- c(r.$slots, "default", {}, void 0, !0),
63
- e.symbol ? (a(), d("div", F, [
64
- o("span", null, s(e.symbol), 1)
65
- ])) : i("", !0)
66
- ], 2),
67
- v(x, { name: "fade" }, {
68
- default: y(() => [
69
- e.validation ? (a(), d("div", B, " * " + s(e.validation.message), 1)) : i("", !0)
70
- ]),
71
- _: 1
72
- })
73
- ], 64));
74
- }
75
- }, S = /* @__PURE__ */ h(C, [["__scopeId", "data-v-839e7ced"]]);
1
+ const e = "";
76
2
  export {
77
- S as default
3
+ e as default
78
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-839e7ced"]]);exports.default=y;
@@ -1,4 +1,78 @@
1
- const e = "";
1
+ import { ref as f, openBlock as a, createElementBlock as d, Fragment as b, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as s, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
2
+ import "./Field.vue.js";
3
+ import k from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = {
5
+ key: 0,
6
+ class: "t-transp mn-r-small"
7
+ }, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
8
+ key: 1,
9
+ class: "t-transp mn-l-small"
10
+ }, C = {
11
+ key: 0,
12
+ class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
13
+ }, E = {
14
+ __name: "Field",
15
+ props: {
16
+ label: null,
17
+ symbol: null,
18
+ type: "text",
19
+ placeholder: "Enter something here",
20
+ field: null,
21
+ validation: !1,
22
+ disabled: !1,
23
+ tabindex: -1
24
+ },
25
+ emits: ["update:field", "focus", "blur"],
26
+ setup(e, { emit: m }) {
27
+ const n = m, u = f(e.field);
28
+ return (r, t) => (a(), d(b, null, [
29
+ i("div", {
30
+ class: c([[
31
+ r.$attrs.class,
32
+ {
33
+ "bg-fourth-nano": e.validation
34
+ }
35
+ ], "flex-center flex-nowrap flex"])
36
+ }, [
37
+ e.label ? (a(), d("div", p, [
38
+ i("span", null, o(e.label), 1)
39
+ ])) : s("", !0),
40
+ i("div", g, [
41
+ e.type !== "textarea" ? (a(), d("input", {
42
+ key: 0,
43
+ onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
44
+ onFocus: t[1] || (t[1] = (l) => n("focus", l)),
45
+ onBlur: t[2] || (t[2] = (l) => n("blur", l)),
46
+ type: e.type,
47
+ class: "w-100",
48
+ value: e.field,
49
+ placeholder: e.placeholder,
50
+ tabindex: e.tabindex
51
+ }, null, 40, w)) : (a(), d("textarea", {
52
+ key: 1,
53
+ onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
54
+ onFocus: t[4] || (t[4] = (l) => n("focus", l)),
55
+ onBlur: t[5] || (t[5] = (l) => n("blur", l)),
56
+ class: "w-100",
57
+ value: e.field,
58
+ placeholder: e.placeholder,
59
+ tabindex: e.tabindex
60
+ }, null, 40, F))
61
+ ]),
62
+ v(r.$slots, "default", {}, void 0, !0),
63
+ e.symbol ? (a(), d("div", B, [
64
+ i("span", null, o(e.symbol), 1)
65
+ ])) : s("", !0)
66
+ ], 2),
67
+ x(y, { name: "fade" }, {
68
+ default: h(() => [
69
+ e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
70
+ ]),
71
+ _: 1
72
+ })
73
+ ], 64));
74
+ }
75
+ }, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-839e7ced"]]);
2
76
  export {
3
- e as default
77
+ $ as default
4
78
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("../Field/Field.vue.cjs"),k=require("vue-i18n"),B={class:"pd-thin radius-extra flex-nowrap flex"},S=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:v}){const t=c,{t:w,locale:p}=k.useI18n();let r=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),h=null;function b(){v("action")}function T(a){v("update:input",a),f.value=a}function g(){r.value=(r.value+1)%t.placeholderTexts[p.value].length}function I(){i.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function m(){!f.value&&t.enableTyping&&(i.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][r.value],l=0,u=!1;h=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(h))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(x.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:m,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,S)):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},_=["innerHTML"],w={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:b}){const t=c,{t:F,locale:p}=B.useI18n();let i=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),r=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const h=b;function T(){h("action")}function m(a){h("update:input",a),f.value=a}function g(){i.value=(i.value+1)%t.placeholderTexts[p.value].length}function I(){r.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(r.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][i.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{r.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][i.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{r.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),m],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:x,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:T,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,_)):e.createCommentVNode("",!0)]))}};exports.default=w;
@@ -1,7 +1,7 @@
1
- import { ref as u, onMounted as w, watchEffect as F, openBlock as b, createElementBlock as m, createVNode as S, unref as T, isRef as _, createCommentVNode as M } from "vue";
2
- import N from "../Field/Field.vue.js";
3
- import { useI18n as V } from "vue-i18n";
4
- const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"], O = {
1
+ import { ref as u, onMounted as F, watchEffect as S, openBlock as y, createElementBlock as b, createVNode as _, unref as T, isRef as M, createCommentVNode as N } from "vue";
2
+ import V from "../Field/Field.vue2.js";
3
+ import { useI18n as A } from "vue-i18n";
4
+ const C = { class: "pd-thin radius-extra flex-nowrap flex" }, E = ["innerHTML"], P = {
5
5
  __name: "FieldBig",
6
6
  props: {
7
7
  input: String,
@@ -33,27 +33,28 @@ const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"],
33
33
  }
34
34
  },
35
35
  emits: ["update:input", "action"],
36
- setup(c, { emit: v }) {
37
- const l = c, { t: E, locale: p } = V();
38
- let i = u(0), t = u(l.input), s = u(l.placeholder), o = u(l.enableTyping), d = u(null), f = u(""), r = u(!0), h = null;
39
- function I() {
40
- v("action");
36
+ setup(c, { emit: I }) {
37
+ const l = c, { t: H, locale: p } = A();
38
+ let i = u(0), t = u(l.input), s = u(l.placeholder), o = u(l.enableTyping), d = u(null), f = u(""), r = u(!0), v = null;
39
+ const h = I;
40
+ function x() {
41
+ h("action");
41
42
  }
42
- function x(a) {
43
- v("update:input", a), f.value = a;
43
+ function k(a) {
44
+ h("update:input", a), f.value = a;
44
45
  }
45
46
  function g() {
46
47
  i.value = (i.value + 1) % l.placeholderTexts[p.value].length;
47
48
  }
48
- function k() {
49
+ function B() {
49
50
  o.value = !1, clearInterval(d.value), s.value = l.placeholder, f.value || (t.value = "");
50
51
  }
51
- function B() {
52
- !f.value && l.enableTyping && (o.value = !0, s.value = "", y());
52
+ function w() {
53
+ !f.value && l.enableTyping && (o.value = !0, s.value = "", m());
53
54
  }
54
- function y() {
55
+ function m() {
55
56
  let a = l.placeholderTexts[p.value][i.value], e = 0, n = !1;
56
- h = setInterval(() => {
57
+ v = setInterval(() => {
57
58
  r.value = !r.value;
58
59
  }, 200), d.value = setInterval(() => {
59
60
  o.value && (n ? (t.value = t.value.slice(0, -1), t.value = a.substring(0, e) + (r.value && e % 2 ? "|" : ""), e--) : (t.value = a.substring(0, e) + (r.value && e % 2 ? "|" : ""), e++), e > a.length && l.loopTyping && setTimeout(() => {
@@ -61,32 +62,32 @@ const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"],
61
62
  }, 333), e === 0 && n && (n = !1, g(), a = l.placeholderTexts[p.value][i.value]));
62
63
  }, l.typingSpeed);
63
64
  }
64
- return w(() => {
65
- l.enableTyping && y();
66
- }), F(() => {
67
- o.value || (clearInterval(d.value), clearInterval(h));
68
- }), (a, e) => (b(), m("div", A, [
69
- S(N, {
65
+ return F(() => {
66
+ l.enableTyping && m();
67
+ }), S(() => {
68
+ o.value || (clearInterval(d.value), clearInterval(v));
69
+ }), (a, e) => (y(), b("div", C, [
70
+ _(V, {
70
71
  field: T(t),
71
72
  "onUpdate:field": [
72
- e[0] || (e[0] = (n) => _(t) ? t.value = n : t = n),
73
- x
73
+ e[0] || (e[0] = (n) => M(t) ? t.value = n : t = n),
74
+ k
74
75
  ],
75
76
  placeholder: T(s),
76
77
  onInput: g,
77
- onFocus: k,
78
- onBlur: B,
78
+ onFocus: B,
79
+ onBlur: w,
79
80
  class: "w-100 pd-small p-big"
80
81
  }, null, 8, ["field", "placeholder"]),
81
- c.action ? (b(), m("button", {
82
+ c.action ? (y(), b("button", {
82
83
  key: 0,
83
- onClick: I,
84
+ onClick: x,
84
85
  class: "w-min hover_bg-white hover-t-black t-black bg-main button",
85
86
  innerHTML: c.action
86
- }, null, 8, C)) : M("", !0)
87
+ }, null, 8, E)) : N("", !0)
87
88
  ]));
88
89
  }
89
90
  };
90
91
  export {
91
- O as default
92
+ P as default
92
93
  };
@@ -8,7 +8,7 @@ function o(e) {
8
8
  const t = v.options[e];
9
9
  return typeof t > "u" ? v.options[e] : t;
10
10
  }
11
- const E = /* @__PURE__ */ S({
11
+ const E = S({
12
12
  name: "Vue3ReactiveTelInput",
13
13
  // vue component name
14
14
  directives: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const h=e.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),v={class:"mn-medium"},x=e.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),_=["onClick"],k={key:1},B={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:r}){const u=d,n=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const m=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(n.value.toLowerCase()))),l=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function i(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function g(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[h,e.createVNode(f.default,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value=o),tags:s.value,"autocomplete-items":e.unref(m),"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:g,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",v,[x,e.unref(l).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),(o,p)=>(e.openBlock(),e.createElementBlock("span",{onClick:y=>i(o),class:e.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":p!==e.unref(l).length-1}])},e.toDisplayString(o.text),11,_))),256)):(e.openBlock(),e.createElementBlock("span",k,"You added all suggested tags"))])]))}};exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),x={class:"mn-medium"},_=e.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),k=["onClick"],B={key:1},y={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>g(l),class:e.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":v!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=y;
@@ -1,33 +1,33 @@
1
- import { ref as d, computed as p, openBlock as o, createElementBlock as n, createVNode as k, unref as l, createElementVNode as m, Fragment as y, renderList as C, normalizeClass as T, toDisplayString as V } from "vue";
1
+ import { ref as u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as d, Fragment as y, renderList as C, normalizeClass as T, toDisplayString as V } from "vue";
2
2
  import w from "./FieldTags.vue.js";
3
3
  import "./BlockTags.vue2.js";
4
- const B = /* @__PURE__ */ m("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1), I = { class: "mn-medium" }, L = /* @__PURE__ */ m("p", { class: "p-small mn-thin" }, "Suggested:", -1), S = ["onClick"], D = { key: 1 }, z = {
4
+ const B = /* @__PURE__ */ d("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1), I = { class: "mn-medium" }, L = /* @__PURE__ */ d("p", { class: "p-small mn-thin" }, "Suggested:", -1), S = ["onClick"], D = { key: 1 }, z = {
5
5
  __name: "BlockTags",
6
6
  props: ["tags"],
7
7
  emits: ["tags-changed"],
8
- setup(h, { emit: i }) {
9
- const c = h, r = d(""), a = d([]), g = d([
8
+ setup(p, { emit: h }) {
9
+ const m = h, i = p, n = u(""), a = u([]), c = u([
10
10
  { text: "story" },
11
11
  { text: "news" },
12
12
  { text: "guide" },
13
13
  { text: "discussion" },
14
14
  { text: "photos" }
15
15
  ]);
16
- c.tags && (a.value = c.tags.map((e) => ({ text: e })));
17
- const x = p(() => g.value.filter((e) => e.text.toLowerCase().includes(r.value.toLowerCase()))), u = p(() => g.value.filter((e) => !a.value.some((t) => t.text === e.text)));
18
- function f(e) {
19
- a.value.push(e), i("tags-changed", a.value.map((t) => t.text));
16
+ i.tags && (a.value = i.tags.map((e) => ({ text: e })));
17
+ const v = g(() => c.value.filter((e) => e.text.toLowerCase().includes(n.value.toLowerCase()))), r = g(() => c.value.filter((e) => !a.value.some((t) => t.text === e.text)));
18
+ function x(e) {
19
+ a.value.push(e), m("tags-changed", a.value.map((t) => t.text));
20
20
  }
21
- function v(e) {
22
- a.value = e, i("tags-changed", a.value.map((t) => t.text));
21
+ function f(e) {
22
+ a.value = e, m("tags-changed", a.value.map((t) => t.text));
23
23
  }
24
- return (e, t) => (o(), n("div", null, [
24
+ return (e, t) => (o(), l("div", null, [
25
25
  B,
26
26
  k(w, {
27
- modelValue: r.value,
28
- "onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
27
+ modelValue: n.value,
28
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
29
29
  tags: a.value,
30
- "autocomplete-items": l(x),
30
+ "autocomplete-items": v.value,
31
31
  "add-on-key": [13, ":", ";", ","],
32
32
  "save-on-key": [13, ":", ";", ","],
33
33
  separators: [";", ","],
@@ -36,15 +36,15 @@ const B = /* @__PURE__ */ m("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1
36
36
  placeholder: "Please add tags",
37
37
  "add-from-paste": !0,
38
38
  "allow-edit-tags": !0,
39
- onTagsChanged: v,
39
+ onTagsChanged: f,
40
40
  class: "mn-thin bg-grey radius-medium pd-small"
41
41
  }, null, 8, ["modelValue", "tags", "autocomplete-items"]),
42
- m("p", I, [
42
+ d("p", I, [
43
43
  L,
44
- l(u).length > 0 ? (o(!0), n(y, { key: 0 }, C(l(u), (s, _) => (o(), n("span", {
45
- onClick: (E) => f(s),
46
- class: T(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": _ !== l(u).length - 1 }])
47
- }, V(s.text), 11, S))), 256)) : (o(), n("span", D, "You added all suggested tags"))
44
+ r.value.length > 0 ? (o(!0), l(y, { key: 0 }, C(r.value, (s, _) => (o(), l("span", {
45
+ onClick: (E) => x(s),
46
+ class: T(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": _ !== r.value.length - 1 }])
47
+ }, V(s.text), 11, S))), 256)) : (o(), l("span", D, "You added all suggested tags"))
48
48
  ])
49
49
  ]));
50
50
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue2.cjs");require("./LocationMarker.vue2.cjs");const _=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),w=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),h={class:"pos-relative map-container"},y=w(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),v=[y],L={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:a}){const t=r,d=e.ref(null);let c,s;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),s=new google.maps.Marker({position:t.location,map:c,draggable:!0}),s.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&s&&s.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(i,p)=>{if(p==="OK")if(i[0]){a("update:address",i[0].formatted_address);let g="",f="",C="";i[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(C=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function m(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:m},v)]))}},M=_.default(L,[["__scopeId","data-v-29acef04"]]);exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
@@ -1,8 +1,8 @@
1
- import { ref as w, onMounted as h, watchEffect as m, openBlock as y, createElementBlock as v, createElementVNode as s, pushScopeId as L, popScopeId as M } from "vue";
2
- import "../Button/Button.vue2.js";
1
+ import { ref as h, onMounted as y, watchEffect as C, openBlock as v, createElementBlock as L, createElementVNode as s, pushScopeId as M, popScopeId as k } from "vue";
2
+ import "../Button/Button.vue.js";
3
3
  import "./LocationMarker.vue2.js";
4
- import k from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-relative map-container" }, E = /* @__PURE__ */ b(() => /* @__PURE__ */ s("svg", {
4
+ import b from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const x = (l) => (M("data-v-29acef04"), l = l(), k(), l), E = { class: "pos-relative map-container" }, S = /* @__PURE__ */ x(() => /* @__PURE__ */ s("svg", {
6
6
  class: "i-medium",
7
7
  width: "98",
8
8
  height: "98",
@@ -18,9 +18,9 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
18
18
  d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
19
19
  fill: "white"
20
20
  })
21
- ], -1)), S = [
22
- E
23
- ], V = {
21
+ ], -1)), V = [
22
+ S
23
+ ], H = {
24
24
  __name: "LocationMarker",
25
25
  props: {
26
26
  location: {
@@ -34,47 +34,47 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
34
34
  apiKey: String
35
35
  },
36
36
  emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
37
- setup(l, { emit: n }) {
38
- const e = l, d = w(null);
39
- let c, r;
40
- h(() => {
41
- c = new google.maps.Map(d.value, {
37
+ setup(l, { emit: _ }) {
38
+ const e = l, n = _, d = h(null);
39
+ let i, c;
40
+ y(() => {
41
+ i = new google.maps.Map(d.value, {
42
42
  center: e.location,
43
43
  zoom: 15,
44
44
  mapTypeControl: !1,
45
45
  fullscreenControl: !1
46
- }), r = new google.maps.Marker({
46
+ }), c = new google.maps.Marker({
47
47
  position: e.location,
48
- map: c,
48
+ map: i,
49
49
  draggable: !0
50
- }), r.addListener("dragend", (o) => {
50
+ }), c.addListener("dragend", (o) => {
51
51
  const t = { lat: o.latLng.lat(), lng: o.latLng.lng() };
52
52
  n("update:location", t), p(t);
53
53
  });
54
- }), m(() => {
55
- e.location && r && r.setPosition(new google.maps.LatLng(e.location.lat, e.location.lng));
56
- }), m(() => {
57
- if (e.location && c) {
54
+ }), C(() => {
55
+ e.location && c && c.setPosition(new google.maps.LatLng(e.location.lat, e.location.lng));
56
+ }), C(() => {
57
+ if (e.location && i) {
58
58
  const o = new google.maps.LatLng(e.location.lat, e.location.lng);
59
- c.setCenter(o);
59
+ i.setCenter(o);
60
60
  }
61
61
  });
62
62
  function p(o) {
63
- new google.maps.Geocoder().geocode({ location: o }, (i, g) => {
63
+ new google.maps.Geocoder().geocode({ location: o }, (r, g) => {
64
64
  if (g === "OK")
65
- if (i[0]) {
66
- n("update:address", i[0].formatted_address);
67
- let u = "", f = "", C = "";
68
- i[0].address_components.forEach((a) => {
69
- a.types.includes("country") && (u = a.long_name), a.types.includes("administrative_area_level_1") && (f = a.long_name), a.types.includes("locality") && (C = a.long_name);
70
- }), n("update:country", u), n("update:state", f), n("update:city", C);
65
+ if (r[0]) {
66
+ n("update:address", r[0].formatted_address);
67
+ let u = "", m = "", f = "";
68
+ r[0].address_components.forEach((a) => {
69
+ a.types.includes("country") && (u = a.long_name), a.types.includes("administrative_area_level_1") && (m = a.long_name), a.types.includes("locality") && (f = a.long_name);
70
+ }), n("update:country", u), n("update:state", m), n("update:city", f);
71
71
  } else
72
72
  console.error("No results found");
73
73
  else
74
74
  console.error("Geocoder failed due to: " + g);
75
75
  });
76
76
  }
77
- async function _() {
77
+ async function w() {
78
78
  navigator.geolocation ? navigator.geolocation.getCurrentPosition((o) => {
79
79
  const t = { lat: o.coords.latitude, lng: o.coords.longitude };
80
80
  n("update:location", t), p(t);
@@ -82,7 +82,7 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
82
82
  console.error("Error getting location");
83
83
  }) : console.error("Geolocation is not supported by this browser.");
84
84
  }
85
- return (o, t) => (y(), v("div", x, [
85
+ return (o, t) => (v(), L("div", E, [
86
86
  s("div", {
87
87
  ref_key: "mapContainer",
88
88
  ref: d,
@@ -90,11 +90,11 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
90
90
  }, null, 512),
91
91
  s("button", {
92
92
  class: "pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",
93
- onClick: _
94
- }, S)
93
+ onClick: w
94
+ }, V)
95
95
  ]));
96
96
  }
97
- }, G = /* @__PURE__ */ k(V, [["__scopeId", "data-v-29acef04"]]);
97
+ }, K = /* @__PURE__ */ b(H, [["__scopeId", "data-v-29acef04"]]);
98
98
  export {
99
- G as default
99
+ K as default
100
100
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),i=require("vue-i18n"),c=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const d={key:"popup-content",class:"pd-small popup-wrapper"},m={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t;function s(){l("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const a={messages:{en:{},ru:{}}};return i.useI18n(a),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=p=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(c.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=p=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,74 +1,4 @@
1
- import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as a, createElementBlock as u, mergeProps as P, createElementVNode as i, renderSlot as k, createCommentVNode as p, normalizeClass as b } from "vue";
2
- import { useRoute as x, useRouter as C } from "vue-router";
3
- import { useI18n as O } from "vue-i18n";
4
- import T from "../../modules/icons/navigation/IconCross.vue.js";
5
- import "./Popup.vue2.js";
6
- const g = {
7
- key: "popup-content",
8
- class: "pd-small popup-wrapper"
9
- }, E = {
10
- __name: "Popup",
11
- props: {
12
- isPopupOpen: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- style: String
17
- },
18
- emits: ["close-popup"],
19
- setup(e, { emit: c }) {
20
- const m = e;
21
- function r() {
22
- c("close-popup");
23
- }
24
- return f(() => m.isPopupOpen, (o) => {
25
- o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
- }), x(), C(), O({
27
- messages: {
28
- en: {},
29
- ru: {}
30
- }
31
- }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
- key: 0,
33
- to: "body"
34
- }, [
35
- n(l, {
36
- name: "TransitionTranslateY",
37
- appear: ""
38
- }, {
39
- default: a(() => [
40
- e.isPopupOpen ? (s(), u("div", g, [
41
- n(l, {
42
- name: "TransitionTranslateY",
43
- mode: "out-in"
44
- }, {
45
- default: a(() => [
46
- e.isPopupOpen ? (s(), u("section", P({
47
- key: 0,
48
- class: "pos-relative z-index-4"
49
- }, o.$attrs), [
50
- i("button", {
51
- onClick: t[0] || (t[0] = (d) => r()),
52
- class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
53
- }, [
54
- n(T)
55
- ]),
56
- k(o.$slots, "default")
57
- ], 16)) : p("", !0)
58
- ]),
59
- _: 3
60
- }),
61
- i("div", {
62
- onClick: t[1] || (t[1] = (d) => r()),
63
- class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
64
- }, null, 2)
65
- ])) : p("", !0)
66
- ]),
67
- _: 3
68
- })
69
- ])) : p("", !0);
70
- }
71
- };
1
+ const e = "";
72
2
  export {
73
- E as default
3
+ e as default
74
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t,a=l;function s(){a("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const p={messages:{en:{},ru:{}}};return c.useI18n(p),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(d.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=i=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;