{"version":3,"file":"application-WixMuj_c.js","sources":["../../../app/javascript/vendor/tw-elements/src/js/free/components/collapse.js","../../../app/javascript/saturn/saturn.js","../../../app/javascript/saturn/wheel.js","../../../app/javascript/shared.js"],"sourcesContent":["import {\r\n getElement,\r\n getSelectorFromElement,\r\n getElementFromSelector,\r\n reflow,\r\n typeCheckConfig,\r\n} from \"../../util/index\";\r\nimport Data from \"../../dom/data\";\r\nimport EventHandler from \"../../dom/event-handler\";\r\nimport Manipulator from \"../../dom/manipulator\";\r\nimport SelectorEngine from \"../../dom/selector-engine\";\r\nimport BaseComponent from \"../../base-component\";\r\n\r\n/*\r\n------------------------------------------------------------------------\r\nConstants\r\n------------------------------------------------------------------------\r\n*/\r\n\r\nconst NAME = \"collapse\";\r\nconst DATA_KEY = \"twe.collapse\";\r\nconst EVENT_KEY = `.${DATA_KEY}`;\r\n\r\nconst Default = {\r\n toggle: true,\r\n parent: null,\r\n};\r\n\r\nconst DefaultType = {\r\n toggle: \"boolean\",\r\n parent: \"(null|element)\",\r\n};\r\n\r\nconst EVENT_SHOW = `show${EVENT_KEY}`;\r\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\r\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\r\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\r\n\r\nconst ATTR_SHOW = \"data-twe-collapse-show\";\r\nconst ATTR_COLLAPSED = \"data-twe-collapse-collapsed\";\r\nconst ATTR_COLLAPSING = \"data-twe-collapse-collapsing\";\r\nconst ATTR_HORIZONTAL = \"data-twe-collapse-horizontal\";\r\nconst ATTR_COLLAPSE_ITEM = \"data-twe-collapse-item\";\r\nconst ATTR_COLLAPSE_DEEPER_CHILDREN = `:scope [${ATTR_COLLAPSE_ITEM}] [${ATTR_COLLAPSE_ITEM}]`;\r\n\r\nconst WIDTH = \"width\";\r\nconst HEIGHT = \"height\";\r\n\r\nconst SELECTOR_DATA_ACTIVES =\r\n \"[data-twe-collapse-item][data-twe-collapse-show], [data-twe-collapse-item][data-twe-collapse-collapsing]\";\r\nconst SELECTOR_DATA_COLLAPSE_INIT = \"[data-twe-collapse-init]\";\r\n\r\nconst DefaultClasses = {\r\n visible: \"!visible\",\r\n hidden: \"hidden\",\r\n baseTransition:\r\n \"overflow-hidden duration-[350ms] ease-[cubic-bezier(0.25,0.1,0.25,1.0)] motion-reduce:transition-none\",\r\n collapsing:\r\n \"h-0 transition-[height] overflow-hidden duration-[350ms] ease-[cubic-bezier(0.25,0.1,0.25,1.0)] motion-reduce:transition-none\",\r\n collapsingHorizontal:\r\n \"w-0 h-auto transition-[width] overflow-hidden duration-[350ms] ease-[cubic-bezier(0.25,0.1,0.25,1.0)] motion-reduce:transition-none\",\r\n};\r\n\r\nconst DefaultClassesType = {\r\n visible: \"string\",\r\n hidden: \"string\",\r\n baseTransition: \"string\",\r\n collapsing: \"string\",\r\n collapsingHorizontal: \"string\",\r\n};\r\n\r\n/*\r\n------------------------------------------------------------------------\r\nClass Definition\r\n------------------------------------------------------------------------\r\n*/\r\n\r\nclass Collapse extends BaseComponent {\r\n constructor(element, config, classes) {\r\n super(element);\r\n\r\n this._isTransitioning = false;\r\n this._config = this._getConfig(config);\r\n this._classes = this._getClasses(classes);\r\n this._triggerArray = [];\r\n\r\n const toggleList = SelectorEngine.find(SELECTOR_DATA_COLLAPSE_INIT);\r\n\r\n for (let i = 0, len = toggleList.length; i < len; i++) {\r\n const elem = toggleList[i];\r\n const selector = getSelectorFromElement(elem);\r\n const filterElement = SelectorEngine.find(selector).filter(\r\n (foundElem) => foundElem === this._element\r\n );\r\n\r\n if (selector !== null && filterElement.length) {\r\n this._selector = selector;\r\n this._triggerArray.push(elem);\r\n }\r\n }\r\n\r\n this._initializeChildren();\r\n\r\n if (!this._config.parent) {\r\n this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());\r\n }\r\n\r\n if (this._config.toggle) {\r\n this.toggle();\r\n }\r\n }\r\n\r\n // Getters\r\n\r\n static get Default() {\r\n return Default;\r\n }\r\n\r\n static get NAME() {\r\n return NAME;\r\n }\r\n\r\n // Public\r\n\r\n toggle() {\r\n if (this._isShown()) {\r\n this.hide();\r\n } else {\r\n this.show();\r\n }\r\n }\r\n\r\n show() {\r\n if (this._isTransitioning || this._isShown()) {\r\n return;\r\n }\r\n\r\n let actives = [];\r\n let activesData;\r\n\r\n if (this._config.parent) {\r\n const children = SelectorEngine.find(\r\n ATTR_COLLAPSE_DEEPER_CHILDREN,\r\n this._config.parent\r\n );\r\n actives = SelectorEngine.find(\r\n SELECTOR_DATA_ACTIVES,\r\n this._config.parent\r\n ).filter((elem) => !children.includes(elem)); // remove children if greater depth\r\n }\r\n\r\n const container = SelectorEngine.findOne(this._selector);\r\n if (actives.length) {\r\n const tempActiveData = actives.find((elem) => container !== elem);\r\n activesData = tempActiveData\r\n ? Collapse.getInstance(tempActiveData)\r\n : null;\r\n\r\n if (activesData && activesData._isTransitioning) {\r\n return;\r\n }\r\n }\r\n\r\n const startEvent = EventHandler.trigger(this._element, EVENT_SHOW);\r\n if (startEvent.defaultPrevented) {\r\n return;\r\n }\r\n\r\n actives.forEach((elemActive) => {\r\n if (container !== elemActive) {\r\n Collapse.getOrCreateInstance(elemActive, { toggle: false }).hide();\r\n }\r\n\r\n if (!activesData) {\r\n Data.setData(elemActive, DATA_KEY, null);\r\n }\r\n });\r\n\r\n const dimension = this._getDimension();\r\n const CLASS_NAME_TRANSITION =\r\n dimension === \"height\"\r\n ? this._classes.collapsing\r\n : this._classes.collapsingHorizontal;\r\n\r\n Manipulator.removeClass(this._element, this._classes.visible);\r\n Manipulator.removeClass(this._element, this._classes.hidden);\r\n Manipulator.addClass(this._element, CLASS_NAME_TRANSITION);\r\n this._element.removeAttribute(ATTR_COLLAPSE_ITEM);\r\n this._element.setAttribute(ATTR_COLLAPSING, \"\");\r\n\r\n this._element.style[dimension] = 0;\r\n\r\n this._addAriaAndCollapsedClass(this._triggerArray, true);\r\n this._isTransitioning = true;\r\n\r\n const complete = () => {\r\n this._isTransitioning = false;\r\n\r\n Manipulator.removeClass(this._element, this._classes.hidden);\r\n Manipulator.removeClass(this._element, CLASS_NAME_TRANSITION);\r\n Manipulator.addClass(this._element, this._classes.visible);\r\n this._element.removeAttribute(ATTR_COLLAPSING);\r\n this._element.setAttribute(ATTR_COLLAPSE_ITEM, \"\");\r\n this._element.setAttribute(ATTR_SHOW, \"\");\r\n\r\n this._element.style[dimension] = \"\";\r\n\r\n EventHandler.trigger(this._element, EVENT_SHOWN);\r\n };\r\n\r\n const capitalizedDimension =\r\n dimension[0].toUpperCase() + dimension.slice(1);\r\n const scrollSize = `scroll${capitalizedDimension}`;\r\n\r\n this._queueCallback(complete, this._element, true);\r\n this._element.style[dimension] = `${this._element[scrollSize]}px`;\r\n }\r\n\r\n hide() {\r\n if (this._isTransitioning || !this._isShown()) {\r\n return;\r\n }\r\n\r\n const startEvent = EventHandler.trigger(this._element, EVENT_HIDE);\r\n if (startEvent.defaultPrevented) {\r\n return;\r\n }\r\n\r\n const dimension = this._getDimension();\r\n const CLASS_NAME_TRANSITION =\r\n dimension === \"height\"\r\n ? this._classes.collapsing\r\n : this._classes.collapsingHorizontal;\r\n\r\n this._element.style[dimension] = `${\r\n this._element.getBoundingClientRect()[dimension]\r\n }px`;\r\n\r\n reflow(this._element);\r\n\r\n Manipulator.addClass(this._element, CLASS_NAME_TRANSITION);\r\n Manipulator.removeClass(this._element, this._classes.visible);\r\n Manipulator.removeClass(this._element, this._classes.hidden);\r\n this._element.setAttribute(ATTR_COLLAPSING, \"\");\r\n this._element.removeAttribute(ATTR_COLLAPSE_ITEM);\r\n this._element.removeAttribute(ATTR_SHOW);\r\n\r\n const triggerArrayLength = this._triggerArray.length;\r\n for (let i = 0; i < triggerArrayLength; i++) {\r\n const trigger = this._triggerArray[i];\r\n const elem = getElementFromSelector(trigger);\r\n\r\n if (elem && !this._isShown(elem)) {\r\n this._addAriaAndCollapsedClass([trigger], false);\r\n }\r\n }\r\n\r\n this._isTransitioning = true;\r\n\r\n const complete = () => {\r\n this._isTransitioning = false;\r\n\r\n Manipulator.removeClass(this._element, CLASS_NAME_TRANSITION);\r\n Manipulator.addClass(this._element, this._classes.visible);\r\n Manipulator.addClass(this._element, this._classes.hidden);\r\n\r\n this._element.removeAttribute(ATTR_COLLAPSING);\r\n this._element.setAttribute(ATTR_COLLAPSE_ITEM, \"\");\r\n\r\n EventHandler.trigger(this._element, EVENT_HIDDEN);\r\n };\r\n\r\n this._element.style[dimension] = \"\";\r\n\r\n this._queueCallback(complete, this._element, true);\r\n }\r\n\r\n _isShown(element = this._element) {\r\n return element.hasAttribute(ATTR_SHOW);\r\n }\r\n\r\n // Private\r\n _getConfig(config) {\r\n config = {\r\n ...Default,\r\n ...Manipulator.getDataAttributes(this._element),\r\n ...config,\r\n };\r\n config.toggle = Boolean(config.toggle); // Coerce string values\r\n config.parent = getElement(config.parent);\r\n typeCheckConfig(NAME, config, DefaultType);\r\n return config;\r\n }\r\n\r\n _getClasses(classes) {\r\n const dataAttributes = Manipulator.getDataClassAttributes(this._element);\r\n\r\n classes = {\r\n ...DefaultClasses,\r\n ...dataAttributes,\r\n ...classes,\r\n };\r\n\r\n typeCheckConfig(NAME, classes, DefaultClassesType);\r\n return classes;\r\n }\r\n\r\n _getDimension() {\r\n return this._element.hasAttribute(ATTR_HORIZONTAL) ? WIDTH : HEIGHT;\r\n }\r\n\r\n _initializeChildren() {\r\n if (!this._config.parent) {\r\n return;\r\n }\r\n\r\n const children = SelectorEngine.find(\r\n ATTR_COLLAPSE_DEEPER_CHILDREN,\r\n this._config.parent\r\n );\r\n SelectorEngine.find(SELECTOR_DATA_COLLAPSE_INIT, this._config.parent)\r\n .filter((elem) => !children.includes(elem))\r\n .forEach((element) => {\r\n const selected = getElementFromSelector(element);\r\n\r\n if (selected) {\r\n this._addAriaAndCollapsedClass([element], this._isShown(selected));\r\n }\r\n });\r\n }\r\n\r\n _addAriaAndCollapsedClass(triggerArray, isOpen) {\r\n if (!triggerArray.length) {\r\n return;\r\n }\r\n\r\n triggerArray.forEach((elem) => {\r\n if (isOpen) {\r\n elem.removeAttribute(ATTR_COLLAPSED);\r\n } else {\r\n elem.setAttribute(`${ATTR_COLLAPSED}`, \"\");\r\n }\r\n\r\n elem.setAttribute(\"aria-expanded\", isOpen);\r\n });\r\n }\r\n\r\n // Static\r\n\r\n static jQueryInterface(config) {\r\n return this.each(function () {\r\n const _config = {};\r\n if (typeof config === \"string\" && /show|hide/.test(config)) {\r\n _config.toggle = false;\r\n }\r\n\r\n const data = Collapse.getOrCreateInstance(this, _config);\r\n\r\n if (typeof config === \"string\") {\r\n if (typeof data[config] === \"undefined\") {\r\n throw new TypeError(`No method named \"${config}\"`);\r\n }\r\n\r\n data[config]();\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport default Collapse;\r\n","import {\n Collapse,\n Dropdown,\n Input,\n initTWE,\n} from '../vendor/tw-elements/src/js/tw-elements.pro.es.js' // this is the PRO TW-ELEMENTS, full source version\n\ndocument.addEventListener('turbo:load', () => {\n initTWE({ Input, Collapse, Dropdown })\n})\n","// TODO this is def not the rails way to\n// - expose JS functions to a rails partial and\n// - pass data from rails to the JS function...\n// refactor to the \"right\" way\nwindow.createWheel = createWheel\nfunction createWheel({ elementId, chartData, transitData = null, debug }) {\n // For more settings, see: [current repo]/astrochart/project/src/settings.ts:11\n const settings = {\n ASPECTS: {\n conjunction: { degree: 0, orbit: 10, color: 'transparent' },\n square: { degree: 90, orbit: 5, color: '#AC8CBC' },\n trine: { degree: 120, orbit: 5, color: '#33cccc' },\n sextile: { degree: 60, orbit: 5, color: '#ddd' },\n opposition: { degree: 180, orbit: 7, color: '#75F999' },\n },\n\n COLORS_SIGNS: [\n '#2F90A1',\n '#8EC9BD',\n '#54ACB7',\n '#2F90A1',\n '#8EC9BD',\n '#54ACB7',\n '#2F90A1',\n '#8EC9BD',\n '#54ACB7',\n '#2F90A1',\n '#8EC9BD',\n '#54ACB7',\n ],\n\n MARGIN: 70,\n\n SYMBOL_NNODE: 'North Node',\n SYMBOL_SNODE: 'South Node',\n SYMBOL_AS: 'Ascendant',\n SYMBOL_DS: 'Descendant',\n SYMBOL_MC: 'Midheaven',\n SYMBOL_IC: 'Nadir',\n\n DEBUG: debug,\n }\n\n const radix = new window.astrochart.Chart(elementId, 600, 600, settings).radix(chartData)\n\n // Aspects: default is planet to planet, but it is possible add some important points:\n radix.addPointsOfInterest({\n As: [chartData.cusps[0]],\n Ic: [chartData.cusps[3]],\n Ds: [chartData.cusps[6]],\n Mc: [chartData.cusps[9]],\n })\n\n if (transitData != null) {\n const transits = radix.transit(transitData)\n transits.aspects()\n } else {\n radix.aspects()\n }\n}\n","import { Turbo } from '@hotwired/turbo-rails'\nTurbo.start()\n\nimport './controllers'\nimport './saturn/saturn'\nimport './saturn/wheel'\n"],"names":["NAME","DATA_KEY","EVENT_KEY","Default","DefaultType","EVENT_SHOW","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","ATTR_SHOW","ATTR_COLLAPSED","ATTR_COLLAPSING","ATTR_HORIZONTAL","ATTR_COLLAPSE_ITEM","ATTR_COLLAPSE_DEEPER_CHILDREN","WIDTH","HEIGHT","SELECTOR_DATA_ACTIVES","SELECTOR_DATA_COLLAPSE_INIT","DefaultClasses","DefaultClassesType","Collapse","BaseComponent","element","config","classes","toggleList","SelectorEngine","len","elem","selector","getSelectorFromElement","filterElement","foundElem","actives","activesData","children","container","tempActiveData","EventHandler","elemActive","Data","dimension","CLASS_NAME_TRANSITION","Manipulator","complete","scrollSize","reflow","triggerArrayLength","i","trigger","getElementFromSelector","getElement","typeCheckConfig","dataAttributes","selected","triggerArray","isOpen","_config","data","initTWE","Input","Dropdown","createWheel","elementId","chartData","transitData","debug","settings","radix","Turbo.start"],"mappings":"mIAmBA,MAAMA,EAAO,WACPC,EAAW,eACXC,EAAY,IAAID,CAAQ,GAExBE,EAAU,CACd,OAAQ,GACR,OAAQ,IACV,EAEMC,EAAc,CAClB,OAAQ,UACR,OAAQ,gBACV,EAEMC,EAA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