nodality 1.0.61 → 1.0.63

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 (260) hide show
  1. package/dist/animator.cjs.js +1 -1
  2. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  3. package/dist/animator.esm.js +1 -1
  4. package/dist/animator.esm.js.LICENSE.txt +1 -1
  5. package/dist/appleanim.cjs.js.LICENSE.txt +1 -1
  6. package/dist/appleanim.esm.js.LICENSE.txt +1 -1
  7. package/dist/audionew.cjs.js +1 -1
  8. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  9. package/dist/audionew.esm.js +1 -1
  10. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  11. package/dist/base.cjs.js.LICENSE.txt +1 -1
  12. package/dist/base.esm.js.LICENSE.txt +1 -1
  13. package/dist/betaDesktopBar.esm.js +1 -1
  14. package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
  15. package/dist/betaMobileBar.esm.js +1 -1
  16. package/dist/betaMobileBar.esm.js.LICENSE.txt +1 -1
  17. package/dist/bundle.umd.js +1 -1
  18. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  19. package/dist/button.cjs.js +1 -1
  20. package/dist/button.cjs.js.LICENSE.txt +1 -1
  21. package/dist/button.esm.js +1 -1
  22. package/dist/button.esm.js.LICENSE.txt +1 -1
  23. package/dist/cardGetter.cjs.js.LICENSE.txt +1 -1
  24. package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
  25. package/dist/center.cjs.js +1 -1
  26. package/dist/center.cjs.js.LICENSE.txt +1 -1
  27. package/dist/center.esm.js +1 -1
  28. package/dist/center.esm.js.LICENSE.txt +1 -1
  29. package/dist/checkbox.cjs.js +1 -1
  30. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  31. package/dist/checkbox.esm.js +1 -1
  32. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  33. package/dist/code.cjs.js +1 -1
  34. package/dist/code.cjs.js.LICENSE.txt +1 -1
  35. package/dist/code.esm.js +1 -1
  36. package/dist/code.esm.js.LICENSE.txt +1 -1
  37. package/dist/container.cjs.js +1 -1
  38. package/dist/container.cjs.js.LICENSE.txt +1 -1
  39. package/dist/container.esm.js +1 -1
  40. package/dist/container.esm.js.LICENSE.txt +1 -1
  41. package/dist/datalist.cjs.js.LICENSE.txt +1 -1
  42. package/dist/datalist.esm.js.LICENSE.txt +1 -1
  43. package/dist/designer.cjs.js +1 -1
  44. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  45. package/dist/designer.esm.js +1 -1
  46. package/dist/designer.esm.js.LICENSE.txt +1 -1
  47. package/dist/dropdown.cjs.js +1 -1
  48. package/dist/dropdown.cjs.js.LICENSE.txt +1 -1
  49. package/dist/dropdown.esm.js +1 -1
  50. package/dist/dropdown.esm.js.LICENSE.txt +1 -1
  51. package/dist/elementMapper.cjs.js +1 -1
  52. package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
  53. package/dist/elementMapper.esm.js +1 -1
  54. package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
  55. package/dist/finalresult.esm.js +1 -1
  56. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  57. package/dist/flexCard.cjs.js +1 -1
  58. package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
  59. package/dist/flexCard.esm.js +1 -1
  60. package/dist/flexCard.esm.js.LICENSE.txt +1 -1
  61. package/dist/flexGrid.cjs.js +1 -1
  62. package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
  63. package/dist/flexGrid.esm.js +1 -1
  64. package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
  65. package/dist/flexRow.cjs.js +1 -1
  66. package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
  67. package/dist/flexRow.esm.js +1 -1
  68. package/dist/flexRow.esm.js.LICENSE.txt +1 -1
  69. package/dist/floatingInput.cjs.js +1 -1
  70. package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
  71. package/dist/floatingInput.esm.js +1 -1
  72. package/dist/floatingInput.esm.js.LICENSE.txt +1 -1
  73. package/dist/free.cjs.js +1 -1
  74. package/dist/free.cjs.js.LICENSE.txt +1 -1
  75. package/dist/free.esm.js +1 -1
  76. package/dist/free.esm.js.LICENSE.txt +1 -1
  77. package/dist/horizontalScroller.esm.js.LICENSE.txt +1 -1
  78. package/dist/image.cjs.js +1 -1
  79. package/dist/image.cjs.js.LICENSE.txt +1 -1
  80. package/dist/image.esm.js +1 -1
  81. package/dist/image.esm.js.LICENSE.txt +1 -1
  82. package/dist/imagePicker.cjs.js +1 -1
  83. package/dist/imagePicker.cjs.js.LICENSE.txt +1 -1
  84. package/dist/imagePicker.esm.js +1 -1
  85. package/dist/imagePicker.esm.js.LICENSE.txt +1 -1
  86. package/dist/index.cjs.js +1 -1
  87. package/dist/index.cjs.js.LICENSE.txt +1 -1
  88. package/dist/index.esm.js +1 -1
  89. package/dist/index.esm.js.LICENSE.txt +1 -1
  90. package/dist/link.cjs.js +1 -1
  91. package/dist/link.cjs.js.LICENSE.txt +1 -1
  92. package/dist/link.esm.js +1 -1
  93. package/dist/link.esm.js.LICENSE.txt +1 -1
  94. package/dist/linkGetter.cjs.js +1 -1
  95. package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
  96. package/dist/linkGetter.esm.js +1 -1
  97. package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
  98. package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
  99. package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
  100. package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
  101. package/dist/modal2025.esm.js.LICENSE.txt +1 -1
  102. package/dist/multiswitchers.esm.js +1 -1
  103. package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
  104. package/dist/newNavBar.cjs.js +1 -1
  105. package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
  106. package/dist/newNavBar.esm.js +1 -1
  107. package/dist/newNavBar.esm.js.LICENSE.txt +1 -1
  108. package/dist/picker.cjs.js +1 -1
  109. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  110. package/dist/picker.esm.js +1 -1
  111. package/dist/picker.esm.js.LICENSE.txt +1 -1
  112. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  113. package/dist/progress.esm.js.LICENSE.txt +1 -1
  114. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  115. package/dist/radio.esm.js.LICENSE.txt +1 -1
  116. package/dist/range.cjs.js.LICENSE.txt +1 -1
  117. package/dist/range.esm.js.LICENSE.txt +1 -1
  118. package/dist/scrollvideo.cjs.js +1 -1
  119. package/dist/scrollvideo.cjs.js.LICENSE.txt +1 -1
  120. package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
  121. package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
  122. package/dist/sideBar.esm.js.LICENSE.txt +1 -1
  123. package/dist/sideNavBar.cjs.js +1 -1
  124. package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
  125. package/dist/sideNavBar.esm.js +1 -1
  126. package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
  127. package/dist/simpleBar.cjs.js +1 -1
  128. package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
  129. package/dist/simpleBar.esm.js +1 -1
  130. package/dist/simpleBar.esm.js.LICENSE.txt +1 -1
  131. package/dist/slider2025.cjs.js +1 -1
  132. package/dist/slider2025.cjs.js.LICENSE.txt +1 -1
  133. package/dist/slider2025.esm.js +1 -1
  134. package/dist/slider2025.esm.js.LICENSE.txt +1 -1
  135. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  136. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  137. package/dist/stack.esm.js.LICENSE.txt +1 -1
  138. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  139. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  140. package/dist/table.cjs.js +1 -1
  141. package/dist/table.cjs.js.LICENSE.txt +1 -1
  142. package/dist/table.esm.js +1 -1
  143. package/dist/table.esm.js.LICENSE.txt +1 -1
  144. package/dist/text.cjs.js +1 -1
  145. package/dist/text.cjs.js.LICENSE.txt +1 -1
  146. package/dist/text.esm.js +1 -1
  147. package/dist/text.esm.js.LICENSE.txt +1 -1
  148. package/dist/textField.cjs.js +1 -1
  149. package/dist/textField.cjs.js.LICENSE.txt +1 -1
  150. package/dist/textField.esm.js +1 -1
  151. package/dist/textField.esm.js.LICENSE.txt +1 -1
  152. package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
  153. package/dist/transformanim.esm.js.LICENSE.txt +1 -1
  154. package/dist/ulist.cjs.js +1 -1
  155. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  156. package/dist/ulist.esm.js +1 -1
  157. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  158. package/dist/video.esm.js +1 -1
  159. package/dist/video.esm.js.LICENSE.txt +1 -1
  160. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  161. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  162. package/dist/zoomCard.cjs.js +1 -1
  163. package/dist/zoomCard.cjs.js.LICENSE.txt +1 -1
  164. package/dist/zoomCard.esm.js +1 -1
  165. package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
  166. package/layout/DEPRECATED-PARAGRAPH.js +1 -1
  167. package/layout/animator.js +3 -3
  168. package/layout/audio.js +1 -1
  169. package/layout/audionew.js +1 -1
  170. package/layout/base-2.js +1 -1
  171. package/layout/base.js +1 -1
  172. package/layout/betaDesktopBar.js +1 -1
  173. package/layout/betaMobileBar.js +1 -1
  174. package/layout/box.js +1 -1
  175. package/layout/button.js +1 -1
  176. package/layout/cards.js +1 -1
  177. package/layout/center.js +38 -10
  178. package/layout/checkbox.js +1 -1
  179. package/layout/circle.js +1 -1
  180. package/layout/cleanRow.js +1 -1
  181. package/layout/code.js +1 -1
  182. package/layout/container.js +1 -1
  183. package/layout/custom.js +1 -1
  184. package/layout/divImage.js +1 -1
  185. package/layout/dropdown.js +1 -1
  186. package/layout/dropdown2025.js +1 -1
  187. package/layout/emptyElement.js +1 -1
  188. package/layout/externalStylesheet.js +1 -1
  189. package/layout/flexCard.js +1 -1
  190. package/layout/flexGrid.js +1 -1
  191. package/layout/flexrow.js +1 -1
  192. package/layout/footer.js +1 -1
  193. package/layout/formComponents/custom.js +1 -1
  194. package/layout/formComponents/dataList.js +1 -1
  195. package/layout/formComponents/floatingInput.js +1 -1
  196. package/layout/formComponents/form-all.js +1 -1
  197. package/layout/formComponents/form.js +1 -1
  198. package/layout/formComponents/imagePicker.js +1 -1
  199. package/layout/formComponents/picker.js +1 -1
  200. package/layout/formComponents/radio.js +1 -1
  201. package/layout/formComponents/radiogroup.js +1 -1
  202. package/layout/formComponents/range.js +1 -1
  203. package/layout/free.js +1 -1
  204. package/layout/grid-new.js +1 -1
  205. package/layout/grid.js +1 -1
  206. package/layout/gridSwitcher.js +1 -1
  207. package/layout/group.js +1 -1
  208. package/layout/header.js +1 -1
  209. package/layout/horizontalScroller.js +1 -1
  210. package/layout/image-old.js +1 -1
  211. package/layout/image.js +1 -1
  212. package/layout/index.js +1 -1
  213. package/layout/label.js +1 -1
  214. package/layout/link.js +1 -1
  215. package/layout/list-OLD.js +1 -1
  216. package/layout/list.js +1 -1
  217. package/layout/metaAdder.js +1 -1
  218. package/layout/modal2025.js +1 -1
  219. package/layout/modernwrap.js +1 -1
  220. package/layout/multiswitcher.js +1 -1
  221. package/layout/multiswitcherBeta.js +1 -1
  222. package/layout/navBar-OLD.js +1 -1
  223. package/layout/navBar.js +1 -1
  224. package/layout/navFactor/customDiv.js +1 -1
  225. package/layout/newFlatAdder.js +1 -1
  226. package/layout/newNavBar copy 2.js +1 -1
  227. package/layout/newNavBar copy.js +1 -1
  228. package/layout/newNavBar.js +1 -1
  229. package/layout/offsetContainer.js +1 -1
  230. package/layout/polygon.js +1 -1
  231. package/layout/progress.js +1 -1
  232. package/layout/row.js +1 -1
  233. package/layout/savedNewNavBar.js +1 -1
  234. package/layout/scrollvideo.js +1 -1
  235. package/layout/sideBar.js +1 -1
  236. package/layout/sideNavBar.js +1 -1
  237. package/layout/simpleBar.js +1 -1
  238. package/layout/slider2025.js +1 -1
  239. package/layout/spacer.js +1 -1
  240. package/layout/stack.js +1 -1
  241. package/layout/styler.js +1 -1
  242. package/layout/switcher.js +1 -1
  243. package/layout/table.js +1 -1
  244. package/layout/text.js +1 -1
  245. package/layout/textField.js +1 -1
  246. package/layout/ulist.js +1 -1
  247. package/layout/video.js +1 -1
  248. package/layout/withoutNew.js +1 -1
  249. package/layout/wrap.js +1 -1
  250. package/layout/zoomCard.js +1 -1
  251. package/lib/AppleAnim.js +1 -1
  252. package/lib/KeyframeAnimation.js +1 -1
  253. package/lib/Stacker.js +1 -1
  254. package/lib/TransformAnim.js +1 -1
  255. package/lib/cardGetter.js +1 -1
  256. package/lib/designer.js +1 -1
  257. package/lib/elementMapper.js +1 -1
  258. package/lib/linkGetter.js +1 -1
  259. package/lib/scrollvideo.js +1 -1
  260. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.61
