@topvisor/ui 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/.chunks/{api-nVBtzTDk.es.amd.js → api-Cu6kZ0AM.es.amd.js} +2 -2
  2. package/.chunks/api-Cu6kZ0AM.es.amd.js.map +1 -0
  3. package/.chunks/{api-nVBtzTDk.es.js → api-Cu6kZ0AM.es.js} +14 -20
  4. package/.chunks/api-Cu6kZ0AM.es.js.map +1 -0
  5. package/.chunks/app--zS5_XLM.es.amd.js +2 -0
  6. package/.chunks/app--zS5_XLM.es.amd.js.map +1 -0
  7. package/.chunks/app--zS5_XLM.es.js +373 -0
  8. package/.chunks/app--zS5_XLM.es.js.map +1 -0
  9. package/.chunks/{datepicker-MlbIM78m.es.amd.js → datepicker-DGp2mJqr.es.amd.js} +2 -2
  10. package/.chunks/datepicker-DGp2mJqr.es.amd.js.map +1 -0
  11. package/.chunks/{datepicker-MlbIM78m.es.js → datepicker-DGp2mJqr.es.js} +5 -10
  12. package/.chunks/datepicker-DGp2mJqr.es.js.map +1 -0
  13. package/.chunks/dialog-DhsFigoi.es.amd.js +2 -0
  14. package/.chunks/dialog-DhsFigoi.es.amd.js.map +1 -0
  15. package/.chunks/{dialog-C_1nmPXN.es.js → dialog-DhsFigoi.es.js} +23 -30
  16. package/.chunks/dialog-DhsFigoi.es.js.map +1 -0
  17. package/.chunks/dialog_regionSelectorRegions-CIDl3iFi.es.amd.js +2 -0
  18. package/.chunks/dialog_regionSelectorRegions-CIDl3iFi.es.amd.js.map +1 -0
  19. package/.chunks/{dialog_regionSelectorRegions-BPUDeHdW.es.js → dialog_regionSelectorRegions-CIDl3iFi.es.js} +25 -30
  20. package/.chunks/dialog_regionSelectorRegions-CIDl3iFi.es.js.map +1 -0
  21. package/.chunks/forms-4YO5ZEqQ.es.amd.js +2 -0
  22. package/.chunks/forms-4YO5ZEqQ.es.amd.js.map +1 -0
  23. package/.chunks/{forms-dosApNxi.es.js → forms-4YO5ZEqQ.es.js} +135 -260
  24. package/.chunks/forms-4YO5ZEqQ.es.js.map +1 -0
  25. package/.chunks/formsExt-DhyHrS4S.es.amd.js +2 -0
  26. package/.chunks/formsExt-DhyHrS4S.es.amd.js.map +1 -0
  27. package/.chunks/{formsExt-D7XsRleI.es.js → formsExt-DhyHrS4S.es.js} +131 -157
  28. package/.chunks/formsExt-DhyHrS4S.es.js.map +1 -0
  29. package/.chunks/{lazy-DQU-hLos.es.amd.js → lazy-CSpV6zBh.es.amd.js} +2 -2
  30. package/.chunks/lazy-CSpV6zBh.es.amd.js.map +1 -0
  31. package/.chunks/{lazy-DQU-hLos.es.js → lazy-CSpV6zBh.es.js} +5 -12
  32. package/.chunks/lazy-CSpV6zBh.es.js.map +1 -0
  33. package/.chunks/{mocker-h3ROH-VB.es.amd.js → mocker-BzBFCbZ2.es.amd.js} +1 -1
  34. package/.chunks/mocker-BzBFCbZ2.es.amd.js.map +1 -0
  35. package/.chunks/{mocker-h3ROH-VB.es.js → mocker-BzBFCbZ2.es.js} +2 -3
  36. package/.chunks/mocker-BzBFCbZ2.es.js.map +1 -0
  37. package/.chunks/{notice-8nwvAJQm.es.amd.js → notice-D182KbQy.es.amd.js} +2 -2
  38. package/.chunks/notice-D182KbQy.es.amd.js.map +1 -0
  39. package/.chunks/{notice-8nwvAJQm.es.js → notice-D182KbQy.es.js} +2 -3
  40. package/.chunks/notice-D182KbQy.es.js.map +1 -0
  41. package/.chunks/{popup-cAqd6Dj3.es.amd.js → popup-DITngjrJ.es.amd.js} +2 -2
  42. package/.chunks/popup-DITngjrJ.es.amd.js.map +1 -0
  43. package/.chunks/{popup-cAqd6Dj3.es.js → popup-DITngjrJ.es.js} +6 -16
  44. package/.chunks/popup-DITngjrJ.es.js.map +1 -0
  45. package/.chunks/popup-DX5ojVOZ.es.amd.js +2 -0
  46. package/.chunks/popup-DX5ojVOZ.es.amd.js.map +1 -0
  47. package/.chunks/{popup-Bn5Wm8WI.es.js → popup-DX5ojVOZ.es.js} +63 -68
  48. package/.chunks/popup-DX5ojVOZ.es.js.map +1 -0
  49. package/.chunks/{punycode.es6-BfQkzK-L.es.amd.js → punycode.es6-B-sKLnmz.es.amd.js} +1 -1
  50. package/.chunks/punycode.es6-B-sKLnmz.es.amd.js.map +1 -0
  51. package/.chunks/{punycode.es6-BfQkzK-L.es.js → punycode.es6-B-sKLnmz.es.js} +2 -3
  52. package/.chunks/punycode.es6-B-sKLnmz.es.js.map +1 -0
  53. package/.chunks/{store-DjQAOnrn.es.amd.js → store-CpOqkzd6.es.amd.js} +1 -1
  54. package/.chunks/store-CpOqkzd6.es.amd.js.map +1 -0
  55. package/.chunks/{store-DjQAOnrn.es.js → store-CpOqkzd6.es.js} +2 -3
  56. package/.chunks/store-CpOqkzd6.es.js.map +1 -0
  57. package/.chunks/{utils-mBJcBhkk.es.amd.js → utils-BOY8Oc75.es.amd.js} +2 -2
  58. package/.chunks/utils-BOY8Oc75.es.amd.js.map +1 -0
  59. package/.chunks/{utils-mBJcBhkk.es.js → utils-BOY8Oc75.es.js} +57 -59
  60. package/.chunks/utils-BOY8Oc75.es.js.map +1 -0
  61. package/.chunks/utils-DxN74HW3.es.amd.js +3 -0
  62. package/.chunks/utils-DxN74HW3.es.amd.js.map +1 -0
  63. package/.chunks/{utils-D46Z7je_.es.js → utils-DxN74HW3.es.js} +95 -101
  64. package/.chunks/utils-DxN74HW3.es.js.map +1 -0
  65. package/.chunks/{worker-BfCrg4RI.es.amd.js → worker-Bvig0otc.es.amd.js} +2 -2
  66. package/.chunks/worker-Bvig0otc.es.amd.js.map +1 -0
  67. package/.chunks/{worker-BfCrg4RI.es.js → worker-Bvig0otc.es.js} +6 -11
  68. package/.chunks/worker-Bvig0otc.es.js.map +1 -0
  69. package/api/additional.amd.js +1 -1
  70. package/api/additional.amd.js.map +1 -1
  71. package/api/additional.js +2 -3
  72. package/api/additional.js.map +1 -1
  73. package/api/index.amd.js +1 -1
  74. package/api/index.amd.js.map +1 -1
  75. package/api/index.js +1 -2
  76. package/autoload-css-manifest.amd.json +4 -4
  77. package/autoload-css-manifest.json +4 -4
  78. package/charts/charts.amd.js +1 -1
  79. package/charts/charts.amd.js.map +1 -1
  80. package/charts/charts.js +2 -3
  81. package/charts/charts.js.map +1 -1
  82. package/core/app.amd.js +1 -1
  83. package/core/app.amd.js.map +1 -1
  84. package/core/app.js +3 -3
  85. package/dialog/dialog.amd.js +1 -1
  86. package/dialog/dialog.amd.js.map +1 -1
  87. package/dialog/dialog.js +2 -2
  88. package/extra/extra.amd.js.map +1 -1
  89. package/extra/extra.js +1 -3
  90. package/extra/extra.js.map +1 -1
  91. package/forms/forms.amd.js +1 -1
  92. package/forms/forms.amd.js.map +1 -1
  93. package/forms/forms.js +1 -2
  94. package/formsExt/formsExt.amd.js +1 -1
  95. package/formsExt/formsExt.amd.js.map +1 -1
  96. package/formsExt/formsExt.js +1 -2
  97. package/icomoon/Topvisor icons.json +5 -5
  98. package/icomoon/demo.html +2 -2
  99. package/icomoon/fonts/Topvisor-2.eot +0 -0
  100. package/icomoon/fonts/Topvisor-2.svg +1 -1
  101. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  102. package/icomoon/fonts/Topvisor-2.woff +0 -0
  103. package/icomoon/selection.json +1 -1
  104. package/icomoon/style.css +6 -6
  105. package/layout/layout.amd.js +1 -1
  106. package/layout/layout.amd.js.map +1 -1
  107. package/layout/layout.js +2 -4
  108. package/layout/layout.js.map +1 -1
  109. package/package.json +3 -3
  110. package/popup/popup.amd.js +1 -1
  111. package/popup/popup.amd.js.map +1 -1
  112. package/popup/popup.js +1 -2
  113. package/popup/worker.amd.js +1 -1
  114. package/popup/worker.amd.js.map +1 -1
  115. package/popup/worker.js +1 -2
  116. package/project/project.amd.js +1 -1
  117. package/project/project.amd.js.map +1 -1
  118. package/project/project.js +423 -448
  119. package/project/project.js.map +1 -1
  120. package/schedule/schedule.amd.js +1 -1
  121. package/schedule/schedule.amd.js.map +1 -1
  122. package/schedule/schedule.js +28 -45
  123. package/schedule/schedule.js.map +1 -1
  124. package/tabs/tabs.amd.js.map +1 -1
  125. package/tabs/tabs.js +1 -2
  126. package/tabs/tabs.js.map +1 -1
  127. package/tabsView/tabsView.amd.js +1 -1
  128. package/tabsView/tabsView.amd.js.map +1 -1
  129. package/tabsView/tabsView.js +34 -44
  130. package/tabsView/tabsView.js.map +1 -1
  131. package/utils/check.amd.js.map +1 -1
  132. package/utils/check.js +1 -2
  133. package/utils/check.js.map +1 -1
  134. package/utils/clipboard.amd.js +1 -1
  135. package/utils/clipboard.amd.js.map +1 -1
  136. package/utils/clipboard.js +2 -3
  137. package/utils/clipboard.js.map +1 -1
  138. package/utils/date.amd.js +1 -1
  139. package/utils/date.amd.js.map +1 -1
  140. package/utils/date.js +1 -2
  141. package/utils/device.amd.js +1 -1
  142. package/utils/device.amd.js.map +1 -1
  143. package/utils/device.js +1 -2
  144. package/utils/dom.amd.js.map +1 -1
  145. package/utils/dom.js +1 -2
  146. package/utils/dom.js.map +1 -1
  147. package/utils/image.amd.js +1 -1
  148. package/utils/image.amd.js.map +1 -1
  149. package/utils/image.js +2 -3
  150. package/utils/image.js.map +1 -1
  151. package/utils/keyboard.amd.js.map +1 -1
  152. package/utils/keyboard.js +1 -2
  153. package/utils/keyboard.js.map +1 -1
  154. package/utils/lodash.amd.js +1 -1
  155. package/utils/lodash.amd.js.map +1 -1
  156. package/utils/lodash.js +1 -2
  157. package/utils/number.amd.js.map +1 -1
  158. package/utils/number.js +1 -2
  159. package/utils/number.js.map +1 -1
  160. package/utils/price.amd.js +1 -1
  161. package/utils/price.amd.js.map +1 -1
  162. package/utils/price.js +2 -3
  163. package/utils/price.js.map +1 -1
  164. package/utils/route.amd.js.map +1 -1
  165. package/utils/route.js +1 -2
  166. package/utils/route.js.map +1 -1
  167. package/utils/scroll.amd.js.map +1 -1
  168. package/utils/scroll.js +1 -2
  169. package/utils/scroll.js.map +1 -1
  170. package/utils/searchers.amd.js +1 -1
  171. package/utils/searchers.amd.js.map +1 -1
  172. package/utils/searchers.js +2 -3
  173. package/utils/searchers.js.map +1 -1
  174. package/utils/store.amd.js +1 -1
  175. package/utils/store.amd.js.map +1 -1
  176. package/utils/store.js +1 -2
  177. package/utils/string.amd.js +2 -2
  178. package/utils/string.amd.js.map +1 -1
  179. package/utils/string.js +14 -15
  180. package/utils/string.js.map +1 -1
  181. package/utils/system.amd.js.map +1 -1
  182. package/utils/system.js +1 -2
  183. package/utils/system.js.map +1 -1
  184. package/utils/url.amd.js +1 -1
  185. package/utils/url.amd.js.map +1 -1
  186. package/utils/url.js +2 -3
  187. package/utils/url.js.map +1 -1
  188. package/.chunks/api-nVBtzTDk.es.amd.js.map +0 -1
  189. package/.chunks/api-nVBtzTDk.es.js.map +0 -1
  190. package/.chunks/app-qGtdp_Vh.es.amd.js +0 -2
  191. package/.chunks/app-qGtdp_Vh.es.amd.js.map +0 -1
  192. package/.chunks/app-qGtdp_Vh.es.js +0 -405
  193. package/.chunks/app-qGtdp_Vh.es.js.map +0 -1
  194. package/.chunks/datepicker-MlbIM78m.es.amd.js.map +0 -1
  195. package/.chunks/datepicker-MlbIM78m.es.js.map +0 -1
  196. package/.chunks/dialog-C_1nmPXN.es.amd.js +0 -2
  197. package/.chunks/dialog-C_1nmPXN.es.amd.js.map +0 -1
  198. package/.chunks/dialog-C_1nmPXN.es.js.map +0 -1
  199. package/.chunks/dialog_regionSelectorRegions-BPUDeHdW.es.amd.js +0 -2
  200. package/.chunks/dialog_regionSelectorRegions-BPUDeHdW.es.amd.js.map +0 -1
  201. package/.chunks/dialog_regionSelectorRegions-BPUDeHdW.es.js.map +0 -1
  202. package/.chunks/forms-dosApNxi.es.amd.js +0 -2
  203. package/.chunks/forms-dosApNxi.es.amd.js.map +0 -1
  204. package/.chunks/forms-dosApNxi.es.js.map +0 -1
  205. package/.chunks/formsExt-D7XsRleI.es.amd.js +0 -2
  206. package/.chunks/formsExt-D7XsRleI.es.amd.js.map +0 -1
  207. package/.chunks/formsExt-D7XsRleI.es.js.map +0 -1
  208. package/.chunks/lazy-DQU-hLos.es.amd.js.map +0 -1
  209. package/.chunks/lazy-DQU-hLos.es.js.map +0 -1
  210. package/.chunks/mocker-h3ROH-VB.es.amd.js.map +0 -1
  211. package/.chunks/mocker-h3ROH-VB.es.js.map +0 -1
  212. package/.chunks/notice-8nwvAJQm.es.amd.js.map +0 -1
  213. package/.chunks/notice-8nwvAJQm.es.js.map +0 -1
  214. package/.chunks/popup-Bn5Wm8WI.es.amd.js +0 -2
  215. package/.chunks/popup-Bn5Wm8WI.es.amd.js.map +0 -1
  216. package/.chunks/popup-Bn5Wm8WI.es.js.map +0 -1
  217. package/.chunks/popup-cAqd6Dj3.es.amd.js.map +0 -1
  218. package/.chunks/popup-cAqd6Dj3.es.js.map +0 -1
  219. package/.chunks/punycode.es6-BfQkzK-L.es.amd.js.map +0 -1
  220. package/.chunks/punycode.es6-BfQkzK-L.es.js.map +0 -1
  221. package/.chunks/store-DjQAOnrn.es.amd.js.map +0 -1
  222. package/.chunks/store-DjQAOnrn.es.js.map +0 -1
  223. package/.chunks/utils-D46Z7je_.es.amd.js +0 -3
  224. package/.chunks/utils-D46Z7je_.es.amd.js.map +0 -1
  225. package/.chunks/utils-D46Z7je_.es.js.map +0 -1
  226. package/.chunks/utils-mBJcBhkk.es.amd.js.map +0 -1
  227. package/.chunks/utils-mBJcBhkk.es.js.map +0 -1
  228. package/.chunks/worker-BfCrg4RI.es.amd.js.map +0 -1
  229. package/.chunks/worker-BfCrg4RI.es.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define([`require`,`exports`,`./forms-dosApNxi.es.amd`,`./worker-BfCrg4RI.es.amd`,`vue`,`../require/css.amd!../assets/popup.css`],function(e,t,n,r,i){"use strict";if(a===void 0)var a=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.t=t.s=t.r=t.o=t.n=t.i=t.c=t.a=void 0;var o=(0,i.defineComponent)({__name:`opener`,props:{id:{},pos:{default:`3`},notch:{type:Boolean,default:!0},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{default:`fixed`},data:{}},setup(e){let t=e,n=t.id||Math.random()+``,a;function o(e){e&&setTimeout(()=>{a=e.nextElementSibling,a&&s(a)})}(0,i.onUpdated)(()=>{a&&s(a)});function s(e){e.dataset.topPopup=`#`+n;let i=!!e.dataset.topPopupDisabled;if(e.dataset.topPopupId=n,e.dataset.topPopupPos=t.pos,e.dataset.topPopupPosBy=t.posBy,e.dataset.topPopupNotch=t.notch?`true`:``,e.dataset.topPopupOpenByHover=t.openByHover?`true`:``,e.dataset.topPopupDisabled=t.disabled?`true`:``,e.__TopPopupOpenerProps=t,t.openByFocusInput&&e.classList.contains(`top-input`)){let n=e.querySelector(`input`);if(n.onfocus=()=>{e.dataset.topPopupDisabled||r.t.getPopupFromOpener(e)?.vueGetComponent()?.opened||r.t.openByOpener(e)},t.disabled!==i&&n===document.activeElement){let n=r.t.getPopupFromOpener(e);!t.disabled&&!n&&r.t.openByOpener(e),t.disabled&&n&&n.close()}}}return(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,null,[(0,i.createElementVNode)(`template`,{ref:o},null,512),(0,i.renderSlot)(e.$slots,`default`)],64))}}),s={key:0,class:`top-popup_header`},c={key:0,class:`top-as-a closer`},l={key:1,class:`top-popup_widget`},u={key:2,class:`top-popup_content`},d={key:4,class:`top-popup_footer`},f=[`href`],p=(0,i.defineComponent)({__name:`popup`,props:{id:{default:``},class:{},transitionDuration:{},footerSupportLink:{},pos:{default:`3`},notch:{type:Boolean,default:!0},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{default:`fixed`},data:{}},emits:[`open`,`close`,`scrollContentList`],setup(e,{expose:t,emit:a,slots:p}){let m=a,h=e,g=a,_=h.id||`top-popup-id-`+Math.random(),v={id:_,popup:void 0};t(v);let y=(0,i.ref)(null),b=(0,i.ref)(null),x=(0,i.ref)(),S={onOpen:async e=>{e.elPopup&&(y.value=e.elPopup),e.elPopupInner&&(e.elPopupInner.innerText=``,b.value=e.elPopupInner),S.opened=!0,S.popup=e,v.popup=e,x.value=e.el.__TopPopupOpenerProps.data,g(`open`,{elPopup:e.elPopup,elPopupOpener:e.el,data:x.value})},onClose:e=>{b.value=null,S.opened=!1,S.popup=void 0,x.value=void 0,g(`close`,{elPopup:e.elPopup,elPopupOpener:e.el,data:e.el.__TopPopupOpenerProps.data})},classRef:(0,i.toRef)(h,`class`),opened:!1,popup:void 0,transitionDurationRef:(0,i.toRef)(h,`transitionDuration`)};return(0,i.watch)(()=>h.class,(e,t)=>{if(!y.value)return;let n=e?.split(` `)??[],r=(t?.split(` `)??[]).filter(e=>!n.includes(e));y.value.classList.remove(...r),y.value.classList.add(...n)}),r.t.regVueComponent(_,S),(0,i.onUnmounted)(()=>{r.t.unregVueComponent(_)}),(t,r)=>{let a=(0,i.resolveDirective)(`top-scroll-shadow`);return(0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,null,[p.opener?((0,i.openBlock)(),(0,i.createBlock)(o,{key:0,id:(0,i.unref)(_),pos:e.pos,posBy:e.posBy,notch:e.notch,openByFocusInput:e.openByFocusInput,openByHover:t.$core.state.isMobile||t.$core.state.isMobileUA?!1:e.openByHover,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`opener`)]),_:3},8,[`id`,`pos`,`posBy`,`notch`,`openByFocusInput`,`openByHover`,`disabled`])):(0,i.createCommentVNode)(``,!0),b.value?((0,i.openBlock)(),(0,i.createBlock)(i.Teleport,{key:1,to:b.value},[p.header||t.$core.state.isMobile?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,s,[t.$core.state.isMobile?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,c,(0,i.toDisplayString)(t.$i18n.Common.Close),1)):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(t.$slots,`header`,{data:x.value})])):(0,i.createCommentVNode)(``,!0),p.widget?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,l,[(0,i.renderSlot)(t.$slots,`widget`)])):(0,i.createCommentVNode)(``,!0),p.content?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`div`,u,[(0,i.renderSlot)(t.$slots,`content`,{data:x.value})])),[[a]]):(0,i.createCommentVNode)(``,!0),p.contentList?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`ul`,{key:3,class:`top-popup_content`,onScroll:r[0]||=e=>m(`scrollContentList`,e)},[(0,i.renderSlot)(t.$slots,`contentList`,{data:x.value})],32)),[[a]]):(0,i.createCommentVNode)(``,!0),p.footer||e.footerSupportLink?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[e.footerSupportLink?((0,i.openBlock)(),(0,i.createElementBlock)(`a`,{key:0,class:`top-popup_footerSupportLink`,href:e.footerSupportLink,target:`_blank`},[(0,i.createVNode)(n.d,{hint:``})],8,f)):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(t.$slots,`footer`,{data:x.value})])):(0,i.createCommentVNode)(``,!0)],8,[`to`])):(0,i.createCommentVNode)(``,!0)],64)}}}),m={class:`top-popup_listItemActionsLabel top-ellipsis1`},h={class:`top-popup_listItemActions`},g=(0,i.defineComponent)({inheritAttrs:!1,__name:`listItem`,props:{type:{default:`button`},closeByClick:{type:Boolean,default:!0},class:{},attrs:{}},setup(e,{attrs:t,slots:n}){let r=e;return(a,o)=>((0,i.openBlock)(),(0,i.createElementBlock)(`li`,{class:(0,i.normalizeClass)({"top-popup_liNoSelectable":r.type!==`button`})},[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(t.href?`a`:`div`),(0,i.mergeProps)({class:{"top-popup_listItem":!0,[`top-popup_listItem-`+r.type]:!!r.type,"top-popup_liastItem-withActions":n.actions,"top-popup-noCloser":!e.closeByClick,[r.class??``]:!!r.class,a:r.type===`button`}},{...t,...e.attrs}),{default:(0,i.withCtx)(()=>[n.actions?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createElementVNode)(`div`,m,[(0,i.renderSlot)(a.$slots,`default`)]),(0,i.createElementVNode)(`div`,h,[(0,i.renderSlot)(a.$slots,`actions`)])],64)):(0,i.renderSlot)(a.$slots,`default`,{},void 0,void 0,1)]),_:3},16,[`class`])),(0,i.renderSlot)(a.$slots,`buttons`)],2))}}),_=(0,i.defineComponent)({__name:`widgetInput`,props:(0,i.mergeModels)({modelValue:{},name:{},disabled:{type:Boolean},readonly:{type:Boolean},modificator:{},size:{},styling:{},isError:{type:Boolean},isLoading:{type:Boolean},icon:{},icon2:{},addCleaner:{type:Boolean,default:!0},title:{},captionType:{}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=(0,i.useModel)(e,`modelValue`);return(e,a)=>((0,i.openBlock)(),(0,i.createBlock)(n.c,(0,i.mergeProps)(t,{modificator:`popupWidgetInput`,modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e}),null,16,[`modelValue`]))}}),v=(0,i.defineComponent)({__name:`popupAlert`,props:{submitText:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`],setup(e,{emit:t,slots:r}){let{submitText:a,...o}=e;return(e,s)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupAlert`},o,{onOpen:s[0]||=e=>t(`open`,e),onClose:s[1]||=e=>t(`close`,e),onScrollContentList:s[2]||=(...e)=>t(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,null,{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(a)||e.$i18n.Common.Close),1)]),_:1})]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`1`}:void 0]),1040))}}),y=(0,i.defineComponent)({__name:`popupConfirm`,props:{cancelText:{},submitText:{},isWarning:{type:Boolean},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`,`submit`],setup(e,{emit:t,slots:r}){let a=t,o=e,s=t,c=(0,i.ref)(!1),l=()=>{c.value=!0,s(`submit`)},u=e=>{if(c.value){c.value=!1;return}s(`close`,e)},{submitText:d,cancelText:f,isWarning:m,...h}=o;return(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupConfirm`},h,{onOpen:t[0]||=e=>a(`open`,e),onClose:t[1]||=e=>u(e),onScrollContentList:t[2]||=(...e)=>a(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,{color:`theme`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(f)||e.$i18n.Common.Cancel),1)]),_:1}),(0,i.createVNode)(n.h,{onClick:l,color:(0,i.unref)(m)?`red`:`blue`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(d)||e.$i18n.Common.Continue),1)]),_:1},8,[`color`])]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`1`}:void 0]),1040))}}),b=(0,i.defineComponent)({__name:`popupPrompt`,props:{submitText:{},cancelText:{},defaultValue:{},inputProps:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`,`submit`],setup(e,{emit:t,slots:r}){let a=t,o=e,s=t,c=()=>u.value=o.defaultValue??``,l=(0,i.ref)(!1),u=(0,i.ref)();(0,i.watch)(()=>o.defaultValue,()=>c(),{immediate:!0});let d=()=>{l.value=!0},f=e=>{if(l.value){l.value=!1,s(`submit`,u.value),c();return}c(),s(`close`,e)},{submitText:m,cancelText:h,defaultValue:g,inputProps:v,...y}=o;return(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupPrompt`},y,{onOpen:t[1]||=e=>a(`open`,e),onClose:t[2]||=e=>f(e),onScrollContentList:t[3]||=(...e)=>a(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,{color:`theme`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(h)||e.$i18n.Common.Cancel),1)]),_:1}),(0,i.createVNode)(n.h,{onClick:d},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(m)||e.$i18n.Common.OK),1)]),_:1})]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`),(0,i.createVNode)(_,(0,i.mergeProps)({modelValue:u.value,"onUpdate:modelValue":t[0]||=e=>u.value=e,modelModifiers:{trim:!0}},(0,i.unref)(v)),null,16,[`modelValue`])]),key:`1`}:void 0]),1040))}}),x=(0,i.defineComponent)({__name:`popupHint`,props:{hint:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},setup(e,{emit:t,slots:r}){let{hint:a,...o}=e;return(e,s)=>{let c=(0,i.resolveDirective)(`top-tooltip`);return(0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupHint`},o,{onOpen:s[0]||=e=>t(`open`,e),onClose:s[1]||=e=>t(`close`,e),onScrollContentList:s[2]||=(...e)=>t(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.withDirectives)((0,i.createVNode)(n.d,{hint:(0,i.unref)(a),class:`top-popupHint_opener`},null,8,[`hint`]),[[c]])]),_:2},[r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`0`}:void 0]),1040)}}});t.c=o,t.s=p,t.o=g,t.a=_,t.i=v,t.r=y,t.n=b,t.t=x});
2
- //# sourceMappingURL=popup-cAqd6Dj3.es.amd.js.map
1
+ define([`require`,`exports`,`./forms-4YO5ZEqQ.es.amd`,`./worker-Bvig0otc.es.amd`,`vue`,`../require/css.amd!../assets/popup.css`],function(e,t,n,r,i){"use strict";if(a===void 0)var a=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.t=t.s=t.r=t.o=t.n=t.i=t.c=t.a=void 0;var o=(0,i.defineComponent)({__name:`opener`,props:{id:{},pos:{default:`3`},notch:{type:Boolean,default:!0},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{default:`fixed`},data:{}},setup(e){let t=e,n=t.id||Math.random()+``,a;function o(e){e&&setTimeout(()=>{a=e.nextElementSibling,a&&s(a)})}(0,i.onUpdated)(()=>{a&&s(a)});function s(e){e.dataset.topPopup=`#`+n;let i=!!e.dataset.topPopupDisabled;if(e.dataset.topPopupId=n,e.dataset.topPopupPos=t.pos,e.dataset.topPopupPosBy=t.posBy,e.dataset.topPopupNotch=t.notch?`true`:``,e.dataset.topPopupOpenByHover=t.openByHover?`true`:``,e.dataset.topPopupDisabled=t.disabled?`true`:``,e.__TopPopupOpenerProps=t,t.openByFocusInput&&e.classList.contains(`top-input`)){let n=e.querySelector(`input`);if(n.onfocus=()=>{e.dataset.topPopupDisabled||r.t.getPopupFromOpener(e)?.vueGetComponent()?.opened||r.t.openByOpener(e)},t.disabled!==i&&n===document.activeElement){let n=r.t.getPopupFromOpener(e);!t.disabled&&!n&&r.t.openByOpener(e),t.disabled&&n&&n.close()}}}return(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,null,[(0,i.createElementVNode)(`template`,{ref:o},null,512),(0,i.renderSlot)(e.$slots,`default`)],64))}}),s={key:0,class:`top-popup_header`},c={key:0,class:`top-as-a closer`},l={key:1,class:`top-popup_widget`},u={key:2,class:`top-popup_content`},d={key:4,class:`top-popup_footer`},f=[`href`],p=(0,i.defineComponent)({__name:`popup`,props:{id:{default:``},class:{},transitionDuration:{},footerSupportLink:{},pos:{default:`3`},notch:{type:Boolean,default:!0},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{default:`fixed`},data:{}},emits:[`open`,`close`,`scrollContentList`],setup(e,{expose:t,emit:a,slots:p}){let m=a,h=e,g=a,_=h.id||`top-popup-id-`+Math.random(),v={id:_,popup:void 0};t(v);let y=(0,i.ref)(null),b=(0,i.ref)(null),x=(0,i.ref)(),S={onOpen:async e=>{e.elPopup&&(y.value=e.elPopup),e.elPopupInner&&(e.elPopupInner.innerText=``,b.value=e.elPopupInner),S.opened=!0,S.popup=e,v.popup=e,x.value=e.el.__TopPopupOpenerProps.data,g(`open`,{elPopup:e.elPopup,elPopupOpener:e.el,data:x.value})},onClose:e=>{b.value=null,S.opened=!1,S.popup=void 0,x.value=void 0,g(`close`,{elPopup:e.elPopup,elPopupOpener:e.el,data:e.el.__TopPopupOpenerProps.data})},classRef:(0,i.toRef)(h,`class`),opened:!1,popup:void 0,transitionDurationRef:(0,i.toRef)(h,`transitionDuration`)};return(0,i.watch)(()=>h.class,(e,t)=>{if(!y.value)return;let n=e?.split(` `)??[],r=(t?.split(` `)??[]).filter(e=>!n.includes(e));y.value.classList.remove(...r),y.value.classList.add(...n)}),r.t.regVueComponent(_,S),(0,i.onUnmounted)(()=>{r.t.unregVueComponent(_)}),(t,r)=>{let a=(0,i.resolveDirective)(`top-scroll-shadow`);return(0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,null,[p.opener?((0,i.openBlock)(),(0,i.createBlock)(o,{key:0,id:(0,i.unref)(_),pos:e.pos,posBy:e.posBy,notch:e.notch,openByFocusInput:e.openByFocusInput,openByHover:t.$core.state.isMobile||t.$core.state.isMobileUA?!1:e.openByHover,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`opener`)]),_:3},8,[`id`,`pos`,`posBy`,`notch`,`openByFocusInput`,`openByHover`,`disabled`])):(0,i.createCommentVNode)(``,!0),b.value?((0,i.openBlock)(),(0,i.createBlock)(i.Teleport,{key:1,to:b.value},[p.header||t.$core.state.isMobile?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,s,[t.$core.state.isMobile?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,c,(0,i.toDisplayString)(t.$i18n.Common.Close),1)):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(t.$slots,`header`,{data:x.value})])):(0,i.createCommentVNode)(``,!0),p.widget?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,l,[(0,i.renderSlot)(t.$slots,`widget`)])):(0,i.createCommentVNode)(``,!0),p.content?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`div`,u,[(0,i.renderSlot)(t.$slots,`content`,{data:x.value})])),[[a]]):(0,i.createCommentVNode)(``,!0),p.contentList?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`ul`,{key:3,class:`top-popup_content`,onScroll:r[0]||=e=>m(`scrollContentList`,e)},[(0,i.renderSlot)(t.$slots,`contentList`,{data:x.value})],32)),[[a]]):(0,i.createCommentVNode)(``,!0),p.footer||e.footerSupportLink?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[e.footerSupportLink?((0,i.openBlock)(),(0,i.createElementBlock)(`a`,{key:0,class:`top-popup_footerSupportLink`,href:e.footerSupportLink,target:`_blank`},[(0,i.createVNode)(n.d,{hint:``})],8,f)):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(t.$slots,`footer`,{data:x.value})])):(0,i.createCommentVNode)(``,!0)],8,[`to`])):(0,i.createCommentVNode)(``,!0)],64)}}}),m={class:`top-popup_listItemActionsLabel top-ellipsis1`},h={class:`top-popup_listItemActions`},g=(0,i.defineComponent)({inheritAttrs:!1,__name:`listItem`,props:{type:{default:`button`},closeByClick:{type:Boolean,default:!0},class:{},attrs:{}},setup(e,{attrs:t,slots:n}){let r=e;return(a,o)=>((0,i.openBlock)(),(0,i.createElementBlock)(`li`,{class:(0,i.normalizeClass)({"top-popup_liNoSelectable":r.type!==`button`})},[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(t.href?`a`:`div`),(0,i.mergeProps)({class:{"top-popup_listItem":!0,[`top-popup_listItem-`+r.type]:!!r.type,"top-popup_liastItem-withActions":n.actions,"top-popup-noCloser":!e.closeByClick,[r.class??``]:!!r.class,a:r.type===`button`}},{...t,...e.attrs}),{default:(0,i.withCtx)(()=>[n.actions?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createElementVNode)(`div`,m,[(0,i.renderSlot)(a.$slots,`default`)]),(0,i.createElementVNode)(`div`,h,[(0,i.renderSlot)(a.$slots,`actions`)])],64)):(0,i.renderSlot)(a.$slots,`default`,{},void 0,void 0,1)]),_:3},16,[`class`])),(0,i.renderSlot)(a.$slots,`buttons`)],2))}}),_=(0,i.defineComponent)({__name:`widgetInput`,props:(0,i.mergeModels)({modelValue:{},name:{},disabled:{type:Boolean},readonly:{type:Boolean},modificator:{},size:{},styling:{},isError:{type:Boolean},isLoading:{type:Boolean},icon:{},icon2:{},addCleaner:{type:Boolean,default:!0},title:{},captionType:{}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=(0,i.useModel)(e,`modelValue`);return(e,a)=>((0,i.openBlock)(),(0,i.createBlock)(n.c,(0,i.mergeProps)(t,{modificator:`popupWidgetInput`,modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e}),null,16,[`modelValue`]))}}),v=(0,i.defineComponent)({__name:`popupAlert`,props:{submitText:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`],setup(e,{emit:t,slots:r}){let{submitText:a,...o}=e;return(e,s)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupAlert`},o,{onOpen:s[0]||=e=>t(`open`,e),onClose:s[1]||=e=>t(`close`,e),onScrollContentList:s[2]||=(...e)=>t(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,null,{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(a)||e.$i18n.Common.Close),1)]),_:1})]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`1`}:void 0]),1040))}}),y=(0,i.defineComponent)({__name:`popupConfirm`,props:{cancelText:{},submitText:{},isWarning:{type:Boolean},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`,`submit`],setup(e,{emit:t,slots:r}){let a=t,o=e,s=t,c=(0,i.ref)(!1),l=()=>{c.value=!0,s(`submit`)},u=e=>{c.value?c.value=!1:s(`close`,e)},{submitText:d,cancelText:f,isWarning:m,...h}=o;return(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupConfirm`},h,{onOpen:t[0]||=e=>a(`open`,e),onClose:t[1]||=e=>u(e),onScrollContentList:t[2]||=(...e)=>a(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,{color:`theme`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(f)||e.$i18n.Common.Cancel),1)]),_:1}),(0,i.createVNode)(n.h,{onClick:l,color:(0,i.unref)(m)?`red`:`blue`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(d)||e.$i18n.Common.Continue),1)]),_:1},8,[`color`])]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`1`}:void 0]),1040))}}),b=(0,i.defineComponent)({__name:`popupPrompt`,props:{submitText:{},cancelText:{},defaultValue:{},inputProps:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:[`open`,`close`,`scrollContentList`,`submit`],setup(e,{emit:t,slots:r}){let a=t,o=e,s=t,c=()=>u.value=o.defaultValue??``,l=(0,i.ref)(!1),u=(0,i.ref)();(0,i.watch)(()=>o.defaultValue,()=>c(),{immediate:!0});let d=()=>{l.value=!0},f=e=>{l.value?(l.value=!1,s(`submit`,u.value),c()):(c(),s(`close`,e))},{submitText:m,cancelText:h,defaultValue:g,inputProps:v,...y}=o;return(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupPrompt`},y,{onOpen:t[1]||=e=>a(`open`,e),onClose:t[2]||=e=>f(e),onScrollContentList:t[3]||=(...e)=>a(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`opener`)]),footer:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`footer`),(0,i.createVNode)(n.h,{color:`theme`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(h)||e.$i18n.Common.Cancel),1)]),_:1}),(0,i.createVNode)(n.h,{onClick:d},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(m)||e.$i18n.Common.OK),1)]),_:1})]),_:2},[r.header?{name:`header`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`header`)]),key:`0`}:void 0,r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`),(0,i.createVNode)(_,(0,i.mergeProps)({modelValue:u.value,"onUpdate:modelValue":t[0]||=e=>u.value=e,modelModifiers:{trim:!0}},(0,i.unref)(v)),null,16,[`modelValue`])]),key:`1`}:void 0]),1040))}}),x=(0,i.defineComponent)({__name:`popupHint`,props:{hint:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},setup(e,{emit:t,slots:r}){let{hint:a,...o}=e;return(e,s)=>{let c=(0,i.resolveDirective)(`top-tooltip`);return(0,i.openBlock)(),(0,i.createBlock)(p,(0,i.mergeProps)({class:`top-popupHint`},o,{onOpen:s[0]||=e=>t(`open`,e),onClose:s[1]||=e=>t(`close`,e),onScrollContentList:s[2]||=(...e)=>t(`scrollContentList`,...e)}),(0,i.createSlots)({opener:(0,i.withCtx)(()=>[(0,i.withDirectives)((0,i.createVNode)(n.d,{hint:(0,i.unref)(a),class:`top-popupHint_opener`},null,8,[`hint`]),[[c]])]),_:2},[r.default?{name:`content`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,`default`)]),key:`0`}:void 0]),1040)}}});t.c=o,t.s=p,t.o=g,t.a=_,t.i=v,t.r=y,t.n=b,t.t=x});
2
+ //# sourceMappingURL=popup-DITngjrJ.es.amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[".chunks/popup-DITngjrJ.es.js","../../src/components/popup/popup/opener/opener.vue","../../src/components/popup/popup/popup.vue","../../src/components/popup/popup/listItem.vue","../../src/components/popup/popup/widgetInput/widgetInput.vue","../../src/components/popup/popupAlert/popupAlert.vue","../../src/components/popup/popupConfirm/popupConfirm.vue","../../src/components/popup/popupPrompt/popupPrompt.vue","../../src/components/popup/popupHint/popupHint.vue"],"names":["vue","exports","j","vue_1","props","id","render","renderOpener","disabledOld","worker_Bvig0otc_es_js_1","popup","M","N","P","F","I","L","R","__props","l","u","d","p","m","h","g","n","v","C","D","watch","vueConnector","onUnmounted","$core","_ctx","_createElementBlock","_renderSlot","_openBlock","_hoisted_5","forms_4YO5ZEqQ_es_js_1","z","B","V","$attrs","H","model","t","U","_createBlock","TopPopup","_cache","i","a","args","_withCtx","_toDisplayString","submitText","$i18n","W","emit","_","_createTextVNode","onSubmit","G","propsPopup","S","T","_createVNode","$event","K","_mergeProps","$em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,aAAA,EACrB,OAAA,EAAApE,EAAO,UAAgB,CAAA,GAAA,EAAAA,EAAA,YAAA,CAAAc,GAAA,EAAAd,EAAA,WAAA,CAAA,CAAA,MAAA,eAAA,EAAAiD,EAAA,CAC5B,OAAiB,EAAA,KAAMC,GAASkB,EAAK,OAAA,CAAA,ERwYpB,QAAS,EAAE,KAAQ,GAAM7C,EAAE,QAAS,CAAC,EQhYpD,oBAAA,EAAA,MAAA,GAAA,IAAAA,EAAA,oBAAA,GAAA,CAAA,CAHM,CAAA,GAAA,EAAAvB,EAAA,YAAA,CAAA,CACD,QAAA,EAAAA,EAAA,QAAA,KAAA,EAAA,EAAAA,EAAA,eAAA,EAAA,EAAAA,EAAA,YAAA,CAAAoC,EAAA,EAAA,CRsYkB,MAAO,EAAGpC,EAAM,MAAK,CAAEgD,CAAC,EACxB,MAAO,sBACX,EAAG,KAAM,EAAG,CAAC,MAAM,CAAC,EAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EQnYzC,EAAA,CAEG,EAAAjB,CAAAA,EAAA,QAAA,CRoYQ,KAAM,UACN,IAAK,EAAG/B,EAAM,QAAO,KAAQ,EAAE,EAAGA,EAAM,WAAU,CAAE,EAAE,OAAQ,SAAS,CAAC,CAAC,EACzE,IAAK,GACT,EAAI,IAAK,EAAC,CAAC,EAAG,IAAI,CAC1B,CACJ,CACJ,CAAC,EACD,EAAQ,EAAID,EACZ,EAAQ,EAAIe,EACZ,EAAQ,EAAIyB,EACZ,EAAQ,EAAIE,EACZ,EAAQ,EAAIG,EACZ,EAAQ,EAAIW,EACZ,EAAQ,EAAIK,EACZ,EAAQ,EAAIM,CAChB,CAAC","sourcesContent":["define([\"require\", \"exports\", \"./forms-4YO5ZEqQ.es.js\", \"./worker-Bvig0otc.es.js\", \"vue\"], function (require, exports, forms_4YO5ZEqQ_es_js_1, worker_Bvig0otc_es_js_1, vue_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.t = exports.s = exports.r = exports.o = exports.n = exports.i = exports.c = exports.a = void 0;\n // src/components/popup/popup/opener/opener.vue\n var j = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"opener\",\n props: {\n id: {},\n pos: { default: \"3\" },\n notch: {\n type: Boolean,\n default: !0\n },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: { default: \"fixed\" },\n data: {}\n },\n setup(e) {\n let t = e, n = t.id || Math.random() + \"\", a;\n function o(e) {\n e && setTimeout(() => {\n a = e.nextElementSibling, a && s(a);\n });\n }\n (0, vue_1.onUpdated)(() => {\n a && s(a);\n });\n function s(e) {\n e.dataset.topPopup = \"#\" + n;\n let i = !!e.dataset.topPopupDisabled;\n if (e.dataset.topPopupId = n, e.dataset.topPopupPos = t.pos, e.dataset.topPopupPosBy = t.posBy, e.dataset.topPopupNotch = t.notch ? \"true\" : \"\", e.dataset.topPopupOpenByHover = t.openByHover ? \"true\" : \"\", e.dataset.topPopupDisabled = t.disabled ? \"true\" : \"\", e.__TopPopupOpenerProps = t, t.openByFocusInput && e.classList.contains(\"top-input\")) {\n let n = e.querySelector(\"input\");\n if (n.onfocus = () => {\n e.dataset.topPopupDisabled || worker_Bvig0otc_es_js_1.t.getPopupFromOpener(e)?.vueGetComponent()?.opened || worker_Bvig0otc_es_js_1.t.openByOpener(e);\n }, t.disabled !== i && n === document.activeElement) {\n let n = worker_Bvig0otc_es_js_1.t.getPopupFromOpener(e);\n !t.disabled && !n && worker_Bvig0otc_es_js_1.t.openByOpener(e), t.disabled && n && n.close();\n }\n }\n }\n return (e, t) => ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(vue_1.Fragment, null, [(0, vue_1.createElementVNode)(\"template\", { ref: o }, null, 512), (0, vue_1.renderSlot)(e.$slots, \"default\")], 64));\n }\n }), M = {\n key: 0,\n class: \"top-popup_header\"\n }, N = {\n key: 0,\n class: \"top-as-a closer\"\n }, P = {\n key: 1,\n class: \"top-popup_widget\"\n }, F = {\n key: 2,\n class: \"top-popup_content\"\n }, I = {\n key: 4,\n class: \"top-popup_footer\"\n }, L = [\"href\"], R = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"popup\",\n props: {\n id: { default: \"\" },\n class: {},\n transitionDuration: {},\n footerSupportLink: {},\n pos: { default: \"3\" },\n notch: {\n type: Boolean,\n default: !0\n },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: { default: \"fixed\" },\n data: {}\n },\n emits: [\n \"open\",\n \"close\",\n \"scrollContentList\"\n ],\n setup(e, { expose: n, emit: l, slots: u }) {\n let d = l, p = e, m = l, h = p.id || \"top-popup-id-\" + Math.random(), g = {\n id: h,\n popup: void 0\n };\n n(g);\n let v = (0, vue_1.ref)(null), C = (0, vue_1.ref)(null), D = (0, vue_1.ref)(), R = {\n onOpen: async (e) => {\n e.elPopup && (v.value = e.elPopup), e.elPopupInner && (e.elPopupInner.innerText = \"\", C.value = e.elPopupInner), R.opened = !0, R.popup = e, g.popup = e, D.value = e.el.__TopPopupOpenerProps.data, m(\"open\", {\n elPopup: e.elPopup,\n elPopupOpener: e.el,\n data: D.value\n });\n },\n onClose: (e) => {\n C.value = null, R.opened = !1, R.popup = void 0, D.value = void 0, m(\"close\", {\n elPopup: e.elPopup,\n elPopupOpener: e.el,\n data: e.el.__TopPopupOpenerProps.data\n });\n },\n classRef: (0, vue_1.toRef)(p, \"class\"),\n opened: !1,\n popup: void 0,\n transitionDurationRef: (0, vue_1.toRef)(p, \"transitionDuration\")\n };\n return (0, vue_1.watch)(() => p.class, (e, t) => {\n if (!v.value)\n return;\n let n = e?.split(\" \") ?? [], r = (t?.split(\" \") ?? []).filter((e) => !n.includes(e));\n v.value.classList.remove(...r), v.value.classList.add(...n);\n }), worker_Bvig0otc_es_js_1.t.regVueComponent(h, R), (0, vue_1.onUnmounted)(() => {\n worker_Bvig0otc_es_js_1.t.unregVueComponent(h);\n }), (n, r) => {\n let l = (0, vue_1.resolveDirective)(\"top-scroll-shadow\");\n return (0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(vue_1.Fragment, null, [u.opener ? ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(j, {\n key: 0,\n id: (0, vue_1.unref)(h),\n pos: e.pos,\n posBy: e.posBy,\n notch: e.notch,\n openByFocusInput: e.openByFocusInput,\n openByHover: n.$core.state.isMobile || n.$core.state.isMobileUA ? !1 : e.openByHover,\n disabled: e.disabled\n }, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(n.$slots, \"opener\")]),\n _: 3\n }, 8, [\n \"id\",\n \"pos\",\n \"posBy\",\n \"notch\",\n \"openByFocusInput\",\n \"openByHover\",\n \"disabled\"\n ])) : (0, vue_1.createCommentVNode)(\"\", !0), C.value ? ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(vue_1.Teleport, {\n key: 1,\n to: C.value\n }, [\n u.header || n.$core.state.isMobile ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"div\", M, [n.$core.state.isMobile ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"span\", N, (0, vue_1.toDisplayString)(n.$i18n.Common.Close), 1)) : (0, vue_1.createCommentVNode)(\"\", !0), (0, vue_1.renderSlot)(n.$slots, \"header\", { data: D.value })])) : (0, vue_1.createCommentVNode)(\"\", !0),\n u.widget ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"div\", P, [(0, vue_1.renderSlot)(n.$slots, \"widget\")])) : (0, vue_1.createCommentVNode)(\"\", !0),\n u.content ? (0, vue_1.withDirectives)(((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"div\", F, [(0, vue_1.renderSlot)(n.$slots, \"content\", { data: D.value })])), [[l]]) : (0, vue_1.createCommentVNode)(\"\", !0),\n u.contentList ? (0, vue_1.withDirectives)(((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"ul\", {\n key: 3,\n class: \"top-popup_content\",\n onScroll: r[0] ||= (e) => d(\"scrollContentList\", e)\n }, [(0, vue_1.renderSlot)(n.$slots, \"contentList\", { data: D.value })], 32)), [[l]]) : (0, vue_1.createCommentVNode)(\"\", !0),\n u.footer || e.footerSupportLink ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"div\", I, [e.footerSupportLink ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"a\", {\n key: 0,\n class: \"top-popup_footerSupportLink\",\n href: e.footerSupportLink,\n target: \"_blank\"\n }, [(0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.d, { hint: \"\" })], 8, L)) : (0, vue_1.createCommentVNode)(\"\", !0), (0, vue_1.renderSlot)(n.$slots, \"footer\", { data: D.value })])) : (0, vue_1.createCommentVNode)(\"\", !0)\n ], 8, [\"to\"])) : (0, vue_1.createCommentVNode)(\"\", !0)], 64);\n };\n }\n }), z = { class: \"top-popup_listItemActionsLabel top-ellipsis1\" }, B = { class: \"top-popup_listItemActions\" }, V = /* @__PURE__ */ (0, vue_1.defineComponent)({\n inheritAttrs: !1,\n __name: \"listItem\",\n props: {\n type: { default: \"button\" },\n closeByClick: {\n type: Boolean,\n default: !0\n },\n class: {},\n attrs: {}\n },\n setup(e, { attrs: t, slots: n }) {\n let r = e;\n return (a, s) => ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(\"li\", { class: (0, vue_1.normalizeClass)({ \"top-popup_liNoSelectable\": r.type !== \"button\" }) }, [((0, vue_1.openBlock)(), (0, vue_1.createBlock)((0, vue_1.resolveDynamicComponent)(t.href ? \"a\" : \"div\"), (0, vue_1.mergeProps)({ class: {\n \"top-popup_listItem\": !0,\n [\"top-popup_listItem-\" + r.type]: !!r.type,\n \"top-popup_liastItem-withActions\": n.actions,\n \"top-popup-noCloser\": !e.closeByClick,\n [r.class ?? \"\"]: !!r.class,\n a: r.type === \"button\"\n } }, {\n ...t,\n ...e.attrs\n }), {\n default: (0, vue_1.withCtx)(() => [n.actions ? ((0, vue_1.openBlock)(), (0, vue_1.createElementBlock)(vue_1.Fragment, { key: 0 }, [(0, vue_1.createElementVNode)(\"div\", z, [(0, vue_1.renderSlot)(a.$slots, \"default\")]), (0, vue_1.createElementVNode)(\"div\", B, [(0, vue_1.renderSlot)(a.$slots, \"actions\")])], 64)) : (0, vue_1.renderSlot)(a.$slots, \"default\", {}, void 0, void 0, 1)]),\n _: 3\n }, 16, [\"class\"])), (0, vue_1.renderSlot)(a.$slots, \"buttons\")], 2));\n }\n }), H = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"widgetInput\",\n props: /*@__PURE__*/ (0, vue_1.mergeModels)({\n modelValue: {},\n name: {},\n disabled: { type: Boolean },\n readonly: { type: Boolean },\n modificator: {},\n size: {},\n styling: {},\n isError: { type: Boolean },\n isLoading: { type: Boolean },\n icon: {},\n icon2: {},\n addCleaner: {\n type: Boolean,\n default: !0\n },\n title: {},\n captionType: {}\n }, {\n modelValue: { default: \"\" },\n modelModifiers: {}\n }),\n emits: [\"update:modelValue\"],\n setup(t) {\n let n = t, r = (0, vue_1.useModel)(t, \"modelValue\");\n return (t, i) => ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(forms_4YO5ZEqQ_es_js_1.c, (0, vue_1.mergeProps)(n, {\n modificator: \"popupWidgetInput\",\n modelValue: r.value,\n \"onUpdate:modelValue\": i[0] ||= (e) => r.value = e\n }), null, 16, [\"modelValue\"]));\n }\n }), U = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"popupAlert\",\n props: {\n submitText: {},\n id: {},\n class: {},\n transitionDuration: {},\n footerSupportLink: {},\n pos: {},\n notch: { type: Boolean },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: {},\n data: {}\n },\n emits: [\n \"open\",\n \"close\",\n \"scrollContentList\"\n ],\n setup(e, { emit: t, slots: r }) {\n let { submitText: i, ...a } = e;\n return (e, s) => ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(R, (0, vue_1.mergeProps)({ class: \"top-popupAlert\" }, a, {\n onOpen: s[0] ||= (e) => t(\"open\", e),\n onClose: s[1] ||= (e) => t(\"close\", e),\n onScrollContentList: s[2] ||= (...e) => t(\"scrollContentList\", ...e)\n }), (0, vue_1.createSlots)({\n opener: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"opener\")]),\n footer: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"footer\"), (0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.h, null, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.createTextVNode)((0, vue_1.toDisplayString)((0, vue_1.unref)(i) || e.$i18n.Common.Close), 1)]),\n _: 1\n })]),\n _: 2\n }, [r.header ? {\n name: \"header\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"header\")]),\n key: \"0\"\n } : void 0, r.default ? {\n name: \"content\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"default\")]),\n key: \"1\"\n } : void 0]), 1040));\n }\n }), W = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"popupConfirm\",\n props: {\n cancelText: {},\n submitText: {},\n isWarning: { type: Boolean },\n id: {},\n class: {},\n transitionDuration: {},\n footerSupportLink: {},\n pos: {},\n notch: { type: Boolean },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: {},\n data: {}\n },\n emits: [\n \"open\",\n \"close\",\n \"scrollContentList\",\n \"submit\"\n ],\n setup(e, { emit: t, slots: r }) {\n let i = t, a = e, s = t, c = (0, vue_1.ref)(!1), l = () => {\n c.value = !0, s(\"submit\");\n }, p = (e) => {\n c.value ? c.value = !1 : s(\"close\", e);\n }, { submitText: m, cancelText: g, isWarning: _, ...v } = a;\n return (e, t) => ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(R, (0, vue_1.mergeProps)({ class: \"top-popupConfirm\" }, v, {\n onOpen: t[0] ||= (e) => i(\"open\", e),\n onClose: t[1] ||= (e) => p(e),\n onScrollContentList: t[2] ||= (...e) => i(\"scrollContentList\", ...e)\n }), (0, vue_1.createSlots)({\n opener: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"opener\")]),\n footer: (0, vue_1.withCtx)(() => [\n (0, vue_1.renderSlot)(e.$slots, \"footer\"),\n (0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.h, { color: \"theme\" }, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.createTextVNode)((0, vue_1.toDisplayString)((0, vue_1.unref)(g) || e.$i18n.Common.Cancel), 1)]),\n _: 1\n }),\n (0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.h, {\n onClick: l,\n color: (0, vue_1.unref)(_) ? \"red\" : \"blue\"\n }, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.createTextVNode)((0, vue_1.toDisplayString)((0, vue_1.unref)(m) || e.$i18n.Common.Continue), 1)]),\n _: 1\n }, 8, [\"color\"])\n ]),\n _: 2\n }, [r.header ? {\n name: \"header\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"header\")]),\n key: \"0\"\n } : void 0, r.default ? {\n name: \"content\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"default\")]),\n key: \"1\"\n } : void 0]), 1040));\n }\n }), G = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"popupPrompt\",\n props: {\n submitText: {},\n cancelText: {},\n defaultValue: {},\n inputProps: {},\n id: {},\n class: {},\n transitionDuration: {},\n footerSupportLink: {},\n pos: {},\n notch: { type: Boolean },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: {},\n data: {}\n },\n emits: [\n \"open\",\n \"close\",\n \"scrollContentList\",\n \"submit\"\n ],\n setup(e, { emit: t, slots: r }) {\n let i = t, a = e, s = t, c = () => p.value = a.defaultValue ?? \"\", l = (0, vue_1.ref)(!1), p = (0, vue_1.ref)();\n (0, vue_1.watch)(() => a.defaultValue, () => c(), { immediate: !0 });\n let m = () => {\n l.value = !0;\n }, g = (e) => {\n l.value ? (l.value = !1, s(\"submit\", p.value), c()) : (c(), s(\"close\", e));\n }, { submitText: _, cancelText: v, defaultValue: S, inputProps: C, ...T } = a;\n return (e, t) => ((0, vue_1.openBlock)(), (0, vue_1.createBlock)(R, (0, vue_1.mergeProps)({ class: \"top-popupPrompt\" }, T, {\n onOpen: t[1] ||= (e) => i(\"open\", e),\n onClose: t[2] ||= (e) => g(e),\n onScrollContentList: t[3] ||= (...e) => i(\"scrollContentList\", ...e)\n }), (0, vue_1.createSlots)({\n opener: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"opener\")]),\n footer: (0, vue_1.withCtx)(() => [\n (0, vue_1.renderSlot)(e.$slots, \"footer\"),\n (0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.h, { color: \"theme\" }, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.createTextVNode)((0, vue_1.toDisplayString)((0, vue_1.unref)(v) || e.$i18n.Common.Cancel), 1)]),\n _: 1\n }),\n (0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.h, { onClick: m }, {\n default: (0, vue_1.withCtx)(() => [(0, vue_1.createTextVNode)((0, vue_1.toDisplayString)((0, vue_1.unref)(_) || e.$i18n.Common.OK), 1)]),\n _: 1\n })\n ]),\n _: 2\n }, [r.header ? {\n name: \"header\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"header\")]),\n key: \"0\"\n } : void 0, r.default ? {\n name: \"content\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"default\"), (0, vue_1.createVNode)(H, (0, vue_1.mergeProps)({\n modelValue: p.value,\n \"onUpdate:modelValue\": t[0] ||= (e) => p.value = e,\n modelModifiers: { trim: !0 }\n }, (0, vue_1.unref)(C)), null, 16, [\"modelValue\"])]),\n key: \"1\"\n } : void 0]), 1040));\n }\n }), K = /* @__PURE__ */ (0, vue_1.defineComponent)({\n __name: \"popupHint\",\n props: {\n hint: {},\n id: {},\n class: {},\n transitionDuration: {},\n footerSupportLink: {},\n pos: {},\n notch: { type: Boolean },\n openByFocusInput: { type: Boolean },\n openByHover: { type: Boolean },\n disabled: { type: Boolean },\n posBy: {},\n data: {}\n },\n setup(e, { emit: n, slots: r }) {\n let { hint: i, ...a } = e;\n return (e, s) => {\n let c = (0, vue_1.resolveDirective)(\"top-tooltip\");\n return (0, vue_1.openBlock)(), (0, vue_1.createBlock)(R, (0, vue_1.mergeProps)({ class: \"top-popupHint\" }, a, {\n onOpen: s[0] ||= (e) => n(\"open\", e),\n onClose: s[1] ||= (e) => n(\"close\", e),\n onScrollContentList: s[2] ||= (...e) => n(\"scrollContentList\", ...e)\n }), (0, vue_1.createSlots)({\n opener: (0, vue_1.withCtx)(() => [(0, vue_1.withDirectives)((0, vue_1.createVNode)(forms_4YO5ZEqQ_es_js_1.d, {\n hint: (0, vue_1.unref)(i),\n class: \"top-popupHint_opener\"\n }, null, 8, [\"hint\"]), [[c]])]),\n _: 2\n }, [r.default ? {\n name: \"content\",\n fn: (0, vue_1.withCtx)(() => [(0, vue_1.renderSlot)(e.$slots, \"default\")]),\n key: \"0\"\n } : void 0]), 1040);\n };\n }\n });\n exports.c = j;\n exports.s = R;\n exports.o = V;\n exports.a = H;\n exports.i = U;\n exports.r = W;\n exports.n = G;\n exports.t = K;\n});\n//# sourceMappingURL=popup-DITngjrJ.es.js.map\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { onUpdated } from 'vue';\nimport type { OpenerProps } from './types';\nimport Worker from '../../lib/worker';\n\nconst props = withDefaults(defineProps<OpenerProps<T>>(), {\n\tpos: '3',\n\tnotch: true,\n\tposBy: 'fixed',\n});\n\nconst id = props.id || Math.random() + '';\n\nlet elOpener: Element;\n\n/**\n * Необычная функция для проброски props внутрь элемента слота\n *\n * @param el - вспомогательный элемент для доступа к элементам слота\n */\nfunction render(el: any) {\n\tif (!el) return;\n\n\tsetTimeout(() => {\n\t\telOpener = el.nextElementSibling;\n\n\t\tif (elOpener) {\n\t\t\trenderOpener(elOpener);\n\t\t}\n\t});\n}\n\nonUpdated(() => {\n\tif (elOpener) {\n\t\trenderOpener(elOpener);\n\t}\n});\n\nfunction renderOpener(elOpener: any) {\n\t/**\n\t * topPopup - необходимый атрибут для всез Popup\n\t *\n\t * Для Vue вместо него используется атрибут topPopupId\n\t */\n\telOpener.dataset.topPopup = '#' + id;\n\n\tconst disabledOld = !!elOpener.dataset.topPopupDisabled;\n\n\telOpener.dataset.topPopupId = id;\n\telOpener.dataset.topPopupPos = props.pos;\n\telOpener.dataset.topPopupPosBy = props.posBy;\n\telOpener.dataset.topPopupNotch = props.notch ? 'true' : '';\n\telOpener.dataset.topPopupOpenByHover = props.openByHover ? 'true' : '';\n\telOpener.dataset.topPopupDisabled = props.disabled ? 'true' : '';\n\telOpener.__TopPopupOpenerProps = props;\n\n\tif (props.openByFocusInput && elOpener.classList.contains('top-input')) {\n\t\tconst elInput = elOpener.querySelector('input');\n\n\t\telInput.onfocus = () => {\n\t\t\tif (elOpener.dataset.topPopupDisabled) return;\n\n\t\t\t// фокус при возвращении не должен инициировать повторное открытие popup\n\t\t\tconst popup = Worker.getPopupFromOpener(elOpener);\n\t\t\tif (popup?.vueGetComponent()?.opened) return;\n\n\t\t\tWorker.openByOpener(elOpener);\n\t\t};\n\n\t\t/**\n\t\t * Открыть или закрыть `popup` в момент ввода значения, если он становится активным\n\t\t *\n\t\t * Для обработки ввода значения с проверкой `minLength`\n\t\t */\n\t\tif (props.disabled !== disabledOld && elInput === document.activeElement) {\n\t\t\tconst popup = Worker.getPopupFromOpener(elOpener);\n\n\t\t\tif (!props.disabled && !popup) {\n\t\t\t\tWorker.openByOpener(elOpener);\n\t\t\t}\n\n\t\t\tif (props.disabled && popup) {\n\t\t\t\tpopup.close();\n\t\t\t}\n\t\t}\n\t}\n}\n</script>\n\n<template>\n\t<template :ref=\"render\"></template>\n\n\t<!-- @slot элемент для открытия Popup -->\n\t<slot></slot>\n</template>\n\n<!-- Использует общий deprecated класс .btn -->\n<style>\nh3[data-top-popup],\ndiv[data-top-popup],\ni[data-top-popup]:not(.btn),\nb[data-top-popup]:not(.btn) {\n\tcursor: pointer;\n\tuser-select: none;\n\tfont-style: normal;\n\ttext-decoration: none;\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n\n[data-top-popup][data-top-popup-disabled] {\n\t/*\n\tpointer-events: none;\n\tcursor: auto !important;\n\t*/\n}\n\ni[contenteditable] {\n\tcursor: text !important;\n}\n</style>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { onUnmounted, ref, toRef, watch } from 'vue';\nimport TopHint from '@/components/forms/hint/hint.vue';\nimport type { TopLibPopup } from '@/components/popup/lib/popup';\nimport type { Emits, Props } from './types';\nimport Opener from './opener/opener.vue';\nimport Worker from '@/components/popup/lib/worker';\n\nconst props = withDefaults(defineProps<Props<T>>(), {\n\tid: '',\n\tpos: '3',\n\tnotch: true,\n\tposBy: 'fixed',\n});\n\nconst emit = defineEmits<Emits<T>>();\n\nconst id = props.id || 'top-popup-id-' + Math.random() + '';\n\nconst expose = {\n\tid,\n\tpopup: undefined as TopLibPopup<T> | undefined,\n};\n\ndefineExpose(expose);\n\nconst elPopupRef = ref<HTMLElement | null>(null);\nconst elPopupInnerRef = ref<HTMLElement | null>(null);\n\nconst data = ref<T>();\n\n// см. lib/popup\nconst onOpen = async (popup: TopLibPopup<T>) => {\n\tif (popup.elPopup) elPopupRef.value = popup.elPopup;\n\n\tif (popup.elPopupInner) {\n\t\tpopup.elPopupInner.innerText = '';\n\n\t\telPopupInnerRef.value = popup.elPopupInner;\n\t}\n\n\tvueConnector.opened = true;\n\tvueConnector.popup = popup;\n\n\texpose.popup = popup;\n\n\tdata.value = popup.el.__TopPopupOpenerProps.data;\n\n\temit('open', { elPopup: popup.elPopup!, elPopupOpener: popup.el, data: data.value });\n};\n\n// см. lib/popup\nconst onClose = (popup: TopLibPopup<T>) => {\n\telPopupInnerRef.value = null;\n\n\tvueConnector.opened = false;\n\tvueConnector.popup = undefined;\n\n\tdata.value = undefined;\n\n\temit('close', { elPopup: popup.elPopup!, elPopupOpener: popup.el, data: popup.el.__TopPopupOpenerProps.data });\n};\n\nconst vueConnector = {\n\tonOpen,\n\tonClose,\n\tclassRef: toRef(props, 'class'),\n\topened: false,\n\tpopup: undefined as TopLibPopup<T> | undefined,\n\ttransitionDurationRef: toRef(props, 'transitionDuration'),\n};\n\nwatch(() => props.class, (newValue, oldValue) => {\n\tif (!elPopupRef.value) return;\n\n\tconst newClasses = newValue?.split(' ') ?? [];\n\tconst oldClasses = oldValue?.split(' ') ?? [];\n\n\tconst delClasses = oldClasses.filter((oldClass) => !newClasses.includes(oldClass));\n\n\telPopupRef.value.classList.remove(...delClasses);\n\telPopupRef.value.classList.add(...newClasses);\n});\n\nWorker.regVueComponent(id, vueConnector);\n\nonUnmounted(() => {\n\tWorker.unregVueComponent(id);\n});\n</script>\n\n<template>\n\t<Opener\n\t\tv-if=\"$slots.opener\"\n\t\t:id\n\t\t:pos\n\t\t:posBy\n\t\t:notch\n\t\t:openByFocusInput\n\t\t:openByHover=\"($core.state.isMobile || $core.state.isMobileUA) ? false : openByHover\"\n\t\t:disabled\n\t>\n\t\t<!-- @slot элемент для открытия Popup -->\n\t\t<slot name=\"opener\"></slot>\n\t</Opener>\n\n\t<!-- Это шаблон для компонента Popup, сам Popup генерируется в js и может находиться где угодно -->\n\t<!-- elPopupInnerRef будет установлен только после открытия и будет сброшен сразу после закрытия Popup -->\n\t<teleport\n\t\tv-if=\"elPopupInnerRef\"\n\t\t:to=\"elPopupInnerRef\"\n\t>\n\t\t<div\n\t\t\tv-if=\"$slots.header || $core.state.isMobile\"\n\t\t\tclass=\"top-popup_header\"\n\t\t>\n\t\t\t<span\n\t\t\t\tv-if=\"$core.state.isMobile\"\n\t\t\t\tclass=\"top-as-a closer\"\n\t\t\t>\n\t\t\t\t{{ $i18n.Common.Close }}\n\t\t\t</span>\n\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\" :data=\"data\"></slot>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"$slots.widget\"\n\t\t\tclass=\"top-popup_widget\"\n\t\t>\n\t\t\t<!-- @slot Виджет -->\n\t\t\t<slot name=\"widget\"></slot>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"$slots.content\"\n\t\t\tclass=\"top-popup_content\"\n\t\t\tv-top-scroll-shadow\n\t\t>\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot name=\"content\" :data=\"data\"></slot>\n\t\t</div>\n\n\t\t<ul\n\t\t\tv-if=\"$slots.contentList\"\n\t\t\tclass=\"top-popup_content\"\n\t\t\t@scroll=\"$emit('scrollContentList', $event)\"\n\t\t\tv-top-scroll-shadow\n\t\t>\n\t\t\t<!-- @slot Контент в виде списка, для вставки элементов списка используйте компонент popup/listItem -->\n\t\t\t<slot name=\"contentList\" :data=\"data\"></slot>\n\t\t</ul>\n\n\t\t<div\n\t\t\tv-if=\"$slots.footer || footerSupportLink\"\n\t\t\tclass=\"top-popup_footer\"\n\t\t>\n\t\t\t<a\n\t\t\t\tv-if=\"footerSupportLink\"\n\t\t\t\tclass=\"top-popup_footerSupportLink\"\n\t\t\t\t:href=\"footerSupportLink\"\n\t\t\t\ttarget=\"_blank\"\n\t\t\t>\n\t\t\t\t<TopHint hint=\"\"/>\n\t\t\t</a>\n\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\" :data=\"data\"></slot>\n\t\t</div>\n\t</teleport>\n</template>\n\n<style>\n.top-popup_footerSupportLink {\n\tmargin-right: auto;\n}\n</style>\n","<script setup lang=\"ts\">\nimport type { ListItemProps } from './types';\n\ndefineOptions({\n\tinheritAttrs: false,\n});\n\nconst props = withDefaults(defineProps<ListItemProps>(), {\n\ttype: 'button',\n\tcloseByClick: true,\n});\n</script>\n\n<template>\n\t<li\n\t\t:class=\"{\n\t\t\t'top-popup_liNoSelectable': props.type !== 'button'\n\t\t}\"\n\t>\n\t\t<component\n\t\t\t:is=\"$attrs.href ? 'a' : 'div'\"\n\t\t\t:class=\"{\n\t\t\t\t'top-popup_listItem': true,\n\t\t\t\t['top-popup_listItem-' + props.type]: !!props.type,\n\t\t\t\t'top-popup_liastItem-withActions': $slots.actions,\n\t\t\t\t'top-popup-noCloser': !closeByClick,\n\t\t\t\t[props.class ?? '']: !!props.class,\n\n\t\t\t\t'a': props.type === 'button', // оформления кнопки, deprecated\n\t\t\t}\"\n\t\t\t:=\"{...$attrs, ...attrs}\"\n\t\t>\n\t\t\t<template v-if=\"$slots.actions\">\n\t\t\t\t<div class=\"top-popup_listItemActionsLabel top-ellipsis1\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"top-popup_listItemActions\">\n\t\t\t\t\t<slot name=\"actions\"></slot>\n\t\t\t\t</div>\n\t\t\t</template>\n\n\t\t\t<template v-else>\n\t\t\t\t<slot></slot>\n\t\t\t</template>\n\t\t</component>\n\n\t\t<slot name=\"buttons\"></slot>\n\t</li>\n</template>\n","<script setup lang=\"ts\">\nimport type { ModelRef } from 'vue';\nimport type { Props } from '@/components/forms/input/types';\nimport TopInput from '@/components/forms/input/input.vue';\n\nwithDefaults(defineProps<Props>(), {\n\taddCleaner: true,\n});\n\nconst model: ModelRef<string> = defineModel({\n\tdefault: '',\n});\n</script>\n\n<template>\n\t<TopInput\n\t\t:=\"$props\"\n\t\tmodificator=\"popupWidgetInput\"\n\t\tv-model=\"model\"\n\t/>\n</template>\n\n<style>\n.top-input-popupWidgetInput {\n\t--top-loadbar-color: var(--color-line-2);\n\n\twidth: 100%;\n}\n\n.top-input_input-popupWidgetInput {\n\tborder: none;\n\tbackground: var(--color-layer-1);\n}\n\n.top-input_input-popupWidgetInput:hover {\n\tbackground: var(--color-layer-2);\n}\n\n.top-input_input-popupWidgetInput:focus {\n\tbackground: var(--color-layer-1);\n\toutline: unset;\n}\n</style>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '@/components/popup/popup/popup.vue';\n\nconst props = defineProps<Props<T>>();\n\ndefineEmits<Emits<T>>();\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupAlert\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"$emit('close', $event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия Popup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton>\n\t\t\t\t{{ submitText || $i18n.Common.Close }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { ref } from 'vue';\nimport type { PopupEvent } from '@/components/popup/popup/types';\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '@/components/popup/popup/popup.vue';\n\nconst props = defineProps<Props<T>>();\n\nconst emit = defineEmits<Emits<T>>();\n\nconst isSubmit = ref(false);\n\nconst onSubmit = () => {\n\tisSubmit.value = true;\n\n\temit('submit');\n};\n\nconst onClose = (popupEvent: PopupEvent<T>) => {\n\tif (isSubmit.value) {\n\t\tisSubmit.value = false;\n\n\t\treturn;\n\t}\n\n\temit('close', popupEvent);\n};\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\tcancelText,\n\tisWarning,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupConfirm\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"onClose($event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия TopPopup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton color=\"theme\">\n\t\t\t\t{{ cancelText || $i18n.Common.Cancel }}\n\t\t\t</TopButton>\n\n\t\t\t<TopButton\n\t\t\t\t@click=\"onSubmit\"\n\t\t\t\t:color=\"isWarning ? 'red' : 'blue'\"\n\t\t\t>\n\t\t\t\t{{ submitText || $i18n.Common.Continue }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { ref, watch } from 'vue';\nimport type { PopupEvent } from '../popup/types';\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '../popup/popup.vue';\nimport TopPopupWidgetInput from '../popup/widgetInput/widgetInput.vue';\n\nconst props = defineProps<Props<T>>();\n\nconst emit = defineEmits<Emits<T>>();\n\nconst reset = () => localValue.value = props.defaultValue ?? '';\n\nconst isSubmit = ref(false);\n\nconst localValue = ref();\nwatch(() => props.defaultValue, () => reset(), { immediate: true });\n\nconst onSubmit = () => {\n\tisSubmit.value = true;\n};\n\nconst onClose = (popupEvent: PopupEvent<T>) => {\n\tif (isSubmit.value) {\n\t\tisSubmit.value = false;\n\n\t\temit('submit', localValue.value);\n\n\t\treset();\n\n\t\treturn;\n\t}\n\n\treset();\n\n\temit('close', popupEvent);\n};\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\tcancelText,\n\tdefaultValue,\n\tinputProps,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupPrompt\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"onClose($event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия TopPopup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\n\t\t\t<TopPopupWidgetInput\n\t\t\t\tv-model.trim=\"localValue\"\n\t\t\t\t:=\"inputProps\"\n\t\t\t/>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton color=\"theme\">\n\t\t\t\t{{ cancelText || $i18n.Common.Cancel }}\n\t\t\t</TopButton>\n\n\t\t\t<TopButton @click=\"onSubmit\">\n\t\t\t\t{{ submitText || $i18n.Common.OK }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport TopPopup from '@/components/popup/popup/popup.vue';\nimport TopHint from '@/components/forms/hint/hint.vue';\nimport type { Props } from './types';\n\nconst props = defineProps<Props<T>>();\n\nconst {\n\thint,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupHint\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"$emit('close', $event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- Элемент для открытия Popup -->\n\t\t\t<TopHint\n\t\t\t\t:hint=\"hint\"\n\t\t\t\tclass=\"top-popupHint_opener\"\n\t\t\t\tv-top-tooltip\n\t\t\t/>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\t</TopPopup>\n</template>\n\n<style>\n.top-popupHint_opener {\n\tcursor: pointer;\n}\n\n.top-popupHint_opener.top-active {\n\tcolor: var(--color-text-2);\n}\n</style>\n"]}
@@ -5,11 +5,10 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import { c as e, d as t, h as n } from "./forms-dosApNxi.es.js";
9
- import { t as r } from "./worker-BfCrg4RI.es.js";
8
+ import { c as e, d as t, h as n } from "./forms-4YO5ZEqQ.es.js";
9
+ import { t as r } from "./worker-Bvig0otc.es.js";
10
10
  import { Fragment as i, Teleport as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, normalizeClass as g, onUnmounted as _, onUpdated as v, openBlock as y, ref as b, renderSlot as x, resolveDirective as S, resolveDynamicComponent as C, toDisplayString as w, toRef as T, unref as E, useModel as D, watch as O, withCtx as k, withDirectives as A } from "vue";
11
- //#endregion
12
- //#region src/components/popup/popup/opener/opener.vue
11
+ // src/components/popup/popup/opener/opener.vue
13
12
  var j = /* @__PURE__ */ p({
14
13
  __name: "opener",
15
14
  props: {
@@ -297,11 +296,7 @@ var j = /* @__PURE__ */ p({
297
296
  let i = t, a = e, s = t, c = b(!1), l = () => {
298
297
  c.value = !0, s("submit");
299
298
  }, p = (e) => {
300
- if (c.value) {
301
- c.value = !1;
302
- return;
303
- }
304
- s("close", e);
299
+ c.value ? c.value = !1 : s("close", e);
305
300
  }, { submitText: m, cancelText: g, isWarning: _, ...v } = a;
306
301
  return (e, t) => (y(), o(R, h({ class: "top-popupConfirm" }, v, {
307
302
  onOpen: t[0] ||= (e) => i("open", e),
@@ -365,11 +360,7 @@ var j = /* @__PURE__ */ p({
365
360
  let m = () => {
366
361
  l.value = !0;
367
362
  }, g = (e) => {
368
- if (l.value) {
369
- l.value = !1, s("submit", p.value), c();
370
- return;
371
- }
372
- c(), s("close", e);
363
+ l.value ? (l.value = !1, s("submit", p.value), c()) : (c(), s("close", e));
373
364
  }, { submitText: _, cancelText: v, defaultValue: S, inputProps: C, ...T } = a;
374
365
  return (e, t) => (y(), o(R, h({ class: "top-popupPrompt" }, T, {
375
366
  onOpen: t[1] ||= (e) => i("open", e),
@@ -441,7 +432,6 @@ var j = /* @__PURE__ */ p({
441
432
  };
442
433
  }
443
434
  });
444
- //#endregion
445
435
  export { H as a, j as c, U as i, G as n, V as o, W as r, R as s, K as t };
446
436
 
447
- //# sourceMappingURL=popup-cAqd6Dj3.es.js.map
437
+ //# sourceMappingURL=popup-DITngjrJ.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popup-DITngjrJ.es.js","names":["_createElementVNode","_renderSlot","$core","$i18n","_hoisted_1","_hoisted_2","_openBlock","_createElementBlock","_createBlock","Opener","_unref","_withCtx","_renderSlot","_Teleport","_toDisplayString","_withDirectives","_createVNode","TopHint","_openBlock","_createElementBlock","_normalizeClass","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_Fragment","_createElementVNode","_renderSlot","_useModel","_openBlock","_createBlock","TopInput","_mergeProps","$i18n","props","_openBlock","_createBlock","TopPopup","_mergeProps","_withCtx","_renderSlot","_createVNode","TopButton","_createTextVNode","_toDisplayString","_unref","$i18n","_openBlock","_createBlock","TopPopup","_mergeProps","_withCtx","_renderSlot","_createVNode","TopButton","_createTextVNode","_toDisplayString","_unref","$i18n","_openBlock","_createBlock","TopPopup","_mergeProps","_withCtx","_renderSlot","_createVNode","TopButton","_createTextVNode","_toDisplayString","_unref","TopPopupWidgetInput","props","_openBlock","_createBlock","TopPopup","_mergeProps","_withCtx","_withDirectives","_createVNode","TopHint","_unref","_renderSlot","input_default","hint_default","button_default","Worker","opener_default","defineComponent","props","__props","id","elOpener","render","el","renderOpener","disabledOld","elInput","popup","openBlock","createElementBlock","Fragment","createElementVNode","renderSlot","_ctx","_hoisted_1$1","_hoisted_2$1","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","popup_default","__expose","__emit","$slots","$emit","emit","expose","elPopupRef","ref","elPopupInnerRef","data","vueConnector","toRef","watch","newClasses","newValue","delClasses","oldValue","oldClass","onUnmounted","_directive_top_scroll_shadow","resolveDirective","createBlock","unref","withCtx","createCommentVNode","Teleport","toDisplayString","withDirectives","_cache","$event","createVNode","_hoisted_1","_hoisted_2","listItem_default","$attrs","normalizeClass","resolveDynamicComponent","mergeProps","\"a\"","widgetInput_default","\"modelValue\"","\"modelModifiers\"","$props","model","useModel","popupAlert_default","propsPopup","args","createSlots","createTextVNode","submitText","popupConfirm_default","isSubmit","onSubmit","onClose","popupEvent","cancelText","isWarning","popupPrompt_default","reset","localValue","inputProps","popupHint_default","_directive_top_tooltip","hint"],"sources":["../../src/components/popup/popup/opener/opener.vue","../../src/components/popup/popup/popup.vue","../../src/components/popup/popup/listItem.vue","../../src/components/popup/popup/widgetInput/widgetInput.vue","../../src/components/popup/popupAlert/popupAlert.vue","../../src/components/popup/popupConfirm/popupConfirm.vue","../../src/components/popup/popupPrompt/popupPrompt.vue","../../src/components/popup/popupHint/popupHint.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { onUpdated } from 'vue';\nimport type { OpenerProps } from './types';\nimport Worker from '../../lib/worker';\n\nconst props = withDefaults(defineProps<OpenerProps<T>>(), {\n\tpos: '3',\n\tnotch: true,\n\tposBy: 'fixed',\n});\n\nconst id = props.id || Math.random() + '';\n\nlet elOpener: Element;\n\n/**\n * Необычная функция для проброски props внутрь элемента слота\n *\n * @param el - вспомогательный элемент для доступа к элементам слота\n */\nfunction render(el: any) {\n\tif (!el) return;\n\n\tsetTimeout(() => {\n\t\telOpener = el.nextElementSibling;\n\n\t\tif (elOpener) {\n\t\t\trenderOpener(elOpener);\n\t\t}\n\t});\n}\n\nonUpdated(() => {\n\tif (elOpener) {\n\t\trenderOpener(elOpener);\n\t}\n});\n\nfunction renderOpener(elOpener: any) {\n\t/**\n\t * topPopup - необходимый атрибут для всез Popup\n\t *\n\t * Для Vue вместо него используется атрибут topPopupId\n\t */\n\telOpener.dataset.topPopup = '#' + id;\n\n\tconst disabledOld = !!elOpener.dataset.topPopupDisabled;\n\n\telOpener.dataset.topPopupId = id;\n\telOpener.dataset.topPopupPos = props.pos;\n\telOpener.dataset.topPopupPosBy = props.posBy;\n\telOpener.dataset.topPopupNotch = props.notch ? 'true' : '';\n\telOpener.dataset.topPopupOpenByHover = props.openByHover ? 'true' : '';\n\telOpener.dataset.topPopupDisabled = props.disabled ? 'true' : '';\n\telOpener.__TopPopupOpenerProps = props;\n\n\tif (props.openByFocusInput && elOpener.classList.contains('top-input')) {\n\t\tconst elInput = elOpener.querySelector('input');\n\n\t\telInput.onfocus = () => {\n\t\t\tif (elOpener.dataset.topPopupDisabled) return;\n\n\t\t\t// фокус при возвращении не должен инициировать повторное открытие popup\n\t\t\tconst popup = Worker.getPopupFromOpener(elOpener);\n\t\t\tif (popup?.vueGetComponent()?.opened) return;\n\n\t\t\tWorker.openByOpener(elOpener);\n\t\t};\n\n\t\t/**\n\t\t * Открыть или закрыть `popup` в момент ввода значения, если он становится активным\n\t\t *\n\t\t * Для обработки ввода значения с проверкой `minLength`\n\t\t */\n\t\tif (props.disabled !== disabledOld && elInput === document.activeElement) {\n\t\t\tconst popup = Worker.getPopupFromOpener(elOpener);\n\n\t\t\tif (!props.disabled && !popup) {\n\t\t\t\tWorker.openByOpener(elOpener);\n\t\t\t}\n\n\t\t\tif (props.disabled && popup) {\n\t\t\t\tpopup.close();\n\t\t\t}\n\t\t}\n\t}\n}\n</script>\n\n<template>\n\t<template :ref=\"render\"></template>\n\n\t<!-- @slot элемент для открытия Popup -->\n\t<slot></slot>\n</template>\n\n<!-- Использует общий deprecated класс .btn -->\n<style>\nh3[data-top-popup],\ndiv[data-top-popup],\ni[data-top-popup]:not(.btn),\nb[data-top-popup]:not(.btn) {\n\tcursor: pointer;\n\tuser-select: none;\n\tfont-style: normal;\n\ttext-decoration: none;\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n\n[data-top-popup][data-top-popup-disabled] {\n\t/*\n\tpointer-events: none;\n\tcursor: auto !important;\n\t*/\n}\n\ni[contenteditable] {\n\tcursor: text !important;\n}\n</style>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { onUnmounted, ref, toRef, watch } from 'vue';\nimport TopHint from '@/components/forms/hint/hint.vue';\nimport type { TopLibPopup } from '@/components/popup/lib/popup';\nimport type { Emits, Props } from './types';\nimport Opener from './opener/opener.vue';\nimport Worker from '@/components/popup/lib/worker';\n\nconst props = withDefaults(defineProps<Props<T>>(), {\n\tid: '',\n\tpos: '3',\n\tnotch: true,\n\tposBy: 'fixed',\n});\n\nconst emit = defineEmits<Emits<T>>();\n\nconst id = props.id || 'top-popup-id-' + Math.random() + '';\n\nconst expose = {\n\tid,\n\tpopup: undefined as TopLibPopup<T> | undefined,\n};\n\ndefineExpose(expose);\n\nconst elPopupRef = ref<HTMLElement | null>(null);\nconst elPopupInnerRef = ref<HTMLElement | null>(null);\n\nconst data = ref<T>();\n\n// см. lib/popup\nconst onOpen = async (popup: TopLibPopup<T>) => {\n\tif (popup.elPopup) elPopupRef.value = popup.elPopup;\n\n\tif (popup.elPopupInner) {\n\t\tpopup.elPopupInner.innerText = '';\n\n\t\telPopupInnerRef.value = popup.elPopupInner;\n\t}\n\n\tvueConnector.opened = true;\n\tvueConnector.popup = popup;\n\n\texpose.popup = popup;\n\n\tdata.value = popup.el.__TopPopupOpenerProps.data;\n\n\temit('open', { elPopup: popup.elPopup!, elPopupOpener: popup.el, data: data.value });\n};\n\n// см. lib/popup\nconst onClose = (popup: TopLibPopup<T>) => {\n\telPopupInnerRef.value = null;\n\n\tvueConnector.opened = false;\n\tvueConnector.popup = undefined;\n\n\tdata.value = undefined;\n\n\temit('close', { elPopup: popup.elPopup!, elPopupOpener: popup.el, data: popup.el.__TopPopupOpenerProps.data });\n};\n\nconst vueConnector = {\n\tonOpen,\n\tonClose,\n\tclassRef: toRef(props, 'class'),\n\topened: false,\n\tpopup: undefined as TopLibPopup<T> | undefined,\n\ttransitionDurationRef: toRef(props, 'transitionDuration'),\n};\n\nwatch(() => props.class, (newValue, oldValue) => {\n\tif (!elPopupRef.value) return;\n\n\tconst newClasses = newValue?.split(' ') ?? [];\n\tconst oldClasses = oldValue?.split(' ') ?? [];\n\n\tconst delClasses = oldClasses.filter((oldClass) => !newClasses.includes(oldClass));\n\n\telPopupRef.value.classList.remove(...delClasses);\n\telPopupRef.value.classList.add(...newClasses);\n});\n\nWorker.regVueComponent(id, vueConnector);\n\nonUnmounted(() => {\n\tWorker.unregVueComponent(id);\n});\n</script>\n\n<template>\n\t<Opener\n\t\tv-if=\"$slots.opener\"\n\t\t:id\n\t\t:pos\n\t\t:posBy\n\t\t:notch\n\t\t:openByFocusInput\n\t\t:openByHover=\"($core.state.isMobile || $core.state.isMobileUA) ? false : openByHover\"\n\t\t:disabled\n\t>\n\t\t<!-- @slot элемент для открытия Popup -->\n\t\t<slot name=\"opener\"></slot>\n\t</Opener>\n\n\t<!-- Это шаблон для компонента Popup, сам Popup генерируется в js и может находиться где угодно -->\n\t<!-- elPopupInnerRef будет установлен только после открытия и будет сброшен сразу после закрытия Popup -->\n\t<teleport\n\t\tv-if=\"elPopupInnerRef\"\n\t\t:to=\"elPopupInnerRef\"\n\t>\n\t\t<div\n\t\t\tv-if=\"$slots.header || $core.state.isMobile\"\n\t\t\tclass=\"top-popup_header\"\n\t\t>\n\t\t\t<span\n\t\t\t\tv-if=\"$core.state.isMobile\"\n\t\t\t\tclass=\"top-as-a closer\"\n\t\t\t>\n\t\t\t\t{{ $i18n.Common.Close }}\n\t\t\t</span>\n\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\" :data=\"data\"></slot>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"$slots.widget\"\n\t\t\tclass=\"top-popup_widget\"\n\t\t>\n\t\t\t<!-- @slot Виджет -->\n\t\t\t<slot name=\"widget\"></slot>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"$slots.content\"\n\t\t\tclass=\"top-popup_content\"\n\t\t\tv-top-scroll-shadow\n\t\t>\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot name=\"content\" :data=\"data\"></slot>\n\t\t</div>\n\n\t\t<ul\n\t\t\tv-if=\"$slots.contentList\"\n\t\t\tclass=\"top-popup_content\"\n\t\t\t@scroll=\"$emit('scrollContentList', $event)\"\n\t\t\tv-top-scroll-shadow\n\t\t>\n\t\t\t<!-- @slot Контент в виде списка, для вставки элементов списка используйте компонент popup/listItem -->\n\t\t\t<slot name=\"contentList\" :data=\"data\"></slot>\n\t\t</ul>\n\n\t\t<div\n\t\t\tv-if=\"$slots.footer || footerSupportLink\"\n\t\t\tclass=\"top-popup_footer\"\n\t\t>\n\t\t\t<a\n\t\t\t\tv-if=\"footerSupportLink\"\n\t\t\t\tclass=\"top-popup_footerSupportLink\"\n\t\t\t\t:href=\"footerSupportLink\"\n\t\t\t\ttarget=\"_blank\"\n\t\t\t>\n\t\t\t\t<TopHint hint=\"\"/>\n\t\t\t</a>\n\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\" :data=\"data\"></slot>\n\t\t</div>\n\t</teleport>\n</template>\n\n<style>\n.top-popup_footerSupportLink {\n\tmargin-right: auto;\n}\n</style>\n","<script setup lang=\"ts\">\nimport type { ListItemProps } from './types';\n\ndefineOptions({\n\tinheritAttrs: false,\n});\n\nconst props = withDefaults(defineProps<ListItemProps>(), {\n\ttype: 'button',\n\tcloseByClick: true,\n});\n</script>\n\n<template>\n\t<li\n\t\t:class=\"{\n\t\t\t'top-popup_liNoSelectable': props.type !== 'button'\n\t\t}\"\n\t>\n\t\t<component\n\t\t\t:is=\"$attrs.href ? 'a' : 'div'\"\n\t\t\t:class=\"{\n\t\t\t\t'top-popup_listItem': true,\n\t\t\t\t['top-popup_listItem-' + props.type]: !!props.type,\n\t\t\t\t'top-popup_liastItem-withActions': $slots.actions,\n\t\t\t\t'top-popup-noCloser': !closeByClick,\n\t\t\t\t[props.class ?? '']: !!props.class,\n\n\t\t\t\t'a': props.type === 'button', // оформления кнопки, deprecated\n\t\t\t}\"\n\t\t\t:=\"{...$attrs, ...attrs}\"\n\t\t>\n\t\t\t<template v-if=\"$slots.actions\">\n\t\t\t\t<div class=\"top-popup_listItemActionsLabel top-ellipsis1\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"top-popup_listItemActions\">\n\t\t\t\t\t<slot name=\"actions\"></slot>\n\t\t\t\t</div>\n\t\t\t</template>\n\n\t\t\t<template v-else>\n\t\t\t\t<slot></slot>\n\t\t\t</template>\n\t\t</component>\n\n\t\t<slot name=\"buttons\"></slot>\n\t</li>\n</template>\n","<script setup lang=\"ts\">\nimport type { ModelRef } from 'vue';\nimport type { Props } from '@/components/forms/input/types';\nimport TopInput from '@/components/forms/input/input.vue';\n\nwithDefaults(defineProps<Props>(), {\n\taddCleaner: true,\n});\n\nconst model: ModelRef<string> = defineModel({\n\tdefault: '',\n});\n</script>\n\n<template>\n\t<TopInput\n\t\t:=\"$props\"\n\t\tmodificator=\"popupWidgetInput\"\n\t\tv-model=\"model\"\n\t/>\n</template>\n\n<style>\n.top-input-popupWidgetInput {\n\t--top-loadbar-color: var(--color-line-2);\n\n\twidth: 100%;\n}\n\n.top-input_input-popupWidgetInput {\n\tborder: none;\n\tbackground: var(--color-layer-1);\n}\n\n.top-input_input-popupWidgetInput:hover {\n\tbackground: var(--color-layer-2);\n}\n\n.top-input_input-popupWidgetInput:focus {\n\tbackground: var(--color-layer-1);\n\toutline: unset;\n}\n</style>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '@/components/popup/popup/popup.vue';\n\nconst props = defineProps<Props<T>>();\n\ndefineEmits<Emits<T>>();\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupAlert\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"$emit('close', $event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия Popup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton>\n\t\t\t\t{{ submitText || $i18n.Common.Close }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { ref } from 'vue';\nimport type { PopupEvent } from '@/components/popup/popup/types';\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '@/components/popup/popup/popup.vue';\n\nconst props = defineProps<Props<T>>();\n\nconst emit = defineEmits<Emits<T>>();\n\nconst isSubmit = ref(false);\n\nconst onSubmit = () => {\n\tisSubmit.value = true;\n\n\temit('submit');\n};\n\nconst onClose = (popupEvent: PopupEvent<T>) => {\n\tif (isSubmit.value) {\n\t\tisSubmit.value = false;\n\n\t\treturn;\n\t}\n\n\temit('close', popupEvent);\n};\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\tcancelText,\n\tisWarning,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupConfirm\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"onClose($event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия TopPopup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton color=\"theme\">\n\t\t\t\t{{ cancelText || $i18n.Common.Cancel }}\n\t\t\t</TopButton>\n\n\t\t\t<TopButton\n\t\t\t\t@click=\"onSubmit\"\n\t\t\t\t:color=\"isWarning ? 'red' : 'blue'\"\n\t\t\t>\n\t\t\t\t{{ submitText || $i18n.Common.Continue }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport { ref, watch } from 'vue';\nimport type { PopupEvent } from '../popup/types';\nimport type { Emits, Props } from './types';\nimport TopButton from '@/components/forms/button/button.vue';\nimport TopPopup from '../popup/popup.vue';\nimport TopPopupWidgetInput from '../popup/widgetInput/widgetInput.vue';\n\nconst props = defineProps<Props<T>>();\n\nconst emit = defineEmits<Emits<T>>();\n\nconst reset = () => localValue.value = props.defaultValue ?? '';\n\nconst isSubmit = ref(false);\n\nconst localValue = ref();\nwatch(() => props.defaultValue, () => reset(), { immediate: true });\n\nconst onSubmit = () => {\n\tisSubmit.value = true;\n};\n\nconst onClose = (popupEvent: PopupEvent<T>) => {\n\tif (isSubmit.value) {\n\t\tisSubmit.value = false;\n\n\t\temit('submit', localValue.value);\n\n\t\treset();\n\n\t\treturn;\n\t}\n\n\treset();\n\n\temit('close', popupEvent);\n};\n\n// сужение объекта для propsPopup\nconst {\n\tsubmitText,\n\tcancelText,\n\tdefaultValue,\n\tinputProps,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupPrompt\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"onClose($event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- @slot Элемент для открытия TopPopup -->\n\t\t\t<slot name=\"opener\"></slot>\n\t\t</template>\n\n\t\t<template #header v-if=\"$slots.header\">\n\t\t\t<!-- @slot Шапка -->\n\t\t\t<slot name=\"header\"></slot>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\n\t\t\t<TopPopupWidgetInput\n\t\t\t\tv-model.trim=\"localValue\"\n\t\t\t\t:=\"inputProps\"\n\t\t\t/>\n\t\t</template>\n\n\t\t<template #footer>\n\t\t\t<!-- @slot Футер -->\n\t\t\t<slot name=\"footer\"></slot>\n\n\t\t\t<TopButton color=\"theme\">\n\t\t\t\t{{ cancelText || $i18n.Common.Cancel }}\n\t\t\t</TopButton>\n\n\t\t\t<TopButton @click=\"onSubmit\">\n\t\t\t\t{{ submitText || $i18n.Common.OK }}\n\t\t\t</TopButton>\n\t\t</template>\n\t</TopPopup>\n</template>\n","<script setup lang=\"ts\" generic=\"T extends Record<string, any> | undefined = undefined\">\nimport TopPopup from '@/components/popup/popup/popup.vue';\nimport TopHint from '@/components/forms/hint/hint.vue';\nimport type { Props } from './types';\n\nconst props = defineProps<Props<T>>();\n\nconst {\n\thint,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t...propsPopup\n}: Props<T> = props;\n</script>\n\n<template>\n\t<!-- @vue-generic {T} -->\n\t<TopPopup\n\t\tclass=\"top-popupHint\"\n\t\t:=propsPopup\n\t\t@open=\"$emit('open', $event)\"\n\t\t@close=\"$emit('close', $event)\"\n\t\t@scrollContentList=\"(...args) => $emit('scrollContentList', ...args)\"\n\t>\n\t\t<template #opener>\n\t\t\t<!-- Элемент для открытия Popup -->\n\t\t\t<TopHint\n\t\t\t\t:hint=\"hint\"\n\t\t\t\tclass=\"top-popupHint_opener\"\n\t\t\t\tv-top-tooltip\n\t\t\t/>\n\t\t</template>\n\n\t\t<template #content v-if=\"$slots.default\">\n\t\t\t<!-- @slot Контент в свободной форме -->\n\t\t\t<slot></slot>\n\t\t</template>\n\t</TopPopup>\n</template>\n\n<style>\n.top-popupHint_opener {\n\tcursor: pointer;\n}\n\n.top-popupHint_opener.top-active {\n\tcolor: var(--color-text-2);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAKA,IAAMwF,IAAQC,GAMRC,IAAKF,EAAM,MAAM,KAAK,OAAO,IAAI,IAEnCG;EAOJ,SAASC,EAAO,GAAS;GACxB,AAAKC,KAEL,iBAAiB;IAGhB,AAFA,IAAWA,EAAG,oBAEVF,KACHG,EAAaH,CAAQ;GAEvB,CAAC;EACF;EAEA,QAAgB;GACf,AAAIA,KACHG,EAAaH,CAAQ;EAEvB,CAAC;EAED,SAASG,EAAa,GAAe;GAMpC,EAAS,QAAQ,WAAW,MAAMJ;GAElC,IAAMK,IAAc,CAAC,CAACJ,EAAS,QAAQ;GAUvC,IARA,EAAS,QAAQ,aAAaD,GAC9B,EAAS,QAAQ,cAAcF,EAAM,KACrC,EAAS,QAAQ,gBAAgBA,EAAM,OACvC,EAAS,QAAQ,gBAAgBA,EAAM,QAAQ,SAAS,IACxD,EAAS,QAAQ,sBAAsBA,EAAM,cAAc,SAAS,IACpE,EAAS,QAAQ,mBAAmBA,EAAM,WAAW,SAAS,IAC9D,EAAS,wBAAwBA,GAE7BA,EAAM,oBAAoBG,EAAS,UAAU,SAAS,WAAW,GAAG;IACvE,IAAMK,IAAUL,EAAS,cAAc,OAAO;IAiB9C,IAfA,EAAQ,gBAAgB;KACvB,AAAIA,EAAS,QAAQ,oBAGPN,EAAO,mBAAmBM,CACpC,CAAA,EAAO,gBAAgB,CAAC,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O,S;GAApB,MAAA;GAEV,IAAAlD,QAA2B,CAA3BC,EAA2BuC,EAAA,QAAA,QAAA,C;;E,YAGHU,EAAO,U;GAArB,MAAA;GAEV,IAAAlD,QAAa,CAAbC,EAAauC,EAAA,QAAA,SAAA,GAEbtC,EAGEK,GAHFR,EAGE;IAFa,YAAA6G,EAAA;IAAA,uBAAA,AAAAhC,EAAA,QAAA,MAAA,EAAU,QAAAC;IAAxB,gBAAA,EAAA,MAAA,GAAA;GACG,GAAAvE,EAAAuG,CAAA,CAAU,GAAA,MAAA,IAAA,CAAA,YAAA,CAAA,C;;;;;;;;;;;;;;;;;;;;;ECpEjB,IAAM,EACL,SAEA,GAAGf,MACUtF;;;GAKb,OAAAC,EAAA,GAAAC,EAoBWC,GApBXC,EAoBW,EAnBV,OAAM,gBAAe,GACnBkF,GAAU;IACX,QAAI,AAAAlB,EAAA,QAAA,MAAEzB,EAAK,QAAS0B,CAAM;IAC1B,SAAK,AAAAD,EAAA,QAAA,MAAEzB,EAAK,SAAU0B,CAAM;IAC5B,qBAAiB,AAAAD,EAAA,QAAA,GAAMmB,MAAS5C,EAAK,qBAAA,GAAyB4C,CAAI;;IAExD,QAAMlF,QAMd,CAJFC,EAAAC,EAIEC,GAAA;KAHA,MAAMC,EAAA+F,CAAA;KACP,OAAM;;;G,IAKiB9D,EAAO,U;IAArB,MAAA;IAEV,IAAArC,QAAa,CAAbK,EAAasB,EAAA,QAAA,SAAA,C"}
@@ -0,0 +1,2 @@
1
+ var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};define([`require`,`exports`,`./forms-4YO5ZEqQ.es.amd`,`../utils/dom.amd`,`./api-Cu6kZ0AM.es.amd`,`./worker-Bvig0otc.es.amd`],function(t,n,r,i,a,o){"use strict";if(s===void 0)var s=window.Vue;Object.defineProperty(n,"__esModule",{value:!0}),n.TopLibPopup=void 0,i=__importDefault(i);var c=class e{constructor(){(0,a.o)(this,`componentName`,void 0),(0,a.o)(this,`className`,void 0),(0,a.o)(this,`uid`,void 0),(0,a.o)(this,`el`,void 0),(0,a.o)(this,`options`,{}),(0,a.o)(this,`unmountEls`,[]),(0,a.o)(this,`unmountEvents`,[])}init(t,n,r){if(!n)throw t+`: el is undefined`;let i=e.getComponent(n,t);if(i)return i.reInit(r),i;this.componentName=t,this.className=`top`+t[0].toUpperCase()+t.substring(1),this.uid=this.componentName+(Math.random()+``).replace(`.`,``),this._setComponent(n),this.el=n,this.el.classList.add(this.className),this.options=Object.assign(this.options,r),this.mount()}static getComponent(e,t){return i.default.storage(e,`#`+t)}_setComponent(e){i.default.storage(e,`#`+this.componentName,this)}mount(){throw`Please, add method mount() to component: `+this.componentName}unmount(){i.default.storage(this.el,`#`+this.componentName,null),this.unmountEls.forEach(e=>{e.remove()}),this.unmountEls=[],this.unmountEvents.forEach(e=>{e.el.removeEventListener(e.type,e.listener,e.options)}),this.unmountEvents=[]}registerElForUnmount(e){this.unmountEls.push(e)}addEventListenerWithUnmount(e,t,n,r){e.addEventListener(t,n,r),this.registerEventForUnmount(e,t,n,r)}registerEventForUnmount(e,t,n,r){let i={el:e,type:t,listener:n,options:r};this.unmountEvents.push(i)}reInit(e){throw`Please, add method reInit() to component: `+this.componentName}static detach(e){if(e instanceof NodeList)e.forEach(e=>e.parentElement?.removeChild(e));else{let t=e;t.parentElement?.removeChild(t)}}};(0,a.o)(c,`componentName`,`Top`);var l=class{static init(){this.isInited||(this.isInited=!0,document.addEventListener(`click`,this.onclickCapture,{capture:!0}),document.addEventListener(`click`,this.onclick),document.addEventListener(`keydown`,this.onkeydown))}static onclickCapture(e){if(e.target instanceof HTMLElement&&e.target.closest(`.top-popup-wrapper`)){if(e.target.matches(`[data-top-popup]`)){let t=e.target.closest(`ul`),n=e.target.closest(`a, .a`);t&&t.querySelector(`a.top-active, .a.top-active`)?.classList.remove(`top-active`),n&&n.classList.add(`top-active`),e.stopPropagation()}else if(e.target.matches(`.top-popup-wrapper`)){let t=e.target;o.t.close(t,!0),e.stopPropagation()}}}static onclick(e){if(!(e.target instanceof HTMLElement))return;let t=e.target.closest(`.closer, a, .a, .top-button`);if(t){let n=e.target.closest(`.top-popup-wrapper`);if(!n||t.matches(`.top-popup-noCloser`))return;t.getAttribute(`href`)===`.`&&e.preventDefault(),o.t.close(n,!0)}}static onkeydown(e){if(!(e.target instanceof HTMLElement))return;let t=e.target.closest(`.top-popup-wrapper`);if(t||=o.t.getPopupFromOpener(e.target)?.elPopup??null,!t)return;let n=t.querySelector(`ul.top-popup_content`);switch(e.key){case`Escape`:o.t.close(t,!0);break;case`Enter`:{if(!n){if(i.default.querySelectorVisible(t,`.preloader`))break;let e=i.default.querySelectorVisible(t,`.top-popup_footer .go, .top-popup_footer [data-action]`);if(e instanceof HTMLElement){e.click();break}let n=i.default.querySelectorVisibleLast(t,`.top-popup_footer .top-button:focus`);n||=i.default.querySelectorVisibleLast(t,`.top-popup_footer .top-button`),n instanceof HTMLElement&&n.click();break}let r=i.default.querySelectorVisible(t,`li > a.top-active`);r&&r.getAttribute(`href`)&&(e.preventDefault(),location.href=r.getAttribute(`href`));let a=t.querySelector(`li > .top-active`);a instanceof HTMLElement&&a.click();break}case`ArrowUp`:case`ArrowRight`:case`ArrowDown`:case`ArrowLeft`:{if(!n)break;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(i.default.querySelectorVisible(t,`ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore`))e.preventDefault();else if(e.target.tagName===`INPUT`)break}else e.preventDefault();let r=t.querySelector(`ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active`)?.parentElement;if(e.key===`ArrowRight`&&r){let e=r.querySelector(`.top-active > .top-popup_listMore`);if(e instanceof HTMLElement)return e.click()}let a=i.default.querySelectorAllVisible(t,`ul.top-popup_content > li:not(.top-popup_liNoSelectable)`),s=a.length;if(!s)return;let c=-1;if(r&&(c=a.indexOf(r)),e.key===`ArrowUp`||e.key===`ArrowLeft`?c--:c++,e.key===`ArrowLeft`&&c<=-1)return e.target.matches(`input`)?void 0:o.t.close(t,!0);if(e.key===`ArrowRight`&&c===s)return;c<0&&(c=s-1),c>s-1&&(c=0),t.querySelectorAll(`ul.top-popup_content > li > .top-active`).forEach(e=>e.classList.remove(`top-active`)),a[c].querySelector(`:scope > a, :scope > .a`)?.classList.add(`top-active`),o.t.scrollToActive(t);break}}}};(0,a.o)(l,`isInited`,!1),r.O.insertStyleToPage(`:root{--top-popup-z-index:200000;--top-popup-transition-delay:.1s;--top-popup-offset:var(--top-padding-2);--top-popup-background-color:var(--color-layout-front-1);--top-popup-background-color-hover:var(--color-layout-front-3);--top-popup-background-color-active:var(--color-layout-front-4);--top-popup-border-color:var(--color-line-2-opacity);--top-popup-title-background-color:var(--color-layer-1);--top-popup-content-padding:calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));--top-popup-list-padding:var(--top-padding-2);--top-popup-listItem-radius:var(--top-radius-2);--top-popup-listItem-padding:var(--top-padding-2)}.top-popup-front{position:relative}.top-popup-wrapper{--top-popup-height:0px;--top-popup-right-bounding:0px;--top-popup-bottom-bounding:0px;--top-popup-top:0px;--top-popup-right:calc(100vw - var(--top-popup-right-bounding));--top-popup-bottom:calc(var(--100vh) - var(--top-popup-bottom-bounding));--top-popup-left:0px;--top-popup-margin:-10px;text-align:initial;white-space:normal;word-break:normal;z-index:200000;outline:none;position:absolute}.top-popup-wrapper:not(.top-popup-wrapper-shown){overflow:hidden}.top-popupPanel{cursor:default;box-shadow:var(--top-shadow-b);background:var(--top-popup-background-color);border-radius:14px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.top-popup-wrapper>*{opacity:0;transition:opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;pointer-events:auto}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>*{opacity:1;transform:translate(0)!important}.top-popup_header,.top-popup_content,.top-popup_footer{font-size:14px}.top-popup_header,.top-popup_footer{justify-content:space-between;align-items:center;display:flex}.top-popup_header{color:var(--color-text-1);border-bottom:1px solid var(--top-popup-border-color);padding:var(--top-padding-3);font-weight:600}.top-popup_header>*{font-weight:400}.top-popup_header>.a{cursor:pointer}.top-popup_header>.a:hover{color:var(--color-text-primary)}.top-popup_headerButton{width:60px}.top-popup_widget{padding:var(--top-padding-2)}.top-popup_content{gap:var(--top-gap-4);-webkit-overflow-scrolling:touch;flex-direction:column;flex-grow:1;margin:0;display:flex;overflow-y:auto}div.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-content-padding)}div.top-popup_content>*{flex-shrink:0}div.top-popup_content>.top-button{margin:0}div.top-popup_content .top-unwrap{--top-unwrap-x:var(--top-popup-content-padding)}ul.top-popup_content{color:var(--color-text-1);padding:var(--top-popup-list-padding);gap:2px}ul.top-popup_content .top-unwrap{--top-unwrap-x:var(--top-popup-list-padding)}.top-popup_listItem{border-radius:var(--top-popup-listItem-radius);padding:var(--top-popup-listItem-padding);line-height:1!important}ul.top-popup_content li{align-items:center;margin:0;list-style:none;display:flex;position:relative}ul.top-popup_content li>*{flex-grow:1}ul.top-popup_content li>a:not(.top-button),ul.top-popup_content li>.a{cursor:pointer;box-sizing:border-box;border-radius:var(--top-popup-listItem-radius);background:var(--top-popup-background-color);padding:var(--top-popup-listItem-padding);flex:100%;align-items:center;font-size:14px;font-style:normal;transition:background-color .1s ease-in-out;display:flex;color:var(--color-text-1)!important;font-weight:400!important;line-height:1!important;text-decoration:none!important}.top-popup-wrapper-no_animate ul.top-popup_content li>a:not(.top-button),.top-popup-wrapper-no_animate ul.top-popup_content li>.a{transition:none}ul.top-popup_content li>a:not(.top-button):hover,ul.top-popup_content li>.a:hover{background:var(--top-popup-background-color-hover)}ul.top-popup_content li>a:not(.top-button).top-active,ul.top-popup_content li>.a.top-active{background:var(--top-popup-background-color-active);--top-icon-color:var(--color-text-primary)!important}.top-popup_liastItem-withActions{width:240px;max-width:100%}.top-popup_listItemActionsLabel{flex-grow:1}.top-popup_listItemActions{flex-grow:0;min-height:20px;margin-left:auto;display:flex}.top-popup_listItemActions [data-top-icon]{--top-icon-size:20px;--top-icon-color:var(--color-text-4)}.top-popup_listItemActions [data-top-icon]:before{line-height:0}.top-popup_listItemActions [data-top-icon]:hover,.top-popup_listItemActions [data-top-icon].top-active{--top-icon-color:var(--color-text-3)}.top-popup_content+.top-popup_content{padding-top:0}.top-popup_listItem-title{background:var(--color-layer-1);color:var(--color-text-1);font-size:12px}.top-popup_listItem-formControls{flex-direction:column;padding-top:0;padding-bottom:0;display:flex}.top-popup_listItem-delimiter{background:var(--top-popup-border-color);border-radius:3px;height:1px;margin:4px;padding:0}.top-popup_listMore{margin:calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0}.top-popup_listMore.top-button{margin:0}ul.top-popup_content li>.a.top-popup_listMore{text-align:center;flex-basis:10px}ul.top-popup_content li>.a.top-popup_listMore:before{color:var(--color-text-2)}ul.top-popup_content li>*>.top-popup_listMore{color:var(--color-layer-4);margin-left:auto;font-size:14px}ul.top-popup_content li>*>i.top-popup_listMore:hover,ul.top-popup_content li>*>i.top-popup_listMore.top-active{color:var(--color-text-primary)}ul.top-popup_content li>*>i.top-popup_listMore:before{display:block;transform:rotate(90deg)}ul.top-popup_content li a.close{background:0 0!important}.top-popup_content>[data-top-icon]:before{--top-icon-size:20px}ul.top-popup_content li>[data-top-icon]{--top-icon-color:var(--color-text-2);--top-icon-size:20px;--top-icon-width:20px}ul.top-popup_content li>[data-top-icon]:not(.top-button):before{height:1rem;margin-right:8px;transition:color .1s}ul.top-popup_content li:hover>[data-top-icon]:not(.top-button){--top-icon-color:var(--color-text-2)}.top-popup_listItem>[data-top-icon]{--top-icon-size:14px}.top-popup_footer{padding:var(--top-padding-3);border-top:1px solid var(--top-popup-border-color);gap:var(--top-gap-2);justify-content:flex-end;display:flex}.top-popup_footerSupportLink{margin-right:auto}.top-popup>[data-widget]{padding:0 var(--top-popup-list-padding)}.top-popup>[data-widget]+hr{margin:0 var(--top-popup-list-padding)}.top-popup .placeholder{z-index:1;margin:-1px 0;position:relative;background:#f9f9f9!important;border:1px solid #e0d9d9!important;border-left:none!important;border-right:none!important}.top-popup-wrapper.simple_list>.top-popup{white-space:nowrap;min-width:0}.top-popup_content .top-column{flex-direction:column;gap:4px;display:flex}.top-popup li .check_all,.top-popup li .clear_all{cursor:pointer;color:var(--color-text-primary);padding:8px;display:inline-block}.top-popup li .check_all:hover,.top-popup li .clear_all:hover{text-decoration:underline}.top-popup li .clear_all{display:none}.top-popup_content table{margin:-9px 0}.top-popup_content table td,.top-popup_content table th{padding:9px var(--top-popup-listItem-padding) 9px 0;vertical-align:top}.top-popup_content table th{white-space:nowrap;width:40%;font-weight:600}ul.top-popup_content .a>[type=checkbox],ul.top-popup_content .a>[type=radio]{margin:-8px 0 -8px auto}ul.top-popup_content a>[class*=icon],ul.top-popup_content i.a>[class*=icon]{transition:all .1s}.top-popup .buttons{white-space:nowrap;background:#ecf0f1;border-top:1px solid #bdc3c7;border-radius:0 0 4px 4px;margin:10px -15px -10px;padding:10px 15px}.top-popup_footer [class*=btn]:not(.btn-transparent){min-width:100px;margin-left:10px;padding:5px 14px}.top-popup_footer [class*=btn]:first-child{margin-left:0}.top-popup_footer .btn.full_width{flex-grow:1;margin:0}`),r.O.insertStyleToPage(`:root{--top-popup-list-padding:0px;--top-popup-listItem-radius:0px;--top-popup-listItem-padding:var(--top-padding-4)}.top-popup-wrapper{--top-popup-footer-offset:25px;transition:background .3s;position:fixed;overflow:hidden;width:auto!important;height:auto!important;top:0!important;left:0!important;right:0!important}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed){-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);background:#00000080}.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)>.top-popup{opacity:1!important}.top-popup{max-height:calc(100% - var(--header-height,0px) - var(--toolbar-height,0px) - 12px);border-radius:8px 8px 0 0;flex-direction:column;transition:opacity .3s,transform .3s;display:flex;transform:translateY(80%);width:auto!important;top:auto!important;right:0!important;bottom:var(--toolbar-height,0px)!important;margin:0!important;left:0!important}.top-popup-wrapper.p-from-top{--top-popup-footer-offset:0px;top:var(--header-height,0px)!important}.with_dialog .top-popup-wrapper.p-from-top{top:50px!important}.top-popup-wrapper.p-from-top>.top-popup{border-radius:0 0 8px 8px;max-height:calc(100% - 24px);transform:translateY(calc(-100% - 24px));top:0!important;bottom:auto!important}.top-popup_widget:not(.p-from-top){order:10}ul.top-popup_content{gap:0}ul.top-popup_content li:not(:last-child){border-bottom:1px solid var(--top-popup-border-color)}.top-popup-wrapper.top-style_alt>.top-popup>ul>li{border-bottom:none}.top-popup_footer{flex-direction:column-reverse}.top-popup_footer>.top-button{--top-forms-base-height:var(--top-forms-base-height_l);width:100%}ul.top-popup_content .top-popup_listItem-title{--top-popup-padding-v:12px}ul.top-popup_content .top-popup_listItem-delimiter{background:var(--color-line-1-opacity);height:4px;margin:0}ul.top-popup_content li:first-child>.top-popup_listItem-delimiter{border-top:1px solid var(--top-popup-border-color)}`,`m`),r.O.insertStyleToPage(`.top-popup-wrapper{pointer-events:none}.top-popup{min-width:250px;max-width:calc(100vw - var(--top-popup-left) - 16px);max-height:calc(var(--top-popup-bottom) + var(--top-popup-height))}.top-popup-wrapper.p0>*{transform:translateY(-8px)}.top-popup-wrapper.p1>*{transform:translateY(8px)}.top-popup-wrapper.p2>*{transform:translate(8px)}.top-popup-wrapper.p3>*{transform:translateY(8px)}.top-popup-wrapper.p4>*{transform:translate(-8px)}.top-popup-wrapper.p0>.top-popup{top:-16px;left:-8px}.top-popup-wrapper.p1>.top-popup{bottom:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup{left:calc(100% + 8px)}.top-popup-wrapper.p3>.top-popup{top:calc(100% + 8px)}.top-popup-wrapper.p4>.top-popup{right:calc(100% + 8px)}.top-popup-wrapper.p2>.top-popup,.top-popup-wrapper.p4>.top-popup{margin-top:var(--top-popup-margin)}.top-popup-wrapper.p2.invert-y>.top-popup,.top-popup-wrapper.p4.invert-y>.top-popup{margin-bottom:var(--top-popup-margin)}.top-popup-wrapper.p1.with_notch>.top-popup{margin-bottom:5px}.top-popup-wrapper.p2.with_notch>.top-popup{margin-left:5px}.top-popup-wrapper.p3.with_notch>.top-popup{margin-top:5px}.top-popup-wrapper.p4.with_notch>.top-popup{margin-right:5px}.top-popup-wrapper.invert-x>.top-popup{right:0}.top-popup-wrapper.invert-y>.top-popup{bottom:0}.top-popup-wrapper.p1>.top-popup{max-height:calc(var(--top-popup-top) - var(--header-height,0px) - 16px)}.top-popup-wrapper.p3>.top-popup{max-height:calc(var(--top-popup-bottom) - 16px)}.top-popup-wrapper.p2>.top-popup{max-width:calc(var(--top-popup-right) - 16px)}.top-popup-wrapper.p4>.top-popup{max-width:calc(var(--top-popup-left) - 16px)}.top-popup-wrapper.invert-x>.top-popup{max-width:calc(100vw - var(--top-popup-right) - 16px)}.top-popup-wrapper.invert-y>.top-popup{max-height:calc(100vh - var(--top-popup-bottom) - 16px)}.top-popup-wrapper>.notch{border:7.4px solid #0000;display:block;position:absolute}.top-popup-wrapper.p1>.notch{border-bottom:0;border-top:7.4px solid var(--color-layout-front-1);margin:0 0 7.4px -7.4px;bottom:100%;left:50%}.top-popup-wrapper.p2>.notch{border-left:0;border-right:7.4px solid var(--color-layout-front-1);margin:0 0 -7.4px 7.4px;bottom:50%;left:100%}.top-popup-wrapper.p3>.notch{border-top:0;border-bottom:7.4px solid var(--color-layout-front-1);margin:7.4px 0 0 -7.4px;top:100%;left:50%}.top-popup-wrapper.p4>.notch{border-right:0;border-left:7.4px solid var(--color-layout-front-1);margin:0 7.4px -7.4px 0;bottom:50%;right:100%}.top-popup-wrapper.p1>.notch-border{border-top-color:#0000000d;margin-bottom:6px}.top-popup-wrapper.p2>.notch-border{border-right-color:#0000000d;margin-left:6px}.top-popup-wrapper.p3>.notch-border{border-bottom-color:#0000000d;margin-top:6px}.top-popup-wrapper.p4>.notch-border{border-left-color:#0000000d;margin-right:6px}.top-popup-wrapper.p1.with_notch>.top-popup,.top-popup-wrapper.p3.with_notch>.top-popup{margin-left:-16px!important}.top-popup-wrapper.p1.with_notch>.notch,.top-popup-wrapper.p3.with_notch>.notch{margin-left:-8px!important}.top-popup-wrapper.p1.with_notch.invert-x,.top-popup-wrapper.p3.with_notch.invert-x{margin-left:3px!important}.top-popup-wrapper.p1.with_notch.invert-x>.notch,.top-popup-wrapper.p3.with_notch.invert-x>.notch{margin-left:-9px!important}ul.top-popup_content li>*>i.top-popup_listMore{visibility:hidden;transition:none}ul.top-popup_content li:hover>*>i.top-popup_listMore,ul.top-popup_content li>.top-active>i.top-popup_listMore,ul.top-popup_content li>*>i.top-popup_listMore.top-active{visibility:visible}.top-popup_listItemActions{display:none}.top-popup_listItem.top-active>.top-popup_listItemActions,.top-popup_listItem:hover>.top-popup_listItemActions{display:flex}`,`pc`);var u=class e extends c{constructor(t,n){super(),(0,a.o)(this,`elActiveByDefault`,void 0),(0,a.o)(this,`elPopup`,void 0),(0,a.o)(this,`elPopupInner`,void 0),(0,a.o)(this,`elPopupHeader`,void 0),(0,a.o)(this,`elPopupWidget`,void 0),(0,a.o)(this,`elPopupBody`,void 0),(0,a.o)(this,`elPopupFooter`,void 0),(0,a.o)(this,`elFront`,void 0),(0,a.o)(this,`openerIsInput`,!1),(0,a.o)(this,`popupParent`,void 0),(0,a.o)(this,`$`,void 0),(0,a.o)(this,`elStartPosition`,void 0),(0,a.o)(this,`shift`,{top:0,left:0}),(0,a.o)(this,`isClosed`,!1),(0,a.o)(this,`isFirstClick`,!0),(0,a.o)(this,`type`,void 0),(0,a.o)(this,`options`,{popup:``,p:0,notch:!1,class:``,posBy:`left`,frontSelector:``,invertX:!1,openByHover:!1,useOriginal:!1,transitionDuration:100,isFullScreen:!1}),(0,a.o)(this,`events`,{}),this.init(e.componentName,t,n)}async mount(){if(!(this.el instanceof HTMLElement))return;let t=this.vueGetComponent();if(this.el.closest(`.top-popup-wrapper`)&&(this.popupParent=o.t.getPopup(this.el.closest(`.top-popup-wrapper`))),await this.mountJQuery(),i.default.css(this.el,`position`)!==`absolute`&&(this.el.style.position=`relative`),this.el.dataset.topPopupOpened=`opened`,this.elActiveByDefault=this.el.classList.contains(`top-active`),this.el.classList.add(`top-active`),this.openerIsInput=this.el.classList.contains(`top-input`),this.el.classList.contains(`top-input-project_name`)&&(this.openerIsInput=!1),this.openerIsInput){let e=this.el.querySelector(`input`);e&&!e.__popupOnBlur&&(e.__popupOnBlur=!0,e.addEventListener(`blur`,e=>{let t=e.relatedTarget;t&&o.t.getPopup(t)?.elPopup!==t&&o.t.getClosestPopup(e.relatedTarget,this.el)||o.t.getPopupFromOpener(this.el)?.close()}))}if(t)this.type=`vue`,this.options.popup=``,this.elPopup=i.default.genEl(`div`,{},this.options.popup);else if(this.options.popup?.match(/^[#.]/))this.type=`selector`,this.elPopup=document.querySelector(`${this.options.popup}.template`)||void 0;else{if(this.type=`html`,this.options.useOriginal)throw`Option useOriginal not allowed for text templates`;this.elPopup=i.default.genEl(`div`,{},this.options.popup??``)}if(!t||t?.opened){let n;if(t?.opened?n=t.popup.elPopup:this.type===`html`?this.options.id&&(n=e.popupById.get(this.options.id)?.elPopup||void 0):n=document.querySelector(`${this.options.popup}.top-popup-wrapper-shown`)||void 0,n){this.elPopup=n,this.el.dataset.topPopupOpened=``,this.elActiveByDefault||this.el.classList.remove(`top-active`),o.t.close(this.elPopup),setTimeout(()=>this.mount(),this.options.transitionDuration);return}}if(this.elPopup||=document.querySelector(`${this.options.popup}:not(.top-popup-wrapper)`)||void 0,!this.elPopup)return;if(this.options.id){if(e.popupById.get(this.options.id)&&e.popupById.get(this.options.id)!==this)return;e.popupById.set(this.options.id,this)}for(this.options.useOriginal?(this.elStartPosition=this.elPopup.closest(`.top-popup-el-start-position`),this.elStartPosition||(this.elStartPosition=i.default.wrap(this.elPopup,`i`),this.elStartPosition.classList.add(`top-popup-el-start-position`,`hidden`))):(this.elPopup=this.elPopup.cloneNode(!0),this.type===`selector`&&!this.elPopup.matches(`.template`)&&(this.elPopup.classList.remove(`hidden`),this.elPopup.querySelector(`:scope > .top-popup_content`)||this.elPopup.classList.add(`top-popup_content`),this.elPopup=i.default.wrap(this.elPopup,`div`)),this.type===`html`&&(this.elPopup.querySelector(`:scope > .top-popup_content`)||(this.elPopup.classList.add(`top-popup_content`),this.elPopup=i.default.wrap(this.elPopup,`div`))),(this.type===`selector`&&!this.elPopup.matches(`.template`)||this.type===`html`||this.type===`vue`)&&(i.default.querySelectorAllArray(this.elPopup,`[data-top-popup]`).forEach(e=>{e instanceof HTMLElement&&(e.dataset.topPopupPosBy=`fixed`)}),i.default.querySelectorAllArray(this.elPopup,`.top-popup-wrapper`).forEach(e=>e.remove()))),o.t.decoratorBeforeOpen(this),t&&(this.options.class=t.classRef.value,t.transitionDurationRef.value!==void 0&&(this.options.transitionDuration=t.transitionDurationRef.value,this.elPopup instanceof HTMLElement&&this.elPopup.style.setProperty(`--top-popup-transition-delay`,this.options.transitionDuration+`ms`))),this.elPopupInner=document.createElement(`div`),this.elPopupInner.classList.add(`top-popupPanel`,`top-popup`);this.elPopup.firstChild;)this.elPopupInner.appendChild(this.elPopup.firstChild);if(this.elPopup.append(this.elPopupInner),this.elPopup.classList.add(`top-popup-wrapper`),this.options.class){let e=this.options.class.split(` `);this.elPopup.classList.add(...e)}this.options.notch&&(this.elPopup.classList.add(`with_notch`),this.elPopup.insertAdjacentHTML(`beforeend`,`<i class="notch notch-border"></i><i class="notch"></i>`)),await this.vueOpen(),this.elPopupHeader=this.elPopupInner.querySelector(`.top-popup_header`),this.elPopupWidget=this.elPopupInner.querySelector(`.top-popup_widget`),this.elPopupBody=this.elPopupInner.querySelector(`.top-popup_content`),this.elPopupFooter=this.elPopupInner.querySelector(`.top-popup_footer`);let n=!!this.elPopup.querySelector(`[data-widget="search"]`);if(this.options.isFullScreen&&!n){let e=(0,r.E)();!this.elPopupHeader&&e.Common.Close&&(this.elPopupHeader=i.default.genEl(`i`,{class:`top-popup_header`}),this.elPopupInner.prepend(this.elPopupHeader),this.elPopupHeader.prepend(i.default.genEl(`i`,{class:`a closer`},e.Common.Close)),this.elPopupHeader.append(i.default.genEl(`i`,{class:`top-popup_headerButton`})))}i.default.storage(this.elPopup,e.componentName,this),this.options.frontSelector&&(this.elFront=document.querySelector(this.options.frontSelector)),this.elFront||=this.el.closest(`.top-popup-front`),this.elFront||=document.body,this.elPopup instanceof HTMLElement&&(this.elPopup.style.width=this.el.offsetWidth+`px`,this.elPopup.style.height=this.el.offsetHeight+`px`,this.elPopup.style.top=this.el.offsetTop+`px`,this.elPopup.style.right=parseInt(this.el.style.right||`0`)+`px`,this.elPopup.style.bottom=parseInt(this.el.style.bottom||`0`)+`px`),this.el.parentElement?.insertBefore(this.elPopup,this.el),this.elPopup.classList.remove(`template`),this.options.invertX&&this.elPopup.classList.add(`invert-x`);let a=!!this.el.closest(`.modal-header`);a||=!!this.el.closest(`#top_panel`),a||=!!this.el.closest(`#secondmenu`),a&&this.elPopup.classList.add(`p-from-top`),setTimeout(()=>this.elPopup?.classList.add(`top-popup-wrapper-shown`)),this.elFront&&!this.elFront.matches(`body`)&&(this.elFront.append(this.elPopup),this.shift.top=i.default.offset(this.el).top-this.el.offsetTop-i.default.offset(this.elFront).top,this.shift.left=i.default.offset(this.el).left-this.el.offsetLeft-i.default.offset(this.elFront).left,this.shift.top-=parseInt(this.el.style[`margin-top`]||0),this.shift.left-=parseInt(this.el.style[`margin-left`]||0),this.elPopup instanceof HTMLElement&&(this.elPopup.style.top=parseInt(this.elPopup.style.top||`0`)+this.shift.top+`px`,this.elPopup.style.left=parseInt(this.elPopup.style.left||`0`)+this.shift.left+`px`)),this.$&&r.O.$&&this.$.trigger(`aftershow.top-menu-popup`,[r.O.$(this.elPopup)]),this.recalcPosition(),this.elPopup.setAttribute(`tabindex`,`0`),this.focus(),o.t.decoratorAfterOpen(this),this.mountEvents()}async mountJQuery(){r.O.$&&(this.$=r.O.$(this.el))}focus(){let e;this.elPopup&&(e=i.default.querySelectorVisible(this.elPopup,`.top-popup-autofocus`),e||=i.default.querySelectorVisible(this.elPopup,`:read-write, select:not(:disabled)`),e||=i.default.querySelectorVisible(this.elPopup,`.top-popup_footer .top-button`),!e&&!this.openerIsInput&&(e=this.elPopup),e instanceof HTMLElement&&e.focus({preventScroll:!0}),setTimeout(()=>{e instanceof HTMLElement&&e.focus({preventScroll:!0})},this.options.transitionDuration))}mountEvents(){this.addEventListenerWithUnmount(document,`mousedown`,e=>this.onMousedown(e)),this.openerIsInput?this.onFocusCloseOthers():this.elPopup&&this.elPopupInner&&(this.addEventListenerWithUnmount(this.elPopup,`focus`,e=>this.onFocus(e)),this.options.openByHover&&(this.addEventListenerWithUnmount(this.elPopup,`mouseleave`,e=>this.onMouseleave(e)),this.addEventListenerWithUnmount(this.elPopupInner,`mouseleave`,e=>this.onMouseleave(e)))),this.options.isFullScreen&&this.elPopupBody&&this.addEventListenerWithUnmount(this.elPopupBody,`touchmove`,e=>this.onTouchmove(e))}onMousedown(e){if(!this.elPopup||!(e.target instanceof Element)||!this.isFirstClick||(this.isFirstClick=!1,setTimeout(()=>this.isFirstClick=!0),e instanceof MouseEvent&&e.button!==0))return;let t=i.default.querySelectorVisibleLast(document.body,`:scope > .top-popup-wrapper`);if(t&&t!==this.elPopup||e.target.closest(`.top-popup-front`)&&(t=i.default.querySelectorVisibleLast(e.target.closest(`.top-popup-front`),`:scope > .top-popup-wrapper`),t&&t!==this.elPopup))return;if(e.target.closest(`[data-top-popup-id="${this.options.id}"]`)){e.preventDefault();return}let n=e.target.closest(`input, select, textarea, button, [tabindex]`);n===this.elPopup&&(n=null);let r=!n;r&&this.openerIsInput&&e.preventDefault(),this.elPopup.contains(e.target)||this.elPopup.closest(`.ui-dialog`)&&!e.target.closest(`.ui-dialog`)||o.t.decoratorIsIgnoreOuterClick(e)||o.t.close(this.elPopup,r)}onFocus(e){e.target instanceof Element&&e.target.matches(`input`)||this.onFocusCloseOthers()}onFocusCloseOthers(){this.isClosed||o.t.getAllVisible().forEach(e=>{this.elPopup?.contains(e)||this.popupParent?.elPopup!==e&&this.popupParent?.popupParent?.elPopup!==e&&o.t.close(e)})}onMouseleave(e){setTimeout(()=>{this.elPopupInner&&this.elPopupInner.matches(`:hover`)||!this.elPopup||o.t.close(this.elPopup)},100)}onResize(){this.elPopup&&this.elPopup.parentElement!==document.body&&document.body.append(this.elPopup),this.elPopup instanceof HTMLElement&&(this.elPopup.style.top=i.default.offset(this.el).top+`px`,this.elPopup.style.left=i.default.offset(this.el).left+`px`)}unmount(){super.unmount(),this.el instanceof HTMLElement&&(this.el.dataset.topPopupOpened=``),this.elActiveByDefault||this.el.classList.remove(`top-active`);let e=this.el.getAttribute(`style`);e&&(e=e.replace(/position:[^;]*;?/g,``),this.el.setAttribute(`style`,e))}recalcPosition(e){if(!(this.elPopup instanceof HTMLElement))return;let t=e??this.options.p,n;if(this.el instanceof HTMLElement)switch(this.elPopup.style.height=this.el.offsetHeight+`px`,this.elPopup.classList.remove(`p0`,`p1`,`p2`,`p3`,`p4`),this.elPopup.classList.add(`p`+t),this.options.posBy){case`left`:n=this.el.offsetLeft+parseInt(this.el.style[`margin-left`]||`0`),n+=this.shift.left,this.elPopup.style.left=n+`px`;break;case`right`:if(!(this.el.offsetParent instanceof HTMLElement))break;n=this.el.offsetLeft+parseInt(this.el.style[`margin-left`]||`0`),this.elPopup.style.right=this.el.offsetParent.offsetWidth-this.el.offsetWidth-n+`px`;break;case`fixed`:this.addEventListenerWithUnmount(window,`resize`,()=>this.onResize()),this.onResize();break;default:this.options.posBy?.append(this.elPopup)}let r=this.elPopup.getBoundingClientRect();this.elPopup.style.setProperty(`--top-popup-height`,this.elPopup.offsetHeight+`px`),this.elPopup.style.setProperty(`--top-popup-right-bounding`,r.right+`px`),this.elPopup.style.setProperty(`--top-popup-bottom-bounding`,r.bottom+`px`),this.elPopup.style.setProperty(`--top-popup-top`,r.top+`px`),this.elPopup.style.setProperty(`--top-popup-left`,r.left+`px`),this.elPopupInner instanceof HTMLElement&&(this.elPopupInner.style.maxWidth=`unset`,this.elPopupInner.style.maxHeight=`unset`);let a={top:!1,right:!1,bottom:!1,left:!1},s={top:!1,right:!1,bottom:!1,left:!1},c=r.left>window.innerWidth/2,l=r.top>window.innerHeight/2;t===4&&(c=!c),t===1&&(l=!l);let u=this.elPopupInner?.getBoundingClientRect(),d,f,p=i.default.cssNumber(this.elPopup,`--top-popup-offset`),m=this.el.offsetHeight,h=this.el.offsetWidth;u&&(d=window.innerWidth-u.right,f=window.innerHeight-u.bottom,u.top<p&&(a.top=!0,u.top<p*2-u.height+m&&(s.top=!0)),d<p&&(a.right=!0,d<p*2-u.width+h&&(s.right=!0)),f<p&&(a.bottom=!0,f<p*2-u.height+m&&(s.bottom=!0)),u.left<p&&(a.left=!0,u.left<p*2-u.width+m&&(s.left=!0)));let g=(e,t)=>{if(e===`x`){if(!a.right&&!a.left||(t===1||t===3)&&!s.right&&!s.left&&c)return t;a.right&&(t===0||t===2)&&c&&(t=4),a.left&&(t===0||t===4)&&c&&(t=2)}if(e===`y`){if(!a.top&&!a.bottom||(t===2||t===4)&&!s.top&&!s.bottom&&l)return t;a.top&&(t===0||t===1)&&l&&(t=3),a.bottom&&l&&(t=1)}return t},_=[`x`,`y`];(t===0||t===1||t===3)&&(_=[`y`,`x`]);let v=t??0;_.forEach(e=>{v=g(e,v)}),t=v,a.bottom&&(t===2||t===4)&&l&&this.elPopup.classList.add(`invert-y`),a.right&&(t===0||t===1||t===3)&&this.elPopup.classList.add(`invert-x`),this.elPopup.classList.remove(`p0`,`p1`,`p2`,`p3`,`p4`),this.elPopup.classList.add(`p`+t),this.elPopupInner instanceof HTMLElement&&(this.elPopupInner.style.maxWidth=``,this.elPopupInner.style.maxHeight=``),o.t.scrollToActive(this.elPopup)}onTouchmove(e){if(e.currentTarget instanceof HTMLElement&&e.target instanceof HTMLElement){if(e.currentTarget.scrollWidth>e.currentTarget.offsetWidth||e.target.parentElement?.scrollWidth&&e.target.parentElement?.offsetWidth&&e.target.parentElement.scrollWidth>e.target.parentElement?.offsetWidth)return;e.currentTarget.matches(`.has_scroll`)||e.preventDefault()}}close(){this.isClosed||(this.isClosed=!0,this.$&&r.O.$&&this.elPopup&&this.$.trigger(`afterclose.top-menu-popup`,[r.O.$(this.elPopup)]),o.t.noClose||(this.unmount(),this.elPopup?.classList.add(`top-popup-wrapper-closed`),setTimeout(()=>{if(this.vueClose(),!this.elPopup)return;this.options.useOriginal?(this.elPopup.removeAttribute(`style`),this.elPopup.classList.remove(`top-popup-wrapper-shown`,`top-popup-wrapper-closed`),this.elPopup.classList.add(`template`),this.elStartPosition?.append(this.elPopup),this.elPopup.querySelector(`div.top-popup_content.top-column`)?.classList.remove(`top-column`),this.elPopup.querySelector(`.notch-border`)?.remove(),this.elPopup.querySelector(`.notch`)?.remove(),this.elPopupInner?.replaceWith(...this.elPopupInner.childNodes),i.default.storageClear(this.elPopup)):(i.default.storageClear(this.elPopup),this.elPopup.remove(),delete this.elPopup),this.options.id&&e.popupById.delete(this.options.id);let t=o.t.getAllVisible(),n=t.length&&t[t.length-1];n?o.t.getPopup(n).focus():document.documentElement.classList.remove(`with_popup`)},this.options.transitionDuration)))}async vueOpen(){await this.vueGetComponent()?.onOpen(this)}vueClose(){this.vueGetComponent()?.onClose(this)}vueGetComponent(){if(this.el instanceof HTMLElement&&this.options.id)return o.t.vueConnectors.get(this.options.id)}};n.TopLibPopup=u,(0,a.o)(u,`componentName`,`TopPopup`),(0,a.o)(u,`popupById`,new Map),l.init()});
2
+ //# sourceMappingURL=popup-DX5ojVOZ.es.amd.js.map