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KAAKykC,YAAa,WACjF,CAEAD,UAAAA,GACExkC,KAAKykC,YAAY/jC,UAAUuB,OAAO,SACpC,CAEAqiC,UAAAA,GACEtkC,KAAKykC,YAAY/jC,UAAUyB,IAAI,SACjC,E,yDCzBF,wBAA6BvC,EAAAA,GAC3BC,eAAiB,CAAC,OAAQ,QAC1BA,cAAa,OACX6kC,MAAOtjC,SADI,GAIbujC,SAAAA,GACE3kC,KAAKmI,QACP,CAEAy8B,mBAAAA,GACE5kC,KAAKmI,QACP,CAEA08B,sBAAAA,GACE7kC,KAAKmI,QACP,CAEAA,MAAAA,GACEnI,KAAK8kC,WAAWpkC,UAAUC,OAAO,SAAUX,KAAK+kC,YAAYhjC,SAAW/B,KAAKglC,WAC9E,E,oECRF,MAAAC,EAAA,CACA,MACA,oJACA,eACA,4HACA,aACA,6EACA,gBACA,yFACA,eACA,4EACA,IACA,kKACA,KACA,iGACA,MACA,yDAGA,ICjC2M,EDiC3M,CACAvwB,MAAA,CACAhM,KAAA,CACAuB,KAAAvC,OACA6hB,UAAA,IAIAxU,SAAA,CACAvK,IAAAA,GACA,OAAAy6B,EAAA,KAAAv8B,KACA,IErCIuO,GAAY,E,QAAA,GACd,GCRW,WAAkB,IAAaE,EAALnX,KAAYoX,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACgB,MAAM,CAAC,MAAQ,6BAA6B,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,KAAO,iBAAiB,CAAChB,EAAG,OAAO,CAACgB,MAAM,CAAC,EAA9KnY,KAAsLwK,SAC7N,GACsB,IDSpB,EACA,KACA,KACA,MAIFyM,EAAU7T,QAAQkV,OAAS,cAC3B,MAAerB,EAAiB,O,yDEjBhC,wBAA6BrX,EAAAA,GAC3BiO,MAAAA,CAAOxL,GACuB,QAAxBrC,KAAKC,QAAQilC,QACfllC,KAAKC,QAAQmiC,gBAEb//B,EAAMO,cAAcuiC,KAAK/C,eAE7B,E","sources":["webpack:///./app/javascript/controllers/admin/horizontal_table_controller.js","webpack:///./app/javascript/controllers/admin/tax_settings_controller.js","webpack:///./app/javascript/controllers/admin/conditional_element_controller.js","webpack:///./app/javascript/controllers/admin/branding_form_controller.js","webpack:///./app/javascript/helpers/stream_actions.js","webpack:///./app/javascript/controllers/admin/team_member_search_results_controller.js","webpack:///./app/javascript/controllers/admin/flash_controller.js","webpack:///./app/javascript/controllers/shared/auto_hide_controller.js","webpack:///./app/javascript/controllers/admin/checkbox_controller.js","webpack:///./app/javascript/controllers/admin/layout_controller.js","webpack:///./app/javascript/controllers/shared/trix_without_file_upload_controller.js","webpack:///./app/javascript/controllers/admin/auto_refreshable_controller.js","webpack:///./app/javascript/controllers/admin/subdomain_form_controller.js","webpack:///./app/javascript/controllers/admin/named_tooltips_controller.js","webpack:///./app/javascript/controllers/admin/ sync _controller\\.js$","webpack:///./app/javascript/controllers/admin/website_preview_controller.js","webpack:///./app/javascript/controllers/admin/countries_controller.js","webpack:///./app/javascript/controllers/admin/payment_element_controller.js","webpack:///./app/javascript/controllers/admin/file_uploader_controller.js","webpack:///./app/javascript/controllers/shared/plan_change_form_controller.js","webpack:///./app/javascript/controllers/admin/filter_controller.js","webpack:///./app/javascript/controllers/admin/order_metrics_filters_controller.js","webpack:///./app/javascript/components/PlanSummary.vue?81ba","webpack:///app/javascript/components/PlanSummary.vue","webpack:///./app/javascript/components/PlanSummary.vue?928c","webpack:///./app/javascript/components/PlanSummary.vue","webpack:///./app/javascript/controllers/admin/plan_form_controller.js","webpack:///./app/javascript/controllers/admin/render_active_element_controller.js","webpack:///./app/javascript/controllers/shared/apply_coupon_controller.js","webpack:///./app/javascript/controllers/admin/sidebar_controller.js","webpack:///./app/javascript/controllers/admin/c3_chart_controller.js","webpack:///./app/javascript/controllers/admin/ignore_missing_frame_controller.js","webpack:///./app/javascript/controllers/admin/intercom_controller.js","webpack:///./app/javascript/controllers/shared/mux_player_controller.js","webpack:///./app/javascript/controllers/admin/search_results_controller.js","webpack:///./app/javascript/controllers/admin/doc_search_controller.js","webpack:///./app/javascript/controllers/admin/code_controller.js","webpack:///./app/javascript/controllers/admin/upload_controller.js","webpack:///./app/javascript/controllers/admin/date_picker_presets_controller.js","webpack:///./app/javascript/controllers/admin/discord_form_controller.js","webpack:///./app/javascript/controllers/admin/team_member_search_controller.js","webpack:///./app/javascript/controllers/admin/custom_field_option_controller.js","webpack:///./app/javascript/helpers/turbo_frames.js","webpack:///./app/javascript/controllers/admin/audio_player_controller.js","webpack:///./app/javascript/controllers/admin/dialog_controller.js","webpack:///./app/javascript/controllers/admin/search_controller.js","webpack:///./app/javascript/helpers/stripe_elements.js","webpack:///./app/javascript/controllers/admin/auto_focus_controller.js","webpack:///./app/javascript/controllers/admin/custom_field_controller.js","webpack:///./app/javascript/controllers/admin/peer_checked_controller.js","webpack:///./app/javascript/controllers/shared/drag_sortable_controller.js","webpack:///./app/javascript/controllers/admin/page_form_controller.js","webpack:///./app/javascript/controllers/admin/require_answer_controller.js","webpack:///./app/javascript/controllers/admin/scrollable_navigation_controller.js","webpack:///./app/javascript/components/CouponSummary.vue?a2df","webpack:///app/javascript/components/CouponSummary.vue","webpack:///./app/javascript/components/CouponSummary.vue?ab5b","webpack:///./app/javascript/components/CouponSummary.vue","webpack:///./app/javascript/controllers/admin/coupon_form_controller.js","webpack:///./app/javascript/controllers/admin/email_form_controller.js","webpack:///./app/javascript/controllers/admin/apex_chart_controller.js","webpack:///./app/javascript/controllers/admin/post_licensing_controller.js","webpack:///./app/javascript/controllers/admin/focus_mode_controller.js","webpack:///./app/javascript/controllers/admin/clipboard_controller.js","webpack:///./app/javascript/controllers/admin/index.js","webpack:///./app/javascript/packs/admin.js","webpack:///./app/javascript/controllers/admin/card_form_controller.js","webpack:///./app/javascript/controllers/admin/panel_controller.js","webpack:///./app/javascript/controllers/admin/auto_click_controller.js","webpack:///./app/javascript/controllers/admin/team_member_form_controller.js","webpack:///./app/javascript/controllers/admin/unique_option_controller.js","webpack:///./tailwind.config.js","webpack:///./app/javascript/controllers/admin/website_form_controller.js","webpack:///./app/javascript/controllers/admin/external_payment_controller.js","webpack:///./app/javascript/controllers/admin/post_video_form_controller.js","webpack:///./app/javascript/controllers/shared/dropdown_controller.js","webpack:///./app/javascript/controllers/admin/sub_navigation_controller.js","webpack:///./app/javascript/controllers/admin/mobile_nav_controller.js","webpack:///./app/javascript/controllers/admin/nexus_addresses_controller.js","webpack:///./app/javascript/controllers/admin/modal_controller.js","webpack:///./app/javascript/controllers/admin/auto_tooltip_controller.js","webpack:///./app/javascript/controllers/admin/navigation_editor_controller.js","webpack:///./app/javascript/helpers/date.js","webpack:///./app/javascript/controllers/admin/date_picker_controller.js","webpack:///./app/javascript/controllers/admin/details_controller.js","webpack:///./app/javascript/controllers/shared/suggestion_controller.js","webpack:///./app/javascript/controllers/admin/scroll_once_controller.js","webpack:///./app/javascript/controllers/admin/send_test_email_controller.js","webpack:///./app/javascript/controllers/shared/number_input_controller.js","webpack:///./app/javascript/controllers/admin/card_controller.js","webpack:///./app/javascript/controllers/admin/tabs_controller.js","webpack:///./app/javascript/controllers/admin/locale_preview_controller.js","webpack:///./app/javascript/controllers/admin/included_plans_controller.js","webpack:///./app/javascript/controllers/admin/limit_controller.js","webpack:///app/javascript/components/icons/SvgIcon.vue","webpack:///./app/javascript/components/icons/SvgIcon.vue?6144","webpack:///./app/javascript/components/icons/SvgIcon.vue?a97e","webpack:///./app/javascript/components/icons/SvgIcon.vue","webpack:///./app/javascript/controllers/admin/form_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"leftShadow\", \"rightShadow\"]\n\n connect() {\n const fixedColumn = this.element.querySelector(\"thead th:first-child\")\n const leftColumn = this.element.querySelector(\"thead th:nth-child(2)\")\n const rightColumn = this.element.querySelector(\"thead th:last-child\")\n\n rightColumn.scrollIntoView(false)\n\n this.observer = new IntersectionObserver(entries => {\n if (entries[0].target === leftColumn) {\n this.element.classList.toggle(\"left-shadow\", !entries[0].isIntersecting)\n } else {\n this.element.classList.toggle(\"right-shadow\", !entries[0].isIntersecting)\n }\n }, {\n root: this.element,\n rootMargin: `0px 1px 0px -${fixedColumn.offsetWidth - 1}px`,\n threshold: 1.0\n })\n\n this.observer.observe(leftColumn)\n this.observer.observe(rightColumn)\n }\n\n disconnect() {\n this.observer.disconnect()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"planToggleBtn\", \"plans\", \"setting\", \"taxEnabled\", \"taxablePlan\"]\n static values = { taxablePlansVisible: Number }\n\n connect() {\n this.updateTaxSettings()\n\n if (this.hasPlansTarget) {\n this.truncatedPlans = this.taxablePlanTargets.slice(0, this.taxablePlansVisibleValue)\n this.truncateTaxablePlans()\n }\n }\n\n updateTaxSettings() {\n this.settingTargets.forEach(target => {\n target.classList.toggle(\"hidden\", !this.taxesEnabled)\n })\n }\n\n truncateTaxablePlans() {\n if (this.taxablePlanTargets.length > this.taxablePlansVisibleValue) {\n this.truncatedPlans.forEach(plan => plan.classList.remove('hidden'))\n this.planToggleBtnTarget.classList.remove('hidden')\n } else {\n this.taxablePlanTargets.forEach(plan => plan.classList.remove('hidden'))\n this.planToggleBtnTarget.classList.add('hidden')\n }\n }\n\n showAllTaxablePlans(event) {\n event.preventDefault()\n this.truncatedPlans.forEach(plan => plan.classList.toggle('hidden'))\n this.taxablePlanTargets.forEach(plan => plan.classList.toggle('hidden'))\n this.planToggleBtnTarget.classList.add('hidden')\n }\n\n // private\n\n get taxesEnabled() {\n return this.taxEnabledTarget.checked\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"hideable\"]\n static values = { triggers: Array }\n\n toggle(event) {\n const selectedValue = event.currentTarget.value\n\n this.hideableTargets.forEach(hideable => {\n if (this.triggersValue.includes(selectedValue)) {\n hideable.classList.remove(\"hidden\")\n } else {\n hideable.classList.add(\"hidden\")\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static outlets = [\"color-picker\"]\n static targets = [\"destroyStyle\"]\n\n changeTheme(event) {\n const option = event.target.options[event.target.selectedIndex]\n\n this.colorPickerOutlets.forEach(outlet => {\n outlet.defaultValue = option.dataset[outlet.attributeValue]\n })\n\n this.destroyStyle = false\n }\n\n resetColors(event) {\n this.colorPickerOutlets.forEach(outlet => outlet.reset())\n }\n\n updateColors(event) {\n if (!event.detail.default) this.destroyStyle = false\n }\n\n set destroyStyle(value) {\n this.destroyStyleTarget.checked = value\n }\n}\n","import { StreamActions } from \"@hotwired/turbo\"\n\nStreamActions.redirect = function () {\n Memberful.redirectTo(this.target)\n}\n\nStreamActions.visit = function () {\n Turbo.visit(this.target)\n}\n\nStreamActions.reload = function () {\n document.getElementById(this.target).dispatchEvent(new CustomEvent(\"turbo-stream:reload\"))\n}\n\nStreamActions.style = function() {\n const target = document.getElementById(this.target)\n target.style = this.templateContent.textContent\n}\n","import SearchResultsController from \"./search_results_controller\"\n\nexport default class extends SearchResultsController {\n selectMember(event) {\n event.preventDefault()\n\n const customEvent = new CustomEvent(\"member-selected\", {\n bubbles: true,\n detail: { member: event.currentTarget }\n })\n\n this.element.dispatchEvent(customEvent)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"notice\"]\n\n connect() {\n if (this.hasNoticeTarget) {\n this.slideUp(this.noticeTarget)\n }\n }\n\n disconnect() {\n this.element.remove()\n }\n\n slideUp(notice) {\n notice.classList.add(\"overflow-y-hidden\", \"transition-all\")\n notice.style.maxHeight = `${notice.offsetHeight}px`\n\n notice.addEventListener(\"transitionend\", notice.remove)\n\n setTimeout(() => {\n notice.style.opacity = 0\n notice.style.maxHeight = 0\n }, 5000)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n setTimeout(() => { $(this.element).fadeOut() }, 5000)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"checkbox\"]\n\n checkAll(event) {\n event.preventDefault()\n\n this._clickAll(false)\n }\n\n uncheckAll(event) {\n event.preventDefault()\n\n this._clickAll(true)\n }\n\n _clickAll(undesiredValue) {\n this.checkboxTargets.forEach(checkbox => {\n if (checkbox.checked === undesiredValue) {\n checkbox.click()\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = ['aside', 'main'];\n\n connect() {\n this.setMainWidth()\n\n this.boundSetMainWidth = this.setMainWidth.bind(this)\n window.addEventListener('resize', this.boundSetMainWidth)\n }\n\n toggleNav() {\n this.asideTarget.classList.add('website--aside-close');\n this.mainTarget.style.width = '100%';\n this.mainTarget.classList.add('website--main-close');\n }\n\n disconnect() {\n window.removeEventListener('resize', this.boundSetMainWidth)\n }\n\n setMainWidth() {\n const asideWidth = this.asideTarget.offsetWidth;\n const windowWidth = window.innerWidth;\n if (windowWidth < 768 ) return\n this.mainTarget.style.width = `${windowWidth - asideWidth}px`\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { toast } from \"./toast_controller\"\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener(\"trix-file-accept\", this.ignoreDroppedFiles.bind(this))\n this.element.addEventListener(\"paste\", this.ignorePastedFiles.bind(this))\n }\n\n disconnect() {\n this.element.removeEventListener(\"trix-file-accept\", this.ignoreDroppedFiles)\n this.element.removeEventListener(\"paste\", this.ignorePastedFiles)\n }\n\n ignoreDroppedFiles(event) {\n this._toast()\n event.preventDefault()\n }\n\n ignorePastedFiles(event) {\n if (event.clipboardData.files.length) {\n this._toast()\n event.preventDefault()\n }\n }\n\n _toast() {\n toast(this.element, \"error\", \"Can't upload files to this editor.\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = { url: String }\n\n connect() {\n setTimeout(this.pollForUpdate.bind(this), 2000)\n }\n\n pollForUpdate() {\n fetch(this.urlValue, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest'\n },\n })\n .then(response => response.text())\n .then(text => {\n this.element.outerHTML = text\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"noticeBox\", \"subdomain\"]\n\n connect() {\n this.update()\n }\n\n update() {\n this.noticeBoxTarget.classList.toggle(\"hidden\", !this.subdomainChanged)\n }\n\n get subdomainChanged() {\n return this.subdomainTarget.value != this.subdomainTarget.dataset.originalValue\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport tippy from \"tippy.js\";\n\nexport default class extends Controller {\n connect() {\n this.listeners = []\n\n this.element.querySelectorAll(\"[data-tooltip-name]\").forEach(element => {\n const name = element.dataset.tooltipName\n const triggers = this.element.querySelectorAll(`[data-tooltip-trigger=\"${name}\"]`)\n\n const instance = tippy(element, {\n triggerTarget: [...triggers]\n })\n\n this.listeners.push(instance)\n })\n }\n\n disconnect() {\n this.listeners.forEach(instance => instance.destroy())\n }\n}\n","var map = {\n\t\"./apex_chart_controller.js\": 5674,\n\t\"./audio_player_controller.js\": 4617,\n\t\"./auto_click_controller.js\": 6847,\n\t\"./auto_focus_controller.js\": 4851,\n\t\"./auto_refreshable_controller.js\": 1350,\n\t\"./auto_tooltip_controller.js\": 8250,\n\t\"./branding_form_controller.js\": 571,\n\t\"./c3_chart_controller.js\": 2788,\n\t\"./card_controller.js\": 9169,\n\t\"./card_form_controller.js\": 6522,\n\t\"./checkbox_controller.js\": 928,\n\t\"./checkboxes_controller.js\": 6696,\n\t\"./clipboard_controller.js\": 6051,\n\t\"./code_controller.js\": 3680,\n\t\"./color_picker_controller.js\": 8361,\n\t\"./conditional_element_controller.js\": 408,\n\t\"./countries_controller.js\": 1907,\n\t\"./coupon_form_controller.js\": 5534,\n\t\"./custom_field_controller.js\": 5151,\n\t\"./custom_field_option_controller.js\": 4373,\n\t\"./date_picker_controller.js\": 8466,\n\t\"./date_picker_presets_controller.js\": 4101,\n\t\"./details_controller.js\": 8483,\n\t\"./dialog_controller.js\": 4631,\n\t\"./discord_form_controller.js\": 4102,\n\t\"./doc_search_controller.js\": 3558,\n\t\"./email_form_controller.js\": 5670,\n\t\"./external_payment_controller.js\": 7405,\n\t\"./file_size_controller.js\": 5727,\n\t\"./file_uploader_controller.js\": 2026,\n\t\"./filter_controller.js\": 2113,\n\t\"./flash_controller.js\": 731,\n\t\"./focus_mode_controller.js\": 5849,\n\t\"./form_controller.js\": 9997,\n\t\"./guard_controller.js\": 226,\n\t\"./horizontal_table_controller.js\": 42,\n\t\"./ignore_missing_frame_controller.js\": 2850,\n\t\"./included_plans_controller.js\": 9402,\n\t\"./intercom_controller.js\": 2866,\n\t\"./layout_controller.js\": 1037,\n\t\"./limit_controller.js\": 9548,\n\t\"./locale_preview_controller.js\": 9384,\n\t\"./mobile_nav_controller.js\": 7807,\n\t\"./modal_controller.js\": 8062,\n\t\"./named_tooltips_controller.js\": 1649,\n\t\"./navigation_editor_controller.js\": 8263,\n\t\"./nexus_addresses_controller.js\": 7821,\n\t\"./order_metrics_filters_controller.js\": 2295,\n\t\"./page_form_controller.js\": 5223,\n\t\"./panel_controller.js\": 6707,\n\t\"./payment_element_controller.js\": 1994,\n\t\"./peer_checked_controller.js\": 5169,\n\t\"./plan_form_controller.js\": 2381,\n\t\"./popover_controller.js\": 1782,\n\t\"./post_licensing_controller.js\": 5728,\n\t\"./post_video_form_controller.js\": 7698,\n\t\"./preview_controller.js\": 7185,\n\t\"./render_active_element_controller.js\": 2405,\n\t\"./require_answer_controller.js\": 5297,\n\t\"./scroll_once_controller.js\": 8840,\n\t\"./scrollable_navigation_controller.js\": 5409,\n\t\"./search_controller.js\": 4683,\n\t\"./search_results_controller.js\": 3360,\n\t\"./send_test_email_controller.js\": 8861,\n\t\"./sidebar_controller.js\": 2729,\n\t\"./sub_navigation_controller.js\": 7752,\n\t\"./subdomain_form_controller.js\": 1648,\n\t\"./tabs_controller.js\": 9179,\n\t\"./tax_settings_controller.js\": 206,\n\t\"./team_member_form_controller.js\": 6882,\n\t\"./team_member_search_controller.js\": 4180,\n\t\"./team_member_search_results_controller.js\": 707,\n\t\"./trix_image_controller.js\": 812,\n\t\"./trix_video_embed_controller.js\": 6012,\n\t\"./unique_option_controller.js\": 7086,\n\t\"./unsaved_changes_controller.js\": 6565,\n\t\"./upload_controller.js\": 3780,\n\t\"./website_form_controller.js\": 7367,\n\t\"./website_preview_controller.js\": 1863,\n\t\"controllers/admin/apex_chart_controller.js\": 5674,\n\t\"controllers/admin/audio_player_controller.js\": 4617,\n\t\"controllers/admin/auto_click_controller.js\": 6847,\n\t\"controllers/admin/auto_focus_controller.js\": 4851,\n\t\"controllers/admin/auto_refreshable_controller.js\": 1350,\n\t\"controllers/admin/auto_tooltip_controller.js\": 8250,\n\t\"controllers/admin/branding_form_controller.js\": 571,\n\t\"controllers/admin/c3_chart_controller.js\": 2788,\n\t\"controllers/admin/card_controller.js\": 9169,\n\t\"controllers/admin/card_form_controller.js\": 6522,\n\t\"controllers/admin/checkbox_controller.js\": 928,\n\t\"controllers/admin/checkboxes_controller.js\": 6696,\n\t\"controllers/admin/clipboard_controller.js\": 6051,\n\t\"controllers/admin/code_controller.js\": 3680,\n\t\"controllers/admin/color_picker_controller.js\": 8361,\n\t\"controllers/admin/conditional_element_controller.js\": 408,\n\t\"controllers/admin/countries_controller.js\": 1907,\n\t\"controllers/admin/coupon_form_controller.js\": 5534,\n\t\"controllers/admin/custom_field_controller.js\": 5151,\n\t\"controllers/admin/custom_field_option_controller.js\": 4373,\n\t\"controllers/admin/date_picker_controller.js\": 8466,\n\t\"controllers/admin/date_picker_presets_controller.js\": 4101,\n\t\"controllers/admin/details_controller.js\": 8483,\n\t\"controllers/admin/dialog_controller.js\": 4631,\n\t\"controllers/admin/discord_form_controller.js\": 4102,\n\t\"controllers/admin/doc_search_controller.js\": 3558,\n\t\"controllers/admin/email_form_controller.js\": 5670,\n\t\"controllers/admin/external_payment_controller.js\": 7405,\n\t\"controllers/admin/file_size_controller.js\": 5727,\n\t\"controllers/admin/file_uploader_controller.js\": 2026,\n\t\"controllers/admin/filter_controller.js\": 2113,\n\t\"controllers/admin/flash_controller.js\": 731,\n\t\"controllers/admin/focus_mode_controller.js\": 5849,\n\t\"controllers/admin/form_controller.js\": 9997,\n\t\"controllers/admin/guard_controller.js\": 226,\n\t\"controllers/admin/horizontal_table_controller.js\": 42,\n\t\"controllers/admin/ignore_missing_frame_controller.js\": 2850,\n\t\"controllers/admin/included_plans_controller.js\": 9402,\n\t\"controllers/admin/intercom_controller.js\": 2866,\n\t\"controllers/admin/layout_controller.js\": 1037,\n\t\"controllers/admin/limit_controller.js\": 9548,\n\t\"controllers/admin/locale_preview_controller.js\": 9384,\n\t\"controllers/admin/mobile_nav_controller.js\": 7807,\n\t\"controllers/admin/modal_controller.js\": 8062,\n\t\"controllers/admin/named_tooltips_controller.js\": 1649,\n\t\"controllers/admin/navigation_editor_controller.js\": 8263,\n\t\"controllers/admin/nexus_addresses_controller.js\": 7821,\n\t\"controllers/admin/order_metrics_filters_controller.js\": 2295,\n\t\"controllers/admin/page_form_controller.js\": 5223,\n\t\"controllers/admin/panel_controller.js\": 6707,\n\t\"controllers/admin/payment_element_controller.js\": 1994,\n\t\"controllers/admin/peer_checked_controller.js\": 5169,\n\t\"controllers/admin/plan_form_controller.js\": 2381,\n\t\"controllers/admin/popover_controller.js\": 1782,\n\t\"controllers/admin/post_licensing_controller.js\": 5728,\n\t\"controllers/admin/post_video_form_controller.js\": 7698,\n\t\"controllers/admin/preview_controller.js\": 7185,\n\t\"controllers/admin/render_active_element_controller.js\": 2405,\n\t\"controllers/admin/require_answer_controller.js\": 5297,\n\t\"controllers/admin/scroll_once_controller.js\": 8840,\n\t\"controllers/admin/scrollable_navigation_controller.js\": 5409,\n\t\"controllers/admin/search_controller.js\": 4683,\n\t\"controllers/admin/search_results_controller.js\": 3360,\n\t\"controllers/admin/send_test_email_controller.js\": 8861,\n\t\"controllers/admin/sidebar_controller.js\": 2729,\n\t\"controllers/admin/sub_navigation_controller.js\": 7752,\n\t\"controllers/admin/subdomain_form_controller.js\": 1648,\n\t\"controllers/admin/tabs_controller.js\": 9179,\n\t\"controllers/admin/tax_settings_controller.js\": 206,\n\t\"controllers/admin/team_member_form_controller.js\": 6882,\n\t\"controllers/admin/team_member_search_controller.js\": 4180,\n\t\"controllers/admin/team_member_search_results_controller.js\": 707,\n\t\"controllers/admin/trix_image_controller.js\": 812,\n\t\"controllers/admin/trix_video_embed_controller.js\": 6012,\n\t\"controllers/admin/unique_option_controller.js\": 7086,\n\t\"controllers/admin/unsaved_changes_controller.js\": 6565,\n\t\"controllers/admin/upload_controller.js\": 3780,\n\t\"controllers/admin/website_form_controller.js\": 7367,\n\t\"controllers/admin/website_preview_controller.js\": 1863\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1772;","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"container\",\n \"editButton\",\n \"iframe\",\n \"menuItem\",\n \"title\"\n ]\n\n static values = {\n updatePath: {\n type: Boolean,\n default: false\n }\n }\n\n connect() {\n this.channel = new BroadcastChannel(\"website-preview\")\n }\n\n disconnect() {\n this.channel.close()\n }\n\n loaded({ detail: { editPath, path, title }}) {\n this.editPath = editPath\n this.path = path\n this.title = title\n\n this.#setCurrentMenuItem(path)\n }\n\n navigate(event) {\n if (this.hasIframeTarget) event.preventDefault()\n\n const url = new URL(event.params.path || event.target.value, origin)\n\n this.iframeTarget.src = url\n }\n\n reload() {\n this.channel.postMessage({ action: \"reload\" })\n }\n\n showDesktop() {\n this.#resizeIframe({ width: \"100%\", height: \"100%\" })\n this.containerTarget.classList.remove(\"website-preview-mobile\")\n }\n\n showMobile() {\n this.#resizeIframe({ width: \"380\", height: \"795\" })\n this.containerTarget.classList.toggle(\"website-preview-mobile\")\n }\n\n set editPath(value) {\n if (value) {\n this.editButtonTarget.href = value\n this.editButtonTarget.innerText = value.includes(\"post\") ? \"Edit post\" : \"Edit page\"\n this.editButtonTarget.classList.remove(\"hidden\")\n } else {\n this.editButtonTarget.classList.add(\"hidden\")\n }\n }\n\n set path(value) {\n if (this.updatePathValue) {\n const url = new URL(window.location)\n url.searchParams.set(\"path\", value)\n\n history.replaceState(history.state, \"\", url)\n }\n }\n\n set title(title) {\n this.titleTarget.innerText = title\n }\n\n #resizeIframe({ width, height }) {\n this.iframeTarget.setAttribute(\"width\", width)\n this.iframeTarget.setAttribute(\"height\", height)\n }\n\n #setCurrentMenuItem(path) {\n this.menuItemTargets.forEach(target => {\n if (target.dataset.websitePreviewPathParam === path) {\n target.setAttribute(\"aria-current\", \"page\")\n } else {\n target.removeAttribute(\"aria-current\")\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"country\", \"state\", \"stateSelect\", \"stateContainer\"]\n\n connect() {\n this.updateStateField()\n }\n\n updateStateField() {\n if(this.selectedCountry.dataset.subdivisionLabel) {\n this.stateTarget.setAttribute(\"placeholder\", this.selectedCountry.dataset.subdivisionLabel)\n this.stateContainerTarget.classList.remove(\"hidden\")\n\n if (this.selectedCountry.dataset.subdivisions) {\n this.createStateOptions()\n this.enableSelect()\n } else {\n this.disableSelect()\n }\n\n } else {\n this.stateContainerTarget.classList.add(\"hidden\")\n }\n\n }\n\n createStateOptions() {\n this.stateSelectTarget.length = 0\n let placeholder = this.buildOption(\n `Select ${this.selectedCountry.dataset.subdivisionLabel}`,\n this.stateSelectTarget.value)\n\n this.stateSelectTarget.add(placeholder)\n\n JSON.parse(this.selectedCountry.dataset.subdivisions).forEach(country => {\n let option = this.buildOption(country[0], country[1], (this.stateTarget.value == country[1]))\n this.stateSelectTarget.add(option)\n })\n }\n\n enableSelect() {\n this.stateSelectTarget.classList.remove(\"hidden\")\n this.stateTarget.classList.add(\"hidden\")\n this.stateSelectTarget.disabled = false\n }\n\n disableSelect() {\n this.stateSelectTarget.classList.add(\"hidden\")\n this.stateTarget.classList.remove(\"hidden\")\n this.stateSelectTarget.disabled = true\n }\n\n buildOption(text, value, selected) {\n let option = document.createElement(\"option\")\n option.text = text \n option.value = value\n option.selected = selected\n return option\n }\n\n get selectedCountry() {\n return this.countryTarget.options[this.countryTarget.selectedIndex]\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { getMetaValue } from \"helpers\"\nimport { appearance } from \"helpers/stripe_elements\"\nimport http from \"helpers/http\"\n\nexport default class extends Controller {\n static targets = [\"card\", \"error\", \"submitButton\", \"setupIntentIdField\", \"editLink\"]\n static values = { fontsUrl: String, setupIntentsUrl: String }\n\n connect() {\n if(this.hasCardTarget) {\n this.getSetupIntent()\n }\n }\n\n submit(event) {\n if(!this.hasCardTarget) {\n return\n }\n\n event.preventDefault()\n event.stopPropagation()\n this.disableSubmitButton()\n\n if (this.confirmed) {\n this.submitForm()\n } else {\n this.confirmSetupIntent()\n }\n }\n\n // private\n\n getSetupIntent() {\n http.post(this.setupIntentsUrlValue).json().\n then(json => {\n this.createPaymentElement(json.setup_intent_client_secret)\n }).\n catch(error => {\n this.error = \"An unexpected error occurred. Please try again later.\"\n this.enableSubmitButton()\n })\n }\n\n createPaymentElement(setupIntentClientSecret) {\n this.stripe = Stripe(getMetaValue(\"stripe-billing-key\"))\n this.elements = this.stripe.elements({\n appearance: appearance,\n fonts: [\n {\n cssSrc: this.fontsUrlValue\n }\n ],\n locale: \"en\",\n clientSecret: setupIntentClientSecret,\n loader: \"auto\"\n })\n\n this.paymentElement = this.elements.create(\"payment\")\n\n this.paymentElement.mount(this.cardTarget)\n\n this.error = \"\"\n this.paymentElement.focus()\n }\n\n confirmSetupIntent() {\n let elements = this.elements\n\n this.stripe.confirmSetup({\n elements,\n confirmParams: { return_url: window.location.href },\n redirect: \"if_required\"\n }).\n then(result => {\n if (result.error) {\n this.error = result.error.message\n this.enableSubmitButton()\n } else {\n this.setupIntentIdFieldTarget.value = result.setupIntent.id\n this.cardTarget.parentElement.classList.add(\"opacity-50\")\n\n this.submitForm()\n }\n }).\n catch(error => {\n this.error = error.message\n this.enableSubmitButton()\n })\n }\n\n submitForm() {\n http.post(this.element.action, { body: new FormData(this.element) }).json().\n then(json => {\n if (json.error) {\n this.error = json.error\n this.editLinkTarget.classList.remove(\"hidden\")\n this.enableSubmitButton()\n } else {\n Turbo.cache.clear()\n Turbo.visit(json[\"redirect_to\"], { action: \"replace\" })\n }\n }).\n catch(() => {\n this.error = \"An unexpected error occurred. Please try again later.\"\n this.editLinkTarget.classList.remove(\"hidden\")\n this.enableSubmitButton()\n })\n }\n\n disableSubmitButton() {\n this.submitButtonTarget.setAttribute(\"disabled\", \"\")\n this.submitButtonTarget.dataset.enableWith = this.submitButtonTarget.value\n this.submittButtonTimeout = setTimeout(() => {\n this.submitButtonTarget.value = this.submitButtonTarget.dataset.disableWith\n }, 50)\n }\n\n enableSubmitButton() {\n clearTimeout(this.submittButtonTimeout)\n this.submitButtonTarget.value = this.submitButtonTarget.dataset.enableWith\n this.submitButtonTarget.removeAttribute(\"disabled\", \"\")\n }\n\n get error() {\n return this.errorMessage\n }\n\n set error(message) {\n this.errorMessage = message\n if (this.error.length === 0) {\n this.errorTarget.classList.add(\"hidden\")\n } else {\n this.errorTarget.textContent = this.error\n this.errorTarget.classList.remove(\"hidden\")\n }\n }\n\n get confirmed() {\n return !!this.setupIntentIdFieldTarget.value\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"fileInput\",\n \"previewImage\",\n \"previewUrl\"\n ]\n\n static values = {\n key: String\n }\n\n fileChanged(event) {\n const objectUrl = URL.createObjectURL(event.target.files[0])\n\n this.previewImageTarget.src = objectUrl\n this.previewImageTarget.classList.remove(\"hidden\")\n\n if (this.hasPreviewUrlTarget) this.previewUrlTarget.value = objectUrl\n\n this.attachFile(this.previewImageTarget.src)\n this.fileAttached = true\n\n this.element.classList.add(\"file-uploader--file-selected\")\n }\n\n clearSelection(event) {\n if (this.fileAttached) {\n event.preventDefault()\n\n this.previewImageTarget.src = \"\"\n this.previewImageTarget.classList.add(\"hidden\")\n\n if (this.hasPreviewUrlTarget) this.previewUrlTarget.value = \"\"\n\n this.fileInputTarget.value = null\n this.removeFile()\n\n this.element.classList.remove(\"file-uploader--file-selected\")\n }\n }\n\n // private\n\n attachFile(fileURL) {\n this.emitFileChangeEvent({\n action: \"attach\",\n file: fileURL\n })\n }\n\n removeFile() {\n this.emitFileChangeEvent({\n action: \"remove\"\n })\n }\n\n emitFileChangeEvent(detail) {\n const event = new CustomEvent(\"file-change\", {\n bubbles: true,\n detail: Object.assign(detail, { key: this.keyValue })\n })\n\n this.element.dispatchEvent(event)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport formDataEntries from \"form-data-entries\"\nimport { debounce } from \"lodash\"\n\nexport default class extends Controller {\n static classes = [ \"priceInputAnimation\" ]\n static targets = [ \"details\", \"priceInput\" ]\n static values = { url: String }\n\n connect() {\n if (this.hasPriceInputTarget) {\n this.priceInputTarget.addEventListener(\"animationend\", () => this.priceInputTarget.classList.remove(this.priceInputAnimationClass))\n }\n }\n\n update = debounce( (event) => {\n this.abortPreviousFetchRequest()\n\n fetch(this.url, { signal: this.abortController.signal }).\n then(response => response.text()).\n then(html => {\n this.validate()\n this.detailsTarget.outerHTML = html\n })\n }, 500)\n\n // private\n\n abortPreviousFetchRequest() {\n if(this.abortController) {\n this.abortController.abort()\n }\n this.abortController = new AbortController()\n }\n\n validate() {\n if (this.hasPriceInputTarget) {\n if(this.minimumPrice && this.price < this.minimumPrice) {\n this.price = this.minimumPrice\n this.animatePriceInput()\n } else if(this.maximumPrice && this.price > this.maximumPrice) {\n this.price = this.minimumPrice\n this.animatePriceInput()\n }\n }\n }\n\n animatePriceInput() {\n this.priceInputTarget.classList.add(this.priceInputAnimationClass)\n this.priceInputTarget.focus()\n }\n\n get minimumPrice() {\n return parseFloat(this.priceInputTarget.min)\n }\n\n get maximumPrice() {\n return Number(this.priceInputTarget.max)\n }\n\n get price() {\n return Number(this.priceInputTarget.value) || 0\n }\n\n set price(newValue) {\n this.priceInputTarget.value = newValue\n }\n\n get url() {\n let url = new URL(this.urlValue)\n formDataEntries(this.element).forEach( ([name, value]) => url.searchParams.set(name, value))\n return url\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from \"lodash\"\n\nexport default class extends Controller {\n static targets = [\"applyFilters\", \"dropdownToggle\", \"filterCount\"]\n static classes = [\"hidden\", \"inactive\"]\n\n initialize() {\n this._applyFilters = debounce(this._applyFilters, 500)\n }\n\n connect() {\n this._updateFilterCount()\n this.filterCountTarget.classList.remove(this.hiddenClass) // removes slight delay of showing filter count on load\n }\n\n hideDropdown(event) {\n if (this._clickedOutsideDropdownMenu(event.target))\n this.dropdownToggleTarget.checked = false\n }\n\n submit(event) {\n const target = event.target\n\n if (target === this.dropdownToggleTarget)\n return\n\n this._updateFilterCount()\n this._applyFilters()\n }\n\n _clickedOutsideDropdownMenu(target) {\n return !this.element.contains(target)\n }\n\n _updateFilterCount() {\n const form = this.element\n const filterCount = form.querySelectorAll(\"input[type=checkbox][name^=filters]:checked\").length\n\n this.filterCountTarget.textContent = filterCount\n this.filterCountTarget.classList.toggle(this.inactiveClass, filterCount === 0)\n }\n\n _applyFilters() {\n this.applyFiltersTarget.click()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"close\", \"filters\", \"open\"]\n\n open() {\n this.openTarget.classList.add(\"hidden\")\n\n this.closeTarget.classList.remove(\"hidden\")\n this.filtersTarget.classList.remove(\"hidden\")\n }\n\n close() {\n this.closeTarget.classList.add(\"hidden\")\n this.filtersTarget.classList.add(\"hidden\")\n\n this.openTarget.classList.remove(\"hidden\")\n }\n\n reset() {\n const url = new URL(document.location)\n const searchParams = url.searchParams\n searchParams.delete(\"filters[]\")\n\n url.search = searchParams.toString()\n Turbo.cache.clear()\n Turbo.visit(url, { action: \"replace\" })\n }\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlanSummary.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlanSummary.vue?vue&type=script&lang=js\"","\n\n\n","import { render, staticRenderFns } from \"./PlanSummary.vue?vue&type=template&id=53b9f126\"\nimport script from \"./PlanSummary.vue?vue&type=script&lang=js\"\nexport * from \"./PlanSummary.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"PlanSummary.vue\"\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"w-full p-0 block-white lg:w-2/5 lg:float-right plan-summary\"},[_c('p',{staticClass:\"w-full pt-2 pb-2 pl-4 pr-4 text-sm text-gray-600 border-b border-gray-300\"},[_vm._v(\"Summary\")]),_vm._v(\" \"),_c('div',{staticClass:\"p-4 text-gray-700\"},[_c('h1',{staticClass:\"text-lg font-bold text-black\"},[_vm._v(_vm._s(_vm.name))]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(_vm.priceDescription)+\" / \"+_vm._s(_vm.renewalDescription)+_vm._s(_vm.fixedPlanDetails))]),_vm._v(\" \"),_c('p',{staticClass:\"mt-2 text-sm\"},[_c('ul',[(_vm.trial)?_c('li',[_vm._v(\"\\n \"+_vm._s(_vm.trialDescription)+\"\\n \")]):_vm._e(),_vm._v(\" \"),((this.subscription_term === 'renew_indefinitely') && (this.renewal_frequency !== 'lifetime'))?_c('li',[_vm._v(\"\\n Renews indefinitely\"),(_vm.selected(this.renew_on_specific_day))?_c('span',[_vm._v(\", on the \"+_vm._s(_vm.indefiniteRenewalDescription))]):_vm._e()]):_vm._e(),_vm._v(\" \"),(this.renewal_frequency === 'lifetime')?_c('li',[_vm._v(\"\\n Never expires\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.selected(this.team_plan) && (this.included_seats > 0))?_c('li',[_vm._v(\"\\n Includes \"+_vm._s(this.included_seats)+\" members\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.selected(this.team_plan) && _vm.selected(this.allow_additional_seat_purchases) && this.seat_price)?_c('li',[_vm._v(\"\\n Additional members can be purchased for \"+_vm._s(this.currencySymbol)+_vm._s(this.seat_price)),(this.maximum_seat_count)?_c('span',[_vm._v(\", up to a total of \"+_vm._s(this.maximum_seat_count)+\" members\")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(this.downloads_count > 0)?_c('li',[_vm._v(\"\\n Includes \"+_vm._s(_vm._f(\"pluralize\")(\"download\",this.downloads_count))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(this.podcasts_count > 0)?_c('li',[_vm._v(\"\\n Includes \"+_vm._s(_vm._f(\"pluralize\")(\"podcast\",this.podcasts_count))+\"\\n \")]):_vm._e()])])]),_vm._v(\" \"),(this.plan_purchase_link)?_c('div',{staticClass:\"w-full px-4 pb-4 border-t border-gray-300\"},[_c('p',{staticClass:\"pt-4 mb-2 text-sm text-gray-600\"},[_vm._v(\"Plan purchase link:\")]),_vm._v(\" \"),_c('div',{staticClass:\"clipboard\",attrs:{\"data-controller\":\"clipboard\"}},[_c('a',{staticClass:\"clipboard__source\",attrs:{\"href\":_vm.plan_purchase_link,\"target\":\"_blank\",\"data-clipboard-target\":\"source\"}},[_vm._v(_vm._s(_vm.plan_purchase_link))]),_vm._v(\" \"),_c('button',{staticClass:\"clipboard__button\",attrs:{\"type\":\"button\",\"data-action\":\"clipboard#copy\"}},[_vm._v(\"Copy\")])])]):_vm._e(),_vm._v(\" \"),(this.gift_purchase_link)?_c('div',{staticClass:\"w-full px-4 pb-4\"},[_c('p',{staticClass:\"mb-2 text-sm text-gray-600\"},[_vm._v(\"Gift purchase link:\")]),_vm._v(\" \"),_c('div',{staticClass:\"clipboard\",attrs:{\"data-controller\":\"clipboard\"}},[_c('a',{staticClass:\"clipboard__source\",attrs:{\"href\":_vm.gift_purchase_link,\"target\":\"_blank\",\"data-clipboard-target\":\"source\"}},[_vm._v(_vm._s(_vm.gift_purchase_link))]),_vm._v(\" \"),_c('button',{staticClass:\"clipboard__button\",attrs:{\"type\":\"button\",\"data-action\":\"clipboard#copy\"}},[_vm._v(\"Copy\")])])]):_vm._e(),_vm._v(\" \"),(this.plan_slug)?_c('div',{staticClass:\"w-full px-4 pb-4 border-t border-gray-300\"},[_c('p',{staticClass:\"pt-4 mb-2 text-sm text-gray-600\"},[_vm._v(\"Slug for integrating with services and custom applications:\")]),_vm._v(\" \"),_c('div',{staticClass:\"clipboard\",attrs:{\"data-controller\":\"clipboard\"}},[_c('div',{staticClass:\"clipboard__source\",attrs:{\"data-clipboard-target\":\"source\"}},[_vm._v(_vm._s(_vm.plan_slug))]),_vm._v(\" \"),_c('button',{staticClass:\"clipboard__button\",attrs:{\"type\":\"button\",\"data-action\":\"clipboard#copy\"}},[_vm._v(\"Copy\")])])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Controller } from \"@hotwired/stimulus\"\nimport Vue from \"vue\"\nimport PlanSummary from \"../../components/PlanSummary.vue\"\nimport { serializeForm } from \"helpers\"\n\nexport default class extends Controller {\n static targets = [\n \"allowCustomRenewalPrice\",\n \"automaticRedirectCopy\",\n \"chooseWhatYouPay\",\n \"customRenewalCount\",\n \"customRenewalContainer\",\n \"customRenewalPrice\",\n \"customRenewalUnit\",\n \"download\",\n \"feed\",\n \"feedRedirectContainer\",\n \"feedRedirectSetting\",\n \"feedSubscriptionCopy\",\n \"priceLabel\",\n \"redirectUrl\",\n \"renewalFrequencies\",\n \"renewalFrequencySelectBox\",\n \"renewalDaysForQuarterlyDateBasedPlans\",\n \"renewalDay\",\n \"renewalPriceHelperText\",\n \"specificDay\",\n \"startingMonth\",\n \"subscriptionTerm\",\n \"teamPlan\",\n \"trialPrice\",\n \"trialPriceContainer\",\n \"trialType\"\n ]\n\n static values = {\n currentRenewalFrequency: String,\n giftPurchaseLink: String,\n hasDiscordIntegration: Boolean,\n planPurchaseLink: String,\n planSlug: String,\n renewalDayHelpUrl: String,\n renewalFrequencies: Array\n }\n\n connect() {\n this.updateForm()\n this.renderRenewalDayHelp()\n\n this.summaryElement = new Vue({\n data: this.initialSummaryData,\n el: \"#plan-summary\",\n render: function(createElement) {\n return createElement(PlanSummary, {\n props: this.$data\n })\n }\n })\n }\n\n updateForm() {\n this.updatePricingOptions()\n this.updateSubscriptionSettings()\n }\n\n updatePricingOptions() {\n if (this.chooseWhatYouPaySelected) {\n this.priceLabelTarget.innerText = \"Minimum price\"\n } else {\n if (this.teamPlanEnabled) {\n this.priceLabelTarget.innerText = \"Total price\"\n } else {\n this.priceLabelTarget.innerText = \"Price\"\n }\n }\n\n if (this.planCanUseCustomRenewalPrice && this.allowCustomRenewalPriceSelected) {\n this.renewalPriceHelperTextTarget.innerText = \"Optional\"\n this._enable(this.customRenewalContainerTarget)\n\n if (this.summaryElement) {\n this.summaryElement[\"custom_renewal_price\"] = this.customRenewalPrice\n }\n } else {\n this.renewalPriceHelperTextTarget.innerText = \"Unavailable\"\n this._disable(this.customRenewalContainerTarget)\n\n if (this.summaryElement) {\n this.summaryElement[\"custom_renewal_price\"] = null\n }\n }\n\n if (this.paidTrialSelected) {\n if (this.summaryElement) {\n this.summaryElement[\"trial_price\"] = this.trialPrice\n }\n\n this._enable(this.trialPriceContainerTarget)\n } else {\n if (this.summaryElement) {\n this.summaryElement[\"trial_price\"] = null\n }\n\n this._disable(this.trialPriceContainerTarget)\n }\n }\n\n updateSubscriptionSettings() {\n if(this.hasRenewalFrequencySelectBoxTarget) {\n this.renderRenewalFrequencySelectBox()\n }\n }\n\n updateSummary(event) {\n const match = event.target.name.match(/plan\\[(\\w+)\\]/)\n\n if (event.target.type === \"checkbox\") {\n if (match[1] === \"download_ids\") {\n this.summaryElement[\"downloads_count\"] = this.downloadsCount\n } else if (match[1] === \"feed_ids\") {\n this.summaryElement[\"podcasts_count\"] = this.podcastsCount\n } else {\n this.summaryElement[match[1]] = event.target.checked ? \"1\" : \"0\"\n }\n } else {\n this.summaryElement[match[1]] = event.target.value\n }\n }\n\n changeRenewalFrequency() {\n this.currentRenewalFrequencyValue = this.renewalFrequencySelectBoxTarget.value\n this.updateForm()\n }\n\n renderRenewalFrequencySelectBox() {\n this.renewalFrequencySelectBoxTarget.innerHTML = \"\"\n this.renewalFrequenciesValue.forEach(renewalFrequency => {\n if(renewalFrequency.available_for_date_based_plans || !this.dateBasedPlan) {\n const optionElement = document.createElement(\"option\")\n optionElement.value = renewalFrequency.id\n optionElement.innerText = renewalFrequency.name\n if(this.currentRenewalFrequencyValue == renewalFrequency.id) {\n optionElement.setAttribute(\"selected\", \"selected\")\n }\n this.renewalFrequencySelectBoxTarget.appendChild(optionElement)\n }\n })\n }\n\n renderRenewalDayHelp() {\n if(!this.hasRenewalDaysForQuarterlyDateBasedPlansTarget) {\n return\n }\n\n if (this.dateBasedPlan && (this.currentRenewalFrequencyValue == \"3_month\")) {\n const url = new URL(this.renewalDayHelpUrlValue)\n url.searchParams.append(\"starting_month\", this.startingMonth)\n url.searchParams.append(\"renewal_day\", this.renewalDay)\n\n fetch(url)\n .then(response => response.text())\n .then(html => {\n this.renewalDaysForQuarterlyDateBasedPlansTarget.innerHTML = html\n })\n } else {\n this.renewalDaysForQuarterlyDateBasedPlansTarget.innerHTML = \"\"\n }\n }\n\n toggleFeedRedirect(event) {\n if (this._feedWasSelected(event)) {\n this._showFeedRedirectSetting()\n this.changeRedirectSettingsDescription()\n } else if (this.noFeedsSelected && this.hasDiscordIntegrationValue === false) {\n this._hideFeedRedirectSetting()\n this._hideFeedSubscriptionCopy()\n }\n }\n\n changeRedirectSettingsDescription() {\n if (this.feedRedirectSettingTarget.value === \"true\") {\n this._showFeedSubscriptionCopy()\n } else {\n this._hideFeedSubscriptionCopy()\n }\n }\n\n get customRenewalPrice() {\n return this.customRenewalPriceTarget.value\n }\n\n get renewalFrequency() {\n if (this.hasRenewalFrequencySelectBoxTarget) {\n return this.renewalFrequencySelectBoxTarget.value\n } else {\n return this.currentRenewalFrequencyValue\n }\n }\n\n get dateBasedPlan() {\n return (this.subscriptionTermTarget.value === \"renew_indefinitely\") && this.specificDaySelected\n }\n\n get startingMonth() {\n return this.startingMonthTarget.value\n }\n\n get renewalDay() {\n return this.renewalDayTarget.value\n }\n\n get numberOfSelectedFeeds() {\n return this.feedTargets.filter((feed) => { return feed.checked }).length\n }\n\n get onlyOneFeedSelected() {\n return this.numberOfSelectedFeeds === 1\n }\n\n get noFeedsSelected() {\n return this.numberOfSelectedFeeds === 0\n }\n\n get specificDaySelected() {\n return this.specificDayTarget.checked === true\n }\n\n get chooseWhatYouPaySelected() {\n const input = this.chooseWhatYouPayTarget\n\n return (input.checked || input.value === \"true\")\n }\n\n get allowCustomRenewalPriceSelected() {\n return this.allowCustomRenewalPriceTarget.checked === true\n }\n\n get teamPlanEnabled() {\n return (this.teamPlanTarget.checked || this.teamPlanTarget.value === \"true\")\n }\n\n get downloadsCount() {\n return this.downloadTargets.reduce((acc, download) => {\n return download.checked ? acc + 1 : acc\n }, 0)\n }\n\n get podcastsCount() {\n return this.feedTargets.reduce((acc, feed) => {\n return feed.checked ? acc + 1 : acc\n }, 0)\n }\n\n get initialSummaryData() {\n return Object.assign({\n custom_renewal_price: this.customRenewalPrice,\n downloads_count: this.downloadsCount,\n gift_purchase_link: this.giftPurchaseLinkValue,\n plan_purchase_link: this.planPurchaseLinkValue,\n plan_slug: this.planSlugValue,\n podcasts_count: this.podcastsCount,\n trial_price: this.trialPrice\n }, serializeForm(this.element).plan)\n }\n\n get planCanUseCustomRenewalPrice() {\n return (this.renewalFrequency !== \"lifetime\") && !this.chooseWhatYouPaySelected\n }\n\n get paidTrialSelected() {\n return this.trialTypeTarget.value === \"paid\"\n }\n\n get trialPrice() {\n return this.trialPriceTarget.value\n }\n\n // Private\n\n _display(target) {\n target.classList.remove(\"hidden\")\n }\n\n _hide(target) {\n target.classList.add(\"hidden\")\n }\n\n _enable(target) {\n target.classList.remove(\"opacity-50\")\n target.querySelectorAll(\"input\").forEach((input) => {\n input.removeAttribute(\"disabled\")\n })\n }\n\n _disable(target) {\n target.classList.add(\"opacity-50\")\n target.querySelectorAll(\"input\").forEach((input) => {\n input.setAttribute(\"disabled\", \"\")\n })\n }\n\n _feedWasSelected(event) {\n return event.currentTarget.checked === true\n }\n\n _showFeedRedirectSetting() {\n this.feedRedirectContainerTarget.classList.remove(\"hidden\")\n }\n\n _hideFeedRedirectSetting() {\n this.feedRedirectContainerTarget.classList.add(\"hidden\")\n }\n\n _showFeedSubscriptionCopy() {\n this.automaticRedirectCopyTarget.classList.add(\"hidden\")\n this.feedSubscriptionCopyTarget.classList.remove(\"hidden\")\n }\n\n _hideFeedSubscriptionCopy() {\n this.feedSubscriptionCopyTarget.classList.add(\"hidden\")\n this.automaticRedirectCopyTarget.classList.remove(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n cache(event) {\n if (this.element.contains(document.activeElement)){\n this.activeElement = document.activeElement.id\n }\n }\n\n focus(event) {\n if (this.activeElement) {\n document.getElementById(this.activeElement).focus()\n }\n\n delete this.activeElement\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { getMetaValue } from \"helpers\"\n\nexport default class extends Controller {\n static targets = [\"error\"]\n static values = { url: String }\n\n enter(event) {\n if (event.keyCode === 13) {\n this.submit(event)\n }\n }\n\n submit(event) {\n event.preventDefault()\n\n const data = new FormData(this.element)\n const options = {\n method: \"POST\",\n body: data,\n credentials: \"same-origin\",\n headers: {\n \"X-CSRF-Token\": getMetaValue(\"csrf-token\")\n }\n }\n\n fetch(this.urlValue, options)\n .then(response => {\n return response.ok ? response.text() : Promise.reject()\n })\n .then(html => {\n this.element.outerHTML = html\n })\n .catch(error => {\n this.showError()\n })\n }\n\n showError() {\n this.errorTarget.classList.remove(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static classes = [\"visible\"]\n static targets = [\"sidebar\"]\n static values = {\n name: String\n }\n\n connect(event) {\n if (sessionStorage.getItem(this.#itemName) === \"false\") {\n this.sidebarTarget.classList.remove(this.visibleClass)\n }\n }\n\n disconnect(event) {\n this.sidebarTarget.classList.add(this.visibleClass)\n }\n\n toggle(event) {\n sessionStorage.setItem(this.#itemName, this.sidebarTarget.classList.toggle(this.visibleClass))\n }\n\n get #itemName() {\n return `${this.nameValue}-${this.visibleClass}`\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n Memberful.generateChart(this.element)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\n// When a Turbo frame is not able to update its content from the response,\n// Turbo transforms the response into a `Visit` and navigates to the page.\n//\n// In some cases, this is not a desired behavior. For example, if an eagerly\n// loaded frame fails to load, we might want to ignore it instead of visiting\n// another page.\n//\n// See https://turbo.hotwired.dev/reference/events for more information.\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener(\"turbo:frame-missing\", (event) => event.preventDefault() )\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n open(event) {\n const result = this.intercom(\"show\")\n\n if (result !== false) {\n event.preventDefault()\n }\n }\n\n hide() {\n this.intercom(\"update\", { hide_default_launcher: true })\n }\n\n show() {\n this.intercom(\"update\", { hide_default_launcher: false })\n }\n\n get intercom() {\n return window.Intercom || (() => { return false })\n }\n}\n","import \"@mux/mux-player\"\nimport \"player.style/sutro\"\n\nimport { Controller } from \"@hotwired/stimulus\"\nimport http from \"helpers/http\"\n\nconst MUX_TOKEN_EXPIRED_ERROR = 2403210\n\nexport default class extends Controller {\n static values = { signedTokenUrl: String }\n\n connect() {\n this.element.addEventListener(\"error\", this.#error.bind(this))\n }\n\n disconnect() {\n this.element.removeEventListener(\"error\", this.#error)\n }\n\n #error(event) {\n this.currentPlaybackTime = this.element.currentTime\n\n if (event.detail?.muxCode === MUX_TOKEN_EXPIRED_ERROR) {\n this.#refreshToken()\n }\n }\n\n #refreshToken() {\n http.post(this.signedTokenUrlValue).json().then(response => {\n this.signedToken = response.signed_token\n this.#resume()\n })\n }\n\n #resume() {\n this.element.currentTime = this.currentPlaybackTime\n this.element.play()\n }\n\n set signedToken(token) {\n const videoSrc = new URL(this.element.src)\n videoSrc.searchParams.set(\"token\", token)\n\n this.element.src = videoSrc.toString()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nconst tabKey = 9\nconst enterKey = 13\nconst upKey = 38\nconst downKey = 40\nconst navigationKeys = [tabKey, enterKey, upKey, downKey]\n\nexport default class extends Controller {\n static targets = [ \"result\" ]\n\n connect() {\n this.currentResultIndex = 0\n this.selectCurrentResult()\n }\n\n navigateResults(event) {\n if(!navigationKeys.includes(event.keyCode)) {\n return\n }\n\n event.preventDefault()\n\n switch(event.keyCode) {\n case downKey:\n case tabKey:\n this.selectNextResult()\n break;\n case upKey:\n this.selectPreviousResult()\n break;\n case enterKey:\n this.goToSelectedResult()\n break;\n }\n }\n\n // private\n\n selectCurrentResult() {\n this.resultTargets.forEach((element, index) => {\n element.classList.toggle(\"selected\", index == this.currentResultIndex)\n })\n }\n\n selectNextResult() {\n if(this.currentResultIndex < this.resultTargets.length - 1) {\n this.currentResultIndex++\n } else {\n this.currentResultIndex = 0\n }\n this.selectCurrentResult()\n }\n\n selectPreviousResult() {\n if(this.currentResultIndex == 0) {\n this.currentResultIndex = this.resultTargets.length - 1\n } else {\n this.currentResultIndex--\n }\n this.selectCurrentResult()\n }\n\n goToSelectedResult() {\n this.resultTargets[this.currentResultIndex].firstElementChild.click()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport docsearch from \"@docsearch/js\"\n\nexport default class extends Controller {\n connect() {\n docsearch({\n placeholder: \"Search help documentation\",\n container: this.element,\n appId: \"WY9GKBNRUM\",\n indexName: \"memberful\",\n apiKey: \"5609f1a73fb448a5ad76db5ac419648b\",\n hitComponent({ hit, children }) {\n return {\n type: \"a\",\n ref: undefined,\n constructor: undefined,\n key: undefined,\n props: {\n href: hit.url,\n target: \"_blank\",\n children\n },\n __v: null\n }\n },\n navigator: {\n navigate({ itemUrl }) {\n const windowReference = window.open(itemUrl, \"_blank\", \"noopener\")\n\n if (windowReference) {\n windowReference.focus()\n }\n },\n navigateNewTab({ itemUrl }) {\n const windowReference = window.open(itemUrl, \"_blank\", \"noopener\")\n\n if (windowReference) {\n windowReference.focus()\n }\n },\n navigateNewWindow({ itemUrl }) {\n window.open(itemUrl, \"_blank\", \"noopener\")\n },\n },\n translations: {\n button: {\n buttonAriaLabel: \"Search our help center\",\n buttonText: \"Search our help center\"\n }\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport hljs from \"highlight.js/lib/core\"\n\nhljs.registerLanguage(\"javascript\", require(\"highlight.js/lib/languages/javascript\"))\nhljs.registerLanguage(\"xml\", require(\"highlight.js/lib/languages/xml\"))\n\nexport default class extends Controller {\n connect() {\n hljs.highlightElement(this.element)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"fileReplaceLink\",\n \"fileReplaceCancelLink\",\n \"fileInput\",\n \"fileUpload\",\n \"fileUploadLabel\",\n \"uploadProgressContainer\",\n \"uploadProgressCounter\",\n \"uploadProgressBar\",\n \"uploadedFile\"\n ]\n\n showFileInput(event) {\n event.preventDefault()\n this.fileReplaceLinkTarget.classList.add(\"hidden\")\n this.fileUploadTarget.classList.remove(\"hidden\")\n this.fileReplaceCancelLinkTarget.classList.remove(\"hidden\")\n this.uploadedFileTarget.classList.add('hidden')\n }\n\n hideFileInput(event) {\n event.preventDefault()\n this.uploadedFileTarget.classList.remove('hidden')\n this.fileReplaceLinkTarget.classList.remove(\"hidden\")\n this.fileUploadTarget.classList.add(\"hidden\")\n this.fileReplaceCancelLinkTarget.classList.add(\"hidden\")\n this.fileUploadLabelTarget.innerHTML = \"Choose a file from your computer...\"\n this.fileInputTarget.value = null\n }\n\n fileAdded(event) {\n this.fileUploadLabelTarget.innerText = event.target.files[0].name\n }\n\n showUploadProgress() {\n this.uploadProgressContainerTarget.classList.remove(\"hidden\")\n }\n\n updateUploadProgress(event) {\n this.uploadProgressBarTarget.value = event.detail.progress\n this.uploadProgressCounterTarget.innerHTML = Math.round(event.detail.progress)\n }\n\n cancelUpload(event) {\n event.preventDefault()\n location.reload()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"container\", \"customPreset\", \"entryButton\"]\n\n setCustomPreset() {\n this.customPresetTarget.checked = true\n this.dispatch(\"select\")\n }\n\n toggleContainer() {\n this.containerTarget.classList.toggle(\"hidden\")\n this.containerTarget.focus()\n }\n\n blur({ relatedTarget }) {\n if (relatedTarget != this.entryButtonTarget)\n this.containerTarget.classList.add(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"modal\"]\n\n connect() {\n this.shownConfirmation = false\n }\n\n showConfirmation(event) {\n const role = event.target.value\n\n if (role && !this.shownConfirmation) {\n this.modalTarget.dataset.controller = \"modal\"\n this.modalTarget.classList.remove(\"hidden\")\n\n this.shownConfirmation = true\n }\n }\n}\n","import SearchController from \"./search_controller\"\n\nexport default class extends SearchController {\n // private\n \n handleFocusKey(event) {}\n\n get searchResultsController() {\n return this.application.getControllerForElementAndIdentifier(this.resultsTarget.firstElementChild, \"team-member-search-results\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"deleteInput\", \"id\", \"value\"]\n static values = { persisted: Boolean }\n\n get option() {\n return {\n id: this.idTarget.value,\n value: this.valueTarget.value.trim()\n }\n }\n\n delete() {\n if (this.persistedValue) {\n if (!confirm(\"Are you sure?\"))\n return\n }\n\n this._delete()\n this.element.classList.add(\"hidden\")\n this.dispatch(\"deleted\")\n }\n\n _delete() {\n this.deleteInputTarget.value = \"true\"\n this.deleted = true\n }\n}\n","document.addEventListener(\"turbo:frame-missing\", (event) => {\n message = `The response did not contain the expected Turbo frame element .`\n\n if (window.Rollbar) {\n Rollbar.error(message, {\n request_url: event.detail.response.url,\n request_uuid: event.detail.response.headers.get(\"x-request-id\"),\n cloudflare_ray_id: event.detail.response.headers.get(\"cf-ray\")\n })\n } else {\n console.error(message)\n }\n})\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"audio\", \"loading\", \"pause\", \"play\"]\n\n loading() {\n this.pauseTarget.classList.add(\"hidden\")\n this.playTarget.classList.add(\"hidden\")\n this.loadingTarget.classList.remove(\"hidden\")\n }\n\n play() {\n this.audioTarget.play()\n }\n\n playing() {\n this.loadingTarget.classList.add(\"hidden\")\n this.playTarget.classList.add(\"hidden\")\n this.pauseTarget.classList.remove(\"hidden\")\n }\n\n pause() {\n this.audioTarget.pause()\n }\n\n paused() {\n this.pauseTarget.classList.add(\"hidden\")\n this.playTarget.classList.remove(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n transitionDuration: Number\n }\n\n connect() {\n this.element.style.transitionDuration = `${this.transitionDurationValue}ms`\n }\n\n disconnect() {\n this.element.remove()\n }\n\n open() {\n this.element.showModal()\n requestAnimationFrame(() => this.element.classList.add(\"open\"))\n }\n\n close(event) {\n this.element.classList.remove(\"open\")\n\n setTimeout(() => {\n this.element.close()\n this.element.querySelector(\"turbo-frame\").replaceChildren()\n\n if (event.params.event) {\n this.element.dispatchEvent(new CustomEvent(event.params.event, { bubbles: true }))\n }\n }, this.transitionDurationValue)\n }\n\n stream(event) {\n const target = document.getElementById(event.detail.newStream.target)\n if (this.element.contains(target)) this.open()\n }\n\n submit(event) {\n if (event.detail.success) {\n this.close(event)\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from \"lodash\"\nimport http from \"helpers/http\"\n\nconst sKey = 83\nconst escKey = 27\n\nexport default class extends Controller {\n static targets = [ \"lengthWarning\", \"form\", \"icon\", \"query\", \"results\", \"spinner\" ]\n static values = { minLength: Number }\n\n disconnect() {\n this.resetSearch()\n }\n\n keyUp(event) {\n this.handleFocusKey(event)\n this.handleResetKey(event)\n }\n\n search() {\n if (this.query == \"\") {\n this.resetSearch()\n return\n }\n\n if (this.query == this.previousQuery) {\n this.hideLengthWarning()\n return\n }\n\n if (this.hasMinLengthValue && this.query.length < this.minLengthValue) {\n this.showLengthWarning()\n return\n }\n\n this.hideLengthWarning()\n this.sendRequest()\n }\n\n sendRequest = debounce(() => {\n this.previousQuery = this.query\n\n this.abortPreviousRequest()\n this.loading()\n http.get(this.searchUrl, { searchParams: { realtime: true, query: this.query }, signal: this.abortController.signal })\n .text().then(html => { this.resultsTarget.innerHTML = html })\n .finally(() => { this.done() })\n }, 400)\n\n navigateResults(event) {\n if(this.searchResultsController) {\n this.searchResultsController.navigateResults(event)\n }\n }\n\n hideSearch(event) {\n if(!this.formTarget.contains(event.target)) {\n this.resetSearch()\n }\n }\n\n // private\n\n handleFocusKey(event) {\n if(event.keyCode == sKey && document.activeElement.nodeName == \"BODY\") {\n event.preventDefault()\n this.queryTarget.focus()\n }\n }\n\n handleResetKey(event) {\n if(event.keyCode == escKey) {\n this.resetSearch()\n }\n }\n\n resetSearch() {\n this.hideLengthWarning()\n this.abortPreviousRequest()\n this.done()\n this.previousQuery = null\n this.queryTarget.value = \"\"\n this.resultsTarget.innerHTML = \"\"\n }\n\n abortPreviousRequest() {\n if (this.abortController)\n this.abortController.abort();\n\n this.abortController = new AbortController()\n }\n\n showLengthWarning() {\n if (this.hasLengthWarningTarget) {\n this.lengthWarningTarget.classList.remove(\"hidden\")\n }\n }\n\n hideLengthWarning() {\n if (this.hasLengthWarningTarget) {\n this.lengthWarningTarget.classList.add(\"hidden\")\n }\n }\n\n loading() {\n if (this.hasIconTarget && this.hasSpinnerTarget) {\n this.iconTarget.classList.add(\"hidden\")\n this.spinnerTarget.classList.remove(\"hidden\")\n }\n }\n\n done() {\n if (this.hasIconTarget && this.hasSpinnerTarget) {\n this.iconTarget.classList.remove(\"hidden\")\n this.spinnerTarget.classList.add(\"hidden\")\n }\n }\n\n get searchUrl() {\n return this.formTarget.action\n }\n\n get query() {\n return this.queryTarget.value\n }\n\n get searchResultsController() {\n return this.application.getControllerForElementAndIdentifier(this.resultsTarget.firstElementChild, \"search-results\")\n }\n}\n","import tailwindConfig from \"../../../tailwind.config\"\n\nexport const appearance = {\n variables: {\n borderRadius: \"4px\",\n colorPrimary: tailwindConfig.theme.extend.colors.blue[\"500\"],\n colorDanger: tailwindConfig.theme.extend.colors.red[\"600\"],\n fontFamily: tailwindConfig.theme.extend.fontFamily.system.join(\", \"),\n fontSizeBase: \"16px\",\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.focus()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport http from \"helpers/http\"\n\nexport default class extends Controller {\n static targets = [\n \"inputType\",\n \"label\",\n \"option\",\n \"position\",\n \"required\"\n ]\n\n static values = { deletePath: String, id: Number }\n\n get customField() {\n return {\n inputType: this.inputTypeTarget.value,\n label: this.labelTarget.value,\n options: this.options,\n position: this.positionTarget.value,\n required: this.requiredTarget.checked,\n }\n }\n\n get options() {\n return this.optionTargets.map(optionTarget => {\n const controller = this.application.getControllerForElementAndIdentifier(optionTarget, \"custom-field-option\")\n const option = controller.option\n\n if (!controller.deleted && option.value.length > 0)\n return option\n }).filter(option => option)\n }\n\n setDefaults(event) {\n const option = event.target.options[event.target.selectedIndex]\n\n if (option.dataset.customFieldDefaultLabel) {\n this.labelTarget.value = option.dataset.customFieldDefaultLabel\n }\n\n if (option.dataset.customFieldDefaultRequired) {\n this.requiredTarget.checked = option.dataset.customFieldDefaultRequired\n }\n }\n\n remove(event) {\n event.preventDefault()\n\n if (this.idValue) {\n if (!confirm(\"Are you sure?\")) {\n return\n }\n\n http.delete(this.deletePathValue, { searchParams: { id: this.idValue }}).then(response => {\n this.element.remove()\n })\n } else {\n this.element.remove()\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"display\", \"input\"]\n\n connect() {\n this.toggle()\n }\n\n toggle() {\n const checked = this.inputTargets.some(input => input.checked)\n\n this.displayTargets.forEach(target => {\n target.classList.toggle(\"hidden\", !checked)\n })\n }\n}\n","import SortableController from \"./sortable_controller\"\n\nexport default class extends SortableController {\n static targets = [\"item\"]\n\n enableDragging(event) {\n this.itemFor(event.currentTarget).setAttribute(\"draggable\", true)\n }\n\n disableDragging(event) {\n this.itemFor(event.currentTarget).setAttribute(\"draggable\", false)\n }\n\n dragStart(event) {\n event.dataTransfer.effectAllowed = \"move\"\n this.draggedItem = event.currentTarget\n requestAnimationFrame(() => {\n this.draggedItem.style.opacity = \"0\"\n })\n }\n\n dragEnd(event) {\n this.draggedItem.style.opacity = \"\"\n this.updatePositions()\n }\n\n dragOver(event) {\n event.preventDefault()\n\n let dragOverItem = event.currentTarget\n\n if(dragOverItem.isEqualNode(this.draggedItem)) {\n return\n }\n\n if(this.isPositionedBeforeDraggedItem(dragOverItem)) {\n dragOverItem.insertAdjacentElement(\"beforebegin\", this.draggedItem);\n } else {\n dragOverItem.insertAdjacentElement(\"afterend\", this.draggedItem);\n }\n }\n\n preventDragover(event) {\n // Calling `preventDefault()` ensures that the `drop` event is fired when a\n // draggable element is dropped outside of the sortable area. We want to\n // fire the `drop` event because it disables the \"fly back to the original\n // location\" animation for the dragged element.\n event.preventDefault()\n }\n\n // private\n\n isPositionedBeforeDraggedItem(item) {\n return item.compareDocumentPosition(this.draggedItem) & Node.DOCUMENT_POSITION_FOLLOWING\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"label\", \"title\"]\n\n connect() {\n this.inferLabel = this.titleTarget.value === this.labelTarget.value\n }\n\n setLabel(event) {\n if (this.inferLabel) {\n this.labelTarget.value = event.target.value\n\n if (this.labelTarget.hasAttribute(\"maxlength\")) {\n const maxlength = Number(this.labelTarget.getAttribute(\"maxlength\"))\n this.labelTarget.setCustomValidity(this.labelTarget.value.length > maxlength ? \"Too long\" : \"\")\n }\n }\n }\n\n resetLabel() {\n this.labelTarget.setCustomValidity(\"\")\n this.inferLabel = false\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"submitButton\"]\n\n connect() {\n this.checkAnswers()\n }\n\n checkAnswers() {\n if(this.element.checkValidity()) {\n this.submitButtonTarget.disabled = false\n } else {\n this.submitButtonTarget.disabled = true\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n id: String\n }\n\n connect() {\n if(!this.isScrollable) return\n\n this.restoreScrollPosition()\n\n this.scrollPositionHandler = this.saveScrollPosition.bind(this)\n document.addEventListener(\"turbo:before-cache\", this.scrollPositionHandler)\n }\n\n disconnect() {\n document.removeEventListener(\"turbo:before-cache\", this.scrollPositionHandler)\n }\n\n // private\n\n restoreScrollPosition() {\n if (this.savedPosition) {\n this.element.scrollLeft = this.savedPosition\n }\n }\n\n saveScrollPosition() {\n this.savedPosition = this.element.scrollLeft\n }\n\n get savedPosition() {\n return sessionStorage.getItem(this.storageKey)\n }\n\n set savedPosition(value) {\n sessionStorage.setItem(this.storageKey, value)\n }\n\n get isScrollable() {\n return this.element.scrollWidth > this.element.offsetWidth\n }\n\n get storageKey() {\n return `${this.idValue}-navigation-position`\n }\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CouponSummary.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CouponSummary.vue?vue&type=script&lang=js\"","\n\n\n","import { render, staticRenderFns } from \"./CouponSummary.vue?vue&type=template&id=54a847f4\"\nimport script from \"./CouponSummary.vue?vue&type=script&lang=js\"\nexport * from \"./CouponSummary.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"CouponSummary.vue\"\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"w-full p-0 block-white lg:w-2/5 lg:float-right coupon-summary\"},[_c('p',{staticClass:\"w-full pt-2 pb-2 pl-4 pr-4 text-sm text-gray-600 border-b border-gray-300\"},[_vm._v(\"Summary\")]),_vm._v(\" \"),_c('div',{staticClass:\"text-gray-700 p-4\"},[(_vm.code)?_c('div',{staticClass:\"bg-blue-500 text-white rounded px-3 py-1 inline-flex items-center mb-2\"},[_c('SvgIcon',{staticClass:\"fill-current w-4 h-4 mr-2\",attrs:{\"name\":\"tag\"}}),_vm._v(\" \"),_c('span',{staticClass:\"font-bold\"},[_vm._v(_vm._s(_vm.code))])],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center\"},[_vm._v(\"Coupon type:\\n \"),_c('span',{staticClass:\"font-bold text-black capitalize mx-1\"},[_vm._v(\"\\n \"+_vm._s(_vm.coupon_type.replace(\"_\", \"-\"))+\"\\n \")]),_vm._v(\" \"),_c('span',{ref:\"typeTip\",attrs:{\"data-tippy-content\":_vm.couponTooltipCopy}},[_c('svg',{staticClass:\"stroke-current text-gray-600 w-4 h-4\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"24\",\"height\":\"24\",\"viewBox\":\"0 0 24 24\"}},[_c('g',{attrs:{\"stroke-linejoin\":\"round\",\"stroke-linecap\":\"round\",\"stroke-width\":\"2\",\"fill\":\"none\"}},[_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\"}}),_c('circle',{attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"9\"}}),_c('path',{attrs:{\"d\":\"M12 8h.01\"}}),_c('path',{attrs:{\"d\":\"M11 12h1v4h1\"}})])])])]),_vm._v(\" \"),_c('div',[_vm._v(\"Discount member receives: \"),_c('span',{staticClass:\"font-bold text-black\"},[_vm._v(_vm._s(_vm.amount))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2 text-sm\"},[_c('ul',[(_vm.coupons_count > 1)?_c('li',[_vm._v(\"\\n This bulk discount has \"+_vm._s(_vm.coupons_count)+\" coupons\\n \")]):_vm._e(),_vm._v(\" \"),((this.limit_scope === 'false'))?_c('li',[_vm._v(\"\\n Applies to all plans and downloads\\n \")]):_c('div',[((this.plans))?_c('li',[_vm._v(\"\\n Applies to plans: \"+_vm._s(_vm.plans)+\"\\n \")]):_vm._e(),_vm._v(\" \"),((this.products))?_c('li',[_vm._v(\"\\n Applies to downloads: \"+_vm._s(_vm.products)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),((this.maximum_number_of_redemptions > 0))?_c('li',[_vm._v(\"\\n Maximum of \"+_vm._s(_vm.pluralize(\"redemption\", this.maximum_number_of_redemptions))+\"\\n \")]):_c('li',[_vm._v(\"\\n Unlimited redemptions\\n \")]),_vm._v(\" \"),(this.start_at && !this.end_at)?_c('li',[_vm._v(\"\\n Redeemable from \"+_vm._s(this.start_at)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(this.start_at && this.end_at)?_c('li',[_vm._v(\"\\n Redeemable between \"+_vm._s(this.start_at)+\" and \"+_vm._s(this.end_at)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(!this.start_at && this.end_at)?_c('li',[_vm._v(\"\\n Redeemable until \"+_vm._s(this.end_at)+\"\\n \")]):_vm._e(),_vm._v(\" \"),((this.coupon_type === 'limited'))?_c('li',[_vm._v(\"\\n Limited to \"+_vm._s(_vm.recurring_limit)+\" payments per member\\n \")]):_vm._e(),_vm._v(\" \"),((this.always_require_card === true))?_c('li',[_vm._v(\"\\n Requires a card when coupon covers entire cost\\n \")]):_vm._e()])])]),_vm._v(\" \"),(_vm.url)?_c('div',{staticClass:\"w-full p-4 border-t border-gray-300\"},[_c('p',{staticClass:\"mb-2 text-sm text-gray-600\"},[_vm._v(\"Pre-applied coupon link:\")]),_vm._v(\" \"),_c('div',{staticClass:\"clipboard\",attrs:{\"data-controller\":\"clipboard\"}},[_c('a',{staticClass:\"clipboard__source\",attrs:{\"href\":_vm.url,\"target\":\"_blank\",\"data-clipboard-target\":\"source\"}},[_vm._v(_vm._s(_vm.url))]),_vm._v(\" \"),_c('button',{staticClass:\"clipboard__button\",attrs:{\"type\":\"button\",\"data-action\":\"clipboard#copy\"}},[_vm._v(\"Copy\")])])]):_vm._e(),_vm._v(\" \"),(_vm.coupon_id)?_c('div',{staticClass:\"w-full p-4 border-t border-gray-300\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"clipboard\",attrs:{\"data-controller\":\"clipboard\"}},[_c('div',{staticClass:\"clipboard__source\",attrs:{\"data-clipboard-target\":\"source\"}},[_vm._v(_vm._s(_vm.coupon_id))]),_vm._v(\" \"),_c('button',{staticClass:\"clipboard__button\",attrs:{\"type\":\"button\",\"data-action\":\"clipboard#copy\"}},[_vm._v(\"Copy\")])])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mb-2 text-sm text-gray-600\"},[_vm._v(\"\\n Coupon ID for \"),_c('a',{staticClass:\"link\",attrs:{\"href\":\"https://memberful.com/help/how-to/create-coupons-in-bulk-via-api/\",\"target\":\"_blank\"}},[_vm._v(\"generating bulk coupon codes\")]),_vm._v(\":\\n \")])\n}]\n\nexport { render, staticRenderFns }","import { Controller } from \"@hotwired/stimulus\"\nimport Vue from \"vue\"\nimport CouponSummary from \"../../components/CouponSummary.vue\"\nimport { serializeForm, selectedOptions } from \"helpers\"\n\nexport default class extends Controller {\n static targets = [\n \"planOption\",\n \"productOption\",\n \"downloadOption\",\n ]\n\n static values = {\n couponType: String,\n couponId: Number,\n couponsCount: Number,\n plans: String,\n products: String,\n url: String,\n }\n\n connect() {\n this.summaryElement = new Vue({\n data: this.initialSummaryData,\n el: \"#coupon-summary\",\n render: function(createElement) {\n return createElement(CouponSummary, {\n props: this.$data\n })\n }\n })\n }\n\n updateSummary(event) {\n const [, fieldName] = event.target.name.match(/discount\\[(\\w+)\\]/)\n\n if (fieldName === \"plan_ids\") {\n let selected = selectedOptions(this.planOptionTargets).sort()\n this.summaryElement[\"plans\"] = selected.join(\", \")\n } else if (fieldName === \"product_ids\") {\n let selected = selectedOptions(this.productOptionTargets).sort()\n this.summaryElement[\"products\"] = selected.join(\", \")\n } else if (event.target.type === \"checkbox\") {\n this.summaryElement[fieldName] = event.target.checked\n } else {\n this.summaryElement[fieldName] = event.target.value\n }\n }\n\n get initialSummaryData() {\n return Object.assign({\n coupon_id: this.couponIdValue,\n coupon_type: this.couponTypeValue,\n coupons_count: this.couponsCountValue,\n start_at: this.startAtValue,\n end_at: this.endAtValue,\n plans: this.plansValue,\n products: this.productsValue,\n url: this.urlValue,\n }, serializeForm(this.element).discount)\n }\n}\n","import { createPopper } from \"@popperjs/core\"\nimport { Controller } from \"@hotwired/stimulus\"\nimport Trix from \"trix\"\n\nexport default class extends Controller {\n static targets = [\"editor\", \"mode\", \"variables\", \"variablesMenu\"]\n\n addToolbarButton() {\n let buttonRow = this.editorTarget.toolbarElement.querySelector(\".trix-button-row\")\n let button = this.variablesMenuTarget.content\n\n if (!buttonRow.lastElementChild.isEqualNode(button)) {\n buttonRow.appendChild(button)\n }\n }\n\n insertVariable(event) {\n let attrs = JSON.parse(event.target.dataset.trixAttributes)\n\n let attachment = new Trix.Attachment({\n sgid: attrs.sgid,\n content: attrs.content\n })\n\n this.editorTarget.editor.insertAttachment(attachment)\n this.editorTarget.editor.insertString(\" \")\n }\n\n showVariables(event) {\n if (!this.popper) {\n event.stopPropagation()\n\n this.popper = createPopper(event.currentTarget, this.variablesTarget, {\n placement: \"bottom-end\"\n })\n\n this.variablesTarget.classList.remove(\"hidden\")\n\n document.addEventListener(\"click\", this.hideVariables.bind(this))\n }\n }\n\n hideVariables(event) {\n if (this.popper) {\n this.popper.destroy()\n this.popper = null\n\n this.variablesTarget.classList.add(\"hidden\")\n\n document.removeEventListener(\"click\", this.hideVariables.bind(this))\n }\n }\n\n toggleMode(event) {\n if (this.modeTarget.value == \"true\") {\n this.setMode(\"false\")\n } else {\n this.setMode(\"true\")\n }\n }\n\n setMode(value) {\n this.modeTarget.value = value\n this.modeTarget.dispatchEvent(new Event(\"change\", { bubbles: true }))\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport ApexCharts from \"apexcharts\"\n\nexport default class extends Controller {\n static targets = [\"tooltip\"]\n\n static values = {\n options: Object\n }\n\n initialize() {\n Object.assign(this, this.optionsValue)\n\n const { locale, currency: { code: currency, decimal_places } } = memberful.config\n\n this.currencyUnits = 10 ** decimal_places\n this.currencyFormat = new Intl.NumberFormat(locale, { style: \"currency\", notation: \"compact\", currency })\n this.numberFormat = new Intl.NumberFormat(locale)\n this.percentFormat = new Intl.NumberFormat(locale, { style: \"percent\" })\n }\n\n connect() {\n const options = this.chart.sparkline ? this.sparklineOptions : this.chartOptions\n\n this.chartElement = document.createElement(\"div\")\n this.element.appendChild(this.chartElement)\n\n this.chart = new ApexCharts(this.chartElement, options)\n this.chart.render()\n }\n\n disconnect() {\n this.chart.destroy()\n this.chartElement.remove()\n }\n\n formatter(value) {\n switch (this.format) {\n case \"currency\":\n return this.currencyFormat.format(value / this.currencyUnits)\n case \"percent\":\n return this.percentFormat.format(value)\n default:\n return this.numberFormat.format(value)\n }\n }\n\n get chartOptions() {\n return {\n series: this.series,\n plotOptions: {\n bar: {\n columnWidth: '50%',\n }\n },\n chart: {\n ...this.chart,\n animations: {\n enabled: false\n },\n fontFamily: \"inherit\",\n height: \"100%\",\n toolbar: {\n show: false\n },\n zoom: {\n enabled: false\n }\n },\n colors: this.colors,\n dataLabels: {\n enabled: false\n },\n fill: {\n opacity: 1,\n },\n grid: {\n borderColor: \"#f0f3f7\",\n padding: {\n right: 25,\n },\n },\n labels: this.labels,\n legend: {\n show: false\n },\n markers: {\n size: [4]\n },\n states: {\n active: {\n filter: {\n type: \"none\"\n }\n },\n hover: {\n filter: {\n type: \"none\"\n }\n }\n },\n stroke: {\n curve: \"smooth\",\n lineCap: \"round\",\n width: this.series.map(values => (values.type == \"line\" || values.type == \"area\") ? 4 : 0)\n },\n tooltip: {\n intersect: false,\n shared: true,\n custom: ({dataPointIndex: index}) => {\n if (this.hasTooltipTarget) {\n return this.tooltipTargets[index].innerHTML\n }\n }\n },\n xaxis: {\n axisBorder: {\n show: false\n },\n axisTicks: {\n color: \"#f0f3f7\",\n offsetY: -1\n },\n crosshairs: {\n show: this.chart.type === \"bar\"\n },\n labels: {\n rotate: 0\n },\n tooltip: {\n enabled: false\n },\n type: 'category'\n },\n yaxis: {\n ...this.yaxis,\n forceNiceScale: true,\n labels: {\n formatter: this.formatter.bind(this)\n }\n }\n }\n }\n\n get sparklineOptions() {\n return {\n ...this.chartOptions,\n markers: {\n size: 0,\n },\n grid: {\n padding: {\n top: 5,\n bottom: 5,\n },\n },\n fill: {\n gradient: {\n ...this.gradient,\n shadeIntensity: 0,\n enabled: true\n }\n },\n xaxis: {\n crosshairs: {\n show: true\n }\n }\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { toast } from \"../shared/toast_controller\"\n\nexport default class extends Controller {\n static targets = [\"license\", \"privateLicense\", \"publicLicense\"]\n static values = {\n disablePublicLicenses: Boolean\n }\n\n connect() {\n this.initialLicense = this.license\n this.publicLicenseTargets.forEach(target => target.dataset.initialDisabled = target.disabled)\n\n if (this.disablePublicLicensesValue)\n this.disablePublicLicenses()\n }\n\n disablePublicLicenses() {\n this.publicLicenseTargets.forEach(target => target.disabled = true)\n\n if (this.usingPublicLicense) {\n toast(this.element, \"info\", \"We changed your target audience to members only.\", 10000)\n this.privateLicenseTargets[0].click()\n }\n }\n\n resetPublicLicenses() {\n this.publicLicenseTargets.forEach(target => target.disabled = target.dataset.initialDisabled === \"true\")\n }\n\n get license() {\n return this.licenseTargets.find(target => target.checked)\n }\n\n get usingPublicLicense() {\n return this.publicLicenseTargets.some(target => target.checked)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static classes = [\"body\"]\n static targets = [\"exit\", \"enter\", \"options\"]\n\n toggle(event) {\n document.body.classList.toggle(this.bodyClass)\n this.exitTarget.classList.toggle(\"hidden\")\n this.enterTarget.classList.toggle(\"hidden\")\n this.optionsTarget.classList.toggle(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport tippy, {hideAll} from \"tippy.js\";\n\nexport default class extends Controller {\n static targets = [ \"source\" ]\n\n copy(event) {\n event.preventDefault()\n navigator.clipboard.writeText(this.textToCopy)\n hideAll()\n this.showFeedback(event.currentTarget, \"Copied!\")\n }\n\n // private\n\n get textToCopy() {\n const { value, innerText } = this.sourceTarget\n return value || innerText\n }\n\n showFeedback(element, message) {\n tippy(element, {\n appendTo: this.whereToAppendTooltip(element),\n content: message,\n showOnCreate: true,\n onHidden: (instance) => {\n instance.destroy()\n }\n });\n }\n\n whereToAppendTooltip(element) {\n return element.closest('dialog') ? \"parent\" : undefined\n }\n}\n","import { Application } from \"@hotwired/stimulus\";\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\";\n\nconst application = Application.start();\napplication.debug = process.env.NODE_ENV === \"development\"\n\nconst context = require.context(\"controllers/admin\", true, /_controller\\.js$/);\napplication.load(definitionsFromContext(context));\n\napplication.register(\"apply-coupon\", require(\"controllers/shared/apply_coupon_controller\").default)\napplication.register(\"auto-hide\", require(\"controllers/shared/auto_hide_controller\").default)\napplication.register(\"display\", require(\"controllers/shared/display_controller\").default)\napplication.register(\"drag-sortable\", require(\"controllers/shared/drag_sortable_controller\").default)\napplication.register(\"dropdown\", require(\"controllers/shared/dropdown_controller\").default)\napplication.register(\"fade-out\", require(\"controllers/shared/fade_out_controller\").default)\napplication.register(\"expandable-text-area\", require(\"controllers/shared/expandable_text_area_controller\").default)\napplication.register(\"mux-player\", require(\"controllers/shared/mux_player_controller\").default)\napplication.register(\"mux-upload\", require(\"controllers/shared/mux_upload_controller\").default)\napplication.register(\"number-input\", require(\"controllers/shared/number_input_controller\").default)\napplication.register(\"plan-change-form\", require(\"controllers/shared/plan_change_form_controller\").default)\napplication.register(\"reload\", require(\"controllers/shared/reload_controller\").default)\napplication.register(\"sortable\", require(\"controllers/shared/sortable_controller\").default)\napplication.register(\"suggestion\", require(\"controllers/shared/suggestion_controller\").default)\napplication.register(\"toast\", require(\"controllers/shared/toast_controller\").default)\napplication.register(\"toggle\", require(\"controllers/shared/toggle_controller\").default)\napplication.register(\"tooltip\", require(\"controllers/shared/tooltip_controller\").default)\napplication.register(\"touch-sortable\", require(\"controllers/shared/touch_sortable_controller\").default)\napplication.register(\"trix-align-text\", require(\"controllers/shared/trix_align_text_controller\").default)\napplication.register(\"trix-image-link\", require(\"controllers/shared/trix_image_link_controller\").default)\napplication.register(\"trix-image-toolbar\", require(\"controllers/shared/trix_image_toolbar_controller\").default)\napplication.register(\"trix-without-file-upload\", require(\"controllers/shared/trix_without_file_upload_controller\").default)\napplication.register(\"video-upload-form\", require(\"controllers/shared/video_upload_form_controller\").default)\n","import tippy from \"tippy.js\";\n\nimport \"controllers/admin\"\n\nrequire(\"trix\");\nrequire(\"@rails/actiontext\");\nrequire(\"@rails/activestorage\").start()\n\nimport \"@hotwired/turbo-rails\"\nimport \"helpers/stream_actions\"\nimport \"helpers/turbo_frames\"\n\nimport \"player.style/sutro\"\nimport \"player.style/sutro-audio\"\n\nimport { configureTrixAlignmentAttributes, configureTrixUrlPlaceholder, registerCustomAlignElements } from \"helpers/trix\"\nconfigureTrixAlignmentAttributes()\nconfigureTrixUrlPlaceholder()\nregisterCustomAlignElements()\n\nconst setupTooltips = () => {\n tippy(\".tooltip-minimal\", {\n allowHTML: true,\n arrow: true,\n })\n\n tippy(\".tooltip\", {\n allowHTML: true,\n arrow: true,\n maxWidth: \"358px\",\n placement: \"bottom\",\n theme: \"memberful-help\"\n });\n}\ndocument.addEventListener(\"turbo:load\", setupTooltips)\nif (typeof $ === \"function\") $(document).on(\"ajaxSuccess\", setupTooltips)\n\n// Fix Intercom widget for failed form submissions\n// https://3.basecamp.com/3293071/buckets/9856127/todos/4172961983\ndocument.addEventListener(\"turbo:submit-end\", (event) => {\n window.turboFormSubmissionFailed = !event.detail.success\n\n if(window.turboFormSubmissionFailed) {\n document.dispatchEvent(new Event(\"turbolinks:visit\"))\n document.dispatchEvent(new Event(\"turbolinks:before-cache\"))\n }\n})\ndocument.addEventListener(\"turbo:render\", () => {\n if(window.turboFormSubmissionFailed) {\n document.dispatchEvent(new Event(\"turbolinks:load\"))\n window.turboFormSubmissionFailed = false\n }\n})\n","import { Controller } from \"@hotwired/stimulus\"\nimport { getMetaValue } from \"helpers\"\nimport { appearance } from \"helpers/stripe_elements\"\n\nexport default class extends Controller {\n static targets = [\"card\", \"error\", \"submitButton\"]\n static values = { fontsUrl: String }\n\n connect() {\n this.createCardElement()\n }\n\n focus() {\n this.cardElement.focus()\n }\n\n submit(event) {\n event.preventDefault()\n event.stopPropagation()\n\n this.disableSubmitButton()\n this.createCardToken()\n }\n\n reset() {\n this.cardElement.clear()\n }\n\n // private\n\n createCardElement() {\n this.stripe = Stripe(getMetaValue(\"stripe-key\"), {\n stripeAccount: getMetaValue(\"stripe-account\")\n })\n\n const elements = this.stripe.elements({\n appearance: appearance,\n fonts: [\n {\n cssSrc: this.fontsUrlValue\n }\n ],\n locale: \"en\"\n })\n\n this.cardElement = elements.create(\"card\")\n this.cardElement.mount(this.cardTarget)\n this.cardElement.addEventListener(\"change\", event => {\n if (event.error) {\n this.error = event.error.message\n } else {\n this.error = \"\"\n }\n })\n }\n\n createCardToken() {\n const data = {\n card: this.cardElement,\n metadata: { memberful: \"true\" },\n type: \"card\"\n }\n\n this.stripe.createPaymentMethod(data).then(result => {\n if (result.error) {\n this.error = result.error.message\n this.enableSubmitButton()\n } else {\n this.submitForm(result.paymentMethod.id)\n }\n })\n }\n\n submitForm(paymentMethodId) {\n fetch(this.element.action, {\n method: \"PUT\",\n credentials: \"same-origin\",\n body: JSON.stringify({ payment_method_id: paymentMethodId }),\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": getMetaValue(\"csrf-token\")\n },\n })\n .then(response => response.json())\n .then(json => {\n if (json.error) {\n this.error = json.error\n this.enableSubmitButton()\n } else {\n Turbo.cache.clear()\n Turbo.visit(json[\"redirect_to\"], { action: \"replace\" })\n }\n })\n .catch(() => {\n this.error = \"Card could not be saved. Please try again later.\"\n this.enableSubmitButton()\n })\n }\n\n disableSubmitButton() {\n this.submitButtonTarget.setAttribute(\"disabled\", \"\")\n this.submitButtonTarget.dataset.enableWith = this.submitButtonTarget.value\n this.submittButtonTimeout = setTimeout(() => {\n this.submitButtonTarget.value = this.submitButtonTarget.dataset.disableWith\n }, 50)\n }\n\n enableSubmitButton() {\n clearTimeout(this.submittButtonTimeout)\n this.submitButtonTarget.value = this.submitButtonTarget.dataset.enableWith\n this.submitButtonTarget.removeAttribute(\"disabled\", \"\")\n }\n\n get error() {\n return this.errorMessage\n }\n\n set error(message) {\n this.errorMessage = message\n if (this.error.length === 0) {\n this.errorTarget.classList.add(\"hidden\")\n } else {\n this.errorTarget.textContent = this.error\n this.errorTarget.classList.remove(\"hidden\")\n }\n }\n}\n","import { focusWithin } from \"helpers\"\nimport { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static classes = [\"visible\"]\n\n open(event) {\n const panel = document.getElementById(event.params.id)\n const control = document.getElementById(panel.getAttribute(\"aria-labelledby\"))\n\n control.setAttribute(\"aria-expanded\", true)\n this.element.classList.add(this.visibleClass)\n\n focusWithin(panel)\n }\n\n close(event) {\n const panel = document.getElementById(event.params.id)\n const control = document.getElementById(panel.getAttribute(\"aria-labelledby\"))\n\n this.element.classList.remove(this.visibleClass)\n control.setAttribute(\"aria-expanded\", false)\n\n if (panel.contains(event.target)) control.focus()\n }\n\n toggle(event) {\n event.currentTarget.getAttribute(\"aria-expanded\") == \"true\" ? this.close(event) : this.open(event)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.click()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"memberId\", \"memberName\", \"memberEmail\", \"confirmationBox\", \"searchBar\", \"managerOptions\"]\n\n confirm(event) {\n const member = event.detail.member\n\n if (this.memberBelongsToTeam(member)) {\n return\n }\n\n this.showMemberDetails(member)\n this.hideSearchBar()\n this.askForConfirmation()\n }\n\n backToSearch(event) {\n event.preventDefault()\n\n this.hideConfirmation()\n this.hideManagerOptions()\n this.showSearchBar()\n this.resetMemberDetails()\n }\n\n // private\n\n memberBelongsToTeam(member) {\n return member.dataset.memberBelongsToTeam === \"true\"\n }\n\n showMemberDetails(member) {\n const memberName = member.dataset.memberName\n const memberEmail = member.dataset.memberEmail\n const memberId = member.dataset.memberId\n\n this.fillMemberDetails(memberName, memberEmail, memberId)\n }\n\n fillMemberDetails(memberName, memberEmail, memberId) {\n this.memberNameTargets.forEach(target => target.innerHTML = memberName)\n this.memberEmailTarget.innerHTML = memberEmail\n this.memberIdTarget.value = memberId\n }\n\n hideSearchBar() {\n this.searchBarTarget.classList.add(\"hidden\")\n }\n\n showSearchBar() {\n this.searchBarTarget.classList.remove(\"hidden\")\n }\n\n toggleManagerOptions(event) {\n event.target.checked ? this.showManagerOptions() : this.hideManagerOptions()\n }\n\n hideManagerOptions() {\n this.managerOptionsTarget.classList.add(\"hidden\")\n }\n\n showManagerOptions() {\n this.managerOptionsTarget.classList.remove(\"hidden\")\n }\n\n hideConfirmation() {\n this.confirmationBoxTarget.classList.add(\"hidden\")\n }\n\n askForConfirmation() {\n this.confirmationBoxTarget.classList.remove(\"hidden\")\n }\n\n resetMemberDetails() {\n this.fillMemberDetails(\"\", \"\", \"\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"option\"]\n\n optionTargetConnected(target) {\n if (!target.selected) {\n target.disabled = this.optionTargets.some(option => option.value === target.value && option.selected)\n }\n }\n\n optionTargetDisconnected(target) {\n if (target.selected) {\n this.optionTargets.filter(option => option.value === target.value).forEach(option => {\n option.disabled = false\n })\n }\n }\n\n select(event) {\n this.optionTargets.filter(option => event.target.contains(option)).forEach(child => {\n const siblings = this.optionTargets.filter(sibling => sibling.value === child.value)\n const selected = siblings.find(sibling => sibling.selected)\n\n siblings.forEach(sibling => sibling.disabled = selected && sibling !== selected)\n })\n }\n}\n","const defaultTheme = require('tailwindcss/defaultTheme')\nconst colors = require('tailwindcss/colors')\n\nmodule.exports = {\n darkMode: ['selector', '.dark'],\n content: [\n './app/**/*.html.erb',\n './app/helpers/**/*.rb',\n './app/javascript/**/*.js',\n './app/javascript/**/*.vue',\n './config/admin_menu.yml'\n ],\n theme: {\n extend: {\n aria: {\n current: 'current=\"true\"'\n },\n colors: {\n black: '#333',\n primary: {\n DEFAULT: 'rgb(var(--color-primary) / )',\n 400: 'rgb(var(--color-primary-400) / )',\n 500: 'rgb(var(--color-primary-500) / )',\n 600: 'rgb(var(--color-primary-600) / )',\n },\n secondary: {\n DEFAULT: 'rgb(var(--color-secondary) / )',\n 400: 'rgb(var(--color-secondary-400) / )',\n 500: 'rgb(var(--color-secondary-500) / )',\n 600: 'rgb(var(--color-secondary-600) / )',\n },\n admin: {\n 400: '#f7f7f7'\n },\n 'true-gray': {\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#E5E5E5',\n 300: '#D4D4D4',\n 400: '#A3A3A3',\n 500: '#737373',\n 600: '#525252',\n 700: '#404040',\n 800: '#262626',\n 900: '#171717',\n },\n gray: {\n 100: '#F7FAFC',\n 200: '#EDF2F7',\n 300: '#E2E8F0',\n 400: '#CBD5E0',\n 500: '#A0AEC0',\n 600: '#718096',\n 700: '#4A5568',\n 800: '#2D3748',\n 900: '#1A202C'\n },\n red: {\n 100: '#FFF5F5',\n 200: '#FED7D7',\n 300: '#FEB2B2',\n 400: '#FC8181',\n 500: '#F56565',\n 600: '#E53E3E',\n 700: '#C53030',\n 800: '#9B2C2C',\n 900: '#742A2A'\n },\n yellow: {\n 100: '#FFFFF0',\n 200: '#FEFCBF',\n 300: '#FAF089',\n 400: '#F6E05E',\n 500: '#ECC94B',\n 600: '#D69E2E',\n 700: '#B7791F',\n 800: '#975A16',\n 900: '#744210'\n },\n blue: {\n 100: '#EBF8FF',\n 200: '#BEE3F8',\n 300: '#90CDF4',\n 400: '#63B3ED',\n 500: '#4299E1',\n 600: '#3182CE',\n 700: '#2B6CB0',\n 800: '#2C5282',\n 900: '#2A4365'\n },\n green: {\n 100: '#F0FFF4',\n 200: '#C6F6D5',\n 300: '#9AE6B4',\n 400: '#68D391',\n 500: '#48BB78',\n 600: '#38A169',\n 700: '#2F855A',\n 800: '#276749',\n 900: '#22543D',\n },\n purple: {\n 100: '#FAF5FF',\n 200: '#E9D8FD',\n 300: '#D6BCFA',\n 400: '#B794F4',\n 500: '#9F7AEA',\n 600: '#805AD5',\n 700: '#6B46C1',\n 800: '#553C9A',\n 900: '#44337A',\n },\n 'theme': 'rgb(var(--theme-color) / )',\n 'theme-content': 'rgba(var(--theme-content-color) / )',\n 'accent': 'rgb(var(--accent-color) / )',\n 'accent-content': 'rgb(var(--accent-content-color) / )',\n },\n boxShadow: {\n base: '0px 16px 20px rgba(222, 222, 222, 0.25), 0px 4px 4px rgba(186, 186, 186, 0.1)',\n 'inner-sm': 'inset 0 1px 2px 0 rgba(0, 0, 0, 0.06)'\n },\n fontFamily: {\n sans: [\n 'Proxima Nova',\n 'Lucida Grande',\n 'Lucida Sans Unicode',\n 'Helvetica',\n 'Arial',\n 'Verdana',\n 'sans-serif'\n ],\n system: defaultTheme.fontFamily.sans,\n publishing: ['Newsreader', 'serif']\n },\n opacity: {\n '85': '0.85'\n },\n keyframes: {\n wiggle: {\n '0%, 50%, 100%': { transform: 'rotate(-.5deg)' },\n '25%, 75%': { transform: 'rotate(.5deg)' },\n },\n fadeIn: {\n '0%': {\n opacity: '0',\n },\n '100%': {\n opacity: '1',\n }\n }\n },\n animation: {\n wiggle: 'wiggle .2s',\n 'fade-in': 'fadeIn .3s',\n }\n }\n },\n plugins: [\n require('@tailwindcss/forms'),\n require('@tailwindcss/container-queries'),\n require('@tailwindcss/typography')\n ],\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nfunction isBlank(str) {\n return str.trim() === \"\"\n}\n\nexport default class extends Controller {\n static targets = [\"input\"]\n static outlets = [\"custom-field\"]\n\n connect() {\n this.channel = new BroadcastChannel(\"website-form\")\n }\n\n disconnect() {\n this.channel.close()\n delete this.channel\n }\n\n inputTargetConnected(input) {\n this.#updatePreview(input)\n }\n\n inputTargetDisconnected(input) {\n this.#updatePreview(input)\n }\n\n update(event) {\n let { id, type, checked, value } = event.target\n\n if (isBlank(value) && event.target.dataset.defaultValue) {\n value = event.target.dataset.defaultValue\n }\n\n this.#updatePreview({ id, type, checked, value })\n }\n\n updateCustomFields() {\n const message = {\n customFields: this.customFieldOutlets.map(outlet => outlet.customField)\n }\n\n this.channel.postMessage(message)\n }\n\n #updatePreview({ id, type, checked, value } = target) {\n if (!this.channel) return\n\n const message = {\n input: {\n id,\n type,\n checked,\n value\n }\n }\n\n this.channel.postMessage(message)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"renewalCheckBox\", \"renewalMessage\" ]\n\n connect() {\n this.showRenewalMessage()\n }\n\n showRenewalMessage() {\n this.renewalMessageTarget.classList.toggle(\"hidden\", !this.renewalCheckBoxTarget.checked)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"button\", \"uploaderContainer\"]\n\n lock() {\n this.submitButtons.forEach(button => button.disabled = true)\n }\n\n unlock() {\n this.submitButtons.forEach(button => button.disabled = false)\n }\n\n openUploader() {\n this.uploaderContainerTarget.classList.remove(\"!hidden\")\n this.buttonTarget.classList.add(\"!hidden\")\n }\n\n closeUploader() {\n this.uploaderContainerTarget.classList.add(\"!hidden\")\n this.buttonTarget.classList.remove(\"!hidden\")\n }\n\n get submitButtons() {\n return this.element.querySelectorAll(\"button[type=submit]\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { useTransition } from \"stimulus-use\"\n\nexport default class extends Controller {\n static targets = [\"container\"]\n\n connect() {\n useTransition(this, {\n element: this.containerTarget,\n })\n\n // Set initial ARIA attributes\n this.containerTarget.setAttribute(\"aria-haspopup\", \"true\")\n this.containerTarget.setAttribute(\"aria-expanded\", \"false\")\n }\n\n toggle() {\n if (this.containerTarget.classList.contains(\"hidden\")) {\n this.enter()\n this.containerTarget.setAttribute(\"aria-expanded\", \"true\")\n } else {\n this.leave()\n this.containerTarget.setAttribute(\"aria-expanded\", \"false\")\n }\n }\n\n hide(event) {\n if (this.outsideClick(event)) {\n this.leave()\n this.containerTarget.setAttribute(\"aria-expanded\", \"false\")\n }\n }\n\n // private\n\n outsideClick(event) {\n return !this.element.contains(event.target)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"items\"]\n\n disconnect() {\n if(!this.isActive) {\n $(this.itemsTarget).hide()\n }\n }\n\n toggle(event) {\n event.preventDefault()\n $(this.itemsTarget).slideToggle(\"fast\")\n }\n\n get isActive() {\n return !!this.element.querySelector(\"a.active\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = ['nav'];\n\n toggle(event) {\n event.preventDefault();\n this.navTargets.forEach((target) => {\n target.classList.toggle('is-open');\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"businessName\", \"country\", \"taxInclusive\"]\n static values = { newRecord: Boolean }\n\n connect() {\n this.updateTaxInclusiveInput()\n this.toggleBusinessNameInput()\n }\n\n updateTaxInclusiveInput() {\n if (this.newRecordValue) {\n const isTaxInclusive = (this.countryData.taxInclusive === \"true\")\n\n this.taxInclusiveTarget.checked = isTaxInclusive\n }\n }\n\n toggleBusinessNameInput() {\n if (this.countryData.showBusinessName === \"true\") {\n this.businessNameTarget.classList.remove(\"hidden\")\n } else {\n this.businessNameTarget.classList.add(\"hidden\")\n }\n }\n\n // private\n\n get countryData() {\n return this.countryTarget.selectedOptions[0].dataset\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.fadeIn()\n }\n\n disconnect() {\n this.element.remove()\n }\n\n close() {\n this.fadeOutAndRemoveFromDom()\n }\n\n // private\n\n fadeIn() {\n this.element.classList.add(\"modal--hidden\", \"modal--fade-in\")\n requestAnimationFrame(() => this.element.classList.remove(\"modal--hidden\"))\n }\n\n fadeOutAndRemoveFromDom() {\n this.element.ontransitionend = () => this.element.remove()\n this.element.classList.add(\"modal--hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport tippy from \"tippy.js\";\n\nexport default class extends Controller {\n static values = { enabled: Boolean, once: Boolean, storageKey: String }\n\n connect() {\n if (this.showTooltip) {\n this.instance = tippy(this.element, {\n hideOnClick: false,\n showOnCreate: true,\n trigger: \"manual\"\n })\n\n setTimeout(() => { this.instance.disable() }, 5000)\n\n if (this.markShown) {\n localStorage.setItem(this.storageKeyValue, true)\n }\n }\n }\n\n get showTooltip() {\n if (!this.enabledValue) return false\n if (!this.onceValue || !this.hasStorageKeyValue) return true\n\n return !localStorage.getItem(this.storageKeyValue)\n }\n\n get markShown() {\n return this.onceValue && this.hasStorageKeyValue\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"homeMenu\",\n \"homeMenuInput\",\n \"navigationItems\",\n \"saveButton\",\n \"unsavedChangesMessage\"\n ]\n\n static outlets = [ \"drag-sortable\" ]\n\n makeHomepage(event) {\n const newHomepageItem = document.getElementById(event.params.id)\n const oldHomepageItem = this.homeMenuItem\n\n if (oldHomepageItem) {\n this.moveToNavigationItems(oldHomepageItem)\n }\n\n this.setHomepageItem(newHomepageItem)\n\n this.dragSortableOutlet.updatePositions()\n }\n\n update() {\n this.updateHomepageItemPosition()\n this.enableSaveButton()\n this.showUnsavedChangesMessage()\n }\n\n // private\n\n moveToNavigationItems(item) {\n this.navigationItemsTarget.prepend(item)\n }\n\n setHomepageItem(item) {\n this.homeMenuInputTarget.value = item.dataset.menuItemId\n this.homeMenuTarget.prepend(item)\n }\n\n updateHomepageItemPosition() {\n if (this.homeMenuItem) {\n this.homeMenuItem.querySelector(\"[name*='position']\").value = \"-1\"\n }\n }\n\n enableSaveButton() {\n this.saveButtonTarget.disabled = false\n }\n\n showUnsavedChangesMessage() {\n this.unsavedChangesMessageTarget.classList.remove(\"hidden\")\n }\n\n get homeMenuItem() {\n if (this.hasHomeMenuTarget) {\n return this.homeMenuTarget.querySelector(\"li[data-menu-item-id]\")\n }\n }\n}\n","export function toUTC(date) {\n return new Date(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate()\n )\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { toUTC } from \"helpers/date\"\nimport AirDatepicker from \"air-datepicker\"\nimport localeEn from \"air-datepicker/locale/en\"\n\nexport default class extends Controller {\n static targets = [\"container\", \"entryButton\", \"label\", \"period\"]\n static values = {\n end: Number,\n minDate: Number,\n maxDate: Number,\n start: Number\n }\n\n connect() {\n this.datePicker = new AirDatepicker(this.containerTarget, {\n altField: this.periodTarget,\n altFieldDateFormat: \"yyyy-MM-dd\",\n firstDay: 1,\n locale: { \n ...localeEn, \n daysMin: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"], \n dateFormat: \"MMM dd, yyyy\"\n },\n maxDate: toUTC(new Date(this.maxDateValue)),\n minDate: toUTC(new Date(this.minDateValue)),\n multipleDatesSeparator: \",\",\n range: true,\n buttons: [\n {\n content(dp) {\n return \"Apply\"\n },\n attrs: { type: \"button\", id: \"datepicker-apply\" },\n onClick: () => { this.dispatch(\"select\") }\n }\n ],\n onSelect: this.onSelect.bind(this)\n })\n\n const startDate = new Date(this.startValue)\n const endDate = new Date(this.endValue)\n this.datePicker.selectDate([toUTC(startDate), toUTC(endDate)])\n }\n\n toggle() {\n this.containerTarget.classList.toggle(\"hidden\")\n\n if (!this.containerTarget.classList.contains(\"hidden\"))\n this.containerTarget.focus()\n }\n\n blur({ currentTarget, relatedTarget }) {\n if (!currentTarget.contains(relatedTarget) && relatedTarget != this.entryButtonTarget)\n this.containerTarget.classList.add(\"hidden\")\n }\n\n onSelect({date, formattedDate}) {\n this.submittable = date.length == 2\n const humanFormattedDate = date.map((d, index) => this.isToday(d) ? 'Today' : formattedDate[index]);\n this.labelTarget.textContent = humanFormattedDate.join(' — ')\n }\n\n isToday(date) {\n const today = new Date()\n return (\n date.getUTCDate() === today.getUTCDate() &&\n date.getUTCMonth() === today.getUTCMonth() &&\n date.getUTCFullYear() === today.getUTCFullYear()\n )\n }\n\n set submittable(value) {\n this.applyButton.disabled = !value\n this.applyButton.classList.toggle(\"cursor-not-allowed\", !value)\n this.applyButton.classList.toggle(\"opacity-70\", !value)\n }\n\n get applyButton() {\n return document.getElementById(\"datepicker-apply\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n scrollIntoView() {\n if (this.element.open) {\n this.element.scrollIntoView({ behavior: \"smooth\" })\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from \"lodash\"\n\nexport default class extends Controller {\n static targets = [\"suggestInput\"]\n\n request(event) {\n this.previousFetchRequest = event.detail.formSubmission.fetchRequest\n }\n\n suggest = debounce(event => {\n if (this.suggestInputTarget.value !== \"false\") {\n this.submit()\n }\n }, 200)\n\n change() {\n this.suggestInputTarget.value = \"false\"\n this.submit()\n }\n\n submit() {\n if (this.previousFetchRequest) {\n this.previousFetchRequest.cancel()\n }\n\n this.element.requestSubmit()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n disableAutoscroll() {\n this.element.autoscroll = false\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { toast } from \"../shared/toast_controller\"\nimport http from \"helpers/http\"\n\nexport default class extends Controller {\n static classes = [\"spinner\"]\n static targets = [\"param\"]\n static values = { url: String }\n\n connect() {\n this.waitingForResponse = false\n }\n\n submit(event) {\n if (this.waitingForResponse) return\n\n const button = event.currentTarget\n const data = new FormData()\n\n this.paramTargets.forEach(param => {\n data.append(param.name, param.value)\n })\n\n this._loading(button)\n http.post(this.urlValue, { body: data }).\n json().then(json => {\n toast(this.element, \"info\", json.message)\n this._ready(button)\n })\n .catch(error => {\n this._ready(button)\n\n if (error.name === \"HTTPError\" && error.response.status === 422) {\n error.response.json().then(json => {\n toast(this.element, \"error\", json.message, 10000)\n })\n } else {\n toast(this.element, \"error\", \"An unexpected error occurred. Please try again later.\")\n }\n })\n }\n\n _loading(button) {\n this.waitingForResponse = true\n this.oldContent = button.innerHTML\n\n const spinner = document.createElement(\"div\")\n spinner.classList.add(...this.spinnerClasses)\n\n button.style = `width: ${button.offsetWidth}px; flex-shrink: 0;`\n button.innerHTML = spinner.outerHTML\n }\n\n _ready(button) {\n this.waitingForResponse = false\n button.style = \"\"\n button.innerHTML = this.oldContent\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static classes = [ \"animation\" ]\n\n connect() {\n this.element.addEventListener(\"animationend\", () => this.element.classList.remove(this.animationClass))\n }\n\n validate() {\n if (this.minValue && this.value < this.minValue) {\n this.value = this.minValue\n this.animate()\n } else if (this.maxValue && this.value > this.maxValue) {\n this.value = this.maxValue\n this.animate()\n }\n }\n\n // private\n\n animate() {\n this.element.classList.add(this.animationClass)\n this.element.focus()\n }\n\n get minValue() {\n return Number(this.element.min)\n }\n\n get maxValue() {\n return Number(this.element.max)\n }\n\n get value() {\n return Number(this.element.value) || 0\n }\n\n set value(newValue) {\n this.element.value = newValue\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"cardDetails\", \"cardForm\" ]\n\n disconnect() {\n this.hideForm()\n }\n\n showForm(event) {\n event.preventDefault()\n this.cardDetailsTarget.classList.add(\"hidden\")\n this.cardFormTarget.classList.remove(\"hidden\")\n this.cardFormController.focus()\n }\n\n hideForm(event) {\n if(event) {\n event.preventDefault()\n }\n this.cardFormTarget.classList.add(\"hidden\")\n this.cardDetailsTarget.classList.remove(\"hidden\")\n this.cardFormController.reset()\n }\n\n // private\n\n get cardFormController() {\n return this.application.getControllerForElementAndIdentifier(this.cardFormTarget.firstElementChild, \"card-form\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"tab\", \"tabpanel\"]\n\n change(event) {\n const target = event.currentTarget\n const tabName = target.getAttribute(\"aria-controls\")\n\n this.tabTargets.forEach(tab => {\n tab.setAttribute(\"aria-selected\", tab.id === target.id)\n })\n\n this.tabpanelTargets.forEach(tabpanel => {\n tabpanel.toggleAttribute(\"hidden\", tabpanel.id !== tabName)\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"container\", \"currency\", \"locale\" ]\n static values = { currency: String, url: String }\n\n refresh() {\n fetch(this.previewUrl, { cache: \"default\" })\n .then(response => response.text())\n .then(text => {\n this.containerTarget.innerHTML = text\n })\n }\n\n get locale() {\n return this.localeTarget.value\n }\n\n get currency() {\n if (this.hasCurrencyTarget) {\n return this.currencyTarget.value\n } else {\n return this.currencyValue\n }\n }\n\n get previewUrl() {\n const url = new URL(this.urlValue)\n url.searchParams.append(\"locale\", this.locale)\n url.searchParams.append(\"currency\", this.currency)\n return url\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"plans\"]\n\n togglePlans(event) {\n const target = event.currentTarget\n const value = target.value \n\n if (value === \"no_plans\") {\n this._hidePlans()\n this.checkboxController.uncheckAll(event)\n } else {\n this._showPlans()\n }\n }\n\n get checkboxController() {\n return this.application.getControllerForElementAndIdentifier(this.plansTarget, \"checkbox\")\n }\n\n _showPlans() {\n this.plansTarget.classList.remove(\"hidden\")\n }\n\n _hidePlans() {\n this.plansTarget.classList.add(\"hidden\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"item\", \"hide\"]\n static values = {\n items: Number\n }\n\n connected() {\n this.update()\n }\n\n itemTargetConnected() {\n this.update()\n }\n\n itemTargetDisconnected() {\n this.update()\n }\n\n update() {\n this.hideTarget.classList.toggle(\"hidden\", this.itemTargets.length === this.itemsValue)\n }\n}\n","\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SvgIcon.vue?vue&type=template&id=492f6afe\"\nimport script from \"./SvgIcon.vue?vue&type=script&lang=js\"\nexport * from \"./SvgIcon.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"SvgIcon.vue\"\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"24\",\"height\":\"24\",\"viewBox\":\"0 0 20 20\",\"role\":\"presentation\"}},[_c('path',{attrs:{\"d\":_vm.path}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n submit(event) {\n if (this.element.tagName == \"FORM\") {\n this.element.requestSubmit()\n } else {\n event.currentTarget.form.requestSubmit()\n }\n }\n}\n"],"names":["Controller","static","connect","fixedColumn","this","element","querySelector","leftColumn","rightColumn","scrollIntoView","observer","IntersectionObserver","entries","target","classList","toggle","isIntersecting","root","rootMargin","offsetWidth","threshold","observe","disconnect","taxablePlansVisible","Number","updateTaxSettings","hasPlansTarget","truncatedPlans","taxablePlanTargets","slice","taxablePlansVisibleValue","truncateTaxablePlans","settingTargets","forEach","taxesEnabled","length","plan","remove","planToggleBtnTarget","add","showAllTaxablePlans","event","preventDefault","taxEnabledTarget","checked","triggers","Array","selectedValue","currentTarget","value","hideableTargets","hideable","triggersValue","includes","changeTheme","option","options","selectedIndex","colorPickerOutlets","outlet","defaultValue","dataset","attributeValue","destroyStyle","resetColors","reset","updateColors","detail","default","destroyStyleTarget","StreamActions","redirect","Memberful","redirectTo","visit","Turbo","reload","document","getElementById","dispatchEvent","CustomEvent","style","templateContent","textContent","SearchResultsController","selectMember","customEvent","bubbles","member","hasNoticeTarget","slideUp","noticeTarget","notice","maxHeight","offsetHeight","addEventListener","setTimeout","opacity","$","fadeOut","checkAll","_clickAll","uncheckAll","undesiredValue","checkboxTargets","checkbox","click","setMainWidth","boundSetMainWidth","bind","window","toggleNav","asideTarget","mainTarget","width","removeEventListener","asideWidth","windowWidth","innerWidth","ignoreDroppedFiles","ignorePastedFiles","_toast","clipboardData","files","toast","url","String","pollForUpdate","fetch","urlValue","headers","then","response","text","outerHTML","update","noticeBoxTarget","subdomainChanged","subdomainTarget","originalValue","listeners","querySelectorAll","name","tooltipName","instance","tippy","triggerTarget","push","destroy","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","updatePath","type","Boolean","channel","BroadcastChannel","close","loaded","editPath","path","title","navigate","hasIframeTarget","URL","params","origin","iframeTarget","src","postMessage","action","showDesktop","height","containerTarget","showMobile","editButtonTarget","href","innerText","updatePathValue","location","searchParams","set","history","replaceState","state","titleTarget","setAttribute","menuItemTargets","websitePreviewPathParam","removeAttribute","updateStateField","selectedCountry","subdivisionLabel","stateTarget","stateContainerTarget","subdivisions","createStateOptions","enableSelect","disableSelect","stateSelectTarget","placeholder","buildOption","JSON","parse","country","disabled","selected","createElement","countryTarget","fontsUrl","setupIntentsUrl","hasCardTarget","getSetupIntent","submit","stopPropagation","disableSubmitButton","confirmed","submitForm","confirmSetupIntent","http","post","setupIntentsUrlValue","json","createPaymentElement","setup_intent_client_secret","catch","error","enableSubmitButton","setupIntentClientSecret","stripe","Stripe","getMetaValue","elements","appearance","fonts","cssSrc","fontsUrlValue","locale","clientSecret","loader","paymentElement","create","mount","cardTarget","focus","confirmSetup","confirmParams","return_url","result","message","setupIntentIdFieldTarget","setupIntent","parentElement","body","FormData","editLinkTarget","cache","clear","submitButtonTarget","enableWith","submittButtonTimeout","disableWith","clearTimeout","errorMessage","errorTarget","key","fileChanged","objectUrl","createObjectURL","previewImageTarget","hasPreviewUrlTarget","previewUrlTarget","attachFile","fileAttached","clearSelection","fileInputTarget","removeFile","fileURL","emitFileChangeEvent","file","assign","keyValue","hasPriceInputTarget","priceInputTarget","priceInputAnimationClass","debounce","abortPreviousFetchRequest","signal","abortController","html","validate","detailsTarget","abort","AbortController","minimumPrice","price","maximumPrice","animatePriceInput","parseFloat","min","max","newValue","formDataEntries","initialize","_applyFilters","_updateFilterCount","filterCountTarget","hiddenClass","hideDropdown","_clickedOutsideDropdownMenu","dropdownToggleTarget","contains","filterCount","inactiveClass","applyFiltersTarget","open","openTarget","closeTarget","filtersTarget","delete","search","toString","props","filters","pluralize","word","amount","computed","currencySymbol","memberful","config","currency","symbol","trial","trial_type","trial_period_days","priceDescription","allow_members_to_set_price","renewalPrice","useCustomRenewalPrice","custom_renewal_price","fixedPlanDetails","subscription_term","total_payments","payments","renewal_frequency","interval_count","interval_unit","renewalDescription","indefiniteRenewalDescription","day","getOrdinal","renewal_day","Date","renewal_month","toLocaleString","month","trialDescription","trial_price","methods","has_custom_renewal_price","component","_vm","_c","_self","staticClass","_v","_s","_e","renew_on_specific_day","team_plan","included_seats","allow_additional_seat_purchases","seat_price","maximum_seat_count","downloads_count","_f","podcasts_count","plan_purchase_link","attrs","gift_purchase_link","plan_slug","__file","currentRenewalFrequency","giftPurchaseLink","hasDiscordIntegration","planPurchaseLink","planSlug","renewalDayHelpUrl","renewalFrequencies","updateForm","renderRenewalDayHelp","summaryElement","Vue","data","initialSummaryData","el","render","PlanSummary","$data","updatePricingOptions","updateSubscriptionSettings","chooseWhatYouPaySelected","priceLabelTarget","teamPlanEnabled","planCanUseCustomRenewalPrice","allowCustomRenewalPriceSelected","renewalPriceHelperTextTarget","_enable","customRenewalContainerTarget","customRenewalPrice","_disable","paidTrialSelected","trialPrice","trialPriceContainerTarget","hasRenewalFrequencySelectBoxTarget","renderRenewalFrequencySelectBox","updateSummary","match","downloadsCount","podcastsCount","changeRenewalFrequency","currentRenewalFrequencyValue","renewalFrequencySelectBoxTarget","innerHTML","renewalFrequenciesValue","renewalFrequency","available_for_date_based_plans","dateBasedPlan","optionElement","appendChild","hasRenewalDaysForQuarterlyDateBasedPlansTarget","renewalDayHelpUrlValue","append","startingMonth","renewalDay","renewalDaysForQuarterlyDateBasedPlansTarget","toggleFeedRedirect","_feedWasSelected","_showFeedRedirectSetting","changeRedirectSettingsDescription","noFeedsSelected","hasDiscordIntegrationValue","_hideFeedRedirectSetting","_hideFeedSubscriptionCopy","feedRedirectSettingTarget","_showFeedSubscriptionCopy","customRenewalPriceTarget","subscriptionTermTarget","specificDaySelected","startingMonthTarget","renewalDayTarget","numberOfSelectedFeeds","feedTargets","filter","feed","onlyOneFeedSelected","specificDayTarget","input","chooseWhatYouPayTarget","allowCustomRenewalPriceTarget","teamPlanTarget","downloadTargets","reduce","acc","download","giftPurchaseLinkValue","planPurchaseLinkValue","planSlugValue","serializeForm","trialTypeTarget","trialPriceTarget","_display","_hide","feedRedirectContainerTarget","automaticRedirectCopyTarget","feedSubscriptionCopyTarget","activeElement","enter","keyCode","method","credentials","ok","Promise","reject","showError","sessionStorage","getItem","sidebarTarget","visibleClass","setItem","nameValue","generateChart","intercom","hide","hide_default_launcher","show","Intercom","signedTokenUrl","currentPlaybackTime","currentTime","muxCode","signedTokenUrlValue","signedToken","signed_token","play","token","videoSrc","navigationKeys","currentResultIndex","selectCurrentResult","navigateResults","selectNextResult","selectPreviousResult","goToSelectedResult","resultTargets","index","firstElementChild","docsearch","container","appId","indexName","apiKey","hitComponent","hit","children","ref","undefined","constructor","__v","navigator","itemUrl","windowReference","navigateNewTab","navigateNewWindow","translations","button","buttonAriaLabel","buttonText","hljs","registerLanguage","require","highlightElement","showFileInput","fileReplaceLinkTarget","fileUploadTarget","fileReplaceCancelLinkTarget","uploadedFileTarget","hideFileInput","fileUploadLabelTarget","fileAdded","showUploadProgress","uploadProgressContainerTarget","updateUploadProgress","uploadProgressBarTarget","progress","uploadProgressCounterTarget","Math","round","cancelUpload","setCustomPreset","customPresetTarget","dispatch","toggleContainer","blur","relatedTarget","entryButtonTarget","shownConfirmation","showConfirmation","modalTarget","controller","SearchController","handleFocusKey","searchResultsController","application","getControllerForElementAndIdentifier","resultsTarget","persisted","idTarget","valueTarget","trim","persistedValue","confirm","_delete","deleteInputTarget","deleted","Rollbar","request_url","request_uuid","get","cloudflare_ray_id","console","loading","pauseTarget","playTarget","loadingTarget","audioTarget","playing","pause","paused","transitionDuration","transitionDurationValue","showModal","requestAnimationFrame","replaceChildren","stream","newStream","success","minLength","resetSearch","keyUp","handleResetKey","query","previousQuery","hasMinLengthValue","minLengthValue","showLengthWarning","hideLengthWarning","sendRequest","abortPreviousRequest","searchUrl","realtime","finally","done","hideSearch","formTarget","nodeName","queryTarget","hasLengthWarningTarget","lengthWarningTarget","hasIconTarget","hasSpinnerTarget","iconTarget","spinnerTarget","variables","borderRadius","colorPrimary","tailwindConfig","extend","colors","blue","colorDanger","red","fontFamily","system","join","fontSizeBase","deletePath","customField","inputType","inputTypeTarget","label","labelTarget","position","positionTarget","required","requiredTarget","optionTargets","optionTarget","setDefaults","customFieldDefaultLabel","customFieldDefaultRequired","idValue","deletePathValue","inputTargets","some","displayTargets","SortableController","enableDragging","itemFor","disableDragging","dragStart","dataTransfer","effectAllowed","draggedItem","dragEnd","updatePositions","dragOver","dragOverItem","isEqualNode","isPositionedBeforeDraggedItem","insertAdjacentElement","preventDragover","item","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","inferLabel","setLabel","hasAttribute","maxlength","getAttribute","setCustomValidity","resetLabel","checkAnswers","checkValidity","isScrollable","restoreScrollPosition","scrollPositionHandler","saveScrollPosition","savedPosition","scrollLeft","storageKey","scrollWidth","components","SvgIcon","is_percentage","amount_off","couponTooltipCopy","coupon_type","recurring_limit","mounted","watch","$refs","typeTip","_tippy","setContent","count","replace","coupons_count","limit_scope","plans","products","maximum_number_of_redemptions","start_at","end_at","always_require_card","coupon_id","_m","couponType","couponId","couponsCount","CouponSummary","fieldName","selectedOptions","planOptionTargets","sort","productOptionTargets","couponIdValue","couponTypeValue","couponsCountValue","startAtValue","endAtValue","plansValue","productsValue","discount","addToolbarButton","buttonRow","editorTarget","toolbarElement","variablesMenuTarget","content","lastElementChild","insertVariable","trixAttributes","attachment","Trix","Attachment","sgid","editor","insertAttachment","insertString","showVariables","popper","createPopper","variablesTarget","placement","hideVariables","toggleMode","modeTarget","setMode","Event","optionsValue","decimal_places","currencyUnits","currencyFormat","Intl","NumberFormat","notation","numberFormat","percentFormat","chart","sparkline","sparklineOptions","chartOptions","chartElement","ApexCharts","formatter","format","series","plotOptions","bar","columnWidth","animations","enabled","toolbar","zoom","dataLabels","fill","grid","borderColor","padding","right","labels","legend","markers","size","states","active","hover","stroke","curve","lineCap","values","tooltip","intersect","shared","custom","dataPointIndex","hasTooltipTarget","tooltipTargets","xaxis","axisBorder","axisTicks","color","offsetY","crosshairs","rotate","yaxis","forceNiceScale","top","bottom","gradient","shadeIntensity","disablePublicLicenses","initialLicense","license","publicLicenseTargets","initialDisabled","disablePublicLicensesValue","usingPublicLicense","privateLicenseTargets","resetPublicLicenses","licenseTargets","find","bodyClass","exitTarget","enterTarget","optionsTarget","copy","clipboard","writeText","textToCopy","hideAll","showFeedback","sourceTarget","appendTo","whereToAppendTooltip","showOnCreate","onHidden","closest","Application","start","debug","process","context","load","definitionsFromContext","register","configureTrixAlignmentAttributes","configureTrixUrlPlaceholder","registerCustomAlignElements","setupTooltips","allowHTML","arrow","maxWidth","theme","on","turboFormSubmissionFailed","createCardElement","cardElement","createCardToken","stripeAccount","card","metadata","createPaymentMethod","paymentMethod","paymentMethodId","stringify","payment_method_id","panel","focusWithin","control","memberBelongsToTeam","showMemberDetails","hideSearchBar","askForConfirmation","backToSearch","hideConfirmation","hideManagerOptions","showSearchBar","resetMemberDetails","memberName","memberEmail","memberId","fillMemberDetails","memberNameTargets","memberEmailTarget","memberIdTarget","searchBarTarget","toggleManagerOptions","showManagerOptions","managerOptionsTarget","confirmationBoxTarget","optionTargetConnected","optionTargetDisconnected","select","child","siblings","sibling","defaultTheme","darkMode","aria","current","black","primary","DEFAULT","secondary","admin","gray","yellow","green","purple","boxShadow","base","sans","publishing","keyframes","wiggle","transform","fadeIn","animation","plugins","inputTargetConnected","inputTargetDisconnected","updateCustomFields","customFields","customFieldOutlets","showRenewalMessage","renewalMessageTarget","renewalCheckBoxTarget","lock","submitButtons","unlock","openUploader","uploaderContainerTarget","buttonTarget","closeUploader","useTransition","leave","outsideClick","isActive","itemsTarget","slideToggle","navTargets","newRecord","updateTaxInclusiveInput","toggleBusinessNameInput","newRecordValue","isTaxInclusive","countryData","taxInclusive","taxInclusiveTarget","showBusinessName","businessNameTarget","fadeOutAndRemoveFromDom","ontransitionend","once","showTooltip","hideOnClick","trigger","disable","markShown","localStorage","storageKeyValue","enabledValue","onceValue","hasStorageKeyValue","makeHomepage","newHomepageItem","oldHomepageItem","homeMenuItem","moveToNavigationItems","setHomepageItem","dragSortableOutlet","updateHomepageItemPosition","enableSaveButton","showUnsavedChangesMessage","navigationItemsTarget","prepend","homeMenuInputTarget","menuItemId","homeMenuTarget","saveButtonTarget","unsavedChangesMessageTarget","hasHomeMenuTarget","toUTC","date","getUTCFullYear","getUTCMonth","getUTCDate","end","minDate","maxDate","datePicker","AirDatepicker","altField","periodTarget","altFieldDateFormat","firstDay","localeEn","daysMin","dateFormat","maxDateValue","minDateValue","multipleDatesSeparator","range","buttons","dp","onClick","onSelect","startDate","startValue","endDate","endValue","selectDate","formattedDate","submittable","humanFormattedDate","d","isToday","today","applyButton","behavior","request","previousFetchRequest","formSubmission","fetchRequest","suggest","suggestInputTarget","change","cancel","requestSubmit","disableAutoscroll","autoscroll","waitingForResponse","paramTargets","param","_loading","_ready","status","oldContent","spinner","spinnerClasses","animationClass","minValue","animate","maxValue","hideForm","showForm","cardDetailsTarget","cardFormTarget","cardFormController","tabName","tabTargets","tab","tabpanelTargets","tabpanel","toggleAttribute","refresh","previewUrl","localeTarget","hasCurrencyTarget","currencyTarget","currencyValue","togglePlans","_hidePlans","checkboxController","_showPlans","plansTarget","items","connected","itemTargetConnected","itemTargetDisconnected","hideTarget","itemTargets","itemsValue","icons","tagName","form"],"sourceRoot":""}