2
+ * nodality v1.0.63
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see dropdown.cjs.js.LICENSE.txt */
2
- (()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},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 n(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 n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||i(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 o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 s,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,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function i(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;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 n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}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+""}e.r(t),e.d(t,{DropdownOld:()=>h});var h=function(e){function t(e,r){var n,o,i,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,r){return t=f(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,p()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t),o=n,s=function(){window.matchMedia("(max-width: 600px").matches?(console.log("TORELATIVE"),n.res.children[1].style.position="relative"):(console.log("TOABSOLUTE"),n.res.children[1].style.position="absolute")},(i=d(i="adjustSubmenu"))in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,n.setup(e,r),n.adjustSubmenu(),window.addEventListener("resize",(function(){n.adjustSubmenu()})),n}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,(n=[{key:"setup",value:function(e,t){var r=document.createElement("div");r.style.display="flex";var n=document.createElement("span"),o=document.createTextNode(t);n.appendChild(o),r.appendChild(n);var i=document.createElement("div");i.style.width="200px",i.style.marginTop="30px",i.style.background="white",i.style.padding="0.4rem",i.style.borderRadius="0.4rem",i.style.display="none",i.style.flexDirection="column",i.style.position="absolute",window.matchMedia("(max-width: 70em").matches?(i.style.position="relative",i.style.left="initial",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center"):(i.style.left="auto",i.style.position="absolute");for(var s=0;s<e.length;s++){var a=new Link(e[s].name,e[s].url).toBlock().render();a.style.textAlign="left",a.style.wordBreak="break-all",i.appendChild(a)}r.appendChild(i),this.res=r,this.behavior()}},{key:"behavior",value:function(){var e=this;this.res.addEventListener("mouseover",(function(){e.res.children[1].style.display="flex";var t=e.res.children[1].getBoundingClientRect();t.x+t.width>window.innerWidth&&(e.res.children[1].style.right=0,e.res.children[1].style.left="initial")})),this.res.children[1].addEventListener("mouseout",(function(){e.res.children[1].style.display="none"}))}},{key:"items",value:function(e){}},{key:"render",value:function(){return this.res}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return e=function e(){var t,r,n,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=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"),o.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="",n="",i="",s="",a="",l="",c="",u="",p="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?i=e.replace("tz:",""):e.startsWith("scale(")?s=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:")&&(p=e.replace("opacity:",""))})),r=o.setDefault(r),n=o.setDefault(n),i=o.setDefault(i);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=i?f+="translate3d(".concat(r,", ").concat(n,", ").concat(i,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),s&&(f+=" ".concat(s)),l&&(f+=" ".concat(l)),a&&(f+=" ".concat(a)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.transform.duration){var y=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),d="transform ".concat(y,", opacity ").concat(y);o.res.style.transition=d}else o.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(o.res.style.transition=""),(o.blastTarget||o.res).style.transform=f,o.res.style.opacity=p}else alert("OPE")}};t.on?o.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 n=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) "),o.res.style.opacity="1"})),e&&(o.res.style.transform=e.trim())};if(t.on)o.res.addEventListener("mouseout",(function(){t.keep||n()}));else{var i=1e3*parseFloat(t.duration),s=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),i/2+s)}t.hardCSS&&(o.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:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},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:"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,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this,r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};console.log("RES STYLE"),console.log(e),this.prevStyles={};for(var n=0;n<this.res.style.length;n++){var o=this.res.style[n];this.prevStyles[o]=this.res.style[o],console.log("kio")}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})),console.log("Sorted breakpoints:",e);var i=function(){for(var r in t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n=window.innerWidth,o=null,i=0;i<e.length;i++)if(n<=e[i]._value){o=e[i];break}if(o)for(var s in console.log("Applying styles for",o.breakpoint),o)"breakpoint"!==s&&"_value"!==s&&(t.res.style[s]=o[s])};window.addEventListener("resize",i),i()}},{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]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],s=0;s<o.length;s++)switch(o[s]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}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]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],s=0;s<o.length;s++){switch(o[s]){case"a":this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"auto"===o[s]&&(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 n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var o=(r.min-r.max)*n-r.min;if(o=Math.abs(o),r.min<r.max){var i=(r.max+Math.abs(r.min))*n;o=r.min+i}return o}},{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 n=document.createTextNode(this.text);this.res.appendChild(n),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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 s=document.createTextNode(this.text);this.res.appendChild(s),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 i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var l=s.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(s){var a=window.visualViewport.width,l=[],c=[];i.resCopy=i.res,i.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,p=o(e);try{for(p.s();!(u=p.n()).done;){var f=u.value;i.counterIndex++;var y=n(f.range,2),d=y[0],h=y[1],m=parseInt(d),v=parseInt(h),b=!0;if(f.target){b=!1;for(var g=0;g<f.target.length;g++)f.target[g]===t&&(b=!0)}a>=m&&a<=v&&b&&(l.push(f.log),c.push(f),f.op&&f.op.margin&&(i.useMargin=f.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(r&&!r.includes("background")&&(i.res.style.background="",i.res.style.backgroundColor=""),i.res.style.textShadow="",r&&!r.includes("border")&&(i.res.style.border=""),r&&!r.includes("margin")&&(i.res.style.margin=""),i.res.style["-webkit-text-fill-color"]="",i.res.style["-webkit-text-stroke-color"]="",i.res.style["-webkit-text-stroke-width"]="",i.res.style.filter="",i.options.background&&(console.log(i.options.background),i.res.style.background=i.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(i.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"===i.getType()||"LayoutWrapperElement"===i.getType()?(i.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),i.res.style.display="inline-block","FlexRowLayoutElement"===i.getType()&&(i.res.style.display="flex"),i.res.style.boxSizing="border-box",i.res.style.transformOrigin="center",i.blastTarget=i.res):(i.text&&(i.res.textContent=i.text),i.res.style["-webkit-text-fill-color"]="transparent",i.res.style["-webkit-text-stroke-color"]=w,i.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;i.res.style.filter=S}if(l.includes("background")&&(i.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["-webkit-text-fill-color"]="transparent"),i.res.style.background=i.globalGradient,"LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,j,L=i.options.shadow.op;console.log("OP IS",L);var C=null!==(T=L.steps)&&void 0!==T?T:1,A=null!==(E=L.colors)&&void 0!==E?E:["gray"],P=null!==(O=L.movements)&&void 0!==O?O:["3px","3px"],W=null!==(j=L.radius)&&void 0!==j?j:"3px";if(1===P.length&&(P=[P[0],P[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var I=[],N=0;N<C;N++){var R,M=null!==(R=A[N])&&void 0!==R?R:A[0],z=P[0],_=P[1];I.push("".concat(z," ").concat(_," ").concat(W," ").concat(M))}i.res.style.boxShadow=I.join(", ")}else{for(var B=[],D=0;D<C;D++){var F,X=null!==(F=A[D])&&void 0!==F?F:A[0],Y=P[0],V=P[1];B.push("drop-shadow(".concat(Y," ").concat(V," ").concat(W," ").concat(X,")"))}i.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(g=0;g<e.length;g++)if(e[g].op){var G=e[g].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span"))i.res=i.resCopy,i.res.textContent="",i.options.span&&(Array.isArray(i.options.span)?i.options.span:[i.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=i.prevText||"";if(e.op.parts.forEach((function(e){var n=e.text,o=e.style||{};if(t<r.length){var s=r.indexOf(n,t);if(s>t){var a=r.substring(t,s);i.res.appendChild(new i.constructor(a).setup({type:"span",id:"er",animation:o.animation}).set({}).render())}t=s+n.length}var l=new i.constructor(n).setup({type:"span",id:"er",animation:o.animation}).set(o).render();i.res.appendChild(l)})),t<r.length){var n=r.substring(t);i.res.appendChild(new i.constructor(n).setup({type:"span"}).set({}).render())}}}));else{var H=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&s&&i.res.appendChild(H)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var U=i.options.animation.op;window.addEventListener("sidebar:open",(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener("sidebar:closed",(function(){i.res.animate(U.keyframesClose,U.closeOptions)})),i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener(i.closeTag,(function(){i.res.animate(U.keyframesClose,U.closeOptions)})))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var Q=i.options.animation.op;i.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(Q.fireAt)&&(i.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(i.options.animation&&i.options.animation.op.fireAt&&"inview"===i.options.animation.op.fireAt){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(i.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())}))})).observe(i.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}());module.exports=t})();
2
+ (()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},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 n(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 n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||i(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 o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 s,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,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function i(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;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 n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(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+""}e.r(t),e.d(t,{DropdownOld:()=>h});var h=function(e){function t(e,r){var n,o,i,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,r){return t=f(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,p()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t),o=n,s=function(){window.matchMedia("(max-width: 600px").matches?(console.log("TORELATIVE"),n.res.children[1].style.position="relative"):(console.log("TOABSOLUTE"),n.res.children[1].style.position="absolute")},(i=y(i="adjustSubmenu"))in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,n.setup(e,r),n.adjustSubmenu(),window.addEventListener("resize",(function(){n.adjustSubmenu()})),n}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&&d(e,t)}(t,e),r=t,(n=[{key:"setup",value:function(e,t){var r=document.createElement("div");r.style.display="flex";var n=document.createElement("span"),o=document.createTextNode(t);n.appendChild(o),r.appendChild(n);var i=document.createElement("div");i.style.width="200px",i.style.marginTop="30px",i.style.background="white",i.style.padding="0.4rem",i.style.borderRadius="0.4rem",i.style.display="none",i.style.flexDirection="column",i.style.position="absolute",window.matchMedia("(max-width: 70em").matches?(i.style.position="relative",i.style.left="initial",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center"):(i.style.left="auto",i.style.position="absolute");for(var s=0;s<e.length;s++){var a=new Link(e[s].name,e[s].url).toBlock().render();a.style.textAlign="left",a.style.wordBreak="break-all",i.appendChild(a)}r.appendChild(i),this.res=r,this.behavior()}},{key:"behavior",value:function(){var e=this;this.res.addEventListener("mouseover",(function(){e.res.children[1].style.display="flex";var t=e.res.children[1].getBoundingClientRect();t.x+t.width>window.innerWidth&&(e.res.children[1].style.right=0,e.res.children[1].style.left="initial")})),this.res.children[1].addEventListener("mouseout",(function(){e.res.children[1].style.display="none"}))}},{key:"items",value:function(e){}},{key:"render",value:function(){return this.res}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return e=function e(){var t,r,n,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=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"),o.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="",n="",i="",s="",a="",l="",c="",u="",p="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?i=e.replace("tz:",""):e.startsWith("scale(")?s=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:")&&(p=e.replace("opacity:",""))})),r=o.setDefault(r),n=o.setDefault(n),i=o.setDefault(i);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=i?f+="translate3d(".concat(r,", ").concat(n,", ").concat(i,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),s&&(f+=" ".concat(s)),l&&(f+=" ".concat(l)),a&&(f+=" ".concat(a)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.transform.duration){var d=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(d,", opacity ").concat(d);o.res.style.transition=y}else o.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(o.res.style.transition=""),(o.blastTarget||o.res).style.transform=f,o.res.style.opacity=p}else alert("OPE")}};t.on?o.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 n=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) "),o.res.style.opacity="1"})),e&&(o.res.style.transform=e.trim())};if(t.on)o.res.addEventListener("mouseout",(function(){t.keep||n()}));else{var i=1e3*parseFloat(t.duration),s=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),i/2+s)}t.hardCSS&&(o.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:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},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:"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,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this,r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};console.log("RES STYLE"),console.log(e),this.prevStyles={};for(var n=0;n<this.res.style.length;n++){var o=this.res.style[n];this.prevStyles[o]=this.res.style[o],console.log("kio")}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})),console.log("Sorted breakpoints:",e);var i=function(){for(var r in t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n=window.innerWidth,o=null,i=0;i<e.length;i++)if(n<=e[i]._value){o=e[i];break}if(o)for(var s in console.log("Applying styles for",o.breakpoint),o)"breakpoint"!==s&&"_value"!==s&&(t.res.style[s]=o[s])};window.addEventListener("resize",i),i()}},{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]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],s=0;s<o.length;s++)switch(o[s]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}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]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],s=0;s<o.length;s++){switch(o[s]){case"a":this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"auto"===o[s]&&(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 n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var o=(r.min-r.max)*n-r.min;if(o=Math.abs(o),r.min<r.max){var i=(r.max+Math.abs(r.min))*n;o=r.min+i}return o}},{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 n=document.createTextNode(this.text);this.res.appendChild(n),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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 s=document.createTextNode(this.text);this.res.appendChild(s),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 i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var l=s.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(s){var a=window.visualViewport.width,l=[],c=[];i.resCopy=i.res,i.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,p=o(e);try{for(p.s();!(u=p.n()).done;){var f=u.value;i.counterIndex++;var d=n(f.range,2),y=d[0],h=d[1],m=parseInt(y),v=parseInt(h),b=!0;if(f.target){b=!1;for(var g=0;g<f.target.length;g++)f.target[g]===t&&(b=!0)}a>=m&&a<=v&&b&&(l.push(f.log),c.push(f),f.op&&f.op.margin&&(i.useMargin=f.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(r&&!r.includes("background")&&(i.res.style.background="",i.res.style.backgroundColor=""),i.res.style.textShadow="",r&&!r.includes("border")&&(i.res.style.border=""),r&&!r.includes("margin")&&(i.res.style.margin=""),i.res.style["-webkit-text-fill-color"]="",i.res.style["-webkit-text-stroke-color"]="",i.res.style["-webkit-text-stroke-width"]="",i.res.style.filter="",i.options.background&&(console.log(i.options.background),i.res.style.background=i.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(i.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"===i.getType()||"LayoutWrapperElement"===i.getType()?(i.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),i.res.style.display="inline-block","FlexRowLayoutElement"===i.getType()&&(i.res.style.display="flex"),i.res.style.boxSizing="border-box",i.res.style.transformOrigin="center",i.blastTarget=i.res):(i.text&&(i.res.textContent=i.text),i.res.style["-webkit-text-fill-color"]="transparent",i.res.style["-webkit-text-stroke-color"]=w,i.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;i.res.style.filter=S}if(l.includes("background")&&(i.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["-webkit-text-fill-color"]="transparent"),i.res.style.background=i.globalGradient,"LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,j,L=i.options.shadow.op;console.log("OP IS",L);var C=null!==(T=L.steps)&&void 0!==T?T:1,A=null!==(E=L.colors)&&void 0!==E?E:["gray"],P=null!==(O=L.movements)&&void 0!==O?O:["3px","3px"],W=null!==(j=L.radius)&&void 0!==j?j:"3px";if(1===P.length&&(P=[P[0],P[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var I=[],N=0;N<C;N++){var R,M=null!==(R=A[N])&&void 0!==R?R:A[0],z=P[0],_=P[1];I.push("".concat(z," ").concat(_," ").concat(W," ").concat(M))}i.res.style.boxShadow=I.join(", ")}else{for(var B=[],D=0;D<C;D++){var F,X=null!==(F=A[D])&&void 0!==F?F:A[0],Y=P[0],V=P[1];B.push("drop-shadow(".concat(Y," ").concat(V," ").concat(W," ").concat(X,")"))}i.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(g=0;g<e.length;g++)if(e[g].op){var G=e[g].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span"))i.res=i.resCopy,i.res.textContent="",i.options.span&&(Array.isArray(i.options.span)?i.options.span:[i.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=i.prevText||"";if(e.op.parts.forEach((function(e){var n=e.text,o=e.style||{};if(t<r.length){var s=r.indexOf(n,t);if(s>t){var a=r.substring(t,s);i.res.appendChild(new i.constructor(a).setup({type:"span",id:o.id,animation:o.animation}).set({}).render())}t=s+n.length}var l=new i.constructor(n).setup({type:"span",id:o.id,animation:o.animation}).set(o).render();i.res.appendChild(l)})),t<r.length){var n=r.substring(t);i.res.appendChild(new i.constructor(n).setup({type:"span"}).set({}).render())}}}));else{var H=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&s&&i.res.appendChild(H)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var U=i.options.animation.op;window.addEventListener("sidebar:open",(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener("sidebar:closed",(function(){i.res.animate(U.keyframesClose,U.closeOptions)})),i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener(i.closeTag,(function(){i.res.animate(U.keyframesClose,U.closeOptions)})))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var Q=i.options.animation.op;i.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(Q.fireAt)&&(i.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(i.options.animation&&i.options.animation.op.fireAt&&"inview"===i.options.animation.op.fireAt){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(i.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())}))})).observe(i.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}());module.exports=t})();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.61
2
+ * nodality v1.0.63
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see dropdown.esm.js.LICENSE.txt */
2
- function e(t){return e="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},e(t)}function t(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 n,s,i,o,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw s}}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 r(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 s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}var a=function(){return e=function e(){var t,r,n,s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=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"),s.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="",n="",i="",o="",a="",l="",c="",u="",p="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?i=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:")&&(p=e.replace("opacity:",""))})),r=s.setDefault(r),n=s.setDefault(n),i=s.setDefault(i);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=i?f+="translate3d(".concat(r,", ").concat(n,", ").concat(i,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),o&&(f+=" ".concat(o)),l&&(f+=" ".concat(l)),a&&(f+=" ".concat(a)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.transform.duration){var y=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),d="transform ".concat(y,", opacity ").concat(y);s.res.style.transition=d}else s.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(s.res.style.transition=""),(s.blastTarget||s.res).style.transform=f,s.res.style.opacity=p}else alert("OPE")}};t.on?s.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 n=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) "),s.res.style.opacity="1"})),e&&(s.res.style.transform=e.trim())};if(t.on)s.res.addEventListener("mouseout",(function(){t.keep||n()}));else{var i=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),i/2+o)}t.hardCSS&&(s.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=o(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},n=[{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:"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,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this,r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};console.log("RES STYLE"),console.log(e),this.prevStyles={};for(var n=0;n<this.res.style.length;n++){var s=this.res.style[n];this.prevStyles[s]=this.res.style[s],console.log("kio")}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})),console.log("Sorted breakpoints:",e);var i=function(){for(var r in t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n=window.innerWidth,s=null,i=0;i<e.length;i++)if(n<=e[i]._value){s=e[i];break}if(s)for(var o in console.log("Applying styles for",s.breakpoint),s)"breakpoint"!==o&&"_value"!==o&&(t.res.style[o]=s[o])};window.addEventListener("resize",i),i()}},{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]),n=0;n<r.length;n++)for(var s=r[n],i=e[t][s],o=0;o<s.length;o++)switch(s[o]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}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]),n=0;n<r.length;n++)for(var s=r[n],i=e[t][s],o=0;o<s.length;o++){switch(s[o]){case"a":this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"auto"===s[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 n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var s=(r.min-r.max)*n-r.min;if(s=Math.abs(s),r.min<r.max){var i=(r.max+Math.abs(r.min))*n;s=r.min+i}return s}},{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 n=document.createTextNode(this.text);this.res.appendChild(n),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 s=document.createTextNode(this.text);this.res.appendChild(s),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 i=document.createTextNode(this.text);this.res.appendChild(i),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,n,s){var i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=r(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=[];i.resCopy=i.res,i.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,p=r(e);try{for(p.s();!(u=p.n()).done;){var f=u.value;i.counterIndex++;var y=t(f.range,2),d=y[0],h=y[1],m=parseInt(d),v=parseInt(h),b=!0;if(f.target){b=!1;for(var g=0;g<f.target.length;g++)f.target[g]===n&&(b=!0)}a>=m&&a<=v&&b&&(l.push(f.log),c.push(f),f.op&&f.op.margin&&(i.useMargin=f.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(s&&!s.includes("background")&&(i.res.style.background="",i.res.style.backgroundColor=""),i.res.style.textShadow="",s&&!s.includes("border")&&(i.res.style.border=""),s&&!s.includes("margin")&&(i.res.style.margin=""),i.res.style["-webkit-text-fill-color"]="",i.res.style["-webkit-text-stroke-color"]="",i.res.style["-webkit-text-stroke-width"]="",i.res.style.filter="",i.options.background&&(console.log(i.options.background),i.res.style.background=i.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(i.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"===i.getType()||"LayoutWrapperElement"===i.getType()?(i.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),i.res.style.display="inline-block","FlexRowLayoutElement"===i.getType()&&(i.res.style.display="flex"),i.res.style.boxSizing="border-box",i.res.style.transformOrigin="center",i.blastTarget=i.res):(i.text&&(i.res.textContent=i.text),i.res.style["-webkit-text-fill-color"]="transparent",i.res.style["-webkit-text-stroke-color"]=w,i.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;i.res.style.filter=S}if(l.includes("background")&&(i.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["-webkit-text-fill-color"]="transparent"),i.res.style.background=i.globalGradient,"LayoutWrapperElement"!==i.getType()&&"FlexRowLayoutElement"!==i.getType()&&(i.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,L,C=i.options.shadow.op;console.log("OP IS",C);var j=null!==(T=C.steps)&&void 0!==T?T:1,A=null!==(E=C.colors)&&void 0!==E?E:["gray"],W=null!==(O=C.movements)&&void 0!==O?O:["3px","3px"],I=null!==(L=C.radius)&&void 0!==L?L:"3px";if(1===W.length&&(W=[W[0],W[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var P=[],N=0;N<j;N++){var R,z=null!==(R=A[N])&&void 0!==R?R:A[0],M=W[0],_=W[1];P.push("".concat(M," ").concat(_," ").concat(I," ").concat(z))}i.res.style.boxShadow=P.join(", ")}else{for(var B=[],D=0;D<j;D++){var F,X=null!==(F=A[D])&&void 0!==F?F:A[0],Y=W[0],V=W[1];B.push("drop-shadow(".concat(Y," ").concat(V," ").concat(I," ").concat(X,")"))}i.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(g=0;g<e.length;g++)if(e[g].op){var G=e[g].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span"))i.res=i.resCopy,i.res.textContent="",i.options.span&&(Array.isArray(i.options.span)?i.options.span:[i.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=i.prevText||"";if(e.op.parts.forEach((function(e){var n=e.text,s=e.style||{};if(t<r.length){var o=r.indexOf(n,t);if(o>t){var a=r.substring(t,o);i.res.appendChild(new i.constructor(a).setup({type:"span",id:"er",animation:s.animation}).set({}).render())}t=o+n.length}var l=new i.constructor(n).setup({type:"span",id:"er",animation:s.animation}).set(s).render();i.res.appendChild(l)})),t<r.length){var n=r.substring(t);i.res.appendChild(new i.constructor(n).setup({type:"span"}).set({}).render())}}}));else{var H=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&o&&i.res.appendChild(H)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var U=i.options.animation.op;window.addEventListener("sidebar:open",(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener("sidebar:closed",(function(){i.res.animate(U.keyframesClose,U.closeOptions)})),i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,(function(){i.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener(i.closeTag,(function(){i.res.animate(U.keyframesClose,U.closeOptions)})))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var Q=i.options.animation.op;i.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(Q.fireAt)&&(i.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(i.options.animation&&i.options.animation.op.fireAt&&"inview"===i.options.animation.op.fireAt){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(i.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())}))})).observe(i.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}}],n&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function l(e){return l="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},l(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function y(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var d=function(){function e(t,r){var n,s,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==l(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,u()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,e),s=n,o=function(){window.matchMedia("(max-width: 600px").matches?(console.log("TORELATIVE"),n.res.children[1].style.position="relative"):(console.log("TOABSOLUTE"),n.res.children[1].style.position="absolute")},(i=y(i="adjustSubmenu"))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,n.setup(t,r),n.adjustSubmenu(),window.addEventListener("resize",(function(){n.adjustSubmenu()})),n}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&&f(e,t)}(e,a),t=e,(r=[{key:"setup",value:function(e,t){var r=document.createElement("div");r.style.display="flex";var n=document.createElement("span"),s=document.createTextNode(t);n.appendChild(s),r.appendChild(n);var i=document.createElement("div");i.style.width="200px",i.style.marginTop="30px",i.style.background="white",i.style.padding="0.4rem",i.style.borderRadius="0.4rem",i.style.display="none",i.style.flexDirection="column",i.style.position="absolute",window.matchMedia("(max-width: 70em").matches?(i.style.position="relative",i.style.left="initial",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center"):(i.style.left="auto",i.style.position="absolute");for(var o=0;o<e.length;o++){var a=new Link(e[o].name,e[o].url).toBlock().render();a.style.textAlign="left",a.style.wordBreak="break-all",i.appendChild(a)}r.appendChild(i),this.res=r,this.behavior()}},{key:"behavior",value:function(){var e=this;this.res.addEventListener("mouseover",(function(){e.res.children[1].style.display="flex";var t=e.res.children[1].getBoundingClientRect();t.x+t.width>window.innerWidth&&(e.res.children[1].style.right=0,e.res.children[1].style.left="initial")})),this.res.children[1].addEventListener("mouseout",(function(){e.res.children[1].style.display="none"}))}},{key:"items",value:function(e){}},{key:"render",value:function(){return this.res}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();export{d as DropdownOld};
2
+ function e(t){return e="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},e(t)}function t(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 n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.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 r(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 i=0,s=function(){};return{s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}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 i(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)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}var a=function(){return e=function e(){var t,r,n,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=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="",n="",s="",o="",a="",l="",c="",u="",p="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?s=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:")&&(p=e.replace("opacity:",""))})),r=i.setDefault(r),n=i.setDefault(n),s=i.setDefault(s);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=s?f+="translate3d(".concat(r,", ").concat(n,", ").concat(s,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),o&&(f+=" ".concat(o)),l&&(f+=" ".concat(l)),a&&(f+=" ".concat(a)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.transform.duration){var y=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),d="transform ".concat(y,", opacity ").concat(y);i.res.style.transition=d}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=f,i.res.style.opacity=p}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 n=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||n()}));else{var s=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),s/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=o(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},n=[{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:"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,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this,r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};console.log("RES STYLE"),console.log(e),this.prevStyles={};for(var n=0;n<this.res.style.length;n++){var i=this.res.style[n];this.prevStyles[i]=this.res.style[i],console.log("kio")}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})),console.log("Sorted breakpoints:",e);var s=function(){for(var r in t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n=window.innerWidth,i=null,s=0;s<e.length;s++)if(n<=e[s]._value){i=e[s];break}if(i)for(var o in console.log("Applying styles for",i.breakpoint),i)"breakpoint"!==o&&"_value"!==o&&(t.res.style[o]=i[o])};window.addEventListener("resize",s),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]),n=0;n<r.length;n++)for(var i=r[n],s=e[t][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.paddingTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.paddingLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.paddingRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.paddingBottom=this.isNumber(s)?"".concat(s,"px"):s}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]),n=0;n<r.length;n++)for(var i=r[n],s=e[t][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.marginTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.marginLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.marginRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.marginBottom=this.isNumber(s)?"".concat(s,"px"):s}"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 n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var s=(r.max+Math.abs(r.min))*n;i=r.min+s}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 n=document.createTextNode(this.text);this.res.appendChild(n),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 s=document.createTextNode(this.text);this.res.appendChild(s),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,n,i){var s=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=r(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=[];s.resCopy=s.res,s.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,p=r(e);try{for(p.s();!(u=p.n()).done;){var f=u.value;s.counterIndex++;var y=t(f.range,2),d=y[0],h=y[1],m=parseInt(d),v=parseInt(h),b=!0;if(f.target){b=!1;for(var g=0;g<f.target.length;g++)f.target[g]===n&&(b=!0)}a>=m&&a<=v&&b&&(l.push(f.log),c.push(f),f.op&&f.op.margin&&(s.useMargin=f.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(i&&!i.includes("background")&&(s.res.style.background="",s.res.style.backgroundColor=""),s.res.style.textShadow="",i&&!i.includes("border")&&(s.res.style.border=""),i&&!i.includes("margin")&&(s.res.style.margin=""),s.res.style["-webkit-text-fill-color"]="",s.res.style["-webkit-text-stroke-color"]="",s.res.style["-webkit-text-stroke-width"]="",s.res.style.filter="",s.options.background&&(console.log(s.options.background),s.res.style.background=s.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(s.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"===s.getType()||"LayoutWrapperElement"===s.getType()?(s.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),s.res.style.display="inline-block","FlexRowLayoutElement"===s.getType()&&(s.res.style.display="flex"),s.res.style.boxSizing="border-box",s.res.style.transformOrigin="center",s.blastTarget=s.res):(s.text&&(s.res.textContent=s.text),s.res.style["-webkit-text-fill-color"]="transparent",s.res.style["-webkit-text-stroke-color"]=w,s.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;s.res.style.filter=S}if(l.includes("background")&&(s.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["-webkit-text-fill-color"]="transparent"),s.res.style.background=s.globalGradient,"LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,L,C=s.options.shadow.op;console.log("OP IS",C);var j=null!==(T=C.steps)&&void 0!==T?T:1,A=null!==(E=C.colors)&&void 0!==E?E:["gray"],W=null!==(O=C.movements)&&void 0!==O?O:["3px","3px"],I=null!==(L=C.radius)&&void 0!==L?L:"3px";if(1===W.length&&(W=[W[0],W[0]]),"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()){for(var P=[],N=0;N<j;N++){var R,z=null!==(R=A[N])&&void 0!==R?R:A[0],M=W[0],_=W[1];P.push("".concat(M," ").concat(_," ").concat(I," ").concat(z))}s.res.style.boxShadow=P.join(", ")}else{for(var B=[],D=0;D<j;D++){var F,X=null!==(F=A[D])&&void 0!==F?F:A[0],Y=W[0],V=W[1];B.push("drop-shadow(".concat(Y," ").concat(V," ").concat(I," ").concat(X,")"))}s.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(g=0;g<e.length;g++)if(e[g].op){var G=e[g].op.offsets;G&&void 0!==s.index&&(s.res.style.margin=G[Number(s.index)]+"px")}if(l.includes("spana")||l.includes("span"))s.res=s.resCopy,s.res.textContent="",s.options.span&&(Array.isArray(s.options.span)?s.options.span:[s.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=s.prevText||"";if(e.op.parts.forEach((function(e){var n=e.text,i=e.style||{};if(t<r.length){var o=r.indexOf(n,t);if(o>t){var a=r.substring(t,o);s.res.appendChild(new s.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}t=o+n.length}var l=new s.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();s.res.appendChild(l)})),t<r.length){var n=r.substring(t);s.res.appendChild(new s.constructor(n).setup({type:"span"}).set({}).render())}}}));else{var H=new s.constructor(s.prevText).set({}).render();s.prevText&&s.prevText.length>0&&o&&s.res.appendChild(H)}if(l.includes("animation")){if(s.options.animation&&!s.hasAnimated&&!s.options.animation.op.fireAt){console.warn(s.openTag),s.hasAnimated=!0;var U=s.options.animation.op;window.addEventListener("sidebar:open",(function(){s.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener("sidebar:closed",(function(){s.res.animate(U.keyframesClose,U.closeOptions)})),s.res.animate(U.keyframesClose,{duration:0,fill:"forwards"}),s.openTag&&s.closeTag&&(window.addEventListener(s.openTag,(function(){s.res.animate(U.keyframesOpen,U.openOptions)})),window.addEventListener(s.closeTag,(function(){s.res.animate(U.keyframesClose,U.closeOptions)})))}if(s.options.animation&&s.options.animation.op.fireAt&&s.options.animation.op.fireAt.endsWith("px")){var Q=s.options.animation.op;s.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(Q.fireAt)&&(s.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(s.options.animation&&s.options.animation.op.fireAt&&"inview"===s.options.animation.op.fireAt){var J=s.options.animation.op;s.res.animate(J.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(s.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())}))})).observe(s.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}}],n&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function l(e){return l="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},l(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function y(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var d=function(){function e(t,r){var n,i,s,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==l(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,u()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,e),i=n,o=function(){window.matchMedia("(max-width: 600px").matches?(console.log("TORELATIVE"),n.res.children[1].style.position="relative"):(console.log("TOABSOLUTE"),n.res.children[1].style.position="absolute")},(s=y(s="adjustSubmenu"))in i?Object.defineProperty(i,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[s]=o,n.setup(t,r),n.adjustSubmenu(),window.addEventListener("resize",(function(){n.adjustSubmenu()})),n}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&&f(e,t)}(e,a),t=e,(r=[{key:"setup",value:function(e,t){var r=document.createElement("div");r.style.display="flex";var n=document.createElement("span"),i=document.createTextNode(t);n.appendChild(i),r.appendChild(n);var s=document.createElement("div");s.style.width="200px",s.style.marginTop="30px",s.style.background="white",s.style.padding="0.4rem",s.style.borderRadius="0.4rem",s.style.display="none",s.style.flexDirection="column",s.style.position="absolute",window.matchMedia("(max-width: 70em").matches?(s.style.position="relative",s.style.left="initial",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center"):(s.style.left="auto",s.style.position="absolute");for(var o=0;o<e.length;o++){var a=new Link(e[o].name,e[o].url).toBlock().render();a.style.textAlign="left",a.style.wordBreak="break-all",s.appendChild(a)}r.appendChild(s),this.res=r,this.behavior()}},{key:"behavior",value:function(){var e=this;this.res.addEventListener("mouseover",(function(){e.res.children[1].style.display="flex";var t=e.res.children[1].getBoundingClientRect();t.x+t.width>window.innerWidth&&(e.res.children[1].style.right=0,e.res.children[1].style.left="initial")})),this.res.children[1].addEventListener("mouseout",(function(){e.res.children[1].style.display="none"}))}},{key:"items",value:function(e){}},{key:"render",value:function(){return this.res}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();export{d as DropdownOld};
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.61
2
+ * nodality v1.0.63
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */