nodality 1.0.0-beta.90 → 1.0.0-beta.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  2. package/dist/animator.esm.js.LICENSE.txt +1 -1
  3. package/dist/appleanim.cjs.js.LICENSE.txt +1 -1
  4. package/dist/appleanim.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  6. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  7. package/dist/base.cjs.js.LICENSE.txt +1 -1
  8. package/dist/base.esm.js.LICENSE.txt +1 -1
  9. package/dist/betaDesktopBar.esm.js +1 -1
  10. package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
  11. package/dist/betaMobileBar.esm.js.LICENSE.txt +1 -1
  12. package/dist/bundle.umd.js +1 -1
  13. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  14. package/dist/button.cjs.js.LICENSE.txt +1 -1
  15. package/dist/button.esm.js.LICENSE.txt +1 -1
  16. package/dist/cardGetter.cjs.js.LICENSE.txt +1 -1
  17. package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
  18. package/dist/center.cjs.js.LICENSE.txt +1 -1
  19. package/dist/center.esm.js.LICENSE.txt +1 -1
  20. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  21. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  22. package/dist/circle.cjs.js.LICENSE.txt +1 -1
  23. package/dist/circle.esm.js.LICENSE.txt +1 -1
  24. package/dist/code.cjs.js.LICENSE.txt +1 -1
  25. package/dist/code.esm.js.LICENSE.txt +1 -1
  26. package/dist/container.cjs.js +1 -1
  27. package/dist/container.cjs.js.LICENSE.txt +1 -1
  28. package/dist/container.esm.js +1 -1
  29. package/dist/container.esm.js.LICENSE.txt +1 -1
  30. package/dist/datalist.cjs.js.LICENSE.txt +1 -1
  31. package/dist/datalist.esm.js.LICENSE.txt +1 -1
  32. package/dist/designer.cjs.js +1 -1
  33. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  34. package/dist/designer.esm.js +1 -1
  35. package/dist/designer.esm.js.LICENSE.txt +1 -1
  36. package/dist/dropdown.cjs.js.LICENSE.txt +1 -1
  37. package/dist/dropdown.esm.js.LICENSE.txt +1 -1
  38. package/dist/elementMapper.cjs.js +1 -1
  39. package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
  40. package/dist/elementMapper.esm.js +1 -1
  41. package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
  42. package/dist/finalresult.esm.js +1 -1
  43. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  44. package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
  45. package/dist/flexCard.esm.js.LICENSE.txt +1 -1
  46. package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
  47. package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
  48. package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
  49. package/dist/flexRow.esm.js.LICENSE.txt +1 -1
  50. package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
  51. package/dist/floatingInput.esm.js.LICENSE.txt +1 -1
  52. package/dist/free.cjs.js.LICENSE.txt +1 -1
  53. package/dist/free.esm.js.LICENSE.txt +1 -1
  54. package/dist/horizontalScroller.esm.js.LICENSE.txt +1 -1
  55. package/dist/image.cjs.js.LICENSE.txt +1 -1
  56. package/dist/image.esm.js.LICENSE.txt +1 -1
  57. package/dist/imagePicker.cjs.js.LICENSE.txt +1 -1
  58. package/dist/imagePicker.esm.js.LICENSE.txt +1 -1
  59. package/dist/index.cjs.js +1 -1
  60. package/dist/index.cjs.js.LICENSE.txt +1 -1
  61. package/dist/index.esm.js +1 -1
  62. package/dist/index.esm.js.LICENSE.txt +1 -1
  63. package/dist/link.cjs.js.LICENSE.txt +1 -1
  64. package/dist/link.esm.js.LICENSE.txt +1 -1
  65. package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
  66. package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
  67. package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
  68. package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
  69. package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
  70. package/dist/modal2025.esm.js.LICENSE.txt +1 -1
  71. package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
  72. package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
  73. package/dist/newNavBar.esm.js.LICENSE.txt +1 -1
  74. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  75. package/dist/picker.esm.js.LICENSE.txt +1 -1
  76. package/dist/polygon.cjs.js.LICENSE.txt +1 -1
  77. package/dist/polygon.esm.js.LICENSE.txt +1 -1
  78. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  79. package/dist/progress.esm.js.LICENSE.txt +1 -1
  80. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  81. package/dist/radio.esm.js.LICENSE.txt +1 -1
  82. package/dist/range.cjs.js.LICENSE.txt +1 -1
  83. package/dist/range.esm.js.LICENSE.txt +1 -1
  84. package/dist/scrollvideo.cjs.js.LICENSE.txt +1 -1
  85. package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
  86. package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
  87. package/dist/sideBar.esm.js.LICENSE.txt +1 -1
  88. package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
  89. package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
  90. package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
  91. package/dist/simpleBar.esm.js.LICENSE.txt +1 -1
  92. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  93. package/dist/stack.esm.js.LICENSE.txt +1 -1
  94. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  95. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  96. package/dist/table.cjs.js.LICENSE.txt +1 -1
  97. package/dist/table.esm.js.LICENSE.txt +1 -1
  98. package/dist/text.cjs.js.LICENSE.txt +1 -1
  99. package/dist/text.esm.js.LICENSE.txt +1 -1
  100. package/dist/textField.cjs.js.LICENSE.txt +1 -1
  101. package/dist/textField.esm.js.LICENSE.txt +1 -1
  102. package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
  103. package/dist/transformanim.esm.js.LICENSE.txt +1 -1
  104. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  105. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  106. package/dist/zoomCard.cjs.js.LICENSE.txt +1 -1
  107. package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
  108. package/layout/DEPRECATED-PARAGRAPH.js +1 -1
  109. package/layout/animator.js +1 -1
  110. package/layout/audio.js +1 -1
  111. package/layout/audionew.js +1 -1
  112. package/layout/base-2.js +1 -1
  113. package/layout/base.js +1 -1
  114. package/layout/betaDesktopBar.js +1 -1
  115. package/layout/betaMobileBar.js +1 -1
  116. package/layout/box.js +1 -1
  117. package/layout/button.js +1 -1
  118. package/layout/cards.js +1 -1
  119. package/layout/center.js +1 -1
  120. package/layout/checkbox.js +1 -1
  121. package/layout/circle.js +1 -1
  122. package/layout/cleanRow.js +1 -1
  123. package/layout/code.js +1 -1
  124. package/layout/container.js +3 -3
  125. package/layout/custom.js +1 -1
  126. package/layout/divImage.js +1 -1
  127. package/layout/dropdown.js +1 -1
  128. package/layout/dropdown2025.js +1 -1
  129. package/layout/emptyElement.js +1 -1
  130. package/layout/externalStylesheet.js +1 -1
  131. package/layout/flexCard.js +1 -1
  132. package/layout/flexGrid.js +1 -1
  133. package/layout/flexrow.js +1 -1
  134. package/layout/footer.js +1 -1
  135. package/layout/formComponents/custom.js +1 -1
  136. package/layout/formComponents/dataList.js +1 -1
  137. package/layout/formComponents/floatingInput.js +1 -1
  138. package/layout/formComponents/form-all.js +1 -1
  139. package/layout/formComponents/form.js +1 -1
  140. package/layout/formComponents/imagePicker.js +1 -1
  141. package/layout/formComponents/picker.js +1 -1
  142. package/layout/formComponents/radio.js +1 -1
  143. package/layout/formComponents/radiogroup.js +1 -1
  144. package/layout/formComponents/range.js +1 -1
  145. package/layout/free.js +1 -1
  146. package/layout/grid-new.js +1 -1
  147. package/layout/grid.js +1 -1
  148. package/layout/gridSwitcher.js +7 -7
  149. package/layout/group.js +1 -1
  150. package/layout/header.js +1 -1
  151. package/layout/horizontalScroller.js +1 -1
  152. package/layout/image-old.js +1 -1
  153. package/layout/image.js +1 -1
  154. package/layout/index.js +1 -1
  155. package/layout/label.js +1 -1
  156. package/layout/link.js +1 -1
  157. package/layout/list-OLD.js +1 -1
  158. package/layout/list.js +1 -1
  159. package/layout/metaAdder.js +1 -1
  160. package/layout/modal2025.js +1 -1
  161. package/layout/modernwrap.js +1 -1
  162. package/layout/multiswitcher.js +1 -1
  163. package/layout/multiswitcherBeta.js +1 -1
  164. package/layout/navBar-OLD.js +1 -1
  165. package/layout/navBar.js +1 -1
  166. package/layout/navFactor/customDiv.js +1 -1
  167. package/layout/newFlatAdder.js +1 -1
  168. package/layout/newNavBar copy 2.js +1 -1
  169. package/layout/newNavBar copy.js +1 -1
  170. package/layout/newNavBar.js +1 -1
  171. package/layout/offsetContainer.js +1 -1
  172. package/layout/polygon.js +1 -1
  173. package/layout/progress.js +1 -1
  174. package/layout/row.js +1 -1
  175. package/layout/savedNewNavBar.js +1 -1
  176. package/layout/scrollvideo.js +1 -1
  177. package/layout/sideBar.js +1 -1
  178. package/layout/sideNavBar.js +1 -1
  179. package/layout/simpleBar.js +1 -1
  180. package/layout/slider2025.js +1 -1
  181. package/layout/spacer.js +1 -1
  182. package/layout/stack.js +1 -1
  183. package/layout/styler.js +1 -1
  184. package/layout/switcher.js +1 -1
  185. package/layout/table.js +1 -1
  186. package/layout/text.js +1 -1
  187. package/layout/textField.js +1 -1
  188. package/layout/ulist.js +1 -1
  189. package/layout/video.js +1 -1
  190. package/layout/withoutNew.js +1 -1
  191. package/layout/wrap.js +1 -1
  192. package/layout/zoomCard.js +1 -1
  193. package/lib/AppleAnim.js +1 -1
  194. package/lib/Stacker.js +1 -1
  195. package/lib/TransformAnim.js +1 -1
  196. package/lib/cardGetter.js +1 -1
  197. package/lib/designer.js +4 -4
  198. package/lib/elementMapper.js +5 -5
  199. package/lib/linkGetter.js +1 -1
  200. package/lib/scrollvideo.js +1 -1
  201. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see betaDesktopBar.esm.js.LICENSE.txt */
2
- function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,s,a,i,o=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(t,e)||n(t,e)||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(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,a=function(){};return{s:a,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:a}}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 i,o=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw i}}}}function n(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}var o=function(){return t=function t(){var e,r,n,s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),s.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",a="",i="",o="",l="",c="",u="",f="";if(0!==e.values.length){e.values.forEach((function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?a=t.replace("tz:",""):t.startsWith("scale(")?i=t:t.startsWith("skew(")?o=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map((function(t){return t.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],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(f=t.replace("opacity:",""))})),r=s.setDefault(r),n=s.setDefault(n),a=s.setDefault(a);var p="";if("0px"!=n&&"0px"!=r&&"0px"!=a?p+="translate3d(".concat(r,", ").concat(n,", ").concat(a,")"):"0px"==n&&"0px"==r||(p+="translate(".concat(r,", ").concat(n,")")),i&&(p+=" ".concat(i)),l&&(p+=" ".concat(l)),o&&(p+=" ".concat(o)),c&&(p+=" ".concat(c)),u&&(p+=" ".concat(u)),p){if(t.op.transform.duration){var d=t.op.transform.duration.replace(/^(\d+)(s)-/,(function(t,e,r){return e/2+r+" "})),h="transform ".concat(d,", opacity ").concat(d);s.res.style.transition=h}else s.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(s.res.style.transition=""),(s.blastTarget||s.res).style.transform=p,s.res.style.opacity=f}else alert("OPE")}};e.on?s.res.addEventListener(e.on,(function(){e.delay?setTimeout((function(){r()}),e.delay):r()})):window.addEventListener("load",(function(){e.delay?setTimeout((function(){r()}),e.delay):r()}));var n=function(){var t="";e.values.forEach((function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),s.res.style.opacity="1"})),t&&(s.res.style.transform=t.trim())};if(e.on)s.res.addEventListener("mouseout",(function(){e.keep||n()}));else{var a=1e3*parseFloat(e.duration),i=e.closeAfter?e.closeAfter:0;setTimeout((function(){e.keep||n()}),a/2+i)}e.hardCSS&&(s.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=i(r="reactOnTransform"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},n=[{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",(function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this,r=function(){e.pad(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(min-width: ".concat(e.getPX(n))).matches&&e.pad(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(t){var e=this,r=function(){e.mar(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(max-width: ".concat(e.getPX(n))).matches&&e.mar(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(t){var e=this;this.prevBackground=this.res.style.background,this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.prevBorder=this.res.style.border;var r=function(){e.res.style.background=e.prevBackground,e.res.style.width=e.prevWidth,e.res.style.height=e.prevHeight,e.res.style.border=e.prevBorder;for(var r=0;r<t.length;r++){var n=t[r].breakpoint;if(window.matchMedia("(max-width: ".concat(e.getPX(n))).matches){var s={};for(var a in t[r])"breakpoint"!==a&&(s[a]=t[r][a]);e.set(s)}}};window.addEventListener("resize",r),r()}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var s=r[n],a=t[e][s],i=0;i<s.length;i++)switch(s[i]){case"a":this.res.style.padding=this.isNumber(a)?"".concat(a,"px"):a;break;case"t":this.res.style.paddingTop=this.isNumber(a)?"".concat(a,"px"):a;break;case"l":this.res.style.paddingLeft=this.isNumber(a)?"".concat(a,"px"):a;break;case"r":this.res.style.paddingRight=this.isNumber(a)?"".concat(a,"px"):a;break;case"b":this.res.style.paddingBottom=this.isNumber(a)?"".concat(a,"px"):a}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var s=r[n],a=t[e][s],i=0;i<s.length;i++){switch(s[i]){case"a":this.res.style.margin=this.isNumber(a)?"".concat(a,"px"):a;break;case"t":this.res.style.marginTop=this.isNumber(a)?"".concat(a,"px"):a;break;case"l":this.res.style.marginLeft=this.isNumber(a)?"".concat(a,"px"):a;break;case"r":this.res.style.marginRight=this.isNumber(a)?"".concat(a,"px"):a;break;case"b":this.res.style.marginBottom=this.isNumber(a)?"".concat(a,"px"):a}"auto"===s[i]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var s=(r.min-r.max)*n-r.min;if(s=Math.abs(s),r.min<r.max){var a=(r.max+Math.abs(r.min))*n;s=r.min+a}return s}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){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"===t){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"===t){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"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===t){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"setPref",value:function(t){this.preffersId=t}},{key:"setClass",value:function(t){this.class=t}},{key:"chainReact",value:function(t,n,s){var a=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var l=i.value;l.range||(l.range=["0px","999999px"])}}catch(t){o.e(t)}finally{o.f()}t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var c=function(i){var o=window.visualViewport.width,l=[],c=[];a.resCopy=a.res,a.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var u,f=r(t);try{for(f.s();!(u=f.n()).done;){var p=u.value;a.counterIndex++;var d=e(p.range,2),h=d[0],y=d[1],v=parseInt(h),m=parseInt(y),b=!0;if(p.target){b=!1;for(var g=0;g<p.target.length;g++)p.target[g]===n&&(b=!0)}o>=v&&o<=m&&b&&(l.push(p.log),c.push(p),p.op&&p.op.margin&&(a.useMargin=p.op.margin))}}catch(t){f.e(t)}finally{f.f()}if(s&&!s.includes("background")&&(a.res.style.background="",a.res.style.backgroundColor=""),a.res.style.textShadow="",s&&!s.includes("border")&&(a.res.style.border=""),s&&!s.includes("margin")&&(a.res.style.margin=""),a.res.style["-webkit-text-fill-color"]="",a.res.style["-webkit-text-stroke-color"]="",a.res.style["-webkit-text-stroke-width"]="",a.res.style.filter="",a.options.background&&(console.log(a.options.background),a.res.style.background=a.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(a.res.style.position="relative",a.res.style.zIndex=-1),l.includes("blast")){var x,w=c.filter((function(t){return"blast"===t.log}))[0].op.color,k=null!==(x=c.filter((function(t){return"blast"===t.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===a.getType()||"LayoutWrapperElement"===a.getType()?(a.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),a.res.style.display="inline-block",a.res.style.boxSizing="border-box",a.res.style.transformOrigin="center",a.blastTarget=a.res):(a.text&&(a.res.textContent=a.text),a.res.style["-webkit-text-fill-color"]="transparent",a.res.style["-webkit-text-stroke-color"]=w,a.res.style["-webkit-text-stroke-width"]="".concat(k))}if(l.includes("filter")){var S=c.filter((function(t){return"filter"===t.log}))[0].op.filter;a.res.style.filter=S}if(l.includes("background")&&(a.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==a.getType()&&(a.res.style["-webkit-text-fill-color"]="transparent"),a.res.style.background=a.globalGradient,"LayoutWrapperElement"!==a.getType()&&(a.res.style["background-clip"]="text")),l.includes("shadow")){var T="",C=0;for(g=0;g<a.options.shadow.op.steps;g++)T+="drop-shadow(".concat(C+=3,"px ").concat(C,"px ").concat(C,"px gray) ");a.res.style.filter=T}if(l.includes("margin"))for(g=0;g<t.length;g++)if(t[g].op){var O=t[g].op.offsets;O&&void 0!==a.index&&(a.res.style.margin=O[Number(a.index)]+"px")}if(l.includes("spana")||l.includes("span")){if(a.res=a.resCopy,a.options.span){var E;for(E=Array.isArray(a.options.span)?a.options.span.filter((function(t){return"span"===t.op.name}))[0]:a.options.span,a.res.textContent="",g=0;g<E.op.parts.length;g++){var j=E.op.parts[g].style,W=new a.constructor(E.op.parts[g].text).setup({type:"span"}).set(j).render();a.res.appendChild(W)}}}else{var A=new a.constructor(a.prevText).set({}).render();a.prevText&&a.prevText.length>0&&i&&a.res.appendChild(A)}if(l.includes("animation")){if(a.options.animation&&!a.hasAnimated&&!a.options.animation.op.fireAt){a.hasAnimated=!0;var I=a.options.animation.op;a.res.animate(I.keyframesClose,{duration:0,fill:"forwards"}),a.res.animate(I.keyframesOpen,I.openOptions)}if(a.options.animation&&a.options.animation.op.fireAt&&a.options.animation.op.fireAt.endsWith("px")){var L=a.options.animation.op;a.res.animate(L.keyframesClose,{duration:0,fill:"forwards"});var P=function(){window.scrollY>parseFloat(L.fireAt)&&(a.res.animate(L.keyframesOpen,L.openOptions),window.removeEventListener("scroll",P))};window.addEventListener("scroll",P)}if(a.options.animation&&a.options.animation.op.fireAt&&"inview"===a.options.animation.op.fireAt){var N=a.options.animation.op;a.res.animate(N.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(a.res.animate(N.keyframesOpen,N.openOptions),e.disconnect())}))})).observe(a.res)}}};this.options.animation||window.addEventListener("resize",(function(){return c()})),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var s=Object.getOwnPropertyDescriptor(n,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},p.apply(null,arguments)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=function(){function t(){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(t,e,r){return e=d(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}(this,t)).navbar=document.createElement("nav"),e.navbar.classList.add("desktop-navbar"),e.navbarHeader=document.createElement("div"),e.navbarHeader.classList.add("navbar-header"),e.brand=document.createElement("div"),e.brand.classList.add("navbar-brand"),e.navContent=document.createElement("div"),e.navContent.classList.add("navbar-content"),e.navContent.style.width="100%",e.navbarHeader.appendChild(e.brand),e.navbarHeader.appendChild(e.navContent),e.navbar.appendChild(e.navbarHeader),e.res=e.navbar,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(t,o),e=t,r=[{key:"set",value:function(e){var r,n,s;return console.warn(e),this.obj=e,e.background&&(this.res.style.backgroundColor=e.background),e.mar&&(r=t,n=this,"function"==typeof(s=p(d(1&3?r.prototype:r),"mar",n))?function(t){return s.apply(n,t)}:s)([e.mar]),e.brand&&this.setBrand(e.brand),e.radius&&(this.res.style.borderRadius=e.radius),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(),this}},{key:"setStyles",value:function(){this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor="#333",this.navbar.style.color="white",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(t){return console.warn("SETA"),console.log(t),this.brand.innerHTML="",this.brand.appendChild(t),this}},{key:"add",value:function(t){this.items=t;for(var e=0;e<t.length;e++)t[e],this.navContent.appendChild(t[e].render());return this}},{key:"toCode",value:function(){console.warn(this.items);var t=this.items.map((function(t){return t.toCode()})).flatMap((function(t){return t}));return console.log("ITSA"),console.log(t),console.log("".concat(t.join(","))),"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(t.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.navbar),this.navbar}}],r&&c(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}();export{y as DesktopBar};
2
+ (()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,s,a,o,i=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw s}}return i}}(t,e)||a(t,e)||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 s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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,i=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){l=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(n){var s=Object.getOwnPropertyDescriptor(n,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},d.apply(null,arguments)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}t.r(e),t.d(e,{DesktopBar:()=>v});var v=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}(this,e)).navbar=document.createElement("nav"),t.navbar.classList.add("desktop-navbar"),t.navbarHeader=document.createElement("div"),t.navbarHeader.classList.add("navbar-header"),t.brand=document.createElement("div"),t.brand.classList.add("navbar-brand"),t.navContent=document.createElement("div"),t.navContent.classList.add("navbar-content"),t.navContent.style.width="100%",t.navbarHeader.appendChild(t.brand),t.navbarHeader.appendChild(t.navContent),t.navbar.appendChild(t.navbarHeader),t.res=t.navbar,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),r=e,n=[{key:"set",value:function(t){var r,n,s;return console.warn(t),this.obj=t,t.background&&(this.res.style.backgroundColor=t.background),t.mar&&(r=e,n=this,"function"==typeof(s=d(y(1&3?r.prototype:r),"mar",n))?function(t){return s.apply(n,t)}:s)([t.mar]),t.brand&&this.setBrand(t.brand),t.radius&&(this.res.style.borderRadius=t.radius),t.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),this.setStyles(),this}},{key:"setStyles",value:function(){this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor="#333",this.navbar.style.color="white",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(t){return console.warn("SETA"),console.log(t),this.brand.innerHTML="",this.brand.appendChild(t),this}},{key:"add",value:function(t){this.items=t;for(var e=0;e<t.length;e++)t[e],this.navContent.appendChild(t[e].render());return this}},{key:"toCode",value:function(){console.warn(this.items);var t=this.items.map((function(t){return t.toCode()})).flatMap((function(t){return t}));return console.log("ITSA"),console.log(t),console.log("".concat(t.join(","))),"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(t.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.navbar),this.navbar}}],n&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return t=function t(){var e,r,n,s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),s.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",a="",o="",i="",l="",c="",u="",f="";if(0!==e.values.length){e.values.forEach((function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?a=t.replace("tz:",""):t.startsWith("scale(")?o=t:t.startsWith("skew(")?i=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map((function(t){return t.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],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(f=t.replace("opacity:",""))})),r=s.setDefault(r),n=s.setDefault(n),a=s.setDefault(a);var p="";if("0px"!=n&&"0px"!=r&&"0px"!=a?p+="translate3d(".concat(r,", ").concat(n,", ").concat(a,")"):"0px"==n&&"0px"==r||(p+="translate(".concat(r,", ").concat(n,")")),o&&(p+=" ".concat(o)),l&&(p+=" ".concat(l)),i&&(p+=" ".concat(i)),c&&(p+=" ".concat(c)),u&&(p+=" ".concat(u)),p){if(t.op.transform.duration){var d=t.op.transform.duration.replace(/^(\d+)(s)-/,(function(t,e,r){return e/2+r+" "})),y="transform ".concat(d,", opacity ").concat(d);s.res.style.transition=y}else s.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(s.res.style.transition=""),(s.blastTarget||s.res).style.transform=p,s.res.style.opacity=f}else alert("OPE")}};e.on?s.res.addEventListener(e.on,(function(){e.delay?setTimeout((function(){r()}),e.delay):r()})):window.addEventListener("load",(function(){e.delay?setTimeout((function(){r()}),e.delay):r()}));var n=function(){var t="";e.values.forEach((function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),s.res.style.opacity="1"})),t&&(s.res.style.transform=t.trim())};if(e.on)s.res.addEventListener("mouseout",(function(){e.keep||n()}));else{var a=1e3*parseFloat(e.duration),o=e.closeAfter?e.closeAfter:0;setTimeout((function(){e.keep||n()}),a/2+o)}e.hardCSS&&(s.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=l(r="reactOnTransform"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},e=[{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",(function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this,r=function(){e.pad(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(min-width: ".concat(e.getPX(n))).matches&&e.pad(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(t){var e=this,r=function(){e.mar(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(max-width: ".concat(e.getPX(n))).matches&&e.mar(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(t){var e=this;this.prevBackground=this.res.style.background,this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.prevBorder=this.res.style.border;var r=function(){e.res.style.background=e.prevBackground,e.res.style.width=e.prevWidth,e.res.style.height=e.prevHeight,e.res.style.border=e.prevBorder;for(var r=0;r<t.length;r++){var n=t[r].breakpoint;if(window.matchMedia("(max-width: ".concat(e.getPX(n))).matches){var s={};for(var a in t[r])"breakpoint"!==a&&(s[a]=t[r][a]);e.set(s)}}};window.addEventListener("resize",r),r()}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var s=r[n],a=t[e][s],o=0;o<s.length;o++)switch(s[o]){case"a":this.res.style.padding=this.isNumber(a)?"".concat(a,"px"):a;break;case"t":this.res.style.paddingTop=this.isNumber(a)?"".concat(a,"px"):a;break;case"l":this.res.style.paddingLeft=this.isNumber(a)?"".concat(a,"px"):a;break;case"r":this.res.style.paddingRight=this.isNumber(a)?"".concat(a,"px"):a;break;case"b":this.res.style.paddingBottom=this.isNumber(a)?"".concat(a,"px"):a}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var s=r[n],a=t[e][s],o=0;o<s.length;o++){switch(s[o]){case"a":this.res.style.margin=this.isNumber(a)?"".concat(a,"px"):a;break;case"t":this.res.style.marginTop=this.isNumber(a)?"".concat(a,"px"):a;break;case"l":this.res.style.marginLeft=this.isNumber(a)?"".concat(a,"px"):a;break;case"r":this.res.style.marginRight=this.isNumber(a)?"".concat(a,"px"):a;break;case"b":this.res.style.marginBottom=this.isNumber(a)?"".concat(a,"px"):a}"auto"===s[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var s=(r.min-r.max)*n-r.min;if(s=Math.abs(s),r.min<r.max){var a=(r.max+Math.abs(r.min))*n;s=r.min+a}return s}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){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"===t){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"===t){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"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===t){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"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"setPref",value:function(t){this.preffersId=t}},{key:"setClass",value:function(t){this.class=t}},{key:"chainReact",value:function(t,e,r){var a=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,i=s(t);try{for(i.s();!(o=i.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(t){i.e(t)}finally{i.f()}t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var c=function(o){var i=window.visualViewport.width,l=[],c=[];a.resCopy=a.res,a.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var u,f=s(t);try{for(f.s();!(u=f.n()).done;){var p=u.value;a.counterIndex++;var d=n(p.range,2),y=d[0],h=d[1],v=parseInt(y),m=parseInt(h),b=!0;if(p.target){b=!1;for(var g=0;g<p.target.length;g++)p.target[g]===e&&(b=!0)}i>=v&&i<=m&&b&&(l.push(p.log),c.push(p),p.op&&p.op.margin&&(a.useMargin=p.op.margin))}}catch(t){f.e(t)}finally{f.f()}if(r&&!r.includes("background")&&(a.res.style.background="",a.res.style.backgroundColor=""),a.res.style.textShadow="",r&&!r.includes("border")&&(a.res.style.border=""),r&&!r.includes("margin")&&(a.res.style.margin=""),a.res.style["-webkit-text-fill-color"]="",a.res.style["-webkit-text-stroke-color"]="",a.res.style["-webkit-text-stroke-width"]="",a.res.style.filter="",a.options.background&&(console.log(a.options.background),a.res.style.background=a.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(a.res.style.position="relative",a.res.style.zIndex=-1),l.includes("blast")){var x,w=c.filter((function(t){return"blast"===t.log}))[0].op.color,k=null!==(x=c.filter((function(t){return"blast"===t.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===a.getType()||"LayoutWrapperElement"===a.getType()?(a.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),a.res.style.display="inline-block",a.res.style.boxSizing="border-box",a.res.style.transformOrigin="center",a.blastTarget=a.res):(a.text&&(a.res.textContent=a.text),a.res.style["-webkit-text-fill-color"]="transparent",a.res.style["-webkit-text-stroke-color"]=w,a.res.style["-webkit-text-stroke-width"]="".concat(k))}if(l.includes("filter")){var S=c.filter((function(t){return"filter"===t.log}))[0].op.filter;a.res.style.filter=S}if(l.includes("background")&&(a.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==a.getType()&&(a.res.style["-webkit-text-fill-color"]="transparent"),a.res.style.background=a.globalGradient,"LayoutWrapperElement"!==a.getType()&&(a.res.style["background-clip"]="text")),l.includes("shadow")){var T="",O=0;for(g=0;g<a.options.shadow.op.steps;g++)T+="drop-shadow(".concat(O+=3,"px ").concat(O,"px ").concat(O,"px gray) ");a.res.style.filter=T}if(l.includes("margin"))for(g=0;g<t.length;g++)if(t[g].op){var C=t[g].op.offsets;C&&void 0!==a.index&&(a.res.style.margin=C[Number(a.index)]+"px")}if(l.includes("spana")||l.includes("span")){if(a.res=a.resCopy,a.options.span){var E;for(E=Array.isArray(a.options.span)?a.options.span.filter((function(t){return"span"===t.op.name}))[0]:a.options.span,a.res.textContent="",g=0;g<E.op.parts.length;g++){var j=E.op.parts[g].style,P=new a.constructor(E.op.parts[g].text).setup({type:"span"}).set(j).render();a.res.appendChild(P)}}}else{var W=new a.constructor(a.prevText).set({}).render();a.prevText&&a.prevText.length>0&&o&&a.res.appendChild(W)}if(l.includes("animation")){if(a.options.animation&&!a.hasAnimated&&!a.options.animation.op.fireAt){a.hasAnimated=!0;var A=a.options.animation.op;a.res.animate(A.keyframesClose,{duration:0,fill:"forwards"}),a.res.animate(A.keyframesOpen,A.openOptions)}if(a.options.animation&&a.options.animation.op.fireAt&&a.options.animation.op.fireAt.endsWith("px")){var I=a.options.animation.op;a.res.animate(I.keyframesClose,{duration:0,fill:"forwards"});var L=function(){window.scrollY>parseFloat(I.fireAt)&&(a.res.animate(I.keyframesOpen,I.openOptions),window.removeEventListener("scroll",L))};window.addEventListener("scroll",L)}if(a.options.animation&&a.options.animation.op.fireAt&&"inview"===a.options.animation.op.fireAt){var N=a.options.animation.op;a.res.animate(N.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(a.res.animate(N.keyframesOpen,N.openOptions),e.disconnect())}))})).observe(a.res)}}};this.options.animation||window.addEventListener("resize",(function(){return c()})),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],e&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());module.exports=e})();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.90
2
+ * nodality v1.0.0-beta.92
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */