nodality 1.0.85 → 1.0.104
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.
- package/dist/animator.cjs.js +1 -2
- package/dist/animator.esm.js +1 -2
- package/dist/appleanim.cjs.js +1 -1
- package/dist/appleanim.esm.js +1 -1
- package/dist/audionew.cjs.js +1 -2
- package/dist/audionew.esm.js +1 -2
- package/dist/base.cjs.js +0 -1
- package/dist/base.esm.js +1 -2
- package/dist/beta-desktop-bar.cjs.js +1 -0
- package/dist/beta-desktop-bar.esm.js +1 -0
- package/dist/beta-mobile-bar.cjs.js +1 -0
- package/dist/beta-mobile-bar.esm.js +1 -0
- package/dist/betaDesktopBar.esm.js +1 -1
- package/dist/betaMobileBar.esm.js +1 -1
- package/dist/bundle.umd.js +1 -2
- package/dist/button.cjs.js +1 -2
- package/dist/button.esm.js +1 -2
- package/dist/card-getter.cjs.js +1 -0
- package/dist/card-getter.esm.js +1 -0
- package/dist/cardGetter.esm.js +1 -1
- package/dist/center.cjs.js +1 -2
- package/dist/center.esm.js +1 -2
- package/dist/checkbox.cjs.js +1 -2
- package/dist/checkbox.esm.js +1 -2
- package/dist/code.cjs.js +1 -2
- package/dist/code.esm.js +1 -2
- package/dist/container.cjs.js +1 -2
- package/dist/container.esm.js +1 -2
- package/dist/data-list.cjs.js +1 -0
- package/dist/data-list.esm.js +1 -0
- package/dist/designer.cjs.js +1 -2
- package/dist/designer.esm.js +1 -2
- package/dist/dropdown.cjs.js +1 -2
- package/dist/dropdown.esm.js +1 -2
- package/dist/element-mapper.cjs.js +1 -0
- package/dist/element-mapper.esm.js +1 -0
- package/dist/elementMapper.cjs.js +1 -1
- package/dist/elementMapper.esm.js +1 -1
- package/dist/finalresult.esm.js +1 -2
- package/dist/flex-card.cjs.js +1 -0
- package/dist/flex-card.esm.js +1 -0
- package/dist/flex-grid.cjs.js +1 -0
- package/dist/flex-grid.esm.js +1 -0
- package/dist/flex-row.cjs.js +1 -0
- package/dist/flex-row.esm.js +1 -0
- package/dist/flexCard.cjs.js +1 -1
- package/dist/flexCard.esm.js +1 -1
- package/dist/floating-input.cjs.js +1 -0
- package/dist/floating-input.esm.js +1 -0
- package/dist/free.cjs.js +1 -2
- package/dist/free.esm.js +1 -2
- package/dist/horizontal-scroller.cjs.js +1 -0
- package/dist/horizontal-scroller.esm.js +1 -0
- package/dist/image-picker.cjs.js +1 -0
- package/dist/image-picker.esm.js +1 -0
- package/dist/image.cjs.js +1 -2
- package/dist/image.esm.js +1 -2
- package/dist/index.cjs.js +1 -2
- package/dist/index.esm.js +1 -2
- package/dist/keyframe-animation.cjs.js +1 -0
- package/dist/keyframe-animation.esm.js +1 -0
- package/dist/link-getter.cjs.js +1 -0
- package/dist/link-getter.esm.js +1 -0
- package/dist/link.cjs.js +1 -2
- package/dist/link.esm.js +1 -2
- package/dist/linkGetter.cjs.js +1 -1
- package/dist/linkGetter.esm.js +1 -1
- package/dist/meta-adder.cjs.js +1 -0
- package/dist/meta-adder.esm.js +1 -0
- package/dist/modal-2025.cjs.js +1 -0
- package/dist/modal-2025.esm.js +1 -0
- package/dist/multiswitcher.cjs.js +1 -0
- package/dist/multiswitcher.esm.js +1 -0
- package/dist/new-nav-bar.cjs.js +1 -0
- package/dist/new-nav-bar.esm.js +1 -0
- package/dist/picker.cjs.js +1 -2
- package/dist/picker.esm.js +1 -2
- package/dist/progress.cjs.js +1 -2
- package/dist/progress.esm.js +1 -2
- package/dist/radio.cjs.js +1 -2
- package/dist/radio.esm.js +1 -2
- package/dist/range.cjs.js +1 -2
- package/dist/range.esm.js +1 -2
- package/dist/scroll-video.cjs.js +1 -0
- package/dist/scroll-video.esm.js +1 -0
- package/dist/scrollvideo.cjs.js +1 -1
- package/dist/scrollvideo.esm.js +1 -1
- package/dist/side-bar.cjs.js +1 -0
- package/dist/side-bar.esm.js +1 -0
- package/dist/side-nav-bar.cjs.js +1 -0
- package/dist/side-nav-bar.esm.js +1 -0
- package/dist/simple-bar.cjs.js +1 -0
- package/dist/simple-bar.esm.js +1 -0
- package/dist/slider-2025.cjs.js +1 -0
- package/dist/slider-2025.esm.js +1 -0
- package/dist/spacer.cjs.js +0 -1
- package/dist/spacer.esm.js +1 -0
- package/dist/stack.cjs.js +1 -2
- package/dist/stack.esm.js +1 -2
- package/dist/stacker.cjs.js +1 -2
- package/dist/stacker.esm.js +1 -2
- package/dist/table.cjs.js +1 -2
- package/dist/table.esm.js +1 -2
- package/dist/text-field.cjs.js +1 -0
- package/dist/text-field.esm.js +1 -0
- package/dist/text.cjs.js +1 -2
- package/dist/text.esm.js +1 -2
- package/dist/transform-anim.cjs.js +1 -0
- package/dist/transform-anim.esm.js +1 -0
- package/dist/transformanim.cjs.js +1 -1
- package/dist/transformanim.esm.js +1 -1
- package/dist/ulist.cjs.js +1 -2
- package/dist/ulist.esm.js +1 -2
- package/dist/video.cjs.js +1 -0
- package/dist/video.esm.js +1 -2
- package/dist/wrap.cjs.js +0 -1
- package/dist/wrap.esm.js +1 -2
- package/dist/zoom-card.cjs.js +1 -0
- package/dist/zoom-card.esm.js +1 -0
- package/layout/animator.js +1 -1
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base-2.js +1 -1
- package/layout/base.js +1 -1
- package/layout/{betaDesktopBar.js → beta-desktop-bar.js} +1 -1
- package/layout/{betaMobileBar.js → beta-mobile-bar.js} +1 -1
- package/layout/box.js +1 -1
- package/layout/button.js +1 -1
- package/layout/cards.js +2 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +1 -1
- package/layout/circle.js +1 -1
- package/layout/{cleanRow.js → clean-row.js} +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +1 -1
- package/layout/custom.js +1 -1
- package/layout/{divImage.js → div-image.js} +1 -1
- package/layout/{dropdown2025.js → dropdown-2025.js} +1 -1
- package/layout/dropdown.js +1 -1
- package/layout/{emptyElement.js → empty-element.js} +1 -1
- package/layout/{externalStylesheet.js → external-stylesheet.js} +1 -1
- package/layout/{flexCard.js → flex-card.js} +3 -1
- package/layout/{flexGrid.js → flex-grid.js} +1 -1
- package/layout/{flexrow.js → flex-row.js} +1 -1
- package/layout/footer.js +1 -1
- package/layout/{formComponents → form-components}/custom.js +1 -1
- package/layout/{formComponents/dataList.js → form-components/data-list.js} +1 -1
- package/layout/{formComponents/floatingInput.js → form-components/floating-input.js} +1 -1
- package/layout/{formComponents → form-components}/form-all.js +1 -1
- package/layout/{formComponents → form-components}/form.js +1 -1
- package/layout/{formComponents/imagePicker.js → form-components/image-picker.js} +1 -1
- package/layout/{formComponents → form-components}/picker.js +1 -1
- package/layout/{formComponents → form-components}/radio.js +1 -1
- package/layout/{formComponents → form-components}/radiogroup.js +1 -1
- package/layout/{formComponents → form-components}/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-new.js +1 -1
- package/layout/{gridSwitcher.js → grid-switcher.js} +1 -1
- package/layout/grid.js +1 -1
- package/layout/group.js +1 -1
- package/layout/header.js +1 -1
- package/layout/{horizontalScroller.js → horizontal-scroller.js} +1 -1
- package/layout/image-old.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +49 -37
- package/layout/label.js +1 -1
- package/layout/link.js +1 -1
- package/layout/list-OLD.js +1 -1
- package/layout/list.js +1 -1
- package/layout/{metaAdder.js → meta-adder.js} +1 -1
- package/layout/{modal2025.js → modal-2025.js} +1 -1
- package/layout/modernwrap.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/multiswitcherBeta.js +1 -1
- package/layout/{navBar.js → nav-bar.js} +1 -1
- package/layout/{navFactor/customDiv.js → nav-factor/custom-div.js} +1 -1
- package/layout/navBar-OLD.js +1 -1
- package/layout/{newFlatAdder.js → new-flat-adder.js} +1 -1
- package/layout/{newNavBar.js → new-nav-bar.js} +1 -1
- package/layout/{offsetContainer.js → offset-container.js} +1 -1
- package/layout/polygon.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/{savedNewNavBar.js → saved-new-nav-bar.js} +1 -1
- package/layout/{scrollvideo.js → scroll-video.js} +1 -1
- package/layout/{sideBar.js → side-bar.js} +1 -1
- package/layout/{sideNavBar.js → side-nav-bar.js} +1 -1
- package/layout/{simpleBar.js → simple-bar.js} +1 -1
- package/layout/{slider2025.js → slider-2025.js} +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/styler.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/{textField.js → text-field.js} +1 -1
- package/layout/text.js +1 -1
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/{withoutNew.js → without-new.js} +1 -1
- package/layout/wrap.js +1 -1
- package/layout/{zoomCard.js → zoom-card.js} +1 -1
- package/lib/{cardGetter.js → card-getter.js} +1 -1
- package/lib/designer.js +49 -49
- package/lib/{elementMapper.js → element-mapper.js} +56 -37
- package/lib/{KeyframeAnimation.js → keyframe-animation.js} +1 -1
- package/lib/{linkGetter.js → link-getter.js} +1 -1
- package/lib/{scrollvideo.js → scroll-video.js} +1 -1
- package/lib/{Stacker.js → stacker.js} +2 -1
- package/lib/{TransformAnim.js → transform-anim.js} +1 -1
- package/package.json +4 -2
- package/dist/KeyframeAnimation.cjs.js +0 -2
- package/dist/KeyframeAnimation.cjs.js.LICENSE.txt +0 -5
- package/dist/KeyframeAnimation.esm.js +0 -2
- package/dist/KeyframeAnimation.esm.js.LICENSE.txt +0 -5
- package/dist/animator.cjs.js.LICENSE.txt +0 -5
- package/dist/animator.esm.js.LICENSE.txt +0 -5
- package/dist/appleanim.cjs.js.LICENSE.txt +0 -5
- package/dist/appleanim.esm.js.LICENSE.txt +0 -5
- package/dist/audionew.cjs.js.LICENSE.txt +0 -5
- package/dist/audionew.esm.js.LICENSE.txt +0 -5
- package/dist/base.cjs.js.LICENSE.txt +0 -5
- package/dist/base.esm.js.LICENSE.txt +0 -5
- package/dist/betaDesktopBar.esm.js.LICENSE.txt +0 -5
- package/dist/betaMobileBar.esm.js.LICENSE.txt +0 -5
- package/dist/bundle.umd.js.LICENSE.txt +0 -5
- package/dist/button.cjs.js.LICENSE.txt +0 -5
- package/dist/button.esm.js.LICENSE.txt +0 -5
- package/dist/cardGetter.cjs.js.LICENSE.txt +0 -5
- package/dist/cardGetter.esm.js.LICENSE.txt +0 -5
- package/dist/center.cjs.js.LICENSE.txt +0 -5
- package/dist/center.esm.js.LICENSE.txt +0 -5
- package/dist/checkbox.cjs.js.LICENSE.txt +0 -5
- package/dist/checkbox.esm.js.LICENSE.txt +0 -5
- package/dist/circle.cjs.js +0 -2
- package/dist/circle.cjs.js.LICENSE.txt +0 -5
- package/dist/circle.esm.js +0 -2
- package/dist/circle.esm.js.LICENSE.txt +0 -5
- package/dist/code.cjs.js.LICENSE.txt +0 -5
- package/dist/code.esm.js.LICENSE.txt +0 -5
- package/dist/container.cjs.js.LICENSE.txt +0 -5
- package/dist/container.esm.js.LICENSE.txt +0 -5
- package/dist/datalist.cjs.js.LICENSE.txt +0 -5
- package/dist/datalist.esm.js.LICENSE.txt +0 -5
- package/dist/designer.cjs.js.LICENSE.txt +0 -5
- package/dist/designer.esm.js.LICENSE.txt +0 -5
- package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
- package/dist/dropdown.esm.js.LICENSE.txt +0 -5
- package/dist/elementMapper.cjs.js.LICENSE.txt +0 -5
- package/dist/elementMapper.esm.js.LICENSE.txt +0 -5
- package/dist/finalresult.esm.js.LICENSE.txt +0 -5
- package/dist/flexCard.cjs.js.LICENSE.txt +0 -5
- package/dist/flexCard.esm.js.LICENSE.txt +0 -5
- package/dist/flexGrid.cjs.js.LICENSE.txt +0 -5
- package/dist/flexGrid.esm.js.LICENSE.txt +0 -5
- package/dist/flexRow.cjs.js.LICENSE.txt +0 -5
- package/dist/flexRow.esm.js.LICENSE.txt +0 -5
- package/dist/floatingInput.cjs.js.LICENSE.txt +0 -5
- package/dist/floatingInput.esm.js.LICENSE.txt +0 -5
- package/dist/free.cjs.js.LICENSE.txt +0 -5
- package/dist/free.esm.js.LICENSE.txt +0 -5
- package/dist/gridSwitcher.cjs.js +0 -2
- package/dist/gridSwitcher.cjs.js.LICENSE.txt +0 -5
- package/dist/gridSwitcher.esm.js +0 -2
- package/dist/gridSwitcher.esm.js.LICENSE.txt +0 -5
- package/dist/horizontalScroller.esm.js.LICENSE.txt +0 -5
- package/dist/image.cjs.js.LICENSE.txt +0 -5
- package/dist/image.esm.js.LICENSE.txt +0 -5
- package/dist/imagePicker.cjs.js.LICENSE.txt +0 -5
- package/dist/imagePicker.esm.js.LICENSE.txt +0 -5
- package/dist/index.cjs.js.LICENSE.txt +0 -5
- package/dist/index.esm.js.LICENSE.txt +0 -5
- package/dist/link.cjs.js.LICENSE.txt +0 -5
- package/dist/link.esm.js.LICENSE.txt +0 -5
- package/dist/linkGetter.cjs.js.LICENSE.txt +0 -5
- package/dist/linkGetter.esm.js.LICENSE.txt +0 -5
- package/dist/metaAdder.cjs.js.LICENSE.txt +0 -5
- package/dist/metaAdder.esm.js.LICENSE.txt +0 -5
- package/dist/modal2025.cjs.js.LICENSE.txt +0 -5
- package/dist/modal2025.esm.js.LICENSE.txt +0 -5
- package/dist/multiswitchers.esm.js.LICENSE.txt +0 -5
- package/dist/newNavBar.cjs.js.LICENSE.txt +0 -5
- package/dist/newNavBar.esm.js.LICENSE.txt +0 -5
- package/dist/picker.cjs.js.LICENSE.txt +0 -5
- package/dist/picker.esm.js.LICENSE.txt +0 -5
- package/dist/polygon.cjs.js +0 -2
- package/dist/polygon.cjs.js.LICENSE.txt +0 -5
- package/dist/polygon.esm.js +0 -2
- package/dist/polygon.esm.js.LICENSE.txt +0 -5
- package/dist/progress.cjs.js.LICENSE.txt +0 -5
- package/dist/progress.esm.js.LICENSE.txt +0 -5
- package/dist/radio.cjs.js.LICENSE.txt +0 -5
- package/dist/radio.esm.js.LICENSE.txt +0 -5
- package/dist/range.cjs.js.LICENSE.txt +0 -5
- package/dist/range.esm.js.LICENSE.txt +0 -5
- package/dist/scrollvideo.cjs.js.LICENSE.txt +0 -5
- package/dist/scrollvideo.esm.js.LICENSE.txt +0 -5
- package/dist/sideBar.cjs.js.LICENSE.txt +0 -5
- package/dist/sideBar.esm.js.LICENSE.txt +0 -5
- package/dist/sideNavBar.cjs.js.LICENSE.txt +0 -5
- package/dist/sideNavBar.esm.js.LICENSE.txt +0 -5
- package/dist/simpleBar.cjs.js.LICENSE.txt +0 -5
- package/dist/simpleBar.esm.js.LICENSE.txt +0 -5
- package/dist/slider2025.cjs.js +0 -2
- package/dist/slider2025.cjs.js.LICENSE.txt +0 -5
- package/dist/slider2025.esm.js +0 -2
- package/dist/slider2025.esm.js.LICENSE.txt +0 -5
- package/dist/spacer.cjs.js.LICENSE.txt +0 -5
- package/dist/stack.cjs.js.LICENSE.txt +0 -5
- package/dist/stack.esm.js.LICENSE.txt +0 -5
- package/dist/stacker.cjs.js.LICENSE.txt +0 -5
- package/dist/stacker.esm.js.LICENSE.txt +0 -5
- package/dist/table.cjs.js.LICENSE.txt +0 -5
- package/dist/table.esm.js.LICENSE.txt +0 -5
- package/dist/text.cjs.js.LICENSE.txt +0 -5
- package/dist/text.esm.js.LICENSE.txt +0 -5
- package/dist/textField.cjs.js.LICENSE.txt +0 -5
- package/dist/textField.esm.js.LICENSE.txt +0 -5
- package/dist/transformanim.cjs.js.LICENSE.txt +0 -5
- package/dist/transformanim.esm.js.LICENSE.txt +0 -5
- package/dist/ulist.cjs.js.LICENSE.txt +0 -5
- package/dist/ulist.esm.js.LICENSE.txt +0 -5
- package/dist/video.esm.js.LICENSE.txt +0 -5
- package/dist/wrap.cjs.js.LICENSE.txt +0 -5
- package/dist/wrap.esm.js.LICENSE.txt +0 -5
- package/dist/zoomCard.cjs.js.LICENSE.txt +0 -5
- package/dist/zoomCard.esm.js.LICENSE.txt +0 -5
- package/layout/<head> +0 -59
- package/layout/DEADJOE +0 -49
- package/layout/DEPRECATED-PARAGRAPH.js +0 -109
- package/layout/edit.sh +0 -39
- package/layout/formComponents/edit.sh +0 -39
- package/layout/navFactor/edit.sh +0 -39
- package/layout/newNavBar copy 2.js +0 -921
- package/layout/newNavBar copy.js +0 -780
- package/lib/AppleAnim.js +0 -794
package/dist/button.cjs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see button.cjs.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,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=(s=i.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}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 n(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 s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}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 i(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function a(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,l(s.key),s)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,d(s.key),s)}}function d(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}e.r(t),e.d(t,{Button:()=>f});var f=function(e){function t(e,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).text=e,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,s=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,n,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",i.style.height=(null===(n=e.frame)||void 0===n?void 0:n.height)||"50px",t.appendChild(i)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var 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("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&u(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(function(){return e=function e(){var t,r,s,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),n.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",i="",o="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?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:")&&(d=e.replace("opacity:",""))})),r=n.setDefault(r),s=n.setDefault(s),i=n.setDefault(i);var h="";if("0px"!=s&&"0px"!=r&&"0px"!=i?h+="translate3d(".concat(r,", ").concat(s,", ").concat(i,")"):"0px"==s&&"0px"==r||(h+="translate(".concat(r,", ").concat(s,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(p,", opacity ").concat(p);n.res.style.transition=y}else n.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(n.res.style.transition=""),(n.blastTarget||n.res).style.transform=h,n.res.style.opacity=d}else alert("OPE")}};t.on?n.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var s=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),n.res.style.opacity="1"})),e&&(n.res.style.transform=e.trim())};if(t.on)n.res.addEventListener("mouseout",(function(){t.keep||s()}));else{var i=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||s()}),i/2+o)}t.hardCSS&&(n.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=l(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,n=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(n):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)}))}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach((function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)})),e.sort((function(e,t){return e._value-t._value}));var s=e.find((function(e){return"default"===e.breakpoint})),n=function(){for(var r=window.innerWidth,n=s||null,i=0;i<e.length;i++){var o=e[i];if("default"!==o.breakpoint&&r<=o._value){n=o;break}}n&&t(n)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=n,window.addEventListener("resize",n),n()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)}))}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,(function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])}))}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++)switch(n[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]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++){switch(n[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"===n[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var n=(r.min-r.max)*s-r.min;if(n=Math.abs(n),r.min<r.max){var i=(r.max+Math.abs(r.min))*s;n=r.min+i}return n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),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,t,r){var i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=n(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,d=n(e);try{for(d.s();!(u=d.n()).done;){var h=u.value;i.counterIndex++;var p=s(h.range,2),y=p[0],f=p[1],m=parseInt(y),v=parseInt(f),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===t&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(i.useMargin=h.op.margin))}}catch(e){d.e(e)}finally{d.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.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,C,O,j=i.options.shadow.op;console.log("OP IS",j);var W=null!==(T=j.steps)&&void 0!==T?T:1,L=null!==(E=j.colors)&&void 0!==E?E:["gray"],A=null!==(C=j.movements)&&void 0!==C?C:["3px","3px"],z=null!==(O=j.radius)&&void 0!==O?O:"3px";if(1===A.length&&(A=[A[0],A[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var R=[],N=0;N<W;N++){var P,M=null!==(P=L[N])&&void 0!==P?P:L[0],I=A[0],_=A[1];R.push("".concat(I," ").concat(_," ").concat(z," ").concat(M))}i.res.style.boxShadow=R.join(", ")}else{for(var B=[],F=0;F<W;F++){var H,D=null!==(H=L[F])&&void 0!==H?H:L[0],$=A[0],Y=A[1];B.push("drop-shadow(".concat($," ").concat(Y," ").concat(z," ").concat(D,")"))}i.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),i.res&&i.res.querySelector("span"))return;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 s=e.text,n=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);i.res.appendChild(new i.constructor(a).setup({type:"span",id:n.id,animation:n.animation}).set({}).render())}t=o+s.length}var l=new i.constructor(s).setup({type:"span",id:n.id,animation:n.animation}).set(n).render();i.res.appendChild(l)})),t<r.length){var s=r.substring(t);i.res.appendChild(new i.constructor(s).setup({type:"span"}).set({}).render())}}}))}else{var X=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&o&&i.res.appendChild(X)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var q=i.options.animation.op;window.addEventListener("sidebar:open",(function(){i.res.animate(q.keyframesOpen,q.openOptions)})),window.addEventListener("sidebar:closed",(function(){i.res.animate(q.keyframesClose,q.closeOptions)})),i.res.animate(q.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,(function(){i.res.animate(q.keyframesOpen,q.openOptions)})),window.addEventListener(i.closeTag,(function(){i.res.animate(q.keyframesClose,q.closeOptions)})))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(i.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(i.options.animation&&"inview"===i.options.animation.op.fireAt){var U=i.options.animation.op;i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&!K&&(K=!0,i.res.animate(U.keyframesOpen,U.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
|
+
(()=>{"use strict";var e={d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,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=(s=i.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}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 n(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 s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}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 i(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function a(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,l(s.key),s)}}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,d(s.key),s)}}function d(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}e.r(t),e.d(t,{Button:()=>f});var f=function(e){function t(e,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).text=e,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,s=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,n,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",i.style.height=(null===(n=e.frame)||void 0===n?void 0:n.height)||"50px",t.appendChild(i)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var 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("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,function(e,t){return"function"==typeof t?t.toString():t},4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&u(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(function(){return e=function e(){var t,r,s,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),n.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",i="",o="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach(function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?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:")&&(d=e.replace("opacity:",""))}),r=n.setDefault(r),s=n.setDefault(s),i=n.setDefault(i);var h="";if("0px"!=s&&"0px"!=r&&"0px"!=i?h+="translate3d(".concat(r,", ").concat(s,", ").concat(i,")"):"0px"==s&&"0px"==r||(h+="translate(".concat(r,", ").concat(s,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,function(e,t,r){return t/2+r+" "}),y="transform ".concat(p,", opacity ").concat(p);n.res.style.transition=y}else n.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(n.res.style.transition=""),(n.blastTarget||n.res).style.transform=h,n.res.style.opacity=d}else alert("OPE")}};t.on?n.res.addEventListener(t.on,function(){t.delay?setTimeout(function(){r()},t.delay):r()}):window.addEventListener("load",function(){t.delay?setTimeout(function(){r()},t.delay):r()});var s=function(){var e="";t.values.forEach(function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),n.res.style.opacity="1"}),e&&(n.res.style.transform=e.trim())};if(t.on)n.res.addEventListener("mouseout",function(){t.keep||s()});else{var i=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout(function(){t.keep||s()},i/2+o)}t.hardCSS&&(n.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=l(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,n=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(n):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)})}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach(function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)}),e.sort(function(e,t){return e._value-t._value});var s=e.find(function(e){return"default"===e.breakpoint}),n=function(){for(var r=window.innerWidth,n=s||null,i=0;i<e.length;i++){var o=e[i];if("default"!==o.breakpoint&&r<=o._value){n=o;break}}n&&t(n)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=n,window.addEventListener("resize",n),n()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)})}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])})}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++)switch(n[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]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++){switch(n[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"===n[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var n=(r.min-r.max)*s-r.min;if(n=Math.abs(n),r.min<r.max){var i=(r.max+Math.abs(r.min))*s;n=r.min+i}return n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),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,t,r){var i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=n(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,d=n(e);try{for(d.s();!(u=d.n()).done;){var h=u.value;i.counterIndex++;var p=s(h.range,2),y=p[0],f=p[1],m=parseInt(y),v=parseInt(f),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===t&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(i.useMargin=h.op.margin))}}catch(e){d.e(e)}finally{d.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.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,C,O,j=i.options.shadow.op;console.log("OP IS",j);var W=null!==(T=j.steps)&&void 0!==T?T:1,L=null!==(E=j.colors)&&void 0!==E?E:["gray"],A=null!==(C=j.movements)&&void 0!==C?C:["3px","3px"],z=null!==(O=j.radius)&&void 0!==O?O:"3px";if(1===A.length&&(A=[A[0],A[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var R=[],N=0;N<W;N++){var P,M=null!==(P=L[N])&&void 0!==P?P:L[0],I=A[0],_=A[1];R.push("".concat(I," ").concat(_," ").concat(z," ").concat(M))}i.res.style.boxShadow=R.join(", ")}else{for(var B=[],F=0;F<W;F++){var H,D=null!==(H=L[F])&&void 0!==H?H:L[0],$=A[0],Y=A[1];B.push("drop-shadow(".concat($," ").concat(Y," ").concat(z," ").concat(D,")"))}i.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),i.res&&i.res.querySelector("span"))return;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 s=e.text,n=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);i.res.appendChild(new i.constructor(a).setup({type:"span",id:n.id,animation:n.animation}).set({}).render())}t=o+s.length}var l=new i.constructor(s).setup({type:"span",id:n.id,animation:n.animation}).set(n).render();i.res.appendChild(l)}),t<r.length){var s=r.substring(t);i.res.appendChild(new i.constructor(s).setup({type:"span"}).set({}).render())}}})}else{var X=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&o&&i.res.appendChild(X)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var q=i.options.animation.op;window.addEventListener("sidebar:open",function(){i.res.animate(q.keyframesOpen,q.openOptions)}),window.addEventListener("sidebar:closed",function(){i.res.animate(q.keyframesClose,q.closeOptions)}),i.res.animate(q.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,function(){i.res.animate(q.keyframesOpen,q.openOptions)}),window.addEventListener(i.closeTag,function(){i.res.animate(q.keyframesClose,q.closeOptions)}))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(i.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(i.options.animation&&"inview"===i.options.animation.op.fireAt){var U=i.options.animation.op;i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&!K&&(K=!0,i.res.animate(U.keyframesOpen,U.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})();
|
package/dist/button.esm.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see button.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 s,n,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=(s=i.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||s(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=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 s(e,t){if(e){if("string"==typeof e)return n(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)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function i(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,o(s.key),s)}}function o(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var s=r.call(t,"string");if("object"!=e(s))return s;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,s,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),n.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",i="",o="",a="",l="",c="",u="",h="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?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:")&&(h=e.replace("opacity:",""))})),r=n.setDefault(r),s=n.setDefault(s),i=n.setDefault(i);var d="";if("0px"!=s&&"0px"!=r&&"0px"!=i?d+="translate3d(".concat(r,", ").concat(s,", ").concat(i,")"):"0px"==s&&"0px"==r||(d+="translate(".concat(r,", ").concat(s,")")),o&&(d+=" ".concat(o)),l&&(d+=" ".concat(l)),a&&(d+=" ".concat(a)),c&&(d+=" ".concat(c)),u&&(d+=" ".concat(u)),d){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(p,", opacity ").concat(p);n.res.style.transition=y}else n.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(n.res.style.transition=""),(n.blastTarget||n.res).style.transform=d,n.res.style.opacity=h}else alert("OPE")}};t.on?n.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var s=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),n.res.style.opacity="1"})),e&&(n.res.style.transform=e.trim())};if(t.on)n.res.addEventListener("mouseout",(function(){t.keep||s()}));else{var i=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||s()}),i/2+o)}t.hardCSS&&(n.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:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},s=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,n=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(n):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)}))}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach((function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)})),e.sort((function(e,t){return e._value-t._value}));var s=e.find((function(e){return"default"===e.breakpoint})),n=function(){for(var r=window.innerWidth,n=s||null,i=0;i<e.length;i++){var o=e[i];if("default"!==o.breakpoint&&r<=o._value){n=o;break}}n&&t(n)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=n,window.addEventListener("resize",n),n()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)}))}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,(function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])}))}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++)switch(n[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]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++){switch(n[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"===n[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var n=(r.min-r.max)*s-r.min;if(n=Math.abs(n),r.min<r.max){var i=(r.max+Math.abs(r.min))*s;n=r.min+i}return n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),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,s,n){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,h=r(e);try{for(h.s();!(u=h.n()).done;){var d=u.value;i.counterIndex++;var p=t(d.range,2),y=p[0],f=p[1],m=parseInt(y),v=parseInt(f),g=!0;if(d.target){g=!1;for(var b=0;b<d.target.length;b++)d.target[b]===s&&(g=!0)}a>=m&&a<=v&&g&&(l.push(d.log),c.push(d),d.op&&d.op.margin&&(i.useMargin=d.op.margin))}}catch(e){h.e(e)}finally{h.f()}if(n&&!n.includes("background")&&(i.res.style.background="",i.res.style.backgroundColor=""),i.res.style.textShadow="",n&&!n.includes("border")&&(i.res.style.border=""),n&&!n.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.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,C,O,W=i.options.shadow.op;console.log("OP IS",W);var L=null!==(T=W.steps)&&void 0!==T?T:1,j=null!==(E=W.colors)&&void 0!==E?E:["gray"],A=null!==(C=W.movements)&&void 0!==C?C:["3px","3px"],z=null!==(O=W.radius)&&void 0!==O?O:"3px";if(1===A.length&&(A=[A[0],A[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var R=[],N=0;N<L;N++){var I,M=null!==(I=j[N])&&void 0!==I?I:j[0],P=A[0],B=A[1];R.push("".concat(P," ").concat(B," ").concat(z," ").concat(M))}i.res.style.boxShadow=R.join(", ")}else{for(var _=[],F=0;F<L;F++){var H,D=null!==(H=j[F])&&void 0!==H?H:j[0],$=A[0],Y=A[1];_.push("drop-shadow(".concat($," ").concat(Y," ").concat(z," ").concat(D,")"))}i.res.style.filter=_.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),i.res&&i.res.querySelector("span"))return;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 s=e.text,n=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);i.res.appendChild(new i.constructor(a).setup({type:"span",id:n.id,animation:n.animation}).set({}).render())}t=o+s.length}var l=new i.constructor(s).setup({type:"span",id:n.id,animation:n.animation}).set(n).render();i.res.appendChild(l)})),t<r.length){var s=r.substring(t);i.res.appendChild(new i.constructor(s).setup({type:"span"}).set({}).render())}}}))}else{var X=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&o&&i.res.appendChild(X)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var q=i.options.animation.op;window.addEventListener("sidebar:open",(function(){i.res.animate(q.keyframesOpen,q.openOptions)})),window.addEventListener("sidebar:closed",(function(){i.res.animate(q.keyframesClose,q.closeOptions)})),i.res.animate(q.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,(function(){i.res.animate(q.keyframesOpen,q.openOptions)})),window.addEventListener(i.closeTag,(function(){i.res.animate(q.keyframesClose,q.closeOptions)})))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(i.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(i.options.animation&&"inview"===i.options.animation.op.fireAt){var U=i.options.animation.op;i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&!K&&(K=!0,i.res.animate(U.keyframesOpen,U.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}}],s&&i(e.prototype,s),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,s}();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 s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,u(s.key),s)}}function u(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+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var y=function(){function e(t,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(s=function(e,t,r){return t=d(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,h()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}(this,e)).text=t,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(e,a),t=e,r=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,n,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",i.style.height=(null===(n=e.frame)||void 0===n?void 0:n.height)||"50px",t.appendChild(i)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var 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("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],r&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();export{y as Button};
|
|
1
|
+
var e={};function t(e){return t="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},t(e)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,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=(s=i.call(r)).done)&&(a.push(s.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}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 s(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 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,s=Array(t);r<t;r++)s[r]=e[r];return s}function o(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,a(s.key),s)}}function a(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,"string");if("object"!=t(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}e.d=(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l=function(){return e=function e(){var t,r,s,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,s=function(e){if(console.log("LOBJO IS"),console.log(e),e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),n.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",s="",i="",o="",a="",l="",c="",u="",h="";if(0!==t.values.length){t.values.forEach(function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(s=e.replace("ty:","")),e.startsWith("tz:")?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:")&&(h=e.replace("opacity:",""))}),r=n.setDefault(r),s=n.setDefault(s),i=n.setDefault(i);var d="";if("0px"!=s&&"0px"!=r&&"0px"!=i?d+="translate3d(".concat(r,", ").concat(s,", ").concat(i,")"):"0px"==s&&"0px"==r||(d+="translate(".concat(r,", ").concat(s,")")),o&&(d+=" ".concat(o)),l&&(d+=" ".concat(l)),a&&(d+=" ".concat(a)),c&&(d+=" ".concat(c)),u&&(d+=" ".concat(u)),d){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,function(e,t,r){return t/2+r+" "}),y="transform ".concat(p,", opacity ").concat(p);n.res.style.transition=y}else n.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.transform.static&&(n.res.style.transition=""),(n.blastTarget||n.res).style.transform=d,n.res.style.opacity=h}else alert("OPE")}};t.on?n.res.addEventListener(t.on,function(){t.delay?setTimeout(function(){r()},t.delay):r()}):window.addEventListener("load",function(){t.delay?setTimeout(function(){r()},t.delay):r()});var s=function(){var e="";t.values.forEach(function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),n.res.style.opacity="1"}),e&&(n.res.style.transform=e.trim())};if(t.on)n.res.addEventListener("mouseout",function(){t.keep||s()});else{var i=1e3*parseFloat(t.duration),o=t.closeAfter?t.closeAfter:0;setTimeout(function(){t.keep||s()},i/2+o)}t.hardCSS&&(n.res.style.transform=t.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(e)},(r=a(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var s=this.options.borderObj;return s&&(this.res.style.border="".concat(s.width,"px solid ").concat(s.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,s=e.border.width,n=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=s?"".concat(s,"px solid ").concat(n):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)})}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach(function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)}),e.sort(function(e,t){return e._value-t._value});var s=e.find(function(e){return"default"===e.breakpoint}),n=function(){for(var r=window.innerWidth,n=s||null,i=0;i<e.length;i++){var o=e[i];if("default"!==o.breakpoint&&r<=o._value){n=o;break}}n&&t(n)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=n,window.addEventListener("resize",n),n()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)})}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var s=this.res.style[r];this.prevStyles[s]=this.res.style[s]}this._applyResponsive(e,function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var s in e)"breakpoint"!==s&&"_value"!==s&&"values"!==s&&(t.res.style[s]=e[s])})}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++)switch(n[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]),s=0;s<r.length;s++)for(var n=r[s],i=e[t][n],o=0;o<n.length;o++){switch(n[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"===n[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var s=(e-t.min)/(t.max-t.min);t.min>t.max&&(s=(e-t.max)/(t.min-t.max));var n=(r.min-r.max)*s-r.min;if(n=Math.abs(n),r.min<r.max){var i=(r.max+Math.abs(r.min))*s;n=r.min+i}return n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),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,t,n){var i=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=s(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,h=s(e);try{for(h.s();!(u=h.n()).done;){var d=u.value;i.counterIndex++;var p=r(d.range,2),y=p[0],f=p[1],m=parseInt(y),v=parseInt(f),g=!0;if(d.target){g=!1;for(var b=0;b<d.target.length;b++)d.target[b]===t&&(g=!0)}a>=m&&a<=v&&g&&(l.push(d.log),c.push(d),d.op&&d.op.margin&&(i.useMargin=d.op.margin))}}catch(e){h.e(e)}finally{h.f()}if(n&&!n.includes("background")&&(i.res.style.background="",i.res.style.backgroundColor=""),i.res.style.textShadow="",n&&!n.includes("border")&&(i.res.style.border=""),n&&!n.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.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,C,O,W=i.options.shadow.op;console.log("OP IS",W);var L=null!==(T=W.steps)&&void 0!==T?T:1,j=null!==(E=W.colors)&&void 0!==E?E:["gray"],A=null!==(C=W.movements)&&void 0!==C?C:["3px","3px"],z=null!==(O=W.radius)&&void 0!==O?O:"3px";if(1===A.length&&(A=[A[0],A[0]]),"FlexRowLayoutElement"===i.getType()||"LayoutWrapperElement"===i.getType()){for(var R=[],N=0;N<L;N++){var P,I=null!==(P=j[N])&&void 0!==P?P:j[0],M=A[0],B=A[1];R.push("".concat(M," ").concat(B," ").concat(z," ").concat(I))}i.res.style.boxShadow=R.join(", ")}else{for(var _=[],F=0;F<L;F++){var H,D=null!==(H=j[F])&&void 0!==H?H:j[0],$=A[0],Y=A[1];_.push("drop-shadow(".concat($," ").concat(Y," ").concat(z," ").concat(D,")"))}i.res.style.filter=_.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==i.index&&(i.res.style.margin=G[Number(i.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),i.res&&i.res.querySelector("span"))return;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 s=e.text,n=e.style||{};if(t<r.length){var o=r.indexOf(s,t);if(o>t){var a=r.substring(t,o);i.res.appendChild(new i.constructor(a).setup({type:"span",id:n.id,animation:n.animation}).set({}).render())}t=o+s.length}var l=new i.constructor(s).setup({type:"span",id:n.id,animation:n.animation}).set(n).render();i.res.appendChild(l)}),t<r.length){var s=r.substring(t);i.res.appendChild(new i.constructor(s).setup({type:"span"}).set({}).render())}}})}else{var X=new i.constructor(i.prevText).set({}).render();i.prevText&&i.prevText.length>0&&o&&i.res.appendChild(X)}if(l.includes("animation")){if(i.options.animation&&!i.hasAnimated&&!i.options.animation.op.fireAt){console.warn(i.openTag),i.hasAnimated=!0;var q=i.options.animation.op;window.addEventListener("sidebar:open",function(){i.res.animate(q.keyframesOpen,q.openOptions)}),window.addEventListener("sidebar:closed",function(){i.res.animate(q.keyframesClose,q.closeOptions)}),i.res.animate(q.keyframesClose,{duration:0,fill:"forwards"}),i.openTag&&i.closeTag&&(window.addEventListener(i.openTag,function(){i.res.animate(q.keyframesOpen,q.openOptions)}),window.addEventListener(i.closeTag,function(){i.res.animate(q.keyframesClose,q.closeOptions)}))}if(i.options.animation&&i.options.animation.op.fireAt&&i.options.animation.op.fireAt.endsWith("px")){var J=i.options.animation.op;i.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var Q=function(){window.scrollY>parseFloat(J.fireAt)&&(i.res.animate(J.keyframesOpen,J.openOptions),window.removeEventListener("scroll",Q))};window.addEventListener("scroll",Q)}if(i.options.animation&&"inview"===i.options.animation.op.fireAt){var U=i.options.animation.op;i.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&!K&&(K=!0,i.res.animate(U.keyframesOpen,U.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&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,h(s.key),s)}}function h(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var f=function(){function e(t,r){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(s=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,e)).text=t,s.res=null,s.val=r,s.setup(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(e,l),t=e,r=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var s,n,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(s=e.frame)||void 0===s?void 0:s.width)||"50px",i.style.height=(null===(n=e.frame)||void 0===n?void 0:n.height)||"50px",t.appendChild(i)}else{var o=document.createTextNode(this.text.replace("$",this.val));t.appendChild(o)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var 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("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=s):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,s){return e&&t&&r&&s?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=s):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,s=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(s.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,function(e,t){return"function"==typeof t?t.toString():t},4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();export{f as Button};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[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 o(e){return o="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},o(e)}function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}e.r(t),e.d(t,{CardGen:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,o){console.log("PP"),console.log(o);for(var n=[],r=0;r<e.children.length;r++){var a=e.children[r];"text"===a&&this.insertTextToCard(n,t,e,o),"image"!==a||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===a&&(t.op?n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,o,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var r="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),a=n.ops[t.op.theme.toLowerCase()].blast.code;o.backgroundCard||(a=n.ops[t.op.theme.toLowerCase()].blastFun(1));var c=this.insertTextBetween(r,a);e.push(c)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var o=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(o){var n=o.index+o[0].length,r=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(r),r}return e}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();module.exports=t})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function o(e){return o="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},o(e)}function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}e.d(t,{Z:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,o){console.log("PP"),console.log(o);for(var n=[],r=0;r<e.children.length;r++){var a=e.children[r];"text"===a&&this.insertTextToCard(n,t,e,o),"image"!==a||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===a&&(t.op?n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,o,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var r="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),a=n.ops[t.op.theme.toLowerCase()].blast.code;o.backgroundCard||(a=n.ops[t.op.theme.toLowerCase()].blastFun(1));var c=this.insertTextBetween(r,a);e.push(c)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var o=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(o){var n=o.index+o[0].length,r=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(r),r}return e}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const c=t.Z;export{c as CardGen};
|
package/dist/cardGetter.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see cardGetter.esm.js.LICENSE.txt */
|
|
2
|
-
var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function o(e){return o="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},o(e)}function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}e.d(t,{Z:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,o){console.log("PP"),console.log(o);for(var n=[],r=0;r<e.children.length;r++){var a=e.children[r];"text"===a&&this.insertTextToCard(n,t,e,o),"image"!==a||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===a&&(t.op?n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,o,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var r="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),a=n.ops[t.op.theme.toLowerCase()].blast.code;o.backgroundCard||(a=n.ops[t.op.theme.toLowerCase()].blastFun(1));var c=this.insertTextBetween(r,a);e.push(c)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var o=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(o){var n=o.index+o[0].length,r=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(r),r}return e}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()
|
|
2
|
+
var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function o(e){return o="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},o(e)}function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}e.d(t,{Z:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,o){console.log("PP"),console.log(o);for(var n=[],r=0;r<e.children.length;r++){var a=e.children[r];"text"===a&&this.insertTextToCard(n,t,e,o),"image"!==a||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===a&&(t.op?n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(o.tabSpace(6)," ").concat(o.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,o,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var r="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),a=n.ops[t.op.theme.toLowerCase()].blast.code;o.backgroundCard||(a=n.ops[t.op.theme.toLowerCase()].blastFun(1));var c=this.insertTextBetween(r,a);e.push(c)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var o=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(o){var n=o.index+o[0].length,r=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(r),r}return e}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const c=t.Z;export{c as CardGen};
|
package/dist/center.cjs.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see center.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,s,o,i,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw s}}return a}}(e,t)||o(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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 i,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,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function o(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 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,p(n.key),n)}}function p(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=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)}e.r(t),e.d(t,{Center:()=>h});var h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=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,d()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).setup(),e}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(){var e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="center",e.style.alignItems="center",e.style.width="100%",e.style.height="auto",e.style.margin=0,e.style.padding=0,this.res=e}},{key:"set",value:function(e){return e.id&&this.res.setAttribute("id",id),this.commonMethods(e),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||(alert("j"),this.res.style.margin=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(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,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="",o="",i="",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:")?o=e.replace("tz:",""):e.startsWith("scale(")?i=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),o=s.setDefault(o);var d="";if("0px"!=n&&"0px"!=r&&"0px"!=o?d+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(d+="translate(".concat(r,", ").concat(n,")")),i&&(d+=" ".concat(i)),l&&(d+=" ".concat(l)),a&&(d+=" ".concat(a)),c&&(d+=" ".concat(c)),u&&(d+=" ".concat(u)),d){if(e.op.transform.duration){var f=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(f,", opacity ").concat(f);s.res.style.transition=y}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=d,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 o=1e3*parseFloat(t.duration),i=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),o/2+i)}t.hardCSS&&(s.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},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,s=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(s):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)}))}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach((function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)})),e.sort((function(e,t){return e._value-t._value}));var n=e.find((function(e){return"default"===e.breakpoint})),s=function(){for(var r=window.innerWidth,s=n||null,o=0;o<e.length;o++){var i=e[o];if("default"!==i.breakpoint&&r<=i._value){s=i;break}}s&&t(s)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=s,window.addEventListener("resize",s),s()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,(function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)}))}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(e,(function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n in e)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(t.res.style[n]=e[n])}))}},{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],o=e[t][s],i=0;i<s.length;i++)switch(s[i]){case"a":this.res.style.padding=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.paddingTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.paddingLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.paddingRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.paddingBottom=this.isNumber(o)?"".concat(o,"px"):o}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],o=e[t][s],i=0;i<s.length;i++){switch(s[i]){case"a":this.res.style.margin=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.marginTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.marginLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.marginRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.marginBottom=this.isNumber(o)?"".concat(o,"px"):o}"auto"===s[i]&&(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 o=(r.max+Math.abs(r.min))*n;s=r.min+o}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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 o=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var i,a=s(e);try{for(a.s();!(i=a.n()).done;){var l=i.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(i){var a=window.visualViewport.width,l=[],c=[];o.resCopy=o.res,o.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var u,p=s(e);try{for(p.s();!(u=p.n()).done;){var d=u.value;o.counterIndex++;var f=n(d.range,2),y=f[0],h=f[1],v=parseInt(y),m=parseInt(h),g=!0;if(d.target){g=!1;for(var b=0;b<d.target.length;b++)d.target[b]===t&&(g=!0)}a>=v&&a<=m&&g&&(l.push(d.log),c.push(d),d.op&&d.op.margin&&(o.useMargin=d.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(r&&!r.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",r&&!r.includes("border")&&(o.res.style.border=""),r&&!r.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(console.log(o.options.background),o.res.style.background=o.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(o.res.style.position="relative"),l.includes("blast")){var x,k=c.filter((function(e){return"blast"===e.log}))[0].op.color,w=null!==(x=c.filter((function(e){return"blast"===e.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=k,o.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter((function(e){return"filter"===e.log}))[0].op.filter;o.res.style.filter=S}if(l.includes("background")&&(o.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,C,j=o.options.shadow.op;console.log("OP IS",j);var W=null!==(T=j.steps)&&void 0!==T?T:1,A=null!==(E=j.colors)&&void 0!==E?E:["gray"],L=null!==(O=j.movements)&&void 0!==O?O:["3px","3px"],I=null!==(C=j.radius)&&void 0!==C?C:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var P=[],R=0;R<W;R++){var N,_=null!==(N=A[R])&&void 0!==N?N:A[0],z=L[0],M=L[1];P.push("".concat(z," ").concat(M," ").concat(I," ").concat(_))}o.res.style.boxShadow=P.join(", ")}else{for(var B=[],F=0;F<W;F++){var H,D=null!==(H=A[F])&&void 0!==H?H:A[0],Y=L[0],X=L[1];B.push("drop-shadow(".concat(Y," ").concat(X," ").concat(I," ").concat(D,")"))}o.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==o.index&&(o.res.style.margin=G[Number(o.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach((function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=o.prevText||"";if(e.op.parts.forEach((function(e){var n=e.text,s=e.style||{};if(t<r.length){var i=r.indexOf(n,t);if(i>t){var a=r.substring(t,i);o.res.appendChild(new o.constructor(a).setup({type:"span",id:s.id,animation:s.animation}).set({}).render())}t=i+n.length}var l=new o.constructor(n).setup({type:"span",id:s.id,animation:s.animation}).set(s).render();o.res.appendChild(l)})),t<r.length){var n=r.substring(t);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}}))}else{var q=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(q)}if(l.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){console.warn(o.openTag),o.hasAnimated=!0;var Q=o.options.animation.op;window.addEventListener("sidebar:open",(function(){o.res.animate(Q.keyframesOpen,Q.openOptions)})),window.addEventListener("sidebar:closed",(function(){o.res.animate(Q.keyframesClose,Q.closeOptions)})),o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(window.addEventListener(o.openTag,(function(){o.res.animate(Q.keyframesOpen,Q.openOptions)})),window.addEventListener(o.closeTag,(function(){o.res.animate(Q.keyframesClose,Q.closeOptions)})))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var U=o.options.animation.op;o.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(U.fireAt)&&(o.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var J=o.options.animation.op;o.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&!K&&(K=!0,o.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())}))})).observe(o.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
|
+
(()=>{"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,s,o,i,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.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&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw s}}return a}}(e,t)||o(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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 i,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,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function o(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 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,p(n.key),n)}}function p(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=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)}e.r(t),e.d(t,{Center:()=>h});var h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=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,d()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).setup(),e}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(){var e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="center",e.style.alignItems="center",e.style.width="100%",e.style.height="auto",e.style.margin=0,e.style.padding=0,this.res=e}},{key:"set",value:function(e){return e.id&&this.res.setAttribute("id",id),this.commonMethods(e),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||(alert("j"),this.res.style.margin=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(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,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="",o="",i="",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:")?o=e.replace("tz:",""):e.startsWith("scale(")?i=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),o=s.setDefault(o);var d="";if("0px"!=n&&"0px"!=r&&"0px"!=o?d+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(d+="translate(".concat(r,", ").concat(n,")")),i&&(d+=" ".concat(i)),l&&(d+=" ".concat(l)),a&&(d+=" ".concat(a)),c&&(d+=" ".concat(c)),u&&(d+=" ".concat(u)),d){if(e.op.transform.duration){var f=e.op.transform.duration.replace(/^(\d+)(s)-/,function(e,t,r){return t/2+r+" "}),y="transform ".concat(f,", opacity ").concat(f);s.res.style.transition=y}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=d,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 o=1e3*parseFloat(t.duration),i=t.closeAfter?t.closeAfter:0;setTimeout(function(){t.keep||n()},o/2+i)}t.hardCSS&&(s.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},this.openedElements=new WeakMap},t=[{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop),e.keySet&&this.keySet(e.keySet),e.hide&&this.isHidden(e.hide),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,s=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(s):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying padding for",e.breakpoint),t.pad(e.values)})}},{key:"_applyResponsive",value:function(e,t){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};e.forEach(function(e){void 0!==r[e.breakpoint]?e._value=r[e.breakpoint]:e._value=parseInt(e.breakpoint,10)}),e.sort(function(e,t){return e._value-t._value});var n=e.find(function(e){return"default"===e.breakpoint}),s=function(){for(var r=window.innerWidth,s=n||null,o=0;o<e.length;o++){var i=e[o];if("default"!==i.breakpoint&&r<=i._value){s=i;break}}s&&t(s)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=s,window.addEventListener("resize",s),s()}},{key:"resmar",value:function(e){var t=this;this._applyResponsive(e,function(e){console.log("Applying margin for",e.breakpoint),t.mar(e.values)})}},{key:"resprop",value:function(e){var t=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(e,function(e){for(var r in console.log("Applying styles for",e.breakpoint),t.prevStyles)t.res.style[r]=t.prevStyles[r];for(var n in e)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(t.res.style[n]=e[n])})}},{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],o=e[t][s],i=0;i<s.length;i++)switch(s[i]){case"a":this.res.style.padding=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.paddingTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.paddingLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.paddingRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.paddingBottom=this.isNumber(o)?"".concat(o,"px"):o}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],o=e[t][s],i=0;i<s.length;i++){switch(s[i]){case"a":this.res.style.margin=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.marginTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.marginLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.marginRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.marginBottom=this.isNumber(o)?"".concat(o,"px"):o}"auto"===s[i]&&(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 o=(r.max+Math.abs(r.min))*n;s=r.min+o}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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 o=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var i,a=s(e);try{for(a.s();!(i=a.n()).done;){var l=i.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(i){var a=window.visualViewport.width,l=[],c=[];o.resCopy=o.res,o.storedQueries=e.map(function(e){return e.target}).filter(function(e){return null!=e});var u,p=s(e);try{for(p.s();!(u=p.n()).done;){var d=u.value;o.counterIndex++;var f=n(d.range,2),y=f[0],h=f[1],v=parseInt(y),m=parseInt(h),g=!0;if(d.target){g=!1;for(var b=0;b<d.target.length;b++)d.target[b]===t&&(g=!0)}a>=v&&a<=m&&g&&(l.push(d.log),c.push(d),d.op&&d.op.margin&&(o.useMargin=d.op.margin))}}catch(e){p.e(e)}finally{p.f()}if(r&&!r.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",r&&!r.includes("border")&&(o.res.style.border=""),r&&!r.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(console.log(o.options.background),o.res.style.background=o.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(o.res.style.position="relative"),l.includes("blast")){var x,k=c.filter(function(e){return"blast"===e.log})[0].op.color,w=null!==(x=c.filter(function(e){return"blast"===e.log})[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=k,o.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter(function(e){return"filter"===e.log})[0].op.filter;o.res.style.filter=S}if(l.includes("background")&&(o.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),l.includes("shadow")){var T,E,O,C,j=o.options.shadow.op;console.log("OP IS",j);var W=null!==(T=j.steps)&&void 0!==T?T:1,A=null!==(E=j.colors)&&void 0!==E?E:["gray"],L=null!==(O=j.movements)&&void 0!==O?O:["3px","3px"],I=null!==(C=j.radius)&&void 0!==C?C:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var P=[],R=0;R<W;R++){var N,_=null!==(N=A[R])&&void 0!==N?N:A[0],z=L[0],M=L[1];P.push("".concat(z," ").concat(M," ").concat(I," ").concat(_))}o.res.style.boxShadow=P.join(", ")}else{for(var B=[],F=0;F<W;F++){var H,D=null!==(H=A[F])&&void 0!==H?H:A[0],Y=L[0],X=L[1];B.push("drop-shadow(".concat(Y," ").concat(X," ").concat(I," ").concat(D,")"))}o.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var G=e[b].op.offsets;G&&void 0!==o.index&&(o.res.style.margin=G[Number(o.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach(function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=o.prevText||"";if(e.op.parts.forEach(function(e){var n=e.text,s=e.style||{};if(t<r.length){var i=r.indexOf(n,t);if(i>t){var a=r.substring(t,i);o.res.appendChild(new o.constructor(a).setup({type:"span",id:s.id,animation:s.animation}).set({}).render())}t=i+n.length}var l=new o.constructor(n).setup({type:"span",id:s.id,animation:s.animation}).set(s).render();o.res.appendChild(l)}),t<r.length){var n=r.substring(t);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var q=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(q)}if(l.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){console.warn(o.openTag),o.hasAnimated=!0;var Q=o.options.animation.op;window.addEventListener("sidebar:open",function(){o.res.animate(Q.keyframesOpen,Q.openOptions)}),window.addEventListener("sidebar:closed",function(){o.res.animate(Q.keyframesClose,Q.closeOptions)}),o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(window.addEventListener(o.openTag,function(){o.res.animate(Q.keyframesOpen,Q.openOptions)}),window.addEventListener(o.closeTag,function(){o.res.animate(Q.keyframesClose,Q.closeOptions)}))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var U=o.options.animation.op;o.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var $=function(){window.scrollY>parseFloat(U.fireAt)&&(o.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",$))};window.addEventListener("scroll",$)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var J=o.options.animation.op;o.res.animate(J.keyframesClose,{duration:0,fill:"forwards"});var K=!1;new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&!K&&(K=!0,o.res.animate(J.keyframesOpen,J.openOptions),t.disconnect())})}).observe(o.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})();
|