nodality 1.0.80 → 1.0.81

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 (201) hide show
  1. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  2. package/dist/animator.esm.js.LICENSE.txt +1 -1
  3. package/dist/appleanim.cjs.js.LICENSE.txt +1 -1
  4. package/dist/appleanim.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  6. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  7. package/dist/base.cjs.js.LICENSE.txt +1 -1
  8. package/dist/base.esm.js.LICENSE.txt +1 -1
  9. package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
  10. package/dist/betaMobileBar.esm.js.LICENSE.txt +1 -1
  11. package/dist/bundle.umd.js +1 -1
  12. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  13. package/dist/button.cjs.js.LICENSE.txt +1 -1
  14. package/dist/button.esm.js.LICENSE.txt +1 -1
  15. package/dist/cardGetter.cjs.js.LICENSE.txt +1 -1
  16. package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
  17. package/dist/center.cjs.js.LICENSE.txt +1 -1
  18. package/dist/center.esm.js.LICENSE.txt +1 -1
  19. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  20. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  21. package/dist/code.cjs.js.LICENSE.txt +1 -1
  22. package/dist/code.esm.js.LICENSE.txt +1 -1
  23. package/dist/container.cjs.js.LICENSE.txt +1 -1
  24. package/dist/container.esm.js.LICENSE.txt +1 -1
  25. package/dist/datalist.cjs.js.LICENSE.txt +1 -1
  26. package/dist/datalist.esm.js.LICENSE.txt +1 -1
  27. package/dist/designer.cjs.js +1 -1
  28. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  29. package/dist/designer.esm.js +1 -1
  30. package/dist/designer.esm.js.LICENSE.txt +1 -1
  31. package/dist/dropdown.cjs.js.LICENSE.txt +1 -1
  32. package/dist/dropdown.esm.js.LICENSE.txt +1 -1
  33. package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
  34. package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
  35. package/dist/finalresult.esm.js +1 -1
  36. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  37. package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
  38. package/dist/flexCard.esm.js.LICENSE.txt +1 -1
  39. package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
  40. package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
  41. package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
  42. package/dist/flexRow.esm.js.LICENSE.txt +1 -1
  43. package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
  44. package/dist/floatingInput.esm.js.LICENSE.txt +1 -1
  45. package/dist/free.cjs.js.LICENSE.txt +1 -1
  46. package/dist/free.esm.js.LICENSE.txt +1 -1
  47. package/dist/horizontalScroller.esm.js.LICENSE.txt +1 -1
  48. package/dist/image.cjs.js.LICENSE.txt +1 -1
  49. package/dist/image.esm.js.LICENSE.txt +1 -1
  50. package/dist/imagePicker.cjs.js.LICENSE.txt +1 -1
  51. package/dist/imagePicker.esm.js.LICENSE.txt +1 -1
  52. package/dist/index.cjs.js +1 -1
  53. package/dist/index.cjs.js.LICENSE.txt +1 -1
  54. package/dist/index.esm.js +1 -1
  55. package/dist/index.esm.js.LICENSE.txt +1 -1
  56. package/dist/link.cjs.js.LICENSE.txt +1 -1
  57. package/dist/link.esm.js.LICENSE.txt +1 -1
  58. package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
  59. package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
  60. package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
  61. package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
  62. package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
  63. package/dist/modal2025.esm.js.LICENSE.txt +1 -1
  64. package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
  65. package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
  66. package/dist/newNavBar.esm.js.LICENSE.txt +1 -1
  67. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  68. package/dist/picker.esm.js.LICENSE.txt +1 -1
  69. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  70. package/dist/progress.esm.js.LICENSE.txt +1 -1
  71. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  72. package/dist/radio.esm.js.LICENSE.txt +1 -1
  73. package/dist/range.cjs.js.LICENSE.txt +1 -1
  74. package/dist/range.esm.js.LICENSE.txt +1 -1
  75. package/dist/scrollvideo.cjs.js.LICENSE.txt +1 -1
  76. package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
  77. package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
  78. package/dist/sideBar.esm.js.LICENSE.txt +1 -1
  79. package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
  80. package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
  81. package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
  82. package/dist/simpleBar.esm.js.LICENSE.txt +1 -1
  83. package/dist/slider2025.cjs.js +1 -1
  84. package/dist/slider2025.cjs.js.LICENSE.txt +1 -1
  85. package/dist/slider2025.esm.js +1 -1
  86. package/dist/slider2025.esm.js.LICENSE.txt +1 -1
  87. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  88. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  89. package/dist/stack.esm.js.LICENSE.txt +1 -1
  90. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  91. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  92. package/dist/table.cjs.js.LICENSE.txt +1 -1
  93. package/dist/table.esm.js.LICENSE.txt +1 -1
  94. package/dist/text.cjs.js.LICENSE.txt +1 -1
  95. package/dist/text.esm.js.LICENSE.txt +1 -1
  96. package/dist/textField.cjs.js.LICENSE.txt +1 -1
  97. package/dist/textField.esm.js.LICENSE.txt +1 -1
  98. package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
  99. package/dist/transformanim.esm.js.LICENSE.txt +1 -1
  100. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  101. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  102. package/dist/video.esm.js.LICENSE.txt +1 -1
  103. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  104. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  105. package/dist/zoomCard.cjs.js.LICENSE.txt +1 -1
  106. package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
  107. package/layout/DEPRECATED-PARAGRAPH.js +1 -1
  108. package/layout/animator.js +1 -1
  109. package/layout/audio.js +1 -1
  110. package/layout/audionew.js +1 -1
  111. package/layout/base-2.js +1 -1
  112. package/layout/base.js +1 -1
  113. package/layout/betaDesktopBar.js +1 -1
  114. package/layout/betaMobileBar.js +1 -1
  115. package/layout/box.js +1 -1
  116. package/layout/button.js +1 -1
  117. package/layout/cards.js +1 -1
  118. package/layout/center.js +1 -1
  119. package/layout/checkbox.js +1 -1
  120. package/layout/circle.js +1 -1
  121. package/layout/cleanRow.js +1 -1
  122. package/layout/code.js +1 -1
  123. package/layout/container.js +1 -1
  124. package/layout/custom.js +1 -1
  125. package/layout/divImage.js +1 -1
  126. package/layout/dropdown.js +1 -1
  127. package/layout/dropdown2025.js +1 -1
  128. package/layout/emptyElement.js +1 -1
  129. package/layout/externalStylesheet.js +1 -1
  130. package/layout/flexCard.js +1 -1
  131. package/layout/flexGrid.js +1 -1
  132. package/layout/flexrow.js +1 -1
  133. package/layout/footer.js +1 -1
  134. package/layout/formComponents/custom.js +1 -1
  135. package/layout/formComponents/dataList.js +1 -1
  136. package/layout/formComponents/floatingInput.js +1 -1
  137. package/layout/formComponents/form-all.js +1 -1
  138. package/layout/formComponents/form.js +1 -1
  139. package/layout/formComponents/imagePicker.js +1 -1
  140. package/layout/formComponents/picker.js +1 -1
  141. package/layout/formComponents/radio.js +1 -1
  142. package/layout/formComponents/radiogroup.js +1 -1
  143. package/layout/formComponents/range.js +1 -1
  144. package/layout/free.js +1 -1
  145. package/layout/grid-new.js +1 -1
  146. package/layout/grid.js +1 -1
  147. package/layout/gridSwitcher.js +1 -1
  148. package/layout/group.js +1 -1
  149. package/layout/header.js +1 -1
  150. package/layout/horizontalScroller.js +1 -1
  151. package/layout/image-old.js +1 -1
  152. package/layout/image.js +1 -1
  153. package/layout/index.js +1 -1
  154. package/layout/label.js +1 -1
  155. package/layout/link.js +1 -1
  156. package/layout/list-OLD.js +1 -1
  157. package/layout/list.js +1 -1
  158. package/layout/metaAdder.js +1 -1
  159. package/layout/modal2025.js +1 -1
  160. package/layout/modernwrap.js +1 -1
  161. package/layout/multiswitcher.js +1 -1
  162. package/layout/multiswitcherBeta.js +1 -1
  163. package/layout/navBar-OLD.js +1 -1
  164. package/layout/navBar.js +1 -1
  165. package/layout/navFactor/customDiv.js +1 -1
  166. package/layout/newFlatAdder.js +1 -1
  167. package/layout/newNavBar copy 2.js +1 -1
  168. package/layout/newNavBar copy.js +1 -1
  169. package/layout/newNavBar.js +1 -1
  170. package/layout/offsetContainer.js +1 -1
  171. package/layout/polygon.js +1 -1
  172. package/layout/progress.js +1 -1
  173. package/layout/row.js +1 -1
  174. package/layout/savedNewNavBar.js +1 -1
  175. package/layout/scrollvideo.js +1 -1
  176. package/layout/sideBar.js +1 -1
  177. package/layout/sideNavBar.js +1 -1
  178. package/layout/simpleBar.js +1 -1
  179. package/layout/slider2025.js +11 -2
  180. package/layout/spacer.js +1 -1
  181. package/layout/stack.js +1 -1
  182. package/layout/styler.js +1 -1
  183. package/layout/switcher.js +1 -1
  184. package/layout/table.js +1 -1
  185. package/layout/text.js +1 -1
  186. package/layout/textField.js +1 -1
  187. package/layout/ulist.js +1 -1
  188. package/layout/video.js +1 -1
  189. package/layout/withoutNew.js +1 -1
  190. package/layout/wrap.js +1 -1
  191. package/layout/zoomCard.js +1 -1
  192. package/lib/AppleAnim.js +1 -1
  193. package/lib/KeyframeAnimation.js +1 -1
  194. package/lib/Stacker.js +1 -1
  195. package/lib/TransformAnim.js +1 -1
  196. package/lib/cardGetter.js +1 -1
  197. package/lib/designer.js +1 -1
  198. package/lib/elementMapper.js +1 -1
  199. package/lib/linkGetter.js +1 -1
  200. package/lib/scrollvideo.js +1 -1
  201. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see slider2025.cjs.js.LICENSE.txt */
2
- (()=>{"use strict";var e={d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,i,n,o,a=[],l=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(s=n.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var s=0,i=function(){};return{s:i,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function a(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,l(s.key),s)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,d(s.key),s)}}function d(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}e.r(t),e.d(t,{Slider:()=>b});var f=function(e){function t(e,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).text=e,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,s=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,i,n=document.createElement("img");n.setAttribute("src",e.url),n.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",n.style.height=(null===(i=e.frame)||void 0===i?void 0:i.height)||"50px",t.appendChild(n)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&u(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(function(){return e=function e(){var t,r,s,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",n="",o="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?n=e.replace("tz:",""):e.startsWith("scale(")?o=e:e.startsWith("skew(")?a=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map((function(e){return e.trim()}));return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))})),r=i.setDefault(r),s=i.setDefault(s),n=i.setDefault(n);var h="";if("0px"!=s&&"0px"!=r&&"0px"!=n?h+="translate3d(".concat(r,", ").concat(s,", ").concat(n,")"):"0px"==s&&"0px"==r||(h+="translate(".concat(r,", ").concat(s,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=y}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};t.on?i.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var s=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",(function(){t.keep||s()}));else{var n=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||s()}),n/2+o)}t.hardCSS&&(i.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=l(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,i=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)}))}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach((function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)})),e.sort((function(e,t){return e._value-t._value}));var s=e.find((function(e){return"default"===e.breakpoint})),i=function(){for(var r=window.innerWidth,i=s||null,n=0;n<e.length;n++){var o=e[n];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&t(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)}))}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,(function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])}))}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var i=r[s],n=e[t][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(n)?"".concat(n,"px"):n;break;case"t":this.res.style.paddingTop=this.isNumber(n)?"".concat(n,"px"):n;break;case"l":this.res.style.paddingLeft=this.isNumber(n)?"".concat(n,"px"):n;break;case"r":this.res.style.paddingRight=this.isNumber(n)?"".concat(n,"px"):n;break;case"b":this.res.style.paddingBottom=this.isNumber(n)?"".concat(n,"px"):n}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var i=r[s],n=e[t][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(n)?"".concat(n,"px"):n;break;case"t":this.res.style.marginTop=this.isNumber(n)?"".concat(n,"px"):n;break;case"l":this.res.style.marginLeft=this.isNumber(n)?"".concat(n,"px"):n;break;case"r":this.res.style.marginRight=this.isNumber(n)?"".concat(n,"px"):n;break;case"b":this.res.style.marginBottom=this.isNumber(n)?"".concat(n,"px"):n}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*s-r.min;if(i=Math.abs(i),r.min<r.max){var n=(r.max+Math.abs(r.min))*s;i=r.min+n}return i}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),this.res.style.borderRadius=e.radius,this}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"setTags",value:function(e){this.openTag=e.open,this.closeTag=e.close,console.log("TAGS SET"),console.log(e)}},{key:"chainReact",value:function(e,t,r){var n=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(e){a.e(e)}finally{a.f()}e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var c=function(o){var a=window.visualViewport.width,l=[],c=[];n.resCopy=n.res,n.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,d=i(e);try{for(d.s();!(u=d.n()).done;){var h=u.value;n.counterIndex++;var p=s(h.range,2),y=p[0],f=p[1],v=parseInt(y),m=parseInt(f),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===t&&(g=!0)}a>=v&&a<=m&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(n.useMargin=h.op.margin))}}catch(e){d.e(e)}finally{d.f()}if(r&&!r.includes("background")&&(n.res.style.background="",n.res.style.backgroundColor=""),n.res.style.textShadow="",r&&!r.includes("border")&&(n.res.style.border=""),r&&!r.includes("margin")&&(n.res.style.margin=""),n.res.style["-webkit-text-fill-color"]="",n.res.style["-webkit-text-stroke-color"]="",n.res.style["-webkit-text-stroke-width"]="",n.res.style.filter="",n.options.background&&(console.log(n.options.background),n.res.style.background=n.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(n.res.style.position="relative"),l.includes("blast")){var x,w=c.filter((function(e){return"blast"===e.log}))[0].op.color,k=null!==(x=c.filter((function(e){return"blast"===e.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===n.getType()||"LayoutWrapperElement"===n.getType()?(n.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),n.res.style.display="inline-block","FlexRowLayoutElement"===n.getType()&&(n.res.style.display="flex"),n.res.style.boxSizing="border-box",n.res.style.transformOrigin="center",n.blastTarget=n.res):(n.text,n.res.style["-webkit-text-fill-color"]="transparent",n.res.style["-webkit-text-stroke-color"]=w,n.res.style["-webkit-text-stroke-width"]="".concat(k))}if(l.includes("filter")){var S=c.filter((function(e){return"filter"===e.log}))[0].op.filter;n.res.style.filter=S}if(l.includes("background")&&(n.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==n.getType()&&"FlexRowLayoutElement"!==n.getType()&&(n.res.style["-webkit-text-fill-color"]="transparent"),n.res.style.background=n.globalGradient,"LayoutWrapperElement"!==n.getType()&&"FlexRowLayoutElement"!==n.getType()&&(n.res.style["background-clip"]="text")),l.includes("shadow")){var T,C,E,O,A=n.options.shadow.op;console.log("OP IS",A);var L=null!==(T=A.steps)&&void 0!==T?T:1,N=null!==(C=A.colors)&&void 0!==C?C:["gray"],j=null!==(E=A.movements)&&void 0!==E?E:["3px","3px"],I=null!==(O=A.radius)&&void 0!==O?O:"3px";if(1===j.length&&(j=[j[0],j[0]]),"FlexRowLayoutElement"===n.getType()||"LayoutWrapperElement"===n.getType()){for(var W=[],P=0;P<L;P++){var z,R=null!==(z=N[P])&&void 0!==z?z:N[0],M=j[0],B=j[1];W.push("".concat(M," ").concat(B," ").concat(I," ").concat(R))}n.res.style.boxShadow=W.join(", ")}else{for(var _=[],F=0;F<L;F++){var D,H=null!==(D=N[F])&&void 0!==D?D:N[0],q=j[0],G=j[1];_.push("drop-shadow(".concat(q," ").concat(G," ").concat(I," ").concat(H,")"))}n.res.style.filter=_.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var V=e[b].op.offsets;V&&void 0!==n.index&&(n.res.style.margin=V[Number(n.index)]+"px")}if(l.includes("spana")||l.includes("span")){var X=document.createElement("div");if(X.setAttribute("id","oroa"),Object.assign(X.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),n.res&&n.res.querySelector("span"))return;n.res=n.resCopy,n.res.textContent="",n.options.span&&(Array.isArray(n.options.span)?n.options.span:[n.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=n.prevText||"";if(e.op.parts.forEach((function(e){var s=e.text,i=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);n.res.appendChild(new n.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}t=o+s.length}var l=new n.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();n.res.appendChild(l)})),t<r.length){var s=r.substring(t);n.res.appendChild(new n.constructor(s).setup({type:"span"}).set({}).render())}}}))}else{var Y=new n.constructor(n.prevText).set({}).render();n.prevText&&n.prevText.length>0&&o&&n.res.appendChild(Y)}if(l.includes("animation")){if(n.options.animation&&!n.hasAnimated&&!n.options.animation.op.fireAt){console.warn(n.openTag),n.hasAnimated=!0;var $=n.options.animation.op;window.addEventListener("sidebar:open",(function(){n.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener("sidebar:closed",(function(){n.res.animate($.keyframesClose,$.closeOptions)})),n.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),n.openTag&&n.closeTag&&(window.addEventListener(n.openTag,(function(){n.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener(n.closeTag,(function(){n.res.animate($.keyframesClose,$.closeOptions)})))}if(n.options.animation&&n.options.animation.op.fireAt&&n.options.animation.op.fireAt.endsWith("px")){var J=n.options.animation.op;n.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(n.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(n.options.animation&&"inview"===n.options.animation.op.fireAt){var U=n.options.animation.op;n.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&!K&&(K=!0,n.res.animate(U.keyframesOpen,U.openOptions),t.disconnect())}))})).observe(n.res)}}};this.options.animation||window.addEventListener("resize",(function(){return c()})),c()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}());function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,g(s.key),s)}}function g(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}var b=function(){return e=function e(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=t,this.currentSlideIndex=0,this.buttons=r,this.tintColor=s.tintColor||"green",this.inactiveColor=s.inactiveColor||"gray",this.options=s,!this.buttons){var i={leftButton:new f("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}}),rightButton:new f("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}})};this.buttons=i}this.createSlider(),this.init()},t=[{key:"createArrowSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg");i.setAttribute("viewBox","0 0 24 24"),i.setAttribute("width",String(t)),i.setAttribute("height",String(t)),i.setAttribute("aria-hidden","true"),i.style.display="block",i.style.pointerEvents="none";var n=document.createElementNS(s,"path");return n.setAttribute("fill",r),"left"===e?n.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):n.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),i.appendChild(n),i}},{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map((function(e){return e.toCode()})),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){var e,t=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(e=this.options.height)&&void 0!==e?e:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach((function(e,t){var s=document.createElement("div");s.setAttribute("class","slide"),s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.style.flexShrink="0",s.style.width="100%",s.style.height="400px",s.style.transformOrigin="center center",s.style.transform="scale(1)",s.style.scrollSnapAlign="center";var i=e.render();s.appendChild(i),r.appendChild(s)})),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center";var s=document.createElement("div");s.style.position="absolute",s.style.bottom="10%",s.style.left="50%",s.style.transform="translateX(-50%)",s.style.textAlign="center",this.elements.forEach((function(e,r){var i=document.createElement("a");i.style.display="inline-block",i.style.height="15px",i.style.width="15px",i.style.borderRadius="50%",i.style.backgroundColor=t.inactiveColor,i.style.margin="0 10px",i.style.cursor="pointer",i.dataset.index=r,s.appendChild(i)}));var i=document.createElement("div");i.style.display="flex",i.style.justifyContent="flex-start",i.style.marginTop="10px",i.style.gap="10px",i.style.flexWrap="nowrap",i.style.overflowX="auto",r.querySelectorAll(".slide").forEach((function(e,r){var s=document.createElement("div");s.className="slider-thumb",s.dataset.index=r.toString(),s.style.width="60px",s.style.height="40px",s.style.border="2px solid ".concat(t.inactiveColor),s.style.borderRadius="5px",s.style.overflow="hidden",s.style.cursor="pointer",s.style.flexShrink="0",s.style.position="relative";var n=(e.firstElementChild||e.cloneNode(!0)).cloneNode(!0);n.style.transform="scale(0.2)",n.style.transformOrigin="top left",n.style.width="300px",n.style.height="300px",n.style.backgroundSize="contain",n.style.pointerEvents="none",s.appendChild(n),i.appendChild(s)})),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(s),this.container.appendChild(this.slider),this.container.appendChild(i),this.slidesWrapper=r,this.navLinks=Array.from(s.querySelectorAll("a")),this.thumbs=Array.from(i.querySelectorAll(".slider-thumb"))}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",(function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})),this.navLinks.forEach((function(t){t.addEventListener("click",(function(r){r.preventDefault();var s=parseInt(t.dataset.index,10);e.moveToSlide(s)}))})),this.thumbs.forEach((function(t){t.addEventListener("click",(function(){var r=parseInt(t.dataset.index,10);e.moveToSlide(r)}))})),document.addEventListener("keydown",(function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}))}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach((function(t){var r=parseInt(t.dataset.index,10);t.style.backgroundColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor})),this.thumbs.forEach((function(t){var r=parseInt(t.dataset.index,10);t.style.borderColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor}));var t=this.slidesWrapper.querySelector(".slide"),r=t?t.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"render",value:function(e){if(!e)return this.container;document.querySelector(e).appendChild(this.container)}}],t&&m(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();module.exports=t})();
2
+ (()=>{"use strict";var e={d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,i,n,o,a=[],l=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(s=n.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var s=0,i=function(){};return{s:i,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function a(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,l(s.key),s)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,d(s.key),s)}}function d(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}e.r(t),e.d(t,{Slider:()=>b});var f=function(e){function t(e,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).text=e,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,s=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,i,n=document.createElement("img");n.setAttribute("src",e.url),n.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",n.style.height=(null===(i=e.frame)||void 0===i?void 0:i.height)||"50px",t.appendChild(n)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&u(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(function(){return e=function e(){var t,r,s,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",n="",o="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?n=e.replace("tz:",""):e.startsWith("scale(")?o=e:e.startsWith("skew(")?a=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map((function(e){return e.trim()}));return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))})),r=i.setDefault(r),s=i.setDefault(s),n=i.setDefault(n);var h="";if("0px"!=s&&"0px"!=r&&"0px"!=n?h+="translate3d(".concat(r,", ").concat(s,", ").concat(n,")"):"0px"==s&&"0px"==r||(h+="translate(".concat(r,", ").concat(s,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=y}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};t.on?i.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var s=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",(function(){t.keep||s()}));else{var n=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||s()}),n/2+o)}t.hardCSS&&(i.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=l(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,i=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)}))}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach((function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)})),e.sort((function(e,t){return e._value-t._value}));var s=e.find((function(e){return"default"===e.breakpoint})),i=function(){for(var r=window.innerWidth,i=s||null,n=0;n<e.length;n++){var o=e[n];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&t(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)}))}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,(function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])}))}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var i=r[s],n=e[t][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(n)?"".concat(n,"px"):n;break;case"t":this.res.style.paddingTop=this.isNumber(n)?"".concat(n,"px"):n;break;case"l":this.res.style.paddingLeft=this.isNumber(n)?"".concat(n,"px"):n;break;case"r":this.res.style.paddingRight=this.isNumber(n)?"".concat(n,"px"):n;break;case"b":this.res.style.paddingBottom=this.isNumber(n)?"".concat(n,"px"):n}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var i=r[s],n=e[t][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(n)?"".concat(n,"px"):n;break;case"t":this.res.style.marginTop=this.isNumber(n)?"".concat(n,"px"):n;break;case"l":this.res.style.marginLeft=this.isNumber(n)?"".concat(n,"px"):n;break;case"r":this.res.style.marginRight=this.isNumber(n)?"".concat(n,"px"):n;break;case"b":this.res.style.marginBottom=this.isNumber(n)?"".concat(n,"px"):n}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*s-r.min;if(i=Math.abs(i),r.min<r.max){var n=(r.max+Math.abs(r.min))*s;i=r.min+n}return i}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),this.res.style.borderRadius=e.radius,this}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"setTags",value:function(e){this.openTag=e.open,this.closeTag=e.close,console.log("TAGS SET"),console.log(e)}},{key:"chainReact",value:function(e,t,r){var n=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(e){a.e(e)}finally{a.f()}e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var c=function(o){var a=window.visualViewport.width,l=[],c=[];n.resCopy=n.res,n.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,d=i(e);try{for(d.s();!(u=d.n()).done;){var h=u.value;n.counterIndex++;var p=s(h.range,2),y=p[0],f=p[1],v=parseInt(y),m=parseInt(f),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===t&&(g=!0)}a>=v&&a<=m&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(n.useMargin=h.op.margin))}}catch(e){d.e(e)}finally{d.f()}if(r&&!r.includes("background")&&(n.res.style.background="",n.res.style.backgroundColor=""),n.res.style.textShadow="",r&&!r.includes("border")&&(n.res.style.border=""),r&&!r.includes("margin")&&(n.res.style.margin=""),n.res.style["-webkit-text-fill-color"]="",n.res.style["-webkit-text-stroke-color"]="",n.res.style["-webkit-text-stroke-width"]="",n.res.style.filter="",n.options.background&&(console.log(n.options.background),n.res.style.background=n.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(n.res.style.position="relative"),l.includes("blast")){var x,w=c.filter((function(e){return"blast"===e.log}))[0].op.color,k=null!==(x=c.filter((function(e){return"blast"===e.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===n.getType()||"LayoutWrapperElement"===n.getType()?(n.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),n.res.style.display="inline-block","FlexRowLayoutElement"===n.getType()&&(n.res.style.display="flex"),n.res.style.boxSizing="border-box",n.res.style.transformOrigin="center",n.blastTarget=n.res):(n.text,n.res.style["-webkit-text-fill-color"]="transparent",n.res.style["-webkit-text-stroke-color"]=w,n.res.style["-webkit-text-stroke-width"]="".concat(k))}if(l.includes("filter")){var S=c.filter((function(e){return"filter"===e.log}))[0].op.filter;n.res.style.filter=S}if(l.includes("background")&&(n.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==n.getType()&&"FlexRowLayoutElement"!==n.getType()&&(n.res.style["-webkit-text-fill-color"]="transparent"),n.res.style.background=n.globalGradient,"LayoutWrapperElement"!==n.getType()&&"FlexRowLayoutElement"!==n.getType()&&(n.res.style["background-clip"]="text")),l.includes("shadow")){var T,C,E,O,A=n.options.shadow.op;console.log("OP IS",A);var L=null!==(T=A.steps)&&void 0!==T?T:1,P=null!==(C=A.colors)&&void 0!==C?C:["gray"],N=null!==(E=A.movements)&&void 0!==E?E:["3px","3px"],j=null!==(O=A.radius)&&void 0!==O?O:"3px";if(1===N.length&&(N=[N[0],N[0]]),"FlexRowLayoutElement"===n.getType()||"LayoutWrapperElement"===n.getType()){for(var I=[],W=0;W<L;W++){var R,z=null!==(R=P[W])&&void 0!==R?R:P[0],M=N[0],B=N[1];I.push("".concat(M," ").concat(B," ").concat(j," ").concat(z))}n.res.style.boxShadow=I.join(", ")}else{for(var _=[],F=0;F<L;F++){var D,H=null!==(D=P[F])&&void 0!==D?D:P[0],q=N[0],G=N[1];_.push("drop-shadow(".concat(q," ").concat(G," ").concat(j," ").concat(H,")"))}n.res.style.filter=_.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var V=e[b].op.offsets;V&&void 0!==n.index&&(n.res.style.margin=V[Number(n.index)]+"px")}if(l.includes("spana")||l.includes("span")){var X=document.createElement("div");if(X.setAttribute("id","oroa"),Object.assign(X.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),n.res&&n.res.querySelector("span"))return;n.res=n.resCopy,n.res.textContent="",n.options.span&&(Array.isArray(n.options.span)?n.options.span:[n.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=n.prevText||"";if(e.op.parts.forEach((function(e){var s=e.text,i=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);n.res.appendChild(new n.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}t=o+s.length}var l=new n.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();n.res.appendChild(l)})),t<r.length){var s=r.substring(t);n.res.appendChild(new n.constructor(s).setup({type:"span"}).set({}).render())}}}))}else{var Y=new n.constructor(n.prevText).set({}).render();n.prevText&&n.prevText.length>0&&o&&n.res.appendChild(Y)}if(l.includes("animation")){if(n.options.animation&&!n.hasAnimated&&!n.options.animation.op.fireAt){console.warn(n.openTag),n.hasAnimated=!0;var $=n.options.animation.op;window.addEventListener("sidebar:open",(function(){n.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener("sidebar:closed",(function(){n.res.animate($.keyframesClose,$.closeOptions)})),n.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),n.openTag&&n.closeTag&&(window.addEventListener(n.openTag,(function(){n.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener(n.closeTag,(function(){n.res.animate($.keyframesClose,$.closeOptions)})))}if(n.options.animation&&n.options.animation.op.fireAt&&n.options.animation.op.fireAt.endsWith("px")){var J=n.options.animation.op;n.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(n.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(n.options.animation&&"inview"===n.options.animation.op.fireAt){var U=n.options.animation.op;n.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&!K&&(K=!0,n.res.animate(U.keyframesOpen,U.openOptions),t.disconnect())}))})).observe(n.res)}}};this.options.animation||window.addEventListener("resize",(function(){return c()})),c()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}());function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,g(s.key),s)}}function g(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}var b=function(){return e=function e(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=t,this.currentSlideIndex=0,this.buttons=r,this.tintColor=s.tintColor||"green",this.inactiveColor=s.inactiveColor||"gray",this.options=s,!this.buttons){var i={leftButton:new f("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}}),rightButton:new f("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}})};this.buttons=i}this.createSlider(),this.init()},t=[{key:"createArrowSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg");i.setAttribute("viewBox","0 0 24 24"),i.setAttribute("width",String(t)),i.setAttribute("height",String(t)),i.setAttribute("aria-hidden","true"),i.style.display="block",i.style.pointerEvents="none";var n=document.createElementNS(s,"path");return n.setAttribute("fill",r),"left"===e?n.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):n.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),i.appendChild(n),i}},{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map((function(e){return e.toCode()})),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){var e,t=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(e=this.options.height)&&void 0!==e?e:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach((function(e,t){var s=document.createElement("div");s.setAttribute("class","slide"),s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.style.flexShrink="0",s.style.width="100%",s.style.height="400px",s.style.transformOrigin="center center",s.style.transform="scale(1)",s.style.scrollSnapAlign="center";var i=e.render();s.appendChild(i),r.appendChild(s)})),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem";var s=document.createElement("div");s.style.position="absolute",s.style.bottom="10%",s.style.left="50%",s.style.transform="translateX(-50%)",s.style.textAlign="center",s.style.background="#ffffff",s.style.borderRadius="1rem",s.style.padding=".2rem",s.style.boxShadow="3px 3px 10px #000",this.elements.forEach((function(e,r){var i=document.createElement("a");i.style.display="inline-block",i.style.height="15px",i.style.width="15px",i.style.borderRadius="50%",i.style.backgroundColor=t.inactiveColor,i.style.margin="0 10px",i.style.cursor="pointer",i.dataset.index=r,s.appendChild(i)}));var i=document.createElement("div");i.style.display="flex",i.style.justifyContent="flex-start",i.style.margin="1rem",i.style.gap="10px",i.style.flexWrap="nowrap",i.style.overflowX="auto",r.querySelectorAll(".slide").forEach((function(e,r){var s=document.createElement("div");s.className="slider-thumb",s.dataset.index=r.toString(),s.style.width="60px",s.style.height="40px",s.style.border="2px solid ".concat(t.inactiveColor),s.style.borderRadius="5px",s.style.overflow="hidden",s.style.cursor="pointer",s.style.flexShrink="0",s.style.position="relative";var n=(e.firstElementChild||e.cloneNode(!0)).cloneNode(!0);n.style.transform="scale(0.2)",n.style.transformOrigin="top left",n.style.width="300px",n.style.height="300px",n.style.backgroundSize="contain",n.style.pointerEvents="none",s.appendChild(n),i.appendChild(s)})),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(s),this.container.appendChild(this.slider),this.container.appendChild(i),this.slidesWrapper=r,this.navLinks=Array.from(s.querySelectorAll("a")),this.thumbs=Array.from(i.querySelectorAll(".slider-thumb"))}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",(function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})),this.navLinks.forEach((function(t){t.addEventListener("click",(function(r){r.preventDefault();var s=parseInt(t.dataset.index,10);e.moveToSlide(s)}))})),this.thumbs.forEach((function(t){t.addEventListener("click",(function(){var r=parseInt(t.dataset.index,10);e.moveToSlide(r)}))})),document.addEventListener("keydown",(function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}))}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach((function(t){var r=parseInt(t.dataset.index,10);t.style.backgroundColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor})),this.thumbs.forEach((function(t){var r=parseInt(t.dataset.index,10);t.style.borderColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor}));var t=this.slidesWrapper.querySelector(".slide"),r=t?t.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"render",value:function(e){if(!e)return this.container;document.querySelector(e).appendChild(this.container)}}],t&&m(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();module.exports=t})();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.80
2
+ * nodality v1.0.81
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */