diff --git a/assets/css/admin-rtl.css b/assets/css/admin-rtl.css index 4c9af181e..2876fe0ea 100644 --- a/assets/css/admin-rtl.css +++ b/assets/css/admin-rtl.css @@ -1,62 +1,62 @@ @charset "UTF-8"; -/** - * admin.scss - * General EverestForms admin styles. +/** + * admin.scss + * General EverestForms admin styles. */ -/** - * Import +/** + * Import */ -/** - * EverestForms CSS Variables +/** + * EverestForms CSS Variables */ /*===== Primary Color ======*/ /*===== Semantic Color ======*/ /*===== Neutral colors ======*/ -/** - * EverestForms CSS Variables +/** + * EverestForms CSS Variables */ /*===== Primary Color ======*/ /*===== Semantic Color ======*/ /*===== Neutral colors ======*/ -/** - * Font Size Variables +/** + * Font Size Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** Minimum breakpoint width. Null for the smallest (first) breakpoint. - * - * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) - * 576px +/** Minimum breakpoint width. Null for the smallest (first) breakpoint. + * + * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) + * 576px **/ -/** - * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. - * Makes the @content apply to the given breakpoint and wider. +/** + * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. + * Makes the @content apply to the given breakpoint and wider. **/ -/** - * Grid system - * - * Generate semantic grid columns with these mixins. +/** + * Grid system + * + * Generate semantic grid columns with these mixins. **/ -/** - * _mixins.scss - * EverestForms Mixins +/** + * _mixins.scss + * EverestForms Mixins */ -/** - * Objects +/** + * Objects */ -/** - * _fonts.scss - * Custom EverestForms fonts. +/** + * _fonts.scss + * Custom EverestForms fonts. */ @font-face { font-family: 'EverestForms'; @@ -66,9 +66,9 @@ font-style: normal; font-display: block; } -/** - * Icons - * Icon size should be 24dp. +/** + * Icons + * Icon size should be 24dp. **/ .evf-icon { padding: 8px; @@ -76,22 +76,22 @@ .evf-icon * { display: block; } -/** - * Headings +/** + * Headings **/ .evf-h2 { font-size: 28px; font-weight: 600; } -/** - * Text +/** + * Text **/ .evf-text-center { text-align: center; } -/** - * _animation.scss - * Custom EverestForms Animations. +/** + * _animation.scss + * Custom EverestForms Animations. */ @keyframes spin { 100% { @@ -116,12 +116,12 @@ .evf-row::after { clear: both; } -/** - * _confirm.scss - * Styling applied to jQuery-confirm JS alert library. +/** + * _confirm.scss + * Styling applied to jQuery-confirm JS alert library. */ -/** - * Styling begins +/** + * Styling begins */ div.jconfirm *, div.jconfirm *::before, @@ -306,8 +306,8 @@ div.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c border: 1px solid #cdd0d8; border-radius: .4rem; } -/** - * Buttons +/** + * Buttons */ .everest-forms-btn, a.everest-forms-btn, @@ -443,8 +443,8 @@ button.everest-forms-btn { background: #fff; color: #494d50; } -/** - * Card component +/** + * Card component **/ .everest-forms-card { background: #fff; @@ -464,8 +464,8 @@ button.everest-forms-btn { .everest-forms-card .everest-forms-card__body { padding: 20px; } -/** - * Table Stucture +/** + * Table Stucture **/ .everest-forms-table { width: 100%; @@ -489,8 +489,8 @@ button.everest-forms-btn { width: 100%; overflow-x: auto; } -/** - * Background Colors +/** + * Background Colors **/ .evf-bg-primary { background: #7e3bd0; } @@ -498,8 +498,8 @@ button.everest-forms-btn { .evf-bg-primary-soft { background: #eae0f7; } -/** - * Colors +/** + * Colors **/ .evf-color-white { color: #fff; } @@ -562,8 +562,8 @@ button.everest-forms-btn { .evf-container, .evf-container-sm, .evf-container-md, .evf-container-lg, .evf-container-xl, .evf-container-xxl { max-width: 1320px; } } -/** - * Row +/** + * Row **/ .evf-row { display: flex; @@ -571,8 +571,8 @@ button.everest-forms-btn { margin-left: -12px; margin-right: -12px; } -/** - * Columns +/** + * Columns **/ .evf-col-1, .evf-col-2, .evf-col-3, .evf-col-4, .evf-col-5, .evf-col-6, .evf-col-7, .evf-col-8, .evf-col-9, .evf-col-10, .evf-col-11, .evf-col-12, .evf-col, .evf-col-auto, .evf-col-sm-1, .evf-col-sm-2, .evf-col-sm-3, .evf-col-sm-4, .evf-col-sm-5, .evf-col-sm-6, .evf-col-sm-7, .evf-col-sm-8, .evf-col-sm-9, .evf-col-sm-10, .evf-col-sm-11, .evf-col-sm-12, .evf-col-sm, @@ -1484,8 +1484,8 @@ button.everest-forms-btn { .evf-gy-xxl-8 { --bs-gutter-y: 32px; } } -/** - * Display Variations +/** + * Display Variations **/ .evf-d-none { display: none !important; } @@ -1614,10 +1614,10 @@ button.everest-forms-btn { .evf-d-xxl-inline-flex { display: inline-flex !important; } } -/** -* Flex variation -* -* Custom styles for additional flex alignment options. +/** +* Flex variation +* +* Custom styles for additional flex alignment options. **/ .evf-flex-row { flex-direction: row !important; } @@ -4522,8 +4522,8 @@ button.everest-forms-btn { font-style: normal; font-display: block; } -/** - * Styling begins +/** + * Styling begins */ .blockUI.blockOverlay::before { height: 1em; @@ -4564,8 +4564,8 @@ button.everest-forms-btn { .everest_forms_tinymce_class { width: 100% !important; } -/** - * Grid Styles +/** + * Grid Styles **/ .evf-form-row { display: flex; @@ -4645,8 +4645,8 @@ button.everest-forms-btn { .wrap.everest-forms div.error { margin-top: 10px; } -/** - * Help Tip +/** + * Help Tip */ .everest-forms-help-tip { cursor: help; @@ -4677,8 +4677,8 @@ button.everest-forms-btn { text-align: center; content: ""; } -/** - * Notice info +/** + * Notice info */ .everest-forms-notice { display: inline-block; @@ -4763,8 +4763,8 @@ button.everest-forms-btn { .everest-forms-text-danger { color: #fa5252; } -/** - * Help tip +/** + * Help tip */ h2 .everest-forms-help-tip { margin-top: -5px; @@ -4780,8 +4780,8 @@ img.help_tip { .postbox .everest-forms-help-tip { margin: 0 9px 0 0; } -/** - * Toggle class. +/** + * Toggle class. */ .everest-forms-show { display: block; } @@ -4789,8 +4789,8 @@ img.help_tip { .everest-forms-hidden { display: none; } -/** - * Core Styling +/** + * Core Styling */ .everest-forms_page_evf-builder .evf-shortcode-field { display: flex; } @@ -4827,8 +4827,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { .everest-forms_page_evf-tools #wpcontent { padding-right: 0; } -/** - * Welcome page. +/** + * Welcome page. */ .dashboard_page_evf-welcome #message.updated { display: none; } @@ -4935,8 +4935,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { #everest-forms-welcome .everest-forms-welcome-container .everest-forms-welcome-container__action .everest-forms-welcome-container__action-card:hover { box-shadow: 0 2px 20px 0 rgba(73, 77, 80, 0.15); } -/** - * Branding +/** + * Branding */ .everest-forms_page_evf-builder select, .everest-forms_page_evf-settings select, @@ -5083,7 +5083,7 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { .everest-forms_page_evf-settings .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap, .everest-forms_page_evf-entries .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap, .everest-forms_page_evf-tools .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap { - box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; } + box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; } .everest-forms_page_evf-builder .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, .everest-forms_page_evf-settings .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, .everest-forms_page_evf-entries .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, @@ -5541,8 +5541,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { margin-bottom: 15px; border: 2px solid #cdd0d8; } -/** - * Tabs +/** + * Tabs */ .everest-forms-tab ul { display: flex; @@ -5609,8 +5609,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { margin-right: -16px; border-top: 1px solid #cdd0d8; } } -/** - * Template Setup +/** + * Template Setup **/ .everest-forms { border-radius: 4px; } @@ -5800,8 +5800,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { border: none; border-radius: 100px; } -/** - * Form Setup +/** + * Form Setup */ .everest-forms-builder-setup #screen-meta-links { display: none; } @@ -5947,8 +5947,8 @@ p.search-box { margin-left: 0; max-width: 100%; } -/** - * Form Builder +/** + * Form Builder **/ #everest-forms-panel-settings .evf-content-section { display: none; } @@ -7068,7 +7068,7 @@ p.search-box { margin-bottom: 15px; background-color: transparent; border: 1px solid transparent; - transition: 0.5s border, 0.5s background-color; } + transition: 0.5s border, 0.5s background-color; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row:last-child { margin-bottom: 0; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-toggle-row { @@ -7173,7 +7173,7 @@ p.search-box { background: #fff; position: relative; border: 1px solid transparent; - transition: 0.5s border, 0.5s background-color; } + transition: 0.5s border, 0.5s background-color; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-admin-grid.evf-hover.evf-item-hover { position: relative; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-admin-grid.evf-hover.evf-item-hover .everest-forms-field:nth-last-child(2), @@ -8147,8 +8147,8 @@ p.search-box { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-field.everest-forms-field-image-upload.active svg { background: #e7e9ef; } -/** - * Settings styling. +/** + * Settings styling. **/ .everest-forms h2.evf-nav-tab-wrapper { margin-bottom: 1em; } @@ -8578,8 +8578,8 @@ p.search-box { .everest-forms .everest-forms-integration-content .integration-connection-detail .evf-connection-list table.evf-connection-list-table tr:last-child td { border-bottom: none; } -/** - * Import and Export +/** + * Import and Export */ .evf-tools-export-entries, .everest-forms-import-form, @@ -8840,8 +8840,8 @@ p.search-box { border: none; cursor: pointer; } -/** - * List Table. +/** + * List Table. */ table.wp-list-table span.na { color: #999; } @@ -8881,8 +8881,8 @@ table.wp-list-table .new-entries-notification td { box-shadow: none; background: #e6f4ff; } -/** - * Entry viewer. +/** + * Entry viewer. **/ .everest-forms-entry .postbox .inside { padding: 6px 0 0; } @@ -9160,19 +9160,19 @@ table.wp-list-table .new-entries-notification td { padding: 3px 0 0; text-decoration: none; } -/** - * DB log viewer. +/** + * DB log viewer. **/ .wp-list-table.logs { - /** - * Add color to levels - * - * Descending severity: - * emergency, alert -> red - * critical, error -> orange - * warning, notice -> yellow - * info -> blue - * debug -> green + /** + * Add color to levels + * + * Descending severity: + * emergency, alert -> red + * critical, error -> orange + * warning, notice -> yellow + * info -> blue + * debug -> green */ } .wp-list-table.logs .log-level { display: inline; @@ -9225,8 +9225,8 @@ table.wp-list-table .new-entries-notification td { white-space: pre-wrap; word-wrap: break-word; } -/** - * Tooltips. +/** + * Tooltips. **/ .tips { cursor: help; @@ -9349,8 +9349,8 @@ img.tips { right: 50%; margin: -1em -3px 0 0; } -/** - *Date picker. +/** + *Date picker. **/ img.ui-datepicker-trigger { vertical-align: middle; @@ -9360,8 +9360,8 @@ img.ui-datepicker-trigger { #ui-datepicker-div { display: none; } -/** - * Blank State. +/** + * Blank State. **/ .everest-forms-BlankState { text-align: center; @@ -9388,8 +9388,8 @@ img.ui-datepicker-trigger { float: right; margin: 6px 15px 0 0; } -/** - * Select2 elements. +/** + * Select2 elements. */ .select2-container .select2-selection--multiple .select2-selection__rendered { display: block; } @@ -9536,8 +9536,8 @@ img.ui-datepicker-trigger { .select2-container .everest-forms table.form-table .select2-container { min-width: 100% !important; } } -/** - * Select2 colors for built-in admin color themes. +/** + * Select2 colors for built-in admin color themes. */ .admin-color-blue .select2-dropdown { border-color: #096484; } @@ -9709,11 +9709,11 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-nav-wrapper .evf-forms-nav-right .evf-shortcode-field button { border-radius: 3px; } } -/** - * Small screen optimisation. +/** + * Small screen optimisation. **/ -/** - * Optimisation for screens 960px and smaller. +/** + * Optimisation for screens 960px and smaller. **/ @media only screen and (max-width: 960px) { .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel .everest-forms-panel-sidebar { @@ -9736,8 +9736,8 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-nav-wrapper .evf-forms-nav-right .evf-shortcode-field button { border-radius: 3px; } } -/** - * Optimisation for screens 782px and smaller. +/** + * Optimisation for screens 782px and smaller. **/ @media screen and (max-width: 782px) { .everest-forms_page_evf-builder .auto-fold #wpcontent { @@ -9771,8 +9771,8 @@ img.ui-datepicker-trigger { .everest-forms-builder-setup .everest-forms .evf-setup-desc a { width: 200px; } } -/** - * Optimisation for screens 768px. +/** + * Optimisation for screens 768px. */ @media screen and (min-width: 768px) { .evf-form-col-6 { @@ -9782,8 +9782,8 @@ img.ui-datepicker-trigger { flex: 0 0 33.333%; max-width: 33.333%; } } -/** - * Optimisation for screens 600px and smaller. +/** + * Optimisation for screens 600px and smaller. */ @media screen and (max-width: 600px) { .everest-forms_page_evf-builder .everest-forms .evf-nav-tab-wrapper a.nav-tab, @@ -9855,8 +9855,8 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel .everest-forms-panel-sidebar .evf-registered-buttons .evf-registered-item { width: 46%; } } -/** - * Optimisation for screens 400px and smaller. +/** + * Optimisation for screens 400px and smaller. */ @media screen and (max-width: 400px) { #everest-forms-builder .evf-tab-lists li a { @@ -11021,8 +11021,8 @@ img.ui-datepicker-trigger { .evf-correct-answers li { margin-bottom: 10px; } -/** - * Analytic Table Dashboard +/** + * Analytic Table Dashboard */ .evf-survey-loader { display: block; @@ -11214,8 +11214,8 @@ img.ui-datepicker-trigger { flex: 1; padding: 20px; overflow: auto; - /** - * Star Rating Table + /** + * Star Rating Table **/ } .everest-forms-survey-summary table { width: 100%; @@ -11333,8 +11333,8 @@ img.ui-datepicker-trigger { .everest-forms-survey-summary::-webkit-scrollbar-thumb:hover { background: rgba(108, 118, 128, 0.75); } -/** - * quiz entry +/** + * quiz entry */ #everest-forms-entry-fields:not(.postbox) .correct_answer { background-color: rgba(0, 255, 43, 0.1); @@ -11353,8 +11353,8 @@ img.ui-datepicker-trigger { #everest-forms-entry-fields:not(.postbox) table tbody tr td span:last-child { margin-bottom: 0; } -/** - * Yes/No field. +/** + * Yes/No field. */ .everest-forms-field .yes-no-preview { display: flex; diff --git a/assets/css/admin.css b/assets/css/admin.css index df13cdebc..dceaed980 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,62 +1,62 @@ @charset "UTF-8"; -/** - * admin.scss - * General EverestForms admin styles. +/** + * admin.scss + * General EverestForms admin styles. */ -/** - * Import +/** + * Import */ -/** - * EverestForms CSS Variables +/** + * EverestForms CSS Variables */ /*===== Primary Color ======*/ /*===== Semantic Color ======*/ /*===== Neutral colors ======*/ -/** - * EverestForms CSS Variables +/** + * EverestForms CSS Variables */ /*===== Primary Color ======*/ /*===== Semantic Color ======*/ /*===== Neutral colors ======*/ -/** - * Font Size Variables +/** + * Font Size Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** Minimum breakpoint width. Null for the smallest (first) breakpoint. - * - * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) - * 576px +/** Minimum breakpoint width. Null for the smallest (first) breakpoint. + * + * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) + * 576px **/ -/** - * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. - * Makes the @content apply to the given breakpoint and wider. +/** + * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. + * Makes the @content apply to the given breakpoint and wider. **/ -/** - * Grid system - * - * Generate semantic grid columns with these mixins. +/** + * Grid system + * + * Generate semantic grid columns with these mixins. **/ -/** - * _mixins.scss - * EverestForms Mixins +/** + * _mixins.scss + * EverestForms Mixins */ -/** - * Objects +/** + * Objects */ -/** - * _fonts.scss - * Custom EverestForms fonts. +/** + * _fonts.scss + * Custom EverestForms fonts. */ @font-face { font-family: 'EverestForms'; @@ -66,9 +66,9 @@ font-style: normal; font-display: block; } -/** - * Icons - * Icon size should be 24dp. +/** + * Icons + * Icon size should be 24dp. **/ .evf-icon { padding: 8px; @@ -76,22 +76,22 @@ .evf-icon * { display: block; } -/** - * Headings +/** + * Headings **/ .evf-h2 { font-size: 28px; font-weight: 600; } -/** - * Text +/** + * Text **/ .evf-text-center { text-align: center; } -/** - * _animation.scss - * Custom EverestForms Animations. +/** + * _animation.scss + * Custom EverestForms Animations. */ @keyframes spin { 100% { @@ -116,12 +116,12 @@ .evf-row::after { clear: both; } -/** - * _confirm.scss - * Styling applied to jQuery-confirm JS alert library. +/** + * _confirm.scss + * Styling applied to jQuery-confirm JS alert library. */ -/** - * Styling begins +/** + * Styling begins */ div.jconfirm *, div.jconfirm *::before, @@ -306,8 +306,8 @@ div.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c border: 1px solid #cdd0d8; border-radius: .4rem; } -/** - * Buttons +/** + * Buttons */ .everest-forms-btn, a.everest-forms-btn, @@ -443,8 +443,8 @@ button.everest-forms-btn { background: #fff; color: #494d50; } -/** - * Card component +/** + * Card component **/ .everest-forms-card { background: #fff; @@ -464,8 +464,8 @@ button.everest-forms-btn { .everest-forms-card .everest-forms-card__body { padding: 20px; } -/** - * Table Stucture +/** + * Table Stucture **/ .everest-forms-table { width: 100%; @@ -489,8 +489,8 @@ button.everest-forms-btn { width: 100%; overflow-x: auto; } -/** - * Background Colors +/** + * Background Colors **/ .evf-bg-primary { background: #7e3bd0; } @@ -498,8 +498,8 @@ button.everest-forms-btn { .evf-bg-primary-soft { background: #eae0f7; } -/** - * Colors +/** + * Colors **/ .evf-color-white { color: #fff; } @@ -562,8 +562,8 @@ button.everest-forms-btn { .evf-container, .evf-container-sm, .evf-container-md, .evf-container-lg, .evf-container-xl, .evf-container-xxl { max-width: 1320px; } } -/** - * Row +/** + * Row **/ .evf-row { display: flex; @@ -571,8 +571,8 @@ button.everest-forms-btn { margin-right: -12px; margin-left: -12px; } -/** - * Columns +/** + * Columns **/ .evf-col-1, .evf-col-2, .evf-col-3, .evf-col-4, .evf-col-5, .evf-col-6, .evf-col-7, .evf-col-8, .evf-col-9, .evf-col-10, .evf-col-11, .evf-col-12, .evf-col, .evf-col-auto, .evf-col-sm-1, .evf-col-sm-2, .evf-col-sm-3, .evf-col-sm-4, .evf-col-sm-5, .evf-col-sm-6, .evf-col-sm-7, .evf-col-sm-8, .evf-col-sm-9, .evf-col-sm-10, .evf-col-sm-11, .evf-col-sm-12, .evf-col-sm, @@ -1484,8 +1484,8 @@ button.everest-forms-btn { .evf-gy-xxl-8 { --bs-gutter-y: 32px; } } -/** - * Display Variations +/** + * Display Variations **/ .evf-d-none { display: none !important; } @@ -1614,10 +1614,10 @@ button.everest-forms-btn { .evf-d-xxl-inline-flex { display: inline-flex !important; } } -/** -* Flex variation -* -* Custom styles for additional flex alignment options. +/** +* Flex variation +* +* Custom styles for additional flex alignment options. **/ .evf-flex-row { flex-direction: row !important; } @@ -4522,8 +4522,8 @@ button.everest-forms-btn { font-style: normal; font-display: block; } -/** - * Styling begins +/** + * Styling begins */ .blockUI.blockOverlay::before { height: 1em; @@ -4564,8 +4564,8 @@ button.everest-forms-btn { .everest_forms_tinymce_class { width: 100% !important; } -/** - * Grid Styles +/** + * Grid Styles **/ .evf-form-row { display: flex; @@ -4645,8 +4645,8 @@ button.everest-forms-btn { .wrap.everest-forms div.error { margin-top: 10px; } -/** - * Help Tip +/** + * Help Tip */ .everest-forms-help-tip { cursor: help; @@ -4677,8 +4677,8 @@ button.everest-forms-btn { text-align: center; content: ""; } -/** - * Notice info +/** + * Notice info */ .everest-forms-notice { display: inline-block; @@ -4763,8 +4763,8 @@ button.everest-forms-btn { .everest-forms-text-danger { color: #fa5252; } -/** - * Help tip +/** + * Help tip */ h2 .everest-forms-help-tip { margin-top: -5px; @@ -4780,8 +4780,8 @@ img.help_tip { .postbox .everest-forms-help-tip { margin: 0 0 0 9px; } -/** - * Toggle class. +/** + * Toggle class. */ .everest-forms-show { display: block; } @@ -4789,8 +4789,8 @@ img.help_tip { .everest-forms-hidden { display: none; } -/** - * Core Styling +/** + * Core Styling */ .everest-forms_page_evf-builder .evf-shortcode-field { display: flex; } @@ -4827,8 +4827,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { .everest-forms_page_evf-tools #wpcontent { padding-left: 0; } -/** - * Welcome page. +/** + * Welcome page. */ .dashboard_page_evf-welcome #message.updated { display: none; } @@ -4935,8 +4935,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { #everest-forms-welcome .everest-forms-welcome-container .everest-forms-welcome-container__action .everest-forms-welcome-container__action-card:hover { box-shadow: 0 2px 20px 0 rgba(73, 77, 80, 0.15); } -/** - * Branding +/** + * Branding */ .everest-forms_page_evf-builder select, .everest-forms_page_evf-settings select, @@ -5083,7 +5083,7 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { .everest-forms_page_evf-settings .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap, .everest-forms_page_evf-entries .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap, .everest-forms_page_evf-tools .evf-toggle-section .evf-toggle-switch input:focus + .evf-toggle-switch-wrap { - box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; } + box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; } .everest-forms_page_evf-builder .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, .everest-forms_page_evf-settings .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, .everest-forms_page_evf-entries .evf-toggle-section .evf-toggle-switch .evf-toggle-switch-wrap, @@ -5541,8 +5541,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { margin-bottom: 15px; border: 2px solid #cdd0d8; } -/** - * Tabs +/** + * Tabs */ .everest-forms-tab ul { display: flex; @@ -5609,8 +5609,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { margin-left: -16px; border-top: 1px solid #cdd0d8; } } -/** - * Template Setup +/** + * Template Setup **/ .everest-forms { border-radius: 4px; } @@ -5800,8 +5800,8 @@ body.everest-forms-builder.everest-forms_page_evf-builder #wpfooter { border: none; border-radius: 100px; } -/** - * Form Setup +/** + * Form Setup */ .everest-forms-builder-setup #screen-meta-links { display: none; } @@ -5947,8 +5947,8 @@ p.search-box { margin-right: 0; max-width: 100%; } -/** - * Form Builder +/** + * Form Builder **/ #everest-forms-panel-settings .evf-content-section { display: none; } @@ -7068,7 +7068,7 @@ p.search-box { margin-bottom: 15px; background-color: transparent; border: 1px solid transparent; - transition: 0.5s border, 0.5s background-color; } + transition: 0.5s border, 0.5s background-color; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row:last-child { margin-bottom: 0; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-toggle-row { @@ -7173,7 +7173,7 @@ p.search-box { background: #fff; position: relative; border: 1px solid transparent; - transition: 0.5s border, 0.5s background-color; } + transition: 0.5s border, 0.5s background-color; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-admin-grid.evf-hover.evf-item-hover { position: relative; } .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel-content-wrap .evf-admin-row .evf-admin-grid.evf-hover.evf-item-hover .everest-forms-field:nth-last-child(2), @@ -8147,8 +8147,8 @@ p.search-box { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-field.everest-forms-field-image-upload.active svg { background: #e7e9ef; } -/** - * Settings styling. +/** + * Settings styling. **/ .everest-forms h2.evf-nav-tab-wrapper { margin-bottom: 1em; } @@ -8578,8 +8578,8 @@ p.search-box { .everest-forms .everest-forms-integration-content .integration-connection-detail .evf-connection-list table.evf-connection-list-table tr:last-child td { border-bottom: none; } -/** - * Import and Export +/** + * Import and Export */ .evf-tools-export-entries, .everest-forms-import-form, @@ -8840,8 +8840,8 @@ p.search-box { border: none; cursor: pointer; } -/** - * List Table. +/** + * List Table. */ table.wp-list-table span.na { color: #999; } @@ -8881,8 +8881,8 @@ table.wp-list-table .new-entries-notification td { box-shadow: none; background: #e6f4ff; } -/** - * Entry viewer. +/** + * Entry viewer. **/ .everest-forms-entry .postbox .inside { padding: 6px 0 0; } @@ -9160,19 +9160,19 @@ table.wp-list-table .new-entries-notification td { padding: 3px 0 0; text-decoration: none; } -/** - * DB log viewer. +/** + * DB log viewer. **/ .wp-list-table.logs { - /** - * Add color to levels - * - * Descending severity: - * emergency, alert -> red - * critical, error -> orange - * warning, notice -> yellow - * info -> blue - * debug -> green + /** + * Add color to levels + * + * Descending severity: + * emergency, alert -> red + * critical, error -> orange + * warning, notice -> yellow + * info -> blue + * debug -> green */ } .wp-list-table.logs .log-level { display: inline; @@ -9225,8 +9225,8 @@ table.wp-list-table .new-entries-notification td { white-space: pre-wrap; word-wrap: break-word; } -/** - * Tooltips. +/** + * Tooltips. **/ .tips { cursor: help; @@ -9349,8 +9349,8 @@ img.tips { left: 50%; margin: -1em 0 0 -3px; } -/** - *Date picker. +/** + *Date picker. **/ img.ui-datepicker-trigger { vertical-align: middle; @@ -9360,8 +9360,8 @@ img.ui-datepicker-trigger { #ui-datepicker-div { display: none; } -/** - * Blank State. +/** + * Blank State. **/ .everest-forms-BlankState { text-align: center; @@ -9388,8 +9388,8 @@ img.ui-datepicker-trigger { float: left; margin: 6px 0 0 15px; } -/** - * Select2 elements. +/** + * Select2 elements. */ .select2-container .select2-selection--multiple .select2-selection__rendered { display: block; } @@ -9536,8 +9536,8 @@ img.ui-datepicker-trigger { .select2-container .everest-forms table.form-table .select2-container { min-width: 100% !important; } } -/** - * Select2 colors for built-in admin color themes. +/** + * Select2 colors for built-in admin color themes. */ .admin-color-blue .select2-dropdown { border-color: #096484; } @@ -9709,11 +9709,11 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-nav-wrapper .evf-forms-nav-right .evf-shortcode-field button { border-radius: 3px; } } -/** - * Small screen optimisation. +/** + * Small screen optimisation. **/ -/** - * Optimisation for screens 960px and smaller. +/** + * Optimisation for screens 960px and smaller. **/ @media only screen and (max-width: 960px) { .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel .everest-forms-panel-sidebar { @@ -9736,8 +9736,8 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .everest-forms-nav-wrapper .evf-forms-nav-right .evf-shortcode-field button { border-radius: 3px; } } -/** - * Optimisation for screens 782px and smaller. +/** + * Optimisation for screens 782px and smaller. **/ @media screen and (max-width: 782px) { .everest-forms_page_evf-builder .auto-fold #wpcontent { @@ -9771,8 +9771,8 @@ img.ui-datepicker-trigger { .everest-forms-builder-setup .everest-forms .evf-setup-desc a { width: 200px; } } -/** - * Optimisation for screens 768px. +/** + * Optimisation for screens 768px. */ @media screen and (min-width: 768px) { .evf-form-col-6 { @@ -9782,8 +9782,8 @@ img.ui-datepicker-trigger { flex: 0 0 33.333%; max-width: 33.333%; } } -/** - * Optimisation for screens 600px and smaller. +/** + * Optimisation for screens 600px and smaller. */ @media screen and (max-width: 600px) { .everest-forms_page_evf-builder .everest-forms .evf-nav-tab-wrapper a.nav-tab, @@ -9855,8 +9855,8 @@ img.ui-datepicker-trigger { .everest-forms_page_evf-builder #everest-forms-builder .evf-tab-content .everest-forms-panel .everest-forms-panel-sidebar .evf-registered-buttons .evf-registered-item { width: 46%; } } -/** - * Optimisation for screens 400px and smaller. +/** + * Optimisation for screens 400px and smaller. */ @media screen and (max-width: 400px) { #everest-forms-builder .evf-tab-lists li a { @@ -11021,8 +11021,8 @@ img.ui-datepicker-trigger { .evf-correct-answers li { margin-bottom: 10px; } -/** - * Analytic Table Dashboard +/** + * Analytic Table Dashboard */ .evf-survey-loader { display: block; @@ -11214,8 +11214,8 @@ img.ui-datepicker-trigger { flex: 1; padding: 20px; overflow: auto; - /** - * Star Rating Table + /** + * Star Rating Table **/ } .everest-forms-survey-summary table { width: 100%; @@ -11333,8 +11333,8 @@ img.ui-datepicker-trigger { .everest-forms-survey-summary::-webkit-scrollbar-thumb:hover { background: rgba(108, 118, 128, 0.75); } -/** - * quiz entry +/** + * quiz entry */ #everest-forms-entry-fields:not(.postbox) .correct_answer { background-color: rgba(0, 255, 43, 0.1); @@ -11353,8 +11353,8 @@ img.ui-datepicker-trigger { #everest-forms-entry-fields:not(.postbox) table tbody tr td span:last-child { margin-bottom: 0; } -/** - * Yes/No field. +/** + * Yes/No field. */ .everest-forms-field .yes-no-preview { display: flex; diff --git a/assets/extensions-json/sections/all_extensions.json b/assets/extensions-json/sections/all_extensions.json index d24d4d7ad..ecd346b03 100644 --- a/assets/extensions-json/sections/all_extensions.json +++ b/assets/extensions-json/sections/all_extensions.json @@ -630,7 +630,7 @@ "image": "extensions-json/sections/images/telegram.webp", "excerpt": "Telegram integration for Everest Forms! Easily integrate this popular messaging platform with Everest Forms to offer your users a smooth and efficient interaction experience.", "link": "https://docs.everestforms.net/docs/telegram/?utm_source=dashboard-all-feature&utm_medium=card-documentation-link", - "released_date": "xx/xx/2024", + "released_date": "07/08/2024", "plan": [ "personal", "agency", @@ -653,7 +653,7 @@ "themegrill agency" ], "setting_url": "admin.php?page=evf-settings&tab=integration§ion=sendinblue", - "demo_video_url": "NRRDY1ag6Sk", + "demo_video_url": "d2Ujl82OJuA", "popular_rank": 26 }, { @@ -670,7 +670,7 @@ "themegrill agency" ], "setting_url": "admin.php?page=evf-settings&tab=integration§ion=drip", - "demo_video_url": "ODRxkfX6y9Q", + "demo_video_url": "4BBKgRelpgE", "popular_rank": 35 }, { @@ -704,7 +704,7 @@ "themegrill agency" ], "setting_url": "admin.php?page=evf-settings&tab=integration§ion=getresponse", - "demo_video_url": "Jhq1dOFXV-I" + "demo_video_url": "bXrjALmtADw" }, { "title": "Salesflare", @@ -713,7 +713,7 @@ "image": "extensions-json/sections/images/Salesflare.webp", "excerpt": "Boost your B2B business efficiency with Salesflare's simple and powerful CRM solution, now fully integrated with Everest Forms.", "link": "https://docs.everestforms.net/docs/salesflare/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", - "released_date": "20/05/2024", + "released_date": "07/08/2024", "plan": [ "personal", "agency", @@ -753,7 +753,7 @@ "themegrill agency" ], "setting_url": "admin.php?page=evf-settings&tab=integration§ion=pipedrive", - "demo_video_url": "wJPX0EJ2OiI", + "demo_video_url": "84cGKj07g4g", "popular_rank": 32 }, { @@ -762,8 +762,8 @@ "name": "Everest Forms - Square", "image": "extensions-json/sections/images/square-payment.png", "excerpt": "Connect your Everest Forms data to your Trello accounts. Use Trello API to link Everest Forms with Trello, syncing your website's form submissions with Trello tasks.", - "link": "https://docs.everestforms.net/docs/trello/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", - "released_date": "20/05/2024", + "link": "https://docs.everestforms.net/docs/square/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", + "released_date": "07/08/2024", "plan": [ "personal", "agency", @@ -778,8 +778,8 @@ "name": "Everest Forms- Airtable", "image": "extensions-json/sections/images/Airtable.png", "excerpt": "OnePageCRM for Everest Forms helps you to easily send Everest Forms entries directly to your OnePageCRM customer relation account.", - "link": "https://docs.everestforms.net/docs/onepagecrm/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", - "released_date": "xx/xx/2024", + "link": "https://docs.everestforms.net/docs/airtable/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", + "released_date": "07/08/2024", "plan": [ "personal", "agency", @@ -802,7 +802,7 @@ "themegrill agency" ], "setting_url": "admin.php?page=evf-settings&tab=integration§ion=mailerlite", - "demo_video_url": "CpqVgycDx_8", + "demo_video_url": "JqdNsPFKg5o", "popular_rank": 27 }, { @@ -829,7 +829,7 @@ "image": "extensions-json/sections/images/mollie.webp", "excerpt": "Strengthen your payment options with Mollie Pay! Seamlessly integrate this powerful payment gateway to offer your users a smooth and secure transaction experience.", "link": "https://docs.everestforms.net/docs/mollie/?utm_source=dashboard-all-feature&utm_medium=card-documentation-link", - "released_date": "xx/xx/2024", + "released_date": "07/08/2024", "plan": [ "personal", "agency", @@ -845,7 +845,7 @@ "image": "extensions-json/sections/images/LandingPage.webp", "excerpt": "Present your landing page as a form without going through the hassle of shortcodes and repetitive designing. A simple click, and that’s all you must do!", "link": "https://docs.everestforms.net/docs/landingpages/?utm_source=dashboard-all-features&utm_medium=card-documentation-link", - "released_date": "20/05/2024", + "released_date": "07/08/2024", "plan": [ "personal", "agency", diff --git a/assets/js/admin/chart.min.js b/assets/js/admin/chart.min.js index 18a933202..3ab37b3a9 100644 --- a/assets/js/admin/chart.min.js +++ b/assets/js/admin/chart.min.js @@ -7,4 +7,4 @@ * Released under the MIT license * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md */ -!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function l(i,a,r){function o(e,t){if(!a[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(s)return s(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=a[e]={exports:{}},i[e][0].call(n.exports,function(t){return o(i[e][1][t]||t)},n,n.exports,l,i,a,r)}return a[e].exports}for(var s="function"==typeof require&&require,t=0;t>>0,i=0;iOt(t)?(r=t+1,e-Ot(t)):(r=t,e);return{year:r,dayOfYear:n}}function Xt(t,e,n){var i,a,r=qt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+$t(a=t.year()-1,e,n):r>$t(t.year(),e,n)?(i=r-$t(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function $t(t,e,n){var i=qt(t,e,n),e=qt(t+1,e,n);return(Ot(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),_("w",v),_("ww",v,l),_("W",v),_("WW",v,l),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=b(t)});i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),_("d",v),_("e",v),_("E",v),_("dd",function(t,e){return e.weekdaysMinRegex(t)}),_("ddd",function(t,e){return e.weekdaysShortRegex(t)}),_("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=b(t)});var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var te=x;var ee=x;var ne=x;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=Mt(r[l]),o[l]=Mt(o[l]),s[l]=Mt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function re(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ae),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),re("a",!0),re("A",!1),e("hour","h"),n("hour",13),_("a",oe),_("A",oe),_("H",v),_("h",v),_("k",v),_("HH",v,l),_("hh",v,l),_("kk",v,l),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=b(t);e[D]=24===t?0:t}),k(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),k(["h","hh"],function(t,e,n){e[D]=b(t),p(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i)),p(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a)),p(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a))});var se,x=Ft("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Qt,weekdaysShort:Kt,meridiemParse:/[ap]\.?m?\.?/i},O={},ue={};function de(t){return t&&t.toLowerCase().replace("_","-")}function he(t){if(!O[t]&&void 0!==_n&&_n&&_n.exports)try{var e=se._abbr;xn("./locale/"+t),ce(e)}catch(n){}return O[t]}function ce(t,e){return t&&((e=c(e)?ge(t):fe(t,e))?se=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),se._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n,i=le;if(e.abbr=t,null!=O[t])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=O[t]._config;else if(null!=e.parentLocale)if(null!=O[e.parentLocale])i=O[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return O[t]=new Q(K(i,e)),ue[t]&&ue[t].forEach(function(t){fe(t.name,t.config)}),ce(t),O[t]}function ge(t){var e;if(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t){if(!h(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,r,o=t,s=0;s=n&&Z(r,i,!0)>=n-1)break;n--}s++}}return se}function me(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[M]<0||11Yt(e[w],e[M])?S:e[D]<0||24$t(r,l,u)?p(i)._overflowWeeks=!0:null!=d?p(i)._overflowWeekday=!0:(h=Zt(r,o,s,l,u),i._a[w]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(a=pe(t._a[w],n[w]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),d=Gt(a,0,t._dayOfYear),t._a[M]=d.getUTCMonth(),t._a[S]=d.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[D]&&0===t._a[C]&&0===t._a[P]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?Gt:jt).apply(null,c),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ke=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function Me(t){var e,n,i,a,r,o,s=t._i,l=be.exec(s)||ve.exec(s);if(l){for(p(t).iso=!0,e=0,n=_e.length;et.valueOf():t.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=Ee,a.isUTC=Ee,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=t("dates accessor is deprecated. Use date instead.",pt),a.months=t("months accessor is deprecated. Use month instead",Ht),a.years=t("years accessor is deprecated. Use year instead",At),a.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),a.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return c(this._isDSTShifted)&&(j(t={},this),(t=Oe(t))._a?(e=(t._isUTC?u:I)(t._a),this._isDSTShifted=this.isValid()&&0'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],a=a&&a.custom||{},r=v.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=m.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}}},{26:26,46:46}],24:[function(t,e,n){"use strict";var s=t(22),l=t(23),d=t(26),h=t(46),i=t(29),a=t(31),c=t(49),f=t(32),g=t(34),r=t(36);e.exports=function(o){function u(t){return"top"===t||"bottom"===t}o.types={},o.instances={},o.controllers={},h.extend(o.prototype,{construct:function(t,e){var n=this,i=((i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=h.configMerge(d.global,d[a.type],a.options||{}),e=a,c.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,r=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=r,n.height=t,n.aspectRatio=t?r/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,o.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return f.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),f.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return l.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t)||(f.notify(e,"resize",[i={width:r,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update({duration:e.options.responsiveAnimationDuration}))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype),a=(u(e.position)!==u(t.dposition)&&(e.position=t.dposition),l[n]=!0,null);if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=g.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,g.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=o.controllers[n.type];if(t===undefined)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(o.defaults.global,o.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),f._invalidate(i),!1!==f.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],f.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==f.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),f.notify(this,"afterScaleUpdate"),f.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==f.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[d.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){var n;return c.isArray(t)&&Array.prototype.filter?t.filter(e):(n=[],c.each(t,function(t){e(t)&&n.push(t)}),n)},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=n===undefined?t:n;for(var i=0,a=t.length;i=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,t=t.target||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=(a&&0n.length){for(var l=0;le&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,26:26,34:34,46:46}],29:[function(t,e,n){"use strict";var i=t(46);function o(t,e){return t["native"]?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;rt.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=c(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=m(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(s=p(o)+N.options.toPadding(o.padding).height,u?n.height+=s:n.width+=s),r.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),o=N.numberOfLabelLines(i),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=h,u=N.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*h+d.size*o+s*(o-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,o=f(e.ctx,i[0],d.font),u=f(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*o+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=o/2+3,e.paddingRight=u/2+3)):(r.mirror?h=0:h+=l+s,n.width=Math.min(e.maxWidth,n.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(t.x!==undefined)return this.getRightValue(t.x)}else if(t.y!==undefined)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e,n,i=this,a=i.options.offset;return i.isHorizontal()?(n=(e=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i._ticks.length-(a?0:1),1))*t+i.paddingLeft,a&&(n+=e/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0)):(a=i.height-(i.paddingTop+i.paddingBottom),i.top+t*(a/(i._ticks.length-1)))},getPixelForDecimal:function(t){var e,n=this;return n.isHorizontal()?(e=(n.width-(n.paddingLeft+n.paddingRight))*t+n.paddingLeft,n.left+Math.round(e)+(n.isFullWidth()?n.margins.left:0)):n.top+t*n.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a)&&ai.height-e.height&&(g="bottom"),a=(h.left+h.right)/2,r=(h.top+h.bottom)/2,h="center"===g?(t=function(t){return t<=a},function(t){return a=i.width-e.width/2}),m=function(t){return t+e.width+n.caretSize+n.caretPadding>i.width},d=function(t){return t-e.width-n.caretSize-n.caretPadding<0},p=function(t){return t<=r?"top":"bottom"},t(n.x)?(f="left",m(n.x)&&(f="center",g=p(n.y))):h(n.x)&&(f="right",d(n.x))&&(f="center",g=p(n.y)),O={xAlign:(t=c._options).xAlign||f,yAlign:t.yAlign||g},s=C,o=A,m=O,h=M._chart,d=s.x,p=s.y,c=s.caretPadding,f=m.xAlign,m=m.yAlign,t=s.caretSize+c,s=s.cornerRadius+c,"right"===f?d-=o.width:"center"===f&&(d=(d-=o.width/2)+o.width>h.width?h.width-o.width:d)<0&&(d=0),"top"===m?p+=t:p-="bottom"===m?o.height+t:o.height/2,"center"===m?"left"===f?d+=t:"right"===f&&(d-=t):"left"===f?d-=s:"right"===f&&(d+=s),I={x:d,y:p}}else C.opacity=0;return C.xAlign=O.xAlign,C.yAlign=O.yAlign,C.x=I.x,C.y=I.y,C.width=A.width,C.height=A.height,C.caretX=D.x,C.caretY=D.y,M._model=C,Y&&S.custom&&S.custom.call(M,C),M},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,t=this.getCaretPosition(t,e,i);n.lineTo(t.x1,t.y1),n.lineTo(t.x2,t.y2),n.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,t=t.y,g=e.width,e=e.height;return"center"===c?(r=t+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+g)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+g-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=t)-u,o=a):(r=(a=t+e)+u,o=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=z.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=r&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{26:26,27:27,46:46}],38:[function(t,e,n){"use strict";var i=t(26),a=t(27),d=t(46),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t=t.left&&n.x<=1.01*t.right&&t.top<=n.y&&n.y<=1.01*t.bottom)&&(i.strokeStyle=e.borderColor||h,i.lineWidth=d.valueOrDefault(e.borderWidth,u.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||h,d.canvas.drawPoint(i,a,o,s,l,r))}})},{26:26,27:27,46:46}],40:[function(t,e,n){"use strict";var i=t(26),t=t(27);function r(t){return t._view.width!==undefined}function a(t){var e,n,i,a=t._view;return a=r(t)?(t=a.width/2,e=a.x-t,n=a.x+t,i=Math.min(a.y,a.base),Math.max(a.y,a.base)):(t=a.height/2,e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-t,a.y+t),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(n=d.y-d.height/2,i=d.y+d.height/2,a=(t=d.base)<(e=d.x)?1:-1,l=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,a=1,l=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom"),f=(h&&(o=(h=(o=Math.min(Math.abs(t-e),Math.abs(n-i)))=(n=a(this)).left&&t<=n.right&&n.top<=e&&e<=n.bottom:i},inLabelRange:function(t,e){var n;return!!this._view&&(n=a(this),r(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom)},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=r(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{26:26,27:27}],41:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(37),e.exports.Line=t(38),e.exports.Point=t(39),e.exports.Rectangle=t(40)},{37:37,38:38,39:39,40:40}],42:[function(t,e,n){"use strict";t=t(43),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){r?(r=Math.min(r,a/2-1e-7,i/2-1e-7),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.arcTo(e+i,n,e+i,n+r,r),t.lineTo(e+i,n+a-r),t.arcTo(e+i,n+a,e+i-r,n+a,r),t.lineTo(e+r,n+a),t.arcTo(e,n+a,e,n+a-r,r),t.lineTo(e,n+r),t.arcTo(e,n,e+r,n,r),t.closePath(),t.moveTo(e,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var o,s,l,u;if(r=r||0,!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(t.save(),t.translate(i,a),t.rotate(r*Math.PI/180),t.beginPath(),e){default:t.arc(0,0,n,0,2*Math.PI),t.closePath();break;case"triangle":h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(-d/2,h/3),t.lineTo(d/2,h/3),t.lineTo(0,-2*h/3),t.closePath();break;case"rect":u=1/Math.SQRT2*n,t.rect(-u,-u,2*u,2*u);break;case"rectRounded":var d=n/Math.SQRT2,h=Math.SQRT2*n;this.roundedRect(t,-d,-d,h,h,.425*n);break;case"rectRot":u=1/Math.SQRT2*n,t.moveTo(-u,0),t.lineTo(0,u),t.lineTo(u,0),t.lineTo(0,-u),t.closePath();break;case"cross":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0);break;case"crossRot":s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"star":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"line":t.moveTo(-n,0),t.lineTo(n,0);break;case"dash":t.moveTo(0,0),t.lineTo(n,0)}t.fill(),t.stroke(),t.restore()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),t.lineTo(n.x,n.y)):n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments)}},{43:43}],43:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a
',o=a.childNodes[0],s=a.childNodes[1],a._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},M(o,"scroll",(r=function(){a._reset(),i()}).bind(o,"expand")),M(s,"scroll",r.bind(s,"shrink")),a);f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==y.parentNode&&t.insertBefore(y,t.firstChild),y._reset())},g=(c=e)[v]||(c[v]={}),m=g.renderProxy=function(t){t.animationName===k&&f()},b.each(w,function(t){M(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(_)}function a(t){var e,n,i=t[v]||{},a=i.resizer;delete i.resizer,i=(e=t)[v]||{},(n=i.renderProxy)&&(b.each(w,function(t){r(e,t,n)}),delete i.renderProxy),e.classList.remove(_),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";n="@-webkit-keyframes "+k+"{"+n+"}@keyframes "+k+"{"+n+"}."+_+"{-webkit-animation:"+k+" 0.001s;animation:"+k+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(n="/* Chart.js */\n"+n,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(n))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),r=t.getAttribute("width"),t[v]={initial:{height:a,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==r&&""!==r||(n=s(t,"width"))!==undefined&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),n!==undefined&&(t.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[v]&&(n=i[v].initial,["height","width"].forEach(function(t){var e=n[t];b.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),b.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[v])},addEventListener:function(a,t,r){var e=a.canvas;"resize"===t?l(e,r,a):M(e,t,((e=r[v]||(r[v]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((e=a,n=o[(t=t).type]||t.type,i=b.getRelativePosition(t,e),S(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[v]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,n)}},b.addEvent=M,b.removeEvent=r},{46:46}],49:[function(t,e,n){"use strict";var i=t(46),a=t(47),t=t(48),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{46:46,47:47,48:48}],50:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(51),e.exports.legend=t(52),e.exports.title=t(53)},{51:51,52:52,53:53}],51:[function(t,e,n){"use strict";var w=t(26),c=t(41),M=t(46),f=(w._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(t){var e=t.fill,t=t.chart,n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e)&&n.dataset._children||[],a=i.length||0;return a?function(t,e){return e');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}});var r=i.extend({initialize:function(t){C.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=C.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=D.global,c=C.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),e=c(d.fontFamily,e.defaultFontFamily),c=C.fontString(f,g,e),m=u.legendHitBoxes=[],p=u.minSize,g=u.isHorizontal();g?(p.width=u.maxWidth,p.height=t?10:0):(p.width=t?10:0,p.height=u.maxHeight),t&&(h.font=c,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",C.each(u.legendItems,function(t,e){t=P(d,f)+f/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=f+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+d.padding}),p.height+=i):(e=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=f+e,C.each(u.legendItems,function(t,e){t=P(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h,c,t,f,e,n,g,m,p,y,b,v=this,x=v.options,_=x.labels,k=D.global,w=k.elements.line,M=v.width,S=v.lineWidths;x.display&&(h=v.ctx,t=(c=C.valueOrDefault)(_.fontColor,k.defaultFontColor),f=c(_.fontSize,k.defaultFontSize),n=c(_.fontStyle,k.defaultFontStyle),e=c(_.fontFamily,k.defaultFontFamily),n=C.fontString(f,n,e),h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=t,h.fillStyle=t,h.font=n,g=P(_,f),m=v.legendHitBoxes,p=v.isHorizontal(),y=p?{x:v.left+(M-S[0])/2,y:v.top+_.padding,line:0}:{x:v.left+_.padding,y:v.top+_.padding,line:0},b=f+_.padding,C.each(v.legendItems,function(t,e){var n,i,a,r,o,s=h.measureText(t.text).width,l=g+f/2+s,u=y.x,d=y.y;p?M<=u+l&&(d=y.y+=b,y.line++,u=y.x=v.left+(M-S[y.line])/2):d+b>v.bottom&&(u=y.x=u+v.columnWidths[y.line]+_.padding,d=y.y=v.top+_.padding,y.line++),o=u,n=d,a=t,isNaN(g)||g<=0||(h.save(),h.fillStyle=c(a.fillStyle,k.defaultColor),h.lineCap=c(a.lineCap,w.borderCapStyle),h.lineDashOffset=c(a.lineDashOffset,w.borderDashOffset),h.lineJoin=c(a.lineJoin,w.borderJoinStyle),h.lineWidth=c(a.lineWidth,w.borderWidth),h.strokeStyle=c(a.strokeStyle,k.defaultColor),r=0===c(a.lineWidth,w.borderWidth),h.setLineDash&&h.setLineDash(c(a.lineDash,w.borderDash)),x.labels&&x.labels.usePointStyle?(i=f*Math.SQRT2/2,C.canvas.drawPoint(h,a.pointStyle,i,o+(a=i/Math.SQRT2),n+a)):(r||h.strokeRect(o,n,g,f),h.fillRect(o,n,g,f)),h.restore()),m[e].left=u,m[e].top=d,i=d,a=t,r=s,n=g+(o=f/2)+(n=u),i+=o,h.fillText(a.text,n,i),a.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(n,i),h.lineTo(n+r,i),h.stroke()),p?y.x+=l+_.padding:y.y+=b}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(e.left<=r&&r<=e.right&&e.top<=o&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&r<=u.left+u.width&&u.top<=o&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t["native"],e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t["native"],e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(C.mergeIf(e,D.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{26:26,27:27,31:31,46:46}],53:[function(t,e,n){"use strict";var b=t(26),i=t(27),v=t(46),a=t(31),t=v.noop,r=(b._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){v.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=v.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,b.global.defaultFontSize),i=this.minSize,a=v.isArray(e.text)?e.text.length:1,t=v.options.toLineHeight(e.lineHeight,t),n=n?a*t+2*e.padding:0;this.isHorizontal()?(i.width=this.maxWidth,i.height=n):(i.width=n,i.height=this.maxHeight),this.width=i.width,this.height=i.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=v.valueOrDefault,n=this.options,i=b.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=v.fontString(s,l,u),d=v.options.toLineHeight(n.lineHeight,s),u=d/2+n.padding,s=0,h=this.top,c=this.left,f=this.bottom,g=this.right,m=(t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=l,this.isHorizontal()?(r=c+(g-c)/2,o=h+u,a=g-c):(r="left"===n.position?c+u:g-u,o=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(v.isArray(m))for(var p=0,y=0;yo.max)&&(o.max=t)})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,t=+this.getRightValue(t),n=this.end-e,n=this.isHorizontal()?this.left+this.width/n*(t-e):this.bottom-this.height/n*(t-e);return n},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,e=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*e},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});a.registerScaleType("linear",t,e)}},{26:26,34:34,35:35,46:46}],56:[function(t,e,n){"use strict";var u=t(46),i=t(33);e.exports=function(t){var e=u.noop;t.LinearScaleBase=i.extend({getRightValue:function(t){return"string"==typeof t?+t:i.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=(e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||t>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e];return r[i]+(a[i]-r[i])*(t?(n-r[e])/t:0)}function O(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?D(t,e):!(t=t instanceof D?t:D(t)).isValid()&&"function"==typeof e?e(t):t}function I(t,e){var n;return!m.isNullOrUndef(t)&&(n=e.options.time,(t=O(e.getRightValue(t),n)).isValid())?(n.round&&t.startOf(n.round),t.valueOf()):null}function A(t){for(var e=P.indexOf(t)+1,n=P.length;e=P.indexOf(e);o--)if(a=P[o],C[a].common&&r.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(b,p.minUnit,c.min,c.max),c._majorUnit=A(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u>>0,i=0;iOt(t)?(r=t+1,e-Ot(t)):(r=t,e);return{year:r,dayOfYear:n}}function Xt(t,e,n){var i,a,r=qt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+$t(a=t.year()-1,e,n):r>$t(t.year(),e,n)?(i=r-$t(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function $t(t,e,n){var i=qt(t,e,n),e=qt(t+1,e,n);return(Ot(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),_("w",v),_("ww",v,l),_("W",v),_("WW",v,l),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=b(t)});i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),_("d",v),_("e",v),_("E",v),_("dd",function(t,e){return e.weekdaysMinRegex(t)}),_("ddd",function(t,e){return e.weekdaysShortRegex(t)}),_("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=b(t)});var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var te=x;var ee=x;var ne=x;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=Mt(r[l]),o[l]=Mt(o[l]),s[l]=Mt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function re(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ae),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),re("a",!0),re("A",!1),e("hour","h"),n("hour",13),_("a",oe),_("A",oe),_("H",v),_("h",v),_("k",v),_("HH",v,l),_("hh",v,l),_("kk",v,l),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=b(t);e[D]=24===t?0:t}),k(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),k(["h","hh"],function(t,e,n){e[D]=b(t),p(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i)),p(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a)),p(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a))});var se,x=Ft("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Qt,weekdaysShort:Kt,meridiemParse:/[ap]\.?m?\.?/i},O={},ue={};function de(t){return t&&t.toLowerCase().replace("_","-")}function he(t){if(!O[t]&&void 0!==_n&&_n&&_n.exports)try{var e=se._abbr;xn("./locale/"+t),ce(e)}catch(n){}return O[t]}function ce(t,e){return t&&((e=c(e)?ge(t):fe(t,e))?se=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),se._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n,i=le;if(e.abbr=t,null!=O[t])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=O[t]._config;else if(null!=e.parentLocale)if(null!=O[e.parentLocale])i=O[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return O[t]=new Q(K(i,e)),ue[t]&&ue[t].forEach(function(t){fe(t.name,t.config)}),ce(t),O[t]}function ge(t){var e;if(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t){if(!h(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,r,o=t,s=0;s=n&&Z(r,i,!0)>=n-1)break;n--}s++}}return se}function me(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[M]<0||11Yt(e[w],e[M])?S:e[D]<0||24$t(r,l,u)?p(i)._overflowWeeks=!0:null!=d?p(i)._overflowWeekday=!0:(h=Zt(r,o,s,l,u),i._a[w]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(a=pe(t._a[w],n[w]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),d=Gt(a,0,t._dayOfYear),t._a[M]=d.getUTCMonth(),t._a[S]=d.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[D]&&0===t._a[C]&&0===t._a[P]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?Gt:jt).apply(null,c),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ke=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function Me(t){var e,n,i,a,r,o,s=t._i,l=be.exec(s)||ve.exec(s);if(l){for(p(t).iso=!0,e=0,n=_e.length;et.valueOf():t.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=Ee,a.isUTC=Ee,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=t("dates accessor is deprecated. Use date instead.",pt),a.months=t("months accessor is deprecated. Use month instead",Ht),a.years=t("years accessor is deprecated. Use year instead",At),a.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),a.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return c(this._isDSTShifted)&&(j(t={},this),(t=Oe(t))._a?(e=(t._isUTC?u:I)(t._a),this._isDSTShifted=this.isValid()&&0'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],a=a&&a.custom||{},r=b.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r=Math.PI?-1:h<-Math.PI?1:0))+y,s=Math.cos(h),t=Math.sin(h),e=Math.cos(y),i=Math.sin(y),o=h<=0&&0<=y||h<=2*Math.PI&&2*Math.PI<=y,a=h<=.5*Math.PI&&.5*Math.PI<=y||h<=2.5*Math.PI&&2.5*Math.PI<=y,r=h<=-Math.PI&&-Math.PI<=y||h<=Math.PI&&Math.PI<=y,h=h<=.5*-Math.PI&&.5*-Math.PI<=y||h<=1.5*Math.PI&&1.5*Math.PI<=y,y=p/100,r=r?-1:Math.min(s*(s<0?1:y),e*(e<0?1:y)),h=h?-1:Math.min(t*(t<0?1:y),i*(i<0?1:y)),o=o?1:Math.max(s*(0'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=m.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}}},{26:26,46:46}],24:[function(t,e,n){"use strict";var s=t(22),l=t(23),d=t(26),h=t(46),i=t(29),a=t(31),c=t(49),f=t(32),g=t(34),r=t(36);e.exports=function(o){function u(t){return"top"===t||"bottom"===t}o.types={},o.instances={},o.controllers={},h.extend(o.prototype,{construct:function(t,e){var n=this,i=((i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=h.configMerge(d.global,d[a.type],a.options||{}),e=a,c.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,r=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=r,n.height=t,n.aspectRatio=t?r/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,o.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return f.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),f.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return l.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t)||(f.notify(e,"resize",[i={width:r,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update({duration:e.options.responsiveAnimationDuration}))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype),a=(u(e.position)!==u(t.dposition)&&(e.position=t.dposition),l[n]=!0,null);if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=g.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,g.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=o.controllers[n.type];if(t===undefined)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(o.defaults.global,o.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),f._invalidate(i),!1!==f.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],f.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==f.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),f.notify(this,"afterScaleUpdate"),f.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==f.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[d.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){var n;return c.isArray(t)&&Array.prototype.filter?t.filter(e):(n=[],c.each(t,function(t){e(t)&&n.push(t)}),n)},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=n===undefined?t:n;for(var i=0,a=t.length;i=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,t=t.target||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=(a&&0n.length){for(var l=0;le&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,26:26,34:34,46:46}],29:[function(t,e,n){"use strict";var i=t(46);function o(t,e){return t["native"]?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;rt.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=c(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=m(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(s=p(o)+N.options.toPadding(o.padding).height,u?n.height+=s:n.width+=s),r.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),o=N.numberOfLabelLines(i),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=h,u=N.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*h+d.size*o+s*(o-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,o=f(e.ctx,i[0],d.font),u=f(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*o+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=o/2+3,e.paddingRight=u/2+3)):(r.mirror?h=0:h+=l+s,n.width=Math.min(e.maxWidth,n.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(t.x!==undefined)return this.getRightValue(t.x)}else if(t.y!==undefined)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e,n,i=this,a=i.options.offset;return i.isHorizontal()?(n=(e=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i._ticks.length-(a?0:1),1))*t+i.paddingLeft,a&&(n+=e/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0)):(a=i.height-(i.paddingTop+i.paddingBottom),i.top+t*(a/(i._ticks.length-1)))},getPixelForDecimal:function(t){var e,n=this;return n.isHorizontal()?(e=(n.width-(n.paddingLeft+n.paddingRight))*t+n.paddingLeft,n.left+Math.round(e)+(n.isFullWidth()?n.margins.left:0)):n.top+t*n.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a)&&ai.height-e.height&&(g="bottom"),a=(h.left+h.right)/2,r=(h.top+h.bottom)/2,h="center"===g?(t=function(t){return t<=a},function(t){return a=i.width-e.width/2}),m=function(t){return t+e.width+n.caretSize+n.caretPadding>i.width},d=function(t){return t-e.width-n.caretSize-n.caretPadding<0},p=function(t){return t<=r?"top":"bottom"},t(n.x)?(f="left",m(n.x)&&(f="center",g=p(n.y))):h(n.x)&&(f="right",d(n.x))&&(f="center",g=p(n.y)),O={xAlign:(t=c._options).xAlign||f,yAlign:t.yAlign||g},s=C,o=A,m=O,h=M._chart,d=s.x,p=s.y,c=s.caretSize,f=s.caretPadding,s=s.cornerRadius,t=m.xAlign,m=m.yAlign,c+=f,s+=f,"right"===t?d-=o.width:"center"===t&&(d=(d-=o.width/2)+o.width>h.width?h.width-o.width:d)<0&&(d=0),"top"===m?p+=c:p-="bottom"===m?o.height+c:o.height/2,"center"===m?"left"===t?d+=c:"right"===t&&(d-=c):"left"===t?d-=s:"right"===t&&(d+=s),I={x:d,y:p}}else C.opacity=0;return C.xAlign=O.xAlign,C.yAlign=O.yAlign,C.x=I.x,C.y=I.y,C.width=A.width,C.height=A.height,C.caretX=D.x,C.caretY=D.y,M._model=C,Y&&S.custom&&S.custom.call(M,C),M},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,t=this.getCaretPosition(t,e,i);n.lineTo(t.x1,t.y1),n.lineTo(t.x2,t.y2),n.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,t=t.y,g=e.width,e=e.height;return"center"===c?(r=t+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+g)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+g-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=t)-u,o=a):(r=(a=t+e)+u,o=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=z.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=r&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{26:26,27:27,46:46}],38:[function(t,e,n){"use strict";var i=t(26),a=t(27),d=t(46),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t=t.left&&1.01*t.right>=n.x&&n.y>=t.top&&1.01*t.bottom>=n.y)&&(i.strokeStyle=e.borderColor||h,i.lineWidth=d.valueOrDefault(e.borderWidth,u.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||h,d.canvas.drawPoint(i,a,o,s,l,r))}})},{26:26,27:27,46:46}],40:[function(t,e,n){"use strict";var i=t(26),t=t(27);function r(t){return t._view.width!==undefined}function a(t){var e,n,i,a=t._view;return a=r(t)?(t=a.width/2,e=a.x-t,n=a.x+t,i=Math.min(a.y,a.base),Math.max(a.y,a.base)):(t=a.height/2,e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-t,a.y+t),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,a=t=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){var n;return!!this._view&&(n=a(this),r(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom)},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=r(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{26:26,27:27}],41:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(37),e.exports.Line=t(38),e.exports.Point=t(39),e.exports.Rectangle=t(40)},{37:37,38:38,39:39,40:40}],42:[function(t,e,n){"use strict";t=t(43),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){r?(r=Math.min(r,a/2-1e-7,i/2-1e-7),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.arcTo(e+i,n,e+i,n+r,r),t.lineTo(e+i,n+a-r),t.arcTo(e+i,n+a,e+i-r,n+a,r),t.lineTo(e+r,n+a),t.arcTo(e,n+a,e,n+a-r,r),t.lineTo(e,n+r),t.arcTo(e,n,e+r,n,r),t.closePath(),t.moveTo(e,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var o,s,l,u;if(r=r||0,!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(t.save(),t.translate(i,a),t.rotate(r*Math.PI/180),t.beginPath(),e){default:t.arc(0,0,n,0,2*Math.PI),t.closePath();break;case"triangle":h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(-d/2,h/3),t.lineTo(d/2,h/3),t.lineTo(0,-2*h/3),t.closePath();break;case"rect":u=1/Math.SQRT2*n,t.rect(-u,-u,2*u,2*u);break;case"rectRounded":var d=n/Math.SQRT2,h=Math.SQRT2*n;this.roundedRect(t,-d,-d,h,h,.425*n);break;case"rectRot":u=1/Math.SQRT2*n,t.moveTo(-u,0),t.lineTo(0,u),t.lineTo(u,0),t.lineTo(0,-u),t.closePath();break;case"cross":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0);break;case"crossRot":s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"star":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"line":t.moveTo(-n,0),t.lineTo(n,0);break;case"dash":t.moveTo(0,0),t.lineTo(n,0)}t.fill(),t.stroke(),t.restore()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),t.lineTo(n.x,n.y)):n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments)}},{43:43}],43:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a
',o=a.childNodes[0],s=a.childNodes[1],a._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},M(o,"scroll",(r=function(){a._reset(),i()}).bind(o,"expand")),M(s,"scroll",r.bind(s,"shrink")),a);f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==y.parentNode&&t.insertBefore(y,t.firstChild),y._reset())},g=(c=e)[v]||(c[v]={}),m=g.renderProxy=function(t){t.animationName===k&&f()},b.each(w,function(t){M(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(_)}function a(t){var e,n,i=t[v]||{},a=i.resizer;delete i.resizer,i=(e=t)[v]||{},(n=i.renderProxy)&&(b.each(w,function(t){r(e,t,n)}),delete i.renderProxy),e.classList.remove(_),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";n="@-webkit-keyframes "+k+"{"+n+"}@keyframes "+k+"{"+n+"}."+_+"{-webkit-animation:"+k+" 0.001s;animation:"+k+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(n="/* Chart.js */\n"+n,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(n))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),r=t.getAttribute("width"),t[v]={initial:{height:a,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==r&&""!==r||(n=s(t,"width"))!==undefined&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),n!==undefined&&(t.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[v]&&(n=i[v].initial,["height","width"].forEach(function(t){var e=n[t];b.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),b.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[v])},addEventListener:function(a,t,r){var e=a.canvas;"resize"===t?l(e,r,a):M(e,t,((e=r[v]||(r[v]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((e=a,n=o[(t=t).type]||t.type,i=b.getRelativePosition(t,e),S(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[v]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,n)}},b.addEvent=M,b.removeEvent=r},{46:46}],49:[function(t,e,n){"use strict";var i=t(46),a=t(47),t=t(48),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{46:46,47:47,48:48}],50:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(51),e.exports.legend=t(52),e.exports.title=t(53)},{51:51,52:52,53:53}],51:[function(t,e,n){"use strict";var w=t(26),c=t(41),M=t(46),f=(w._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(t){var e=t.fill,t=t.chart,n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e)&&n.dataset._children||[],a=i.length||0;return a?function(t,e){return e');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}});var r=i.extend({initialize:function(t){P.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=P.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=C.global,c=P.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),e=c(d.fontFamily,e.defaultFontFamily),c=P.fontString(f,g,e),m=u.legendHitBoxes=[],p=u.minSize,g=u.isHorizontal();g?(p.width=u.maxWidth,p.height=t?10:0):(p.width=t?10:0,p.height=u.maxHeight),t&&(h.font=c,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=f+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+d.padding}),p.height+=i):(e=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=f+e,P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,f,t,g,e,n,m,p,y,b,v,x=this,_=x.options,k=_.labels,w=C.global,M=w.elements.line,S=x.width,D=x.lineWidths;_.display&&(c=x.ctx,t=(f=P.valueOrDefault)(k.fontColor,w.defaultFontColor),g=f(k.fontSize,w.defaultFontSize),n=f(k.fontStyle,w.defaultFontStyle),e=f(k.fontFamily,w.defaultFontFamily),n=P.fontString(g,n,e),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=t,c.fillStyle=t,c.font=n,m=T(k,g),p=x.legendHitBoxes,y=x.isHorizontal(),b=y?{x:x.left+(S-D[0])/2,y:x.top+k.padding,line:0}:{x:x.left+k.padding,y:x.top+k.padding,line:0},v=g+k.padding,P.each(x.legendItems,function(t,e){var n,i,a,r,o,s,l=c.measureText(t.text).width,u=m+g/2+l,d=b.x,h=b.y;y?S<=d+u&&(h=b.y+=v,b.line++,d=b.x=x.left+(S-D[b.line])/2):h+v>x.bottom&&(d=b.x=d+x.columnWidths[b.line]+k.padding,h=b.y=x.top+k.padding,b.line++),i=d,n=h,a=t,isNaN(m)||m<=0||(c.save(),c.fillStyle=f(a.fillStyle,w.defaultColor),c.lineCap=f(a.lineCap,M.borderCapStyle),c.lineDashOffset=f(a.lineDashOffset,M.borderDashOffset),c.lineJoin=f(a.lineJoin,M.borderJoinStyle),c.lineWidth=f(a.lineWidth,M.borderWidth),c.strokeStyle=f(a.strokeStyle,w.defaultColor),s=0===f(a.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(f(a.lineDash,M.borderDash)),_.labels&&_.labels.usePointStyle?(o=(r=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(c,a.pointStyle,r,i+o,n+o)):(s||c.strokeRect(i,n,m,g),c.fillRect(i,n,m,g)),c.restore()),p[e].left=d,p[e].top=h,a=h,r=t,o=l,i=m+(s=g/2)+(i=d),a+=s,c.fillText(r.text,i,a),r.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(i,a),c.lineTo(i+o,a),c.stroke()),y?b.x+=u+k.padding:b.y+=v}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t["native"],e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t["native"],e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(P.mergeIf(e,C.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{26:26,27:27,31:31,46:46}],53:[function(t,e,n){"use strict";var b=t(26),i=t(27),v=t(46),a=t(31),t=v.noop,r=(b._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){v.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=v.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,b.global.defaultFontSize),i=this.minSize,a=v.isArray(e.text)?e.text.length:1,t=v.options.toLineHeight(e.lineHeight,t),n=n?a*t+2*e.padding:0;this.isHorizontal()?(i.width=this.maxWidth,i.height=n):(i.width=n,i.height=this.maxHeight),this.width=i.width,this.height=i.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=v.valueOrDefault,n=this.options,i=b.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=v.fontString(s,l,u),d=v.options.toLineHeight(n.lineHeight,s),u=d/2+n.padding,s=0,h=this.top,c=this.left,f=this.bottom,g=this.right,m=(t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=l,this.isHorizontal()?(r=c+(g-c)/2,o=h+u,a=g-c):(r="left"===n.position?c+u:g-u,o=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(v.isArray(m))for(var p=0,y=0;yo.max)&&(o.max=t)})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,t=+this.getRightValue(t),n=this.end-e,n=this.isHorizontal()?this.left+this.width/n*(t-e):this.bottom-this.height/n*(t-e);return n},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,e=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*e},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});a.registerScaleType("linear",t,e)}},{26:26,34:34,35:35,46:46}],56:[function(t,e,n){"use strict";var u=t(46),i=t(33);e.exports=function(t){var e=u.noop;t.LinearScaleBase=i.extend({getRightValue:function(t){return"string"==typeof t?+t:i.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=(e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i,a=[],r=(t.stepSize&&0r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||tr.r&&(r.r=h.end,o.r=u),d.startr.b&&(r.b=d.end,o.b=u)}t.setReductions(a,r,o)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels,r=(e.lineWidth=i.lineWidth,e.strokeStyle=i.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),o=x(t);e.textBaseline="top";for(var s,l=v(t)-1;0<=l;l--)if(i.display&&(u=t.getPointPosition(l,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display){var u=t.getPointPosition(l,r+5),d=_.valueAtIndexOrDefault(a.fontColor,l,b.defaultFontColor),d=(e.font=o.font,e.fillStyle=d,t.getIndexAngle(l)),d=_.toDegrees(d),h=(e.textAlign=0===(g=d)||180===g?"center":g<180?"left":"right",g=d,d=t._pointLabelSizes[l],s=u,90===g||270===g?s.y-=d.h/2:(270>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e],n=t?(n-r[e])/t:0,e=(a[i]-r[i])*n;return r[i]+e}function O(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?D(t,e):!(t=t instanceof D?t:D(t)).isValid()&&"function"==typeof e?e(t):t}function I(t,e){var n;return!m.isNullOrUndef(t)&&(n=e.options.time,(t=O(e.getRightValue(t),n)).isValid())?(n.round&&t.startOf(n.round),t.valueOf()):null}function A(t){for(var e=P.indexOf(t)+1,n=P.length;e=P.indexOf(e);o--)if(a=P[o],C[a].common&&r.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(b,p.minUnit,c.min,c.max),c._majorUnit=A(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u'},init:function(){s=this.settings,u(".everest-forms-active-email-connections-list li").first().addClass("active-user"),u(".evf-content-email-settings-inner").first().addClass("active-connection"),o.bindUIActions()},ready:function(){s.formID=u("#everest-forms-builder-form").data("id")},bindUIActions:function(){u(document).on("click",".everest-forms-email-add",function(e){o.connectionAdd(this,e)}),u(document).on("click",".everest-forms-email-duplicate",function(e){o.connectionDuplicate(this,e)}),u(document).on("click",".everest-forms-active-email-connections-list li",function(e){o.selectActiveAccount(this,e)}),u(document).on("click",".everest-forms-email-remove",function(e){o.removeAccount(this,e)}),u(document).on("click",".everest-forms-email-default-remove",function(e){o.removeDefaultAccount(this,e)}),u(document).on("input",".everest-forms-email-name input",function(e){o.renameConnection(this,e)}),u(document).on("focusin",".everest-forms-email-name input",function(e){o.focusConnectionName(this,e)}),u(document).on("createEmailConnection",".everest-forms-email-add",function(e,n){o.addNewEmailConnection(u(this),n)})},connectionAdd:function(e,n){n.preventDefault();var i=u(e),n=i.data("type"),e=(e=evf_email_params.i18n_email_connection+('')+('

'+evf_email_params.i18n_email_error_name+"

")).replace(/%type%/g,n);u.confirm({title:!1,content:e,icon:"dashicons dashicons-info",type:"blue",backgroundDismiss:!1,closeIcon:!1,buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=this.$content.find("input#provider-connection-name"),n=this.$content.find(".error"),e=e.val().trim();if(0===e.length)return n.show(),!1;var t=e,n={action:"everest_forms_new_email_add",source:"email",name:t,id:s.form.data("id"),security:evf_email_params.ajax_email_nonce};u.ajax({url:evf_email_params.ajax_url,data:n,type:"POST",success:function(e){o.addNewEmailConnection(i,{response:e,name:t})}})}},cancel:{text:evf_email_params.i18n_email_cancel}}})},addNewEmailConnection:function(e,n){var t=n.response,i=t.data.preview_url,n=n.name,a=e.closest(".everest-forms-panel-sidebar-content"),s=a.find(".everest-forms-panel-sidebar"),o=u("#everest-forms-panel-field-settings-form_title:first").val()+"-"+Date.now(),l=u(".evf-content-email-settings").first().clone();u(".evf-content-email-settings-inner").removeClass("active-connection"),l.find('input:not(#qt_everest_forms_panel_field_email_connection_1_evf_email_message_toolbar input[type="button"], .evf_conditional_logic_container input)').val(""),l.find('.evf_conditional_logic_container input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-attach-pdf-to-admin-email input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-csv-file-email-attachments input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-show-header-in-attachment-pdf-file input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-file-email-attachments input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-enable-email-prompt input[type="checkbox"]').prop("checked",!1),l.find(".evf-email-message-prompt textarea").val(""),l.find(".everest-forms-email-name input").val(n),l.find(".everest-forms-show-header-in-attachment-pdf-file").hide(),l.find(".evf-email-message-prompt").hide(),l.find(".everest-forms-show-pdf-file-name").hide(),l.find(".evf-field-conditional-container").hide(),l.find(".evf-field-conditional-wrapper li:not(:first)").remove(),l.find(".conditional_or:not(:first)").remove(),l.find(".everest-forms-email-name input").val(n),setTimeout(function(){l.find(".evf-field-conditional-input").val("")},2e3),l.find(".evf-content-email-settings-inner").attr("data-connection_id",t.data.connection_id),l.find(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),l.find(".evf-toggle-switch input").attr("name","settings[email]["+t.data.connection_id+"][enable_email_notification]"),l.find(".evf-toggle-switch input:checkbox").attr("data-connection-id",t.data.connection_id),l.find(".evf-toggle-switch input:checkbox").prop("checked",!0),l.find(".evf-toggle-switch input:checkbox").val("1"),u(".evf-content-email-settings .evf-content-section-title").css("display","none"),u(".evf-content-email-settings").css("display","none"),u(".email-disable-message").remove(),u(".evf-enable-email-toggle").addClass("everest-forms-hidden"),l.find(".email-disable-message").remove(),l.find(".evf-enable-email-toggle").addClass("everest-forms-hidden"),l.find(".evf-toggle-switch").parents(".evf-content-section-title").css("display","flex"),l.find(".evf-toggle-switch").parents(".evf-content-email-settings").css("display",""),l.find(".evf-field-conditional-container").attr("data-connection_id",t.data.connection_id),l.find("#everest-forms-panel-field-email-connection_1-connection_name").attr("name","settings[email]["+t.data.connection_id+"][connection_name]"),l.find("#everest-forms-panel-field-email-connection_1-evf_to_email").attr("name","settings[email]["+t.data.connection_id+"][evf_to_email]"),l.find("#everest-forms-panel-field-email-connection_1-evf_to_email").val("{admin_email}"),l.find("#everest-forms-panel-field-email-connection_1-evf_carboncopy").attr("name","settings[email]["+t.data.connection_id+"][evf_carboncopy]"),l.find("#everest-forms-panel-field-email-connection_1-evf_blindcarboncopy").attr("name","settings[email]["+t.data.connection_id+"][evf_blindcarboncopy]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_name").attr("name","settings[email]["+t.data.connection_id+"][evf_from_name]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_name").val(evf_email_params.from_name),l.find("#everest-forms-panel-field-email-connection_1-evf_from_email").attr("name","settings[email]["+t.data.connection_id+"][evf_from_email]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_email").val("{admin_email}"),l.find("#everest-forms-panel-field-email-connection_1-evf_reply_to").attr("name","settings[email]["+t.data.connection_id+"][evf_reply_to]"),l.find("#everest-forms-panel-field-email-connection_1-evf_email_subject").attr("name","settings[email]["+t.data.connection_id+"][evf_email_subject]"),l.find("#everest-forms-panel-field-email-connection_1-evf_email_subject").val(evf_email_params.email_subject),l.find("#everest_forms_panel_field_email_connection_1_evf_email_message").attr("name","settings[email]["+t.data.connection_id+"][evf_email_message]"),l.find("#everest_forms_panel_field_email_connection_1_evf_email_message").val("{all_fields}"),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("name","settings[email]["+t.data.connection_id+"][file-email-attachments]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),l.find('input[name="settings[email][connection_1][file-email-attachments]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("name","settings[email]["+t.data.connection_id+"][attach_pdf_to_admin_email]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),l.find('input[name="settings[email][connection_1][attach_pdf_to_admin_email]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("name","settings[email]["+t.data.connection_id+"][csv-file-email-attachments]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),l.find('input[name="settings[email][connection_1][csv-file-email-attachments]"]').remove(),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("name","settings[email]["+t.data.connection_id+"][enable_ai_email_prompt]"),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").val(1),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),l.find('label[for="everest-forms-panel-field-email-connection_1-enable_ai_email_prompt"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),l.find('input[name="settings[email][connection_1][enable_ai_email_prompt]"]').remove(),l.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+t.data.connection_id+"][evf_email_message_prompt]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("name","settings[email]["+t.data.connection_id+"][show_header_in_attachment_pdf_file]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),l.find('input[name="settings[email][connection_1][show_header_in_attachment_pdf_file]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("name","settings[email]["+t.data.connection_id+"][pdf_name]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").val(o),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-pdf_name"),l.find(".everest-forms-attach-pdf-to-admin-email").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-attach_pdf_to_admin_email-wrap"),l.find(".everest-forms-show-header-in-attachment-pdf-file ").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-show_header_in_attachment_pdf_file-wrap"),l.find("#everest-forms-panel-field-email-connection_1-conditional_logic_status").attr("name","settings[email]["+t.data.connection_id+"][conditional_logic_status]"),l.find('.evf_conditional_logic_container input[type="hidden"]').attr("name","settings[email]["+t.data.connection_id+"][conditional_logic_status]"),l.find(".evf-field-show-hide").attr("name","settings[email]["+t.data.connection_id+"][conditional_option]"),l.find(".evf-field-conditional-field-select").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][field]"),l.find(".evf-field-conditional-condition").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][operator]"),l.find(".evf-field-conditional-input").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][value]"),$cloned_email=l.append(''),s.find(".email-default-preview").attr("href");u(".evf-email-settings-wrapper").append(l),a.find(".evf-content-email-settings-inner").last().addClass("active-connection"),e.parent().find(".everest-forms-active-email-connections-list li").removeClass("active-user"),e.closest(".everest-forms-active-email.active").children(".everest-forms-active-email-connections-list").removeClass("empty-list"),e.parent().find(".everest-forms-active-email-connections-list").append('
  • '+n+'
  • ')},connectionDuplicate:function(e,n){n.preventDefault();var i=u(e),a=i.closest("li").data("connection-id"),n=i.data("type"),e=(e=evf_email_params.i18n_email_connection+('')+('

    '+evf_email_params.i18n_email_error_name+"

    ")+('')).replace(/%type%/g,n);u.confirm({title:!1,content:e,icon:"dashicons dashicons-info",type:"blue",backgroundDismiss:!1,closeIcon:!1,buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=this.$content.find("input#provider-connection-name"),n=this.$content.find(".error"),e=e.val().trim();if(0===e.length)return n.show(),!1;var t=e,n={action:"everest_forms_email_duplicate",source:"email",name:t,id:s.form.data("id"),prev_connection_id:a,security:evf_email_params.ajax_email_nonce};u.ajax({url:evf_email_params.ajax_url,data:n,type:"POST",success:function(e){o.duplicateEmailConnection(i,{response:e,name:t})}})}},cancel:{text:evf_email_params.i18n_email_cancel}}})},duplicateEmailConnection:function(e,n){var t=n.response,i=t.data.preview_url,n=n.name,a=e.closest(".everest-forms-panel-sidebar-content"),s=u("#everest-forms-panel-field-settings-form_title:first").val()+"-"+Date.now(),o=t.data.prev_connection_id,l=t.data.connection_id,c=u('.evf-content-email-settings .evf-content-email-settings-inner.active-connection[data-connection_id="'+o+'"]').closest(".evf-content-section.evf-content-email-settings").clone(),m=u("#everest-forms-panel-field-email-"+o+"-evf_to_email").val(),f=u("#everest-forms-panel-field-email-"+o+"-evf_from_name").val(),d=u("#everest-forms-panel-field-email-"+o+"-evf_from_email").val(),r=u("#everest-forms-panel-field-email-"+o+"-evf_reply_to").val(),_=u("#everest-forms-panel-field-email-"+o+"-evf_email_subject").val(),v=u("#everest_forms_panel_field_email_"+o+"_evf_email_message").val(),p=u("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").prop("checked"),g=u("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").prop("checked"),h=u("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").prop("checked");c.find(".evf-field-show-hide").attr("name","settings[email]["+l+"][conditional_option]"),c.find(".evf-field-conditional-field-select").attr("name","settings[email]["+l+"][conditionals][1][1][field]"),c.find(".evf-field-conditional-condition").attr("name","settings[email]["+l+"][conditionals][1][1][operator]"),c.find(".evf-field-conditional-input").attr("name","settings[email]["+l+"][conditionals][1][1][value]"),u(".evf-content-email-settings-inner").removeClass("active-connection"),c.find('.evf_conditional_logic_container input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-attach-pdf-to-admin-email input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-csv-file-email-attachments input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-show-header-in-attachment-pdf-file input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-file-email-attachments input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-enable-email-prompt input[type="checkbox"]').prop("checked",!1),c.find(".evf-email-message-prompt textarea").val(""),c.find(".everest-forms-email-name input").val(n),c.find(".everest-forms-show-header-in-attachment-pdf-file").hide(),c.find(".evf-email-message-prompt").hide(),c.find(".everest-forms-show-pdf-file-name").hide(),c.find(".evf-field-conditional-container").hide(),c.find(".evf-field-conditional-wrapper li:not(:first)").remove(),c.find(".conditional_or:not(:first)").remove(),c.find(".everest-forms-email-name input").val(n),c.find(".evf-field-conditional-container[data-connection_id='"+o+"']").html();setTimeout(function(){c.find(".evf-field-conditional-input").val("")},2e3),c.find(".evf-content-email-settings-inner").attr("data-connection_id",l),c.find(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),c.find(".evf-toggle-switch input").attr("name","settings[email]["+l+"][enable_email_notification]"),c.find(".evf-toggle-switch input:checkbox").attr("data-connection-id",t.data.connection_id),c.find(".evf-toggle-switch input:checkbox").prop("checked",!0),c.find(".evf-toggle-switch input:checkbox").val("1"),u(".evf-content-email-settings .evf-content-section-title").css("display","none"),u(".evf-content-email-settings").css("display","none"),u(".email-disable-message").remove(),u(".evf-enable-email-toggle").addClass("everest-forms-hidden"),c.find(".email-disable-message").remove(),c.find(".evf-enable-email-toggle").addClass("everest-forms-hidden"),c.find(".evf-toggle-switch").parents(".evf-content-section-title").css("display","flex"),c.find(".evf-toggle-switch").parents(".evf-content-email-settings").css("display",""),c.find(".evf-field-conditional-container").attr("data-connection_id",t.data.connection_id),c.find("#everest-forms-panel-field-email-"+o+"-connection_name").attr("name","settings[email]["+l+"][connection_name]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_to_email").attr("name","settings[email]["+l+"][evf_to_email]"),c.find("#everest-forms-panel-field-email-connection_1-evf_carboncopy").attr("name","settings[email]["+l+"][evf_carboncopy]"),c.find("#everest-forms-panel-field-email-connection_1-evf_blindcarboncopy").attr("name","settings[email]["+l+"][evf_blindcarboncopy]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_name").attr("name","settings[email]["+l+"][evf_from_name]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_email").attr("name","settings[email]["+l+"][evf_from_email]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_reply_to").attr("name","settings[email]["+l+"][evf_reply_to]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_email_subject").attr("name","settings[email]["+l+"][evf_email_subject]"),c.find("#everest_forms_panel_field_email_"+o+"_evf_email_message").attr("name","settings[email]["+l+"][evf_email_message]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").attr("name","settings[email]["+l+"][file-email-attachments]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-attach_pdf_to_admin_email").attr("name","settings[email]["+l+"][attach_pdf_to_admin_email]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").attr("name","settings[email]["+l+"][csv-file-email-attachments]"),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("name","settings[email]["+l+"][enable_ai_email_prompt]"),c.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+l+"][evf_email_message_prompt]"),c.find('.evf_conditional_logic_container input[type="hidden"]').attr("name","settings[email]["+l+"][conditional_logic_status]"),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("name","settings[email]["+l+"][show_header_in_attachment_pdf_file]"),c.find("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").attr("name","settings[email]["+l+"][conditional_logic_status]"),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("name","settings[email]["+l+"][pdf_name]"),c.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+l+"][evf_email_message_prompt]"),c.find(".evf-field-show-hide").attr("name","settings[email]["+l+"][conditional_option]"),c.find(".evf-field-conditional-field-select").attr("name","settings[email]["+l+"][conditionals][1][1][field]"),c.find(".evf-field-conditional-condition").attr("name","settings[email]["+l+"][conditionals][1][1][operator]"),c.find(".evf-field-conditional-input").attr("name","settings[email]["+l+"][conditionals][1][1][value]"),c.find("#everest-forms-panel-field-email-"+o+"-connection_name").attr("id","everest-forms-panel-field-email-"+l+"-connection_name"),c.find("#everest-forms-panel-field-email-"+o+"-evf_to_email").attr("id","everest-forms-panel-field-email-"+l+"-evf_to_email"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_name").attr("id","everest-forms-panel-field-email-"+l+"-evf_from_name"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_email").attr("id","everest-forms-panel-field-email-"+l+"-evf_from_email"),c.find("#everest-forms-panel-field-email-"+o+"-evf_reply_to").attr("id","everest-forms-panel-field-email-"+l+"-evf_reply_to"),c.find("#everest-forms-panel-field-email-"+o+"-evf_email_subject").attr("id","everest-forms-panel-field-email-"+l+"-evf_email_subject"),c.find("#everest_forms_panel_field_email_"+o+"_evf_email_message").attr("id","everest_forms_panel_field_email_"+l+"_evf_email_message"),c.find("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+l+"-file-email-attachments"),c.find("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+l+"-csv-file-email-attachments"),c.find("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").attr("id","everest-forms-panel-field-email-"+l+"-conditional_logic_status"),c.find("#everest-forms-panel-field-email-"+l+"-connection_name").attr("value",n),c.find("#everest-forms-panel-field-email-"+l+"-evf_to_email").val(m),c.find("#everest-forms-panel-field-email-"+l+"-evf_from_name").val(f),c.find("#everest-forms-panel-field-email-"+l+"-evf_from_email").val(d),c.find("#everest-forms-panel-field-email-"+l+"-evf_reply_to").val(r),c.find("#everest-forms-panel-field-email-"+l+"-evf_email_subject").val(_),c.find("#everest_forms_panel_field_email_"+l+"_evf_email_message").val(v),c.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").val(1),p&&c.find("#everest-forms-panel-field-settingsemail"+l+"-file-email-attachments").prop("checked",!0),c.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),c.find('input[name="settings[email][connection_1][file-email-attachments]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").val(1),c.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),c.find('input[name="settings[email][connection_1][attach_pdf_to_admin_email]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").val(1),g&&c.find("#everest-forms-panel-field-settingsemail"+l+"-csv-file-email-attachments").prop("checked",!0),c.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),c.find('input[name="settings[email][connection_1][csv-file-email-attachments]"]').remove(),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").val(1),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),c.find('label[for="everest-forms-panel-field-email-connection_1-enable_ai_email_prompt"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),c.find('input[name="settings[email][connection_1][enable_ai_email_prompt]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").val(1),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),c.find('input[name="settings[email][connection_1][show_header_in_attachment_pdf_file]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").val(s),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-pdf_name"),c.find(".everest-forms-attach-pdf-to-admin-email").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-attach_pdf_to_admin_email-wrap"),c.find(".everest-forms-show-header-in-attachment-pdf-file ").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-show_header_in_attachment_pdf_file-wrap"),h&&(c.find("#everest-forms-panel-field-email-"+l+"-conditional_logic_status").prop("checked",!0),c.find('.evf_conditional_logic_container input[type="hidden"]').prop("checked",!0),c.find(".evf-field-conditional-container").css("display","block")),u(".evf-email-settings-wrapper").append(c),a.find(".evf-content-email-settings-inner").last().addClass("active-connection"),e.parent().find(".everest-forms-active-email-connections-list li").removeClass("active-user"),e.closest(".everest-forms-active-email.active").children(".everest-forms-active-email-connections-list").removeClass("empty-list"),e.closest(".everest-forms-active-email-connections-list").append('
  • '+n+'
  • ')},selectActiveAccount:function(e,n){var e=u(e),t=e.data("connection-id"),t=u(".evf-content-email-settings").find('[data-connection_id="'+t+'"]'),i=u(t).length;u(".evf-content-email-settings").find(".evf-content-email-settings-inner").removeClass("active-connection"),u(".evf-content-section-title").has("[data-connection-id="+e.siblings(".active-user").attr("data-connection-id")+"]").css("display","none"),u(".evf-content-section-title").has("[data-connection-id="+e.siblings(".active-user").attr("data-connection-id")+"]").parent().css("display","none"),e.siblings().removeClass("active-user"),e.addClass("active-user"),i&&u(t).addClass("active-connection"),u(".email-disable-message").remove(),0==u("input[data-connection-id="+e.attr("data-connection-id")+"]:last").prop("checked")&&u('").insertAfter(u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]")),u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]").css("display","flex"),u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]").parent().css("display","")},removeAccount:function(e,n){n.preventDefault();var t=u(e),i=t.parent().parent().parent().data("connection-id"),a=u(".evf-content-email-settings").find('[data-connection_id="'+i+'"]'),s=u(a).length;u.confirm({title:!1,content:"Are you sure you want to delete this Email?",backgroundDismiss:!1,closeIcon:!1,icon:"dashicons dashicons-info",type:"orange",buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e;s&&(e=t.parent().parent().parent(),active_block_after=u(".evf-provider-connections").find('[data-connection_id="'+i+'"]'),lengthOfActiveBlockAfter=u(a).length,(e.prev().length?e.prev(".connection-list"):e.next(".connection-list")).trigger("click"),u(a).parent().remove(),e.remove())}},cancel:{text:evf_email_params.i18n_email_cancel}}})},removeDefaultAccount:function(e,n){n.preventDefault,u.alert({title:!1,content:"Default Email can not be deleted !",icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:evf_data.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}})},focusConnectionName:function(e,n){e=u(e);e.data("val",e.val().trim())},renameConnection:function(e,n){n.preventDefault;var t=u(e),n=t.closest(".evf-content-email-settings-inner").data("connection_id");($active_block=u(".everest-forms-active-email-connections-list").find('[data-connection-id="'+n+'"]')).find(".user-nickname").text(t.val()),0===t.val().trim().length&&(t.parent(".everest-forms-email-name").find(".everest-forms-error").remove(),t.parent(".everest-forms-email-name").append('

    Email name cannot be empty.

    '),t.next(".everest-forms-error").fadeOut(3e3),setTimeout(function(){0===t.val().length&&(t.val(t.data("val")),$active_block.find(".user-nickname").text(t.data("val")))},3e3))}};o.init()}(jQuery); \ No newline at end of file +!function(u){var s,o={settings:{form:u("#everest-forms-builder-form"),spinner:''},init:function(){s=this.settings,u(".everest-forms-active-email-connections-list li").first().addClass("active-user"),u(".evf-content-email-settings-inner").first().addClass("active-connection"),o.bindUIActions()},ready:function(){s.formID=u("#everest-forms-builder-form").data("id")},bindUIActions:function(){u(document).on("click",".everest-forms-email-add",function(e){o.connectionAdd(this,e)}),u(document).on("click",".everest-forms-email-duplicate",function(e){o.connectionDuplicate(this,e)}),u(document).on("click",".everest-forms-active-email-connections-list li",function(e){o.selectActiveAccount(this,e)}),u(document).on("click",".everest-forms-email-remove",function(e){o.removeAccount(this,e)}),u(document).on("click",".everest-forms-email-default-remove",function(e){o.removeDefaultAccount(this,e)}),u(document).on("input",".everest-forms-email-name input",function(e){o.renameConnection(this,e)}),u(document).on("focusin",".everest-forms-email-name input",function(e){o.focusConnectionName(this,e)}),u(document).on("createEmailConnection",".everest-forms-email-add",function(e,n){o.addNewEmailConnection(u(this),n)})},connectionAdd:function(e,n){n.preventDefault();var i=u(e),n=i.data("type"),e=(e=evf_email_params.i18n_email_connection+('')+('

    '+evf_email_params.i18n_email_error_name+"

    ")).replace(/%type%/g,n);u.confirm({title:!1,content:e,icon:"dashicons dashicons-info",type:"blue",backgroundDismiss:!1,closeIcon:!1,buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=this.$content.find("input#provider-connection-name"),n=this.$content.find(".error"),e=e.val().trim();if(0===e.length)return n.show(),!1;var t=e,n={action:"everest_forms_new_email_add",source:"email",name:t,id:s.form.data("id"),security:evf_email_params.ajax_email_nonce};u.ajax({url:evf_email_params.ajax_url,data:n,type:"POST",success:function(e){o.addNewEmailConnection(i,{response:e,name:t})}})}},cancel:{text:evf_email_params.i18n_email_cancel}}})},addNewEmailConnection:function(e,n){var t=n.response,i=t.data.preview_url,n=n.name,a=e.closest(".everest-forms-panel-sidebar-content"),s=a.find(".everest-forms-panel-sidebar"),o=u("#everest-forms-panel-field-settings-form_title:first").val()+"-"+Date.now(),l=u(".evf-content-email-settings").first().clone();u(".evf-content-email-settings-inner").removeClass("active-connection"),l.find('input:not(#qt_everest_forms_panel_field_email_connection_1_evf_email_message_toolbar input[type="button"], .evf_conditional_logic_container input)').val(""),l.find('.evf_conditional_logic_container input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-attach-pdf-to-admin-email input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-csv-file-email-attachments input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-show-header-in-attachment-pdf-file input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-file-email-attachments input[type="checkbox"]').prop("checked",!1),l.find('.everest-forms-enable-email-prompt input[type="checkbox"]').prop("checked",!1),l.find(".evf-email-message-prompt textarea").val(""),l.find(".everest-forms-email-name input").val(n),l.find(".everest-forms-show-header-in-attachment-pdf-file").hide(),l.find(".evf-email-message-prompt").hide(),l.find(".everest-forms-show-pdf-file-name").hide(),l.find(".evf-field-conditional-container").hide(),l.find(".evf-field-conditional-wrapper li:not(:first)").remove(),l.find(".conditional_or:not(:first)").remove(),l.find(".everest-forms-email-name input").val(n),setTimeout(function(){l.find(".evf-field-conditional-input").val("")},2e3),l.find(".evf-content-email-settings-inner").attr("data-connection_id",t.data.connection_id),l.find(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),l.find(".evf-toggle-switch input").attr("name","settings[email]["+t.data.connection_id+"][enable_email_notification]"),l.find(".evf-toggle-switch input:checkbox").attr("data-connection-id",t.data.connection_id),l.find(".evf-toggle-switch input:checkbox").prop("checked",!0),l.find(".evf-toggle-switch input:checkbox").val("1"),u(".evf-content-email-settings .evf-content-section-title").css("display","none"),u(".evf-content-email-settings").css("display","none"),u(".email-disable-message").remove(),u(".evf-enable-email-toggle").addClass("everest-forms-hidden"),l.find(".email-disable-message").remove(),l.find(".evf-enable-email-toggle").addClass("everest-forms-hidden"),l.find(".evf-toggle-switch").parents(".evf-content-section-title").css("display","flex"),l.find(".evf-toggle-switch").parents(".evf-content-email-settings").css("display",""),l.find(".evf-field-conditional-container").attr("data-connection_id",t.data.connection_id),l.find("#everest-forms-panel-field-email-connection_1-connection_name").attr("name","settings[email]["+t.data.connection_id+"][connection_name]"),l.find("#everest-forms-panel-field-email-connection_1-evf_to_email").attr("name","settings[email]["+t.data.connection_id+"][evf_to_email]"),l.find("#everest-forms-panel-field-email-connection_1-evf_to_email").val("{admin_email}"),l.find("#everest-forms-panel-field-email-connection_1-evf_carboncopy").attr("name","settings[email]["+t.data.connection_id+"][evf_carboncopy]"),l.find("#everest-forms-panel-field-email-connection_1-evf_blindcarboncopy").attr("name","settings[email]["+t.data.connection_id+"][evf_blindcarboncopy]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_name").attr("name","settings[email]["+t.data.connection_id+"][evf_from_name]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_name").val(evf_email_params.from_name),l.find("#everest-forms-panel-field-email-connection_1-evf_from_email").attr("name","settings[email]["+t.data.connection_id+"][evf_from_email]"),l.find("#everest-forms-panel-field-email-connection_1-evf_from_email").val("{admin_email}"),l.find("#everest-forms-panel-field-email-connection_1-evf_reply_to").attr("name","settings[email]["+t.data.connection_id+"][evf_reply_to]"),l.find("#everest-forms-panel-field-email-connection_1-evf_email_subject").attr("name","settings[email]["+t.data.connection_id+"][evf_email_subject]"),l.find("#everest-forms-panel-field-email-connection_1-evf_email_subject").val(evf_email_params.email_subject),l.find("#everest_forms_panel_field_email_connection_1_evf_email_message").attr("name","settings[email]["+t.data.connection_id+"][evf_email_message]"),l.find("#everest_forms_panel_field_email_connection_1_evf_email_message").val("{all_fields}"),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("name","settings[email]["+t.data.connection_id+"][file-email-attachments]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),l.find('input[name="settings[email][connection_1][file-email-attachments]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("name","settings[email]["+t.data.connection_id+"][attach_pdf_to_admin_email]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),l.find('input[name="settings[email][connection_1][attach_pdf_to_admin_email]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("name","settings[email]["+t.data.connection_id+"][csv-file-email-attachments]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),l.find('input[name="settings[email][connection_1][csv-file-email-attachments]"]').remove(),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("name","settings[email]["+t.data.connection_id+"][enable_ai_email_prompt]"),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").val(1),l.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),l.find('label[for="everest-forms-panel-field-email-connection_1-enable_ai_email_prompt"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),l.find('input[name="settings[email][connection_1][enable_ai_email_prompt]"]').remove(),l.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+t.data.connection_id+"][evf_email_message_prompt]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("name","settings[email]["+t.data.connection_id+"][show_header_in_attachment_pdf_file]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").val(1),l.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),l.find('label[for="everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),l.find('input[name="settings[email][connection_1][show_header_in_attachment_pdf_file]"]').remove(),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("name","settings[email]["+t.data.connection_id+"][pdf_name]"),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").val(o),l.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-pdf_name"),l.find(".everest-forms-attach-pdf-to-admin-email").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-attach_pdf_to_admin_email-wrap"),l.find(".everest-forms-show-header-in-attachment-pdf-file ").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-show_header_in_attachment_pdf_file-wrap"),l.find("#everest-forms-panel-field-email-connection_1-conditional_logic_status").attr("name","settings[email]["+t.data.connection_id+"][conditional_logic_status]"),l.find('.evf_conditional_logic_container input[type="hidden"]').attr("name","settings[email]["+t.data.connection_id+"][conditional_logic_status]"),l.find(".evf-field-show-hide").attr("name","settings[email]["+t.data.connection_id+"][conditional_option]"),l.find(".evf-field-conditional-field-select").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][field]"),l.find(".evf-field-conditional-condition").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][operator]"),l.find(".evf-field-conditional-input").attr("name","settings[email]["+t.data.connection_id+"][conditionals][1][1][value]"),$cloned_email=l.append(''),s.find(".email-default-preview").attr("href");u(".evf-email-settings-wrapper").append(l),a.find(".evf-content-email-settings-inner").last().addClass("active-connection"),e.parent().find(".everest-forms-active-email-connections-list li").removeClass("active-user"),e.closest(".everest-forms-active-email.active").children(".everest-forms-active-email-connections-list").removeClass("empty-list"),e.parent().find(".everest-forms-active-email-connections-list").append('
  • '+n+'
  • ')},connectionDuplicate:function(e,n){n.preventDefault();var i=u(e),a=i.closest("li").data("connection-id"),n=i.data("type"),e=evf_email_params.i18n_email_connection,t='

    '+evf_email_params.i18n_email_error_name+"

    ",e=(e=e+('')+t+('')).replace(/%type%/g,n);u.confirm({title:!1,content:e,icon:"dashicons dashicons-info",type:"blue",backgroundDismiss:!1,closeIcon:!1,buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=this.$content.find("input#provider-connection-name"),n=this.$content.find(".error"),e=e.val().trim();if(0===e.length)return n.show(),!1;var t=e,n={action:"everest_forms_email_duplicate",source:"email",name:t,id:s.form.data("id"),prev_connection_id:a,security:evf_email_params.ajax_email_nonce};u.ajax({url:evf_email_params.ajax_url,data:n,type:"POST",success:function(e){o.duplicateEmailConnection(i,{response:e,name:t})}})}},cancel:{text:evf_email_params.i18n_email_cancel}}})},duplicateEmailConnection:function(e,n){var t=n.response,i=t.data.preview_url,n=n.name,a=e.closest(".everest-forms-panel-sidebar-content"),s=u("#everest-forms-panel-field-settings-form_title:first").val()+"-"+Date.now(),o=t.data.prev_connection_id,l=t.data.connection_id,c=u('.evf-content-email-settings .evf-content-email-settings-inner.active-connection[data-connection_id="'+o+'"]').closest(".evf-content-section.evf-content-email-settings").clone(),m=u("#everest-forms-panel-field-email-"+o+"-evf_to_email").val(),f=u("#everest-forms-panel-field-email-"+o+"-evf_from_name").val(),d=u("#everest-forms-panel-field-email-"+o+"-evf_from_email").val(),r=u("#everest-forms-panel-field-email-"+o+"-evf_reply_to").val(),_=u("#everest-forms-panel-field-email-"+o+"-evf_email_subject").val(),v=u("#everest_forms_panel_field_email_"+o+"_evf_email_message").val(),p=u("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").prop("checked"),g=u("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").prop("checked"),h=u("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").prop("checked");c.find(".evf-field-show-hide").attr("name","settings[email]["+l+"][conditional_option]"),c.find(".evf-field-conditional-field-select").attr("name","settings[email]["+l+"][conditionals][1][1][field]"),c.find(".evf-field-conditional-condition").attr("name","settings[email]["+l+"][conditionals][1][1][operator]"),c.find(".evf-field-conditional-input").attr("name","settings[email]["+l+"][conditionals][1][1][value]"),u(".evf-content-email-settings-inner").removeClass("active-connection"),c.find('.evf_conditional_logic_container input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-attach-pdf-to-admin-email input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-csv-file-email-attachments input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-show-header-in-attachment-pdf-file input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-file-email-attachments input[type="checkbox"]').prop("checked",!1),c.find('.everest-forms-enable-email-prompt input[type="checkbox"]').prop("checked",!1),c.find(".evf-email-message-prompt textarea").val(""),c.find(".everest-forms-email-name input").val(n),c.find(".everest-forms-show-header-in-attachment-pdf-file").hide(),c.find(".evf-email-message-prompt").hide(),c.find(".everest-forms-show-pdf-file-name").hide(),c.find(".evf-field-conditional-container").hide(),c.find(".evf-field-conditional-wrapper li:not(:first)").remove(),c.find(".conditional_or:not(:first)").remove(),c.find(".everest-forms-email-name input").val(n),c.find(".evf-field-conditional-container[data-connection_id='"+o+"']").html();setTimeout(function(){c.find(".evf-field-conditional-input").val("")},2e3),c.find(".evf-content-email-settings-inner").attr("data-connection_id",l),c.find(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),c.find(".evf-toggle-switch input").attr("name","settings[email]["+l+"][enable_email_notification]"),c.find(".evf-toggle-switch input:checkbox").attr("data-connection-id",t.data.connection_id),c.find(".evf-toggle-switch input:checkbox").prop("checked",!0),c.find(".evf-toggle-switch input:checkbox").val("1"),u(".evf-content-email-settings .evf-content-section-title").css("display","none"),u(".evf-content-email-settings").css("display","none"),u(".email-disable-message").remove(),u(".evf-enable-email-toggle").addClass("everest-forms-hidden"),c.find(".email-disable-message").remove(),c.find(".evf-enable-email-toggle").addClass("everest-forms-hidden"),c.find(".evf-toggle-switch").parents(".evf-content-section-title").css("display","flex"),c.find(".evf-toggle-switch").parents(".evf-content-email-settings").css("display",""),c.find(".evf-field-conditional-container").attr("data-connection_id",t.data.connection_id),c.find("#everest-forms-panel-field-email-"+o+"-connection_name").attr("name","settings[email]["+l+"][connection_name]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_to_email").attr("name","settings[email]["+l+"][evf_to_email]"),c.find("#everest-forms-panel-field-email-connection_1-evf_carboncopy").attr("name","settings[email]["+l+"][evf_carboncopy]"),c.find("#everest-forms-panel-field-email-connection_1-evf_blindcarboncopy").attr("name","settings[email]["+l+"][evf_blindcarboncopy]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_name").attr("name","settings[email]["+l+"][evf_from_name]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_email").attr("name","settings[email]["+l+"][evf_from_email]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_reply_to").attr("name","settings[email]["+l+"][evf_reply_to]"),c.find("#everest-forms-panel-field-email-"+o+"-evf_email_subject").attr("name","settings[email]["+l+"][evf_email_subject]"),c.find("#everest_forms_panel_field_email_"+o+"_evf_email_message").attr("name","settings[email]["+l+"][evf_email_message]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").attr("name","settings[email]["+l+"][file-email-attachments]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-attach_pdf_to_admin_email").attr("name","settings[email]["+l+"][attach_pdf_to_admin_email]"),c.find("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").attr("name","settings[email]["+l+"][csv-file-email-attachments]"),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("name","settings[email]["+l+"][enable_ai_email_prompt]"),c.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+l+"][evf_email_message_prompt]"),c.find('.evf_conditional_logic_container input[type="hidden"]').attr("name","settings[email]["+l+"][conditional_logic_status]"),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("name","settings[email]["+l+"][show_header_in_attachment_pdf_file]"),c.find("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").attr("name","settings[email]["+l+"][conditional_logic_status]"),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("name","settings[email]["+l+"][pdf_name]"),c.find("#everest-forms-panel-field-email-connection_1-evf_email_message_prompt").attr("name","settings[email]["+l+"][evf_email_message_prompt]"),c.find(".evf-field-show-hide").attr("name","settings[email]["+l+"][conditional_option]"),c.find(".evf-field-conditional-field-select").attr("name","settings[email]["+l+"][conditionals][1][1][field]"),c.find(".evf-field-conditional-condition").attr("name","settings[email]["+l+"][conditionals][1][1][operator]"),c.find(".evf-field-conditional-input").attr("name","settings[email]["+l+"][conditionals][1][1][value]"),c.find("#everest-forms-panel-field-email-"+o+"-connection_name").attr("id","everest-forms-panel-field-email-"+l+"-connection_name"),c.find("#everest-forms-panel-field-email-"+o+"-evf_to_email").attr("id","everest-forms-panel-field-email-"+l+"-evf_to_email"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_name").attr("id","everest-forms-panel-field-email-"+l+"-evf_from_name"),c.find("#everest-forms-panel-field-email-"+o+"-evf_from_email").attr("id","everest-forms-panel-field-email-"+l+"-evf_from_email"),c.find("#everest-forms-panel-field-email-"+o+"-evf_reply_to").attr("id","everest-forms-panel-field-email-"+l+"-evf_reply_to"),c.find("#everest-forms-panel-field-email-"+o+"-evf_email_subject").attr("id","everest-forms-panel-field-email-"+l+"-evf_email_subject"),c.find("#everest_forms_panel_field_email_"+o+"_evf_email_message").attr("id","everest_forms_panel_field_email_"+l+"_evf_email_message"),c.find("#everest-forms-panel-field-settingsemail"+o+"-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+l+"-file-email-attachments"),c.find("#everest-forms-panel-field-settingsemail"+o+"-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+l+"-csv-file-email-attachments"),c.find("#everest-forms-panel-field-email-"+o+"-conditional_logic_status").attr("id","everest-forms-panel-field-email-"+l+"-conditional_logic_status"),c.find("#everest-forms-panel-field-email-"+l+"-connection_name").attr("value",n),c.find("#everest-forms-panel-field-email-"+l+"-evf_to_email").val(m),c.find("#everest-forms-panel-field-email-"+l+"-evf_from_name").val(f),c.find("#everest-forms-panel-field-email-"+l+"-evf_from_email").val(d),c.find("#everest-forms-panel-field-email-"+l+"-evf_reply_to").val(r),c.find("#everest-forms-panel-field-email-"+l+"-evf_email_subject").val(_),c.find("#everest_forms_panel_field_email_"+l+"_evf_email_message").val(v),c.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").val(1),p&&c.find("#everest-forms-panel-field-settingsemail"+l+"-file-email-attachments").prop("checked",!0),c.find("#everest-forms-panel-field-settingsemailconnection_1-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-file-email-attachments"),c.find('input[name="settings[email][connection_1][file-email-attachments]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").val(1),c.find("#everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-attach_pdf_to_admin_email"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-attach_pdf_to_admin_email"),c.find('input[name="settings[email][connection_1][attach_pdf_to_admin_email]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").val(1),g&&c.find("#everest-forms-panel-field-settingsemail"+l+"-csv-file-email-attachments").prop("checked",!0),c.find("#everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-csv-file-email-attachments"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-csv-file-email-attachments"),c.find('input[name="settings[email][connection_1][csv-file-email-attachments]"]').remove(),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").val(1),c.find("#everest-forms-panel-field-email-connection_1-enable_ai_email_prompt").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),c.find('label[for="everest-forms-panel-field-email-connection_1-enable_ai_email_prompt"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-enable_ai_email_prompt"),c.find('input[name="settings[email][connection_1][enable_ai_email_prompt]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").val(1),c.find("#everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),c.find('label[for="everest-forms-panel-field-settingsemailconnection_1-show_header_in_attachment_pdf_file"]').attr("for","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-show_header_in_attachment_pdf_file"),c.find('input[name="settings[email][connection_1][show_header_in_attachment_pdf_file]"]').remove(),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").val(s),c.find("#everest-forms-panel-field-settingsemailconnection_1-pdf_name").attr("id","everest-forms-panel-field-settingsemail"+t.data.connection_id+"-pdf_name"),c.find(".everest-forms-attach-pdf-to-admin-email").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-attach_pdf_to_admin_email-wrap"),c.find(".everest-forms-show-header-in-attachment-pdf-file ").attr("id","everest-forms-panel-field-settingsemailconnection_"+t.data.connection_id+"-show_header_in_attachment_pdf_file-wrap"),h&&(c.find("#everest-forms-panel-field-email-"+l+"-conditional_logic_status").prop("checked",!0),c.find('.evf_conditional_logic_container input[type="hidden"]').prop("checked",!0),c.find(".evf-field-conditional-container").css("display","block")),u(".evf-email-settings-wrapper").append(c),a.find(".evf-content-email-settings-inner").last().addClass("active-connection"),e.parent().find(".everest-forms-active-email-connections-list li").removeClass("active-user"),e.closest(".everest-forms-active-email.active").children(".everest-forms-active-email-connections-list").removeClass("empty-list"),e.closest(".everest-forms-active-email-connections-list").append('
  • '+n+'
  • ')},selectActiveAccount:function(e,n){var e=u(e),t=e.data("connection-id"),t=u(".evf-content-email-settings").find('[data-connection_id="'+t+'"]'),i=u(t).length;u(".evf-content-email-settings").find(".evf-content-email-settings-inner").removeClass("active-connection"),u(".evf-content-section-title").has("[data-connection-id="+e.siblings(".active-user").attr("data-connection-id")+"]").css("display","none"),u(".evf-content-section-title").has("[data-connection-id="+e.siblings(".active-user").attr("data-connection-id")+"]").parent().css("display","none"),e.siblings().removeClass("active-user"),e.addClass("active-user"),i&&u(t).addClass("active-connection"),u(".email-disable-message").remove(),0==u("input[data-connection-id="+e.attr("data-connection-id")+"]:last").prop("checked")&&u('").insertAfter(u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]")),u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]").css("display","flex"),u(".evf-content-section-title").has("[data-connection-id="+e.attr("data-connection-id")+"]").parent().css("display","")},removeAccount:function(e,n){n.preventDefault();var t=u(e),i=t.parent().parent().parent().data("connection-id"),a=u(".evf-content-email-settings").find('[data-connection_id="'+i+'"]'),s=u(a).length;u.confirm({title:!1,content:"Are you sure you want to delete this Email?",backgroundDismiss:!1,closeIcon:!1,icon:"dashicons dashicons-info",type:"orange",buttons:{confirm:{text:evf_email_params.i18n_email_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e;s&&(e=t.parent().parent().parent(),active_block_after=u(".evf-provider-connections").find('[data-connection_id="'+i+'"]'),lengthOfActiveBlockAfter=u(a).length,(e.prev().length?e.prev(".connection-list"):e.next(".connection-list")).trigger("click"),u(a).parent().remove(),e.remove())}},cancel:{text:evf_email_params.i18n_email_cancel}}})},removeDefaultAccount:function(e,n){n.preventDefault,u.alert({title:!1,content:"Default Email can not be deleted !",icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:evf_data.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}})},focusConnectionName:function(e,n){e=u(e);e.data("val",e.val().trim())},renameConnection:function(e,n){n.preventDefault;var t=u(e),n=t.closest(".evf-content-email-settings-inner").data("connection_id");($active_block=u(".everest-forms-active-email-connections-list").find('[data-connection-id="'+n+'"]')).find(".user-nickname").text(t.val()),0===t.val().trim().length&&(t.parent(".everest-forms-email-name").find(".everest-forms-error").remove(),t.parent(".everest-forms-email-name").append('

    Email name cannot be empty.

    '),t.next(".everest-forms-error").fadeOut(3e3),setTimeout(function(){0===t.val().length&&(t.val(t.data("val")),$active_block.find(".user-nickname").text(t.data("val")))},3e3))}};o.init()}(jQuery); \ No newline at end of file diff --git a/assets/js/admin/form-builder.min.js b/assets/js/admin/form-builder.min.js index 04ebf94b2..5d9664a7f 100644 --- a/assets/js/admin/form-builder.min.js +++ b/assets/js/admin/form-builder.min.js @@ -1,4 +1,4 @@ -!function(v,c){var a,m={init:function(){v(document).ready(function(i){i("evf-panel-integrations-button a").hasClass("active")||(i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").first().addClass("active"),i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").hasClass("active")&&i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").next(".everest-forms-active-connections").first().addClass("active"),i(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),i(document).on("input",'.everest-forms-field-option-row-choices input[name$="[label]"]',function(e){var t=i(this).val();i(this).val(t.replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "))})}),v(document).ready(function(s){"1"===s(".everest-forms-min-max-date-format input").val()&&(s(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){s(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",s(".everest-forms-max-date").val())}}),s(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){s(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",s(".everest-forms-min-date").val())}})),s(".everest-forms-min-max-date-format").each(function(){s(this).find('input[type="checkbox"]').is(":checked")?(s(this).next(".everest-forms-min-max-date-range-format").removeClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),s(this).next(".everest-forms-min-max-date-range-format").find('input[type="checkbox"]').is(":checked")&&(s(this).next().next().next(".everest-forms-min-max-date-range-option").removeClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").addClass("everest-forms-hidden"))):(s(this).next().next().next(".everest-forms-min-max-date-range-option").addClass("everest-forms-hidden"),s(this).next(".everest-forms-min-max-date-range-format").addClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").addClass("everest-forms-hidden"))}),s(".everest-forms-row-option select.evf-field-show-hide").each(function(){s(this).find('[selected="selected"]').prop("selected",!0)})}),0 option").prop("selected",!0)}),v(document.body).on("blur",".evf-number-of-stars[type=number]",function(){v(".evf_error_tip").fadeOut("100",function(){v(this).remove()})}).on("change click",".evf-number-of-stars[type=number]",function(e){100',"heart"===t?iconClass='':"thumb"===t?iconClass='':"smiley"===t?iconClass='':"bulb"===t&&(iconClass=''),$icons.html(iconClass)}),v(document).ready(function(s){s(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=s(this),i=t.val(),t=t.closest(".everest-forms-field-option-row").data("field-id");s("#everest-forms-field-"+t+" .rating-icon svg").css("fill",i)}})})},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(v(this).closest(".evf-shortcode-field").find("input").val(),v(this)),e.preventDefault()},copySuccess:function(){v(this).tooltipster("content",v(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=v(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){v(this).closest(".evf-shortcode-field").find("input").focus().select()},load:function(){v(".everest-forms-overlay").fadeOut()},ready:function(){var e,t;a=v("#everest-forms-builder"),m.bindUIActions(),m.bindEditActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar&&(e=v(".everest-forms-tab-content"),t=v(".everest-forms-panel"),1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(".everest-forms-tab-content",{suppressScrollX:!0})),t.each(function(){var e=v(this),t=e.attr("id");1<=e.find(".everest-forms-panel-sidebar").length&&(window.evf_setting_scroller=new PerfectScrollbar("#"+t+" .everest-forms-panel-sidebar"))})),a.on("change",".everest-forms-field-option-row-limit_enabled input",function(e){m.updateTextFieldsLimitControls(v(e.target).parents(".everest-forms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-row-min_length_enabled input",function(e){m.updateTextFieldsMinLengthControls(v(e.target).parents(".everest-forms-field-option-row-min_length_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-select .everest-forms-field-option-row-enhanced_select input",function(e){m.enhancedSelectFieldStyle(v(e.target).parents(".everest-forms-field-option-row-enhanced_select").data().fieldId,e.target.checked)}),a.on("click",".everest-forms-field-option-row-choices .everest-forms-btn-group span",function(e){var t;v(this).hasClass("upgrade-modal")&&"checkbox"===v(this).data("type")?(v(this).parent().find("span").addClass("is-active"),v(this).removeClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,!1)):(v(this).parent().find("span").removeClass("is-active"),v(this).addClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,"multiple"===v(this).data("selection"))),"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").show()):(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").hide())}),v(document.body).on("click",'.everest-forms-field, .everest-forms-field-select[data-field-type="select"]',function(){a.find(".everest-forms-field-option-row-choices .everest-forms-btn-group span").each(function(){var e=v(this).parent().parent().data("field-id");"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?v("#everest-forms-field-option-"+e+"-select_all").parent().parent().parent().show():v("#everest-forms-field-option-"+e+"-select_all").parent().parent().parent().hide()})}),a.on("keyup",".everest-forms-search-fields",function(){var t=v(this).val().toLowerCase();v(".evf-registered-item").each(function(){var e=v(this);field_type=e.data("field-type"),field_label=e.text().toLowerCase(),-1'),t.find(".actions").show(),a.trigger("everestFormsImageUploadAdd",[s,t])}),i.open()}),a.on("click",".everest-forms-attachment-media-view .remove-button",function(e){e.preventDefault();e=v(this).parent().parent();e.find(".attachment-thumb").remove(),e.parent().find(".source").val(""),e.parent().find(".button-add-media").show(),a.trigger("everestFormsImageUploadRemove",[v(this),e])}),a.on("everestFormsImageUploadAdd everestFormsImageUploadRemove",function(e,t,i){var i=i.closest(".evf-choices-list"),s=i.data("field-type"),i=i.data("field-id");m.choiceUpdate(s,i)}),a.on("change",".everest-forms-field-option-row-input_columns select",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),i="";"inline"===t?i="everest-forms-list-inline":""!==t&&(i="everest-forms-list-"+t+"-columns"),v("#everest-forms-field-"+e).removeClass("everest-forms-list-inline everest-forms-list-2-columns everest-forms-list-3-columns").addClass(i)}),a.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),m.fieldTabChoice(v(this).attr("id"))}),v(document).on("mouseenter",'.everest-forms-tabs li[class*="part_"]',function(){!1===v(this).hasClass("active")&&(v(document).find(".everest-forms-field").hasClass("ui-sortable-helper")||v(document).find(".evf-registered-buttons button.evf-registered-item").hasClass("field-dragged"))&&v(this).find("a").trigger("click")}),a.on("change",".everest-forms-field-option-address input.hide",function(){var e=v(this),t=e.parent().parent().data("field-id"),e=e.parent().parent().data("subfield");v("#everest-forms-field-"+t).find(".everest-forms-"+e).toggleClass("hidden")}),a.on("input",".everest-forms-field-option-row-label input",function(){var e=v(this),t=e.val().replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "),e=e.parent().data("field-id"),e=v("#everest-forms-field-"+e).find(".label-title .text");e.hasClass("nl2br")?e.html(t.replace(/\n/g,"
    ")):e.html(t)}),a.on("change",".everest-forms-field-option-row-enable_prepopulate input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("parameter_name"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-parameter_name").show():v("#everest-forms-field-option-row-"+t+"-parameter_name").hide()}),a.on("change",".everest-forms-field-option-row-enable_regex_validation input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("regex_value"),v(e.target).is(":checked")?(v("#everest-forms-field-option-row-"+t+"-regex_value").show(),v("#everest-forms-field-option-row-"+t+"-regex_message").show()):(v("#everest-forms-field-option-row-"+t+"-regex_value").hide(),v("#everest-forms-field-option-row-"+t+"-regex_message").hide())}),a.on("input",".everest-forms-field-option-row-description textarea",function(){var e=v(this),t=e.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".description"),e=(e=e.val()).replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," ");t.hasClass("nl2br")?t.html(e.replace(/\n/g,"
    ")):t.html(e)}),a.on("change",".everest-forms-field-option-row-required input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required"),v(e.target).is(":checked")?(v("#everest-forms-field-option-row-"+t+"-required_field_message_setting").show(),v("#everest-forms-field-option-"+t+"-required_field_message_setting-individual").is(":checked")&&v("#everest-forms-field-option-row-"+t+"-required-field-message").show()):(v("#everest-forms-field-option-row-"+t+"-required_field_message_setting").hide(),v("#everest-forms-field-option-row-"+t+"-required-field-message").hide(),(slot_booking=v(document).find(".everest-forms-slot-booking input")).prop("checked",!1),v(document).find(".everest-forms-past-date-disable-format input").parent().parent().parent().show())}),a.on("change",".everest-forms-field-option-row-required_field_message_setting input",function(e){var t=v(this).parent().parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required_field_message_setting"),"individual"===v(this).val()?v("#everest-forms-field-option-row-"+t+"-required-field-message").show():v("#everest-forms-field-option-row-"+t+"-required-field-message").hide()}),a.on("change",".everest-forms-field-option-row-confirmation input",function(e){var t=v(this).parent().parent().parent().data("field-id");v(e.target).is(":checked")?(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled")):(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"))}),a.on("change",".everest-forms-slot-booking input",function(e){v(this).is(":checked")?(disable_past_date=v(document).find(".everest-forms-past-date-disable-format input"),(required=v(document).find(".everest-forms-field-option-row-required input")).is(":not(:checked)")&&required.prop("checked",!0),disable_past_date.is(":not(:checked)")&&disable_past_date.prop("checked",!0),disable_past_date.parent().parent().parent().hide()):disable_past_date.parent().parent().parent().show()}),a.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".widefat:not(.secondary-input)");t.is("select")?i.length?(t.find(".placeholder").length?t.find(".placeholder").text(i):t.prepend('"),t.data("placeholder",i),t.hasClass("enhanced")&&t.parent().find(".select2-search__field").prop("placeholder",i)):t.find(".placeholder").remove():t.attr("placeholder",i)}),a.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=v(this),i=t.val(),s=t.parent().parent().data("field-id"),t=t.parent().parent().data("subfield");v("#everest-forms-field-"+s).find(".everest-forms-"+t+" input").attr("placeholder",i)}),a.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".secondary-input").attr("placeholder",t)}),a.on("input",".everest-forms-field-option-row-card_number_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".everest-forms-authorize-net-card-number input").attr("placeholder",t)}),a.on("input",".everest-forms-field-option-row-cvc_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".everest-forms-authorize-net-cvc input").attr("placeholder",t)}),a.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("label_hide")}),a.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),a.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-item_price select, .everest-forms-field-option-row-format select",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id");v("#everest-forms-field-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),v("#everest-forms-field-option-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)}),a.on("change",".everest-forms-field-option-row-datetime_style select",function(){m.dateSettingToggler(v(this).parent().attr("data-field-id"),v(this).val())}),v(".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]").each(function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [for*=select_min_time]").show(),v(this).parent().parent().find(".input-group-col-2").has("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("click",".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]",function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find("[for*=select_min_time]").show(),v(this).parent().parent().find("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("change",".everest-forms-field-option-row-time_interval_format select[id*=time_format]",function(){min_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=min_time_hour]"),max_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=max_time_hour]");var e,t,s=min_hour.find("option:selected").val(),o=max_hour.find("option:selected").val(),n="";for(i=0;i<=23;i++)"H:i"===v(this).val()?n+='":(e=" PM",0==(t=i<12?(e=" AM",i):i-12)&&(t=12),n+='");min_hour.html(n),max_hour.html(n),min_hour.find("option[value="+s+"]").prop("selected",!0),max_hour.find("option[value="+o+"]").prop("selected",!0)})},dateSettingToggler:function(e,t){"picker"==t?(v("#everest-forms-field-option-row-"+e+"-placeholder").show(),v("#everest-forms-field-option-"+e+"-disable_dates").show(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").show(),v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").show(),v(".everest-forms-field-option-row-date_format .time_interval").show(),v("#everest-forms-field-option-"+e+"-date_localization").show(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").show(),v("#everest-forms-field-option-"+e+"-date_default").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").prop("checked")&&(v("#everest-forms-field-option-"+e+"-set_date_range").parent().show(),(v("#everest-forms-field-option-"+e+"-set_date_range").prop("checked")?v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-range-option"):v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option")).removeClass("everest-forms-hidden")),v("#everest-forms-field-option-"+e+"-time_interval").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").parent().parent().parent().hide(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").hide(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().hide()):(v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").hide(),v("#everest-forms-field-option-"+e+"-date_default").parent().parent().parent().hide(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-placeholder").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-set_date_range").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-range-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-disable_dates").hide(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").hide(),v(".everest-forms-field-option-row-date_format .everest-forms-checklist").hide(),v(".everest-forms-field-option-row-date_format .time_interval").hide(),v("#everest-forms-field-option-"+e+"-date_localization").hide(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").hide(),v("#everest-forms-field-option-"+e+"-time_interval").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").parent().parent().parent().show(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").prop("checked")&&(v("label[for=everest-forms-field-option-"+e+"-select_min_time]").show(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").show(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().show(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().show()))},choicesInit:function(e){v(e=e||".everest-forms-field-option-row-choices ul").sortable({items:"li",axis:"y",handle:".sort",scrollSensitivity:40,stop:function(e){var e=v(e.target).attr("data-field-id"),t=v("#everest-forms-field-option-"+e).find(".everest-forms-field-option-hidden-type").val();m.choiceUpdate(t,e)}})},choiceAdd:function(e,t,i){e&&e.preventDefault&&e.preventDefault();var e=v(t),t=e.parent(),s=t.find("input.default").is(":checked"),e=e.closest(".everest-forms-field-option-row-choices").data("field-id"),o=t.parent().attr("data-next-id"),n=t.parent().data("field-type"),r=t.clone().insertAfter(t);r.attr("data-key",o),r.find("input.label").val(i).attr("name","form_fields["+e+"][choices]["+o+"][label]"),r.find("input.value").val(i).attr("name","form_fields["+e+"][choices]["+o+"][value]"),r.find("input.source").val("").attr("name","form_fields["+e+"][choices]["+o+"][image]"),r.find("input.default").attr("name","form_fields["+e+"][choices]["+o+"][default]").prop("checked",!1),r.find(".attachment-thumb").remove(),r.find(".button-add-media").show(),!0===s&&t.find("input.default").prop("checked",!0),o++,t.parent().attr("data-next-id",o),a.trigger("everestFormsChoiceAdd"),m.choiceUpdate(n,e)},choiceDelete:function(e,t){e.preventDefault();e=v(t),t=e.parent().parent();t.find("li").length<2?v.alert({title:!1,content:c.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(e.parent().remove(),m.choiceUpdate(t.data("field-type"),t.data("field-id")),a.trigger("everestFormsChoiceDelete"))},choiceUpdate:function(o,n){var e,t,r,i=v("#everest-forms-field-option-"+n);$primary=v("#everest-forms-field-"+n+" .primary-input"),"radio"===o||"checkbox"===o||"payment-multiple"===o||"payment-checkbox"===o?(e=[],i=m.formObject(i).form_fields[n],v("#everest-forms-field-option-"+n).find(".evf-choices-list li").each(function(){e.push(v(this).data("key"))}),t=wp.template("everest-forms-field-preview-choices"),data={type:o="checkbox"===o||"payment-checkbox"===o?"checkbox":"radio",order:e,settings:i,amountFilter:m.amountFilter},v("#everest-forms-field-"+n).find("ul.primary-input").replaceWith(t(data))):("select"===o&&(r="",$primary.find("option").not(".placeholder").remove()),v("#everest-forms-field-option-row-"+n+"-choices .evf-choices-list li").each(function(e){var t=v(this),i=t.find("input.label").val().replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "),t=t.find("input.default").is(":checked"),s=v(r.replace("{label}",i));if(v("#everest-forms-field-"+n+" .primary-input").append(s),i&&!0===t)switch(o){case"select":s.prop("selected",!0);break;case"radio":case"checkbox":s.find("input").prop("checked",!0)}}))},amountFilter:function(e,t){return"right"===e.currency_symbol_pos?t+" "+e.currency_symbol:e.currency_symbol+" "+t},bindFormSettings:function(){v("body").on("click",".evf-setting-panel",function(e){var t;v(this).hasClass("upgrade-addons-settings")||(t=v(this).attr("data-section"),v(".evf-setting-panel").removeClass("active"),v(".everest-forms-active-email").removeClass("active"),v(".everest-forms-active-sms-notifications").removeClass("active"),v(".everest-forms-active-conversational-forms").removeClass("active"),v(".evf-content-section").removeClass("active"),v(this).addClass("active"),v(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault())}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){v("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){v(this).siblings(".everest-forms-active-email").removeClass("active"),v(this).next(".everest-forms-active-email").addClass("active");var t=v(this).siblings(".everest-forms-active-email.active").find(".everest-forms-active-email-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormSmsNotifications:function(){v("body").on("click",".everest-forms-panel-sidebar-section-sms-notifications",function(e){v(this).siblings(".everest-forms-active-sms-notifications").removeClass("active"),v(this).next(".everest-forms-active-sms-notifications").addClass("active");var t=v(this).siblings(".everest-forms-active-sms-notifications.active").find(".everest-forms-active-sms-notifications-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormConversational:function(){v("body").on("click",".everest-forms-panel-sidebar-section-conversational-forms ",function(e){v(this);v(this).siblings(".everest-forms-active-conversational-forms").removeClass("active"),v(this).next(".everest-forms-active-conversational-forms").addClass("active");var t=v(this).siblings(".everest-forms-active-conversational-forms.active");t.length&&t.children(".evf-content-tab ").trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){v("body").on("click",".evf-integrations-panel",function(e){var t=v(this).attr("data-section"),i=(v(".evf-integrations-panel").removeClass("active"),v("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),v(this).addClass("active"),v(this).parent().find(".everest-forms-active-connections").removeClass("active"),v(this).next(".everest-forms-active-connections").addClass("active"),v(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li"));i.length&&i.children(".user-nickname").first().trigger("click"),v(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){v("body").on("click",".evf-payments-panel",function(e){var t=v(this).attr("data-section");v(".evf-payments-panel").removeClass("active"),v(this).siblings().removeClass("icon active"),v(this).addClass("active"),v(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),v(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id"),e=v("#everest-forms-field-option-"+e);v(this).remove(),e.remove()}),e.remove()},bindRemoveRow:function(){v("body").on("click",".evf-delete-row",function(){var e=v(this),t=v(".evf-admin-row").length,i=e.closest(".evf-admin-row"),s=i.attr("data-row-id"),e=e.parents(".evf-admin-field-container").attr("data-current-part"),o=v("#everest-forms-builder").hasClass("multi-part-activated");(t=e&&o?v("#part_"+e).find(".evf-admin-row").length:t)<2?v.alert({title:c.i18n_row_locked,content:c.i18n_single_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.removeRow(i),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),v("#everest-forms-row-option-row_"+s).remove()}},cancel:{text:c.i18n_cancel}}})})},bindAddNewRow:function(){v("body").on("click",".evf-add-row span",function(){v("#add-fields").trigger("click");var t,e=v(this),i=v(".evf-admin-field-wrapper"),s=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),s=Math.max.apply(Math,s),o=v(".evf-admin-row").eq(0).clone(),n=e.parent().attr("data-total-rows"),r=e.parents(".evf-admin-field-container").attr("data-current-part");s++,n++,r&&(i=v(".evf-admin-field-wrapper").find("#part_"+r)),o.find(".evf-admin-grid").html(""),o.attr("data-row-id",s),e.parent().attr("data-total-rows",n),e.parent().attr("data-next-row-id",s),0
    '),i.append(o),m.bindFields(),m.checkEmptyGrid(),t=o.attr("data-row-id"),r=window.evf_data,v.ajax({url:r.ajax_url,type:"POST",data:{action:"everest_forms_new_row",security:r.evf_add_row_nonce,form_id:r.form_id,row_id:t},success:function(e){!0===e.success&&"undefined"!=typeof e.data.html&&(v(document).find(".everest-forms-row-option-group").append(e.data.html),m.conditionalLogicAppendRow(t),v("#everest-forms-panel-field-form_rows-connection_row_"+t+"-conditional_logic_status").prop("checked",!1))}}).always(function(){o.css({padding:0}),o.find("div").show(),o.find(".evf-toggle-row-content").css("display","none"),o.find("i").remove(),e.trigger("everest-forms-after-add-row",o)})):(i.append(o),m.bindFields(),m.checkEmptyGrid(),e.trigger("everest-forms-after-add-row",o))})},bindCloneField:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=v(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneFieldAction(e)}},cancel:{text:c.i18n_cancel}}})}),v("body").on("click",".evf-admin-row .evf-duplicate-row",function(){var e=v(this).closest(".evf-admin-row");e.find(".everest-forms-field").hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_row_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneRowAction(e)}},cancel:{text:c.i18n_cancel}}})})},cloneRowAction:function(t){row_ids=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),max_row_id=Math.max.apply(Math,row_ids),row_clone=t.clone(),total_rows=v(".evf-add-row").attr("data-total-rows"),max_row_id++,total_rows++,row_clone.attr("data-row-id",max_row_id),v(".evf-add-row").attr("data-total-rows",total_rows),v(".evf-add-row").attr("data-next-row-id",max_row_id);var e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:c.form_id,fields:row_clone.find(".everest-forms-field").length};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){"boolean"==typeof e.success&&!0===e.success&&(t.after(row_clone),v.each(e.data,function(e,t){var i=t.field_id,t=t.field_key,i=(v("#everest-forms-field-id").val(i),(field=row_clone.find(".everest-forms-field").eq(e)).attr("data-field-id"));m.render_node(field,i,t),field.remove(),v(document.body).trigger("init_field_options_toggle")}),m.bindFields())}})},cloneFieldAction:function(i){var s=i.attr("data-field-id"),e=c.form_id;v.ajax({url:c.ajax_url,data:{action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:e},type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t;"boolean"==typeof e.success&&!0===e.success&&(t=e.data.field_id,e=e.data.field_key,v("#everest-forms-field-id").val(t),m.render_node(i,s,e),v(document.body).trigger("init_field_options_toggle"))}})},render_node:function(e,s,o){var t=v(".everest-forms-field-options #everest-forms-field-option-"+s),i=v("#everest-forms-field-option-"+s+"-label").val(),n=v("#everest-forms-field-option-"+s+"-meta-key").length?v("#everest-forms-field-option-"+s+"-meta-key").val():"",r=e.attr("data-field-type"),a=t.html(),i=i+" "+c.i18n_copy,n="html"!==r?n.replace(/\(|\)/g,"").toLowerCase().substring(0,n.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",d=e.clone(),l=new RegExp(s,"g"),a=a.replace(l,o),f=v('
    ');f.append(a),v.each(t.find(":input"),function(){var e,t=v(this).attr("type"),i=(v(this).attr("name")?v(this).attr("name"):"").replace(l,o);"text"===t||"hidden"===t?(e=v(this).val(),f.find('input[name="'+i+'"]').val(e),f.find('input[value="'+s+'"]').val(o)):"checkbox"===t||"radio"===t?v(this).is(":checked")?f.find('input[name="'+i+'"]').prop("checked",!0).attr("checked","checked"):f.find('[name="'+i+'"]').prop("checked",!1).attr("checked",!1):v(this).is("select")?v(this).find("option:selected").length&&(e=v(this).find("option:selected").val(),f.find('[name="'+i+'"]').find('[value="'+e+'"]').prop("selected",!0)):""!==v(this).val()&&f.find('[name="'+i+'"]').val(v(this).val())}),v(".everest-forms-field-options").append(f),v("#everest-forms-field-option-"+o+"-label").val(i),v("#everest-forms-field-option-"+o+"-meta-key").val(n),d.attr("class",e.attr("class")),d.attr("id","everest-forms-field-"+o),d.attr("data-field-id",o),d.attr("data-field-type",r),d.find(".label-title .text").text(i),e.closest(".evf-admin-grid").find('[data-field-id="'+s+'"]').after(d),v(document).trigger("everest-form-cloned",[o,r]),m.switchToFieldOptionPanel(o),v(document.body).trigger("evf_render_node_complete",[r,o,d,f])},bindFieldDelete:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var i=v(this).closest(".everest-forms-field"),e=i.attr("data-field-id"),s=v("#everest-forms-field-option-"+e);v(this).closest(".evf-admin-grid");i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id"),t=i.attr("data-field-type");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),s.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e),m.oneTimeDraggableRemoveField(t)})}},cancel:{text:c.i18n_cancel}}})})},bindFieldDeleteWithKeyEvent:function(){v("body").on("keyup",function(e){var t,i=v(".everest-forms-preview .everest-forms-field.active");46===e.which&&!0===i.hasClass("active")&&!1===i.hasClass("evf-delete-event-active")&&0!=v(".evf-admin-row").hasClass("evf-hover")&&(i.addClass("evf-delete-event-active"),e=i.attr("data-field-id"),t=v("#everest-forms-field-option-"+e),i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"],action:function(){i.removeClass("evf-delete-event-active")}}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),t.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)}),i.removeClass("evf-delete-event-active")}},cancel:{text:c.i18n_cancel,action:function(){i.removeClass("evf-delete-event-active")}}}}))})},bindSaveOption:function(){v("body").on("click",".everest-forms-save-button",function(){var t=v(this),e=v("form#everest-forms-builder-form"),i=m.getStructure(),s=e.serializeArray(),o=v("#evf-edit-form-name").val().trim();if(v(document).trigger("everest_forms_save_args",[s]),""===o)v.alert({title:c.i18n_field_title_empty,content:c.i18n_field_title_payload,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}});else{e.triggerHandler("everest_forms_process_ajax_data",[t,s])&&(s=e.triggerHandler("everest_forms_process_ajax_data",[t,s])),v(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});for(var n,r=[],a=(v(".everest-forms-field[data-field-id]").each(function(){r.push(v(this).attr("data-field-id"))}),s.length);a--;)s[a].name.startsWith("form_fields")&&(n=!1,r.forEach(function(e){s[a].name.startsWith("form_fields["+e+"]")&&(n=!0)}),-1')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove(),v(document).trigger("everest_forms_save_data",e.data),e.success||v.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),v(".everest-forms-panel-content-wrap").unblock()}})}})},bindEmbedOption:function(){v("body").on("click",".everest-forms-embed-button",function(){var e={action:"everest_forms_embed_form",security:c.evf_embed_form},t=v(this);v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){t.addClass("processing"),t.find(".loading-dot").remove(),t.append('')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove();var s="",s='

    We can help embed your form with just a few clicks!

    ';v.alert({title:"

    Embed in Page

    ",content:s,type:"blue",onContentReady:function(){var i=v(".everest-forms-embed-button").attr("data-form_id");v(".jconfirm-buttons").hide(),v(".everest-forms-select-existing-page").click(function(){v(".everest_forms_hide_container").hide();var t="";e.data.forEach(e=>{t+='"});s='

    Select the page you would like to embed your form in.

    Go Back
    ',v(".everest-forms-show-exist-page").append(s),v(".everest-forms-show-container").click(function(){v(".everest_forms_hide_container").show(),v(".everest-forms-select-existing-post-container").remove()}),v(".everest-forms-select-existing-post-container").change(function(){var t=v(this).find(":selected").val();v(".everest-forms-lets-go-btn").click(function(){var e={action:"everest_forms_goto_edit_page",security:c.evf_goto_edit_page,page_id:t,form_id:i};v.ajax({url:c.ajax_url,type:"POST",data:e,success:function(e){e.success&&(window.location=e.data)}})})})}),v(".everest-forms-create-new-page").click(function(){v(".everest_forms_hide_container").hide();s='

    What would you like to call the new page?

    Go Back
    ',v(" .everest-forms-show-exist-page").append(s),v(".everest-forms-show-container").click(function(){v(".everest_forms_hide_container").show(),v(".everest-forms-select-existing-post-container").remove()}),v(".everest-forms-lets-go-btn").click(function(){var e=v("[name='page_title']").val(),e={action:"everest_forms_goto_edit_page",security:c.evf_goto_edit_page,page_title:e,form_id:i};v.ajax({url:c.ajax_url,type:"POST",data:e,success:function(e){e.success&&(window.location=e.data)}})})})}})}})})},bindPreviewConfirmation:function(){v("#everest-forms-panel-field-settings-preview_confirmation").prop("checked")?v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").show():v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").hide(),v("#everest-forms-panel-field-settings-preview_confirmation").on("change",function(){v(this).prop("checked")?v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").show():v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").hide()})},bindSaveOptionWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"s"!==String.fromCharCode(e.which).toLowerCase()&&83!==e.which||(e.preventDefault(),v(".everest-forms-save-button").trigger("click"))})},bindOpenShortcutKeysModalWithKeyEvent:function(){v("body").on("keydown",function(e){var i;!e.ctrlKey&&!e.metaKey||"h"!==String.fromCharCode(e.which).toLowerCase()&&72!==e.which||(e.preventDefault(),i="",v.each(c.i18n_shortcut_keys,function(e,t){i+=` +!function(v,c){var a,m={init:function(){v(document).ready(function(i){i("evf-panel-integrations-button a").hasClass("active")||(i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").first().addClass("active"),i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").hasClass("active")&&i("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").next(".everest-forms-active-connections").first().addClass("active"),i(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),i(document).on("input",'.everest-forms-field-option-row-choices input[name$="[label]"]',function(e){var t=i(this).val();i(this).val(t.replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "))})}),v(document).ready(function(s){"1"===s(".everest-forms-min-max-date-format input").val()&&(s(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){s(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",s(".everest-forms-max-date").val())}}),s(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){s(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",s(".everest-forms-min-date").val())}})),s(".everest-forms-min-max-date-format").each(function(){s(this).find('input[type="checkbox"]').is(":checked")?(s(this).next(".everest-forms-min-max-date-range-format").removeClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),s(this).next(".everest-forms-min-max-date-range-format").find('input[type="checkbox"]').is(":checked")&&(s(this).next().next().next(".everest-forms-min-max-date-range-option").removeClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").addClass("everest-forms-hidden"))):(s(this).next().next().next(".everest-forms-min-max-date-range-option").addClass("everest-forms-hidden"),s(this).next(".everest-forms-min-max-date-range-format").addClass("everest-forms-hidden"),s(this).next().next(".everest-forms-min-max-date-option").addClass("everest-forms-hidden"))}),s(".everest-forms-row-option select.evf-field-show-hide").each(function(){s(this).find('[selected="selected"]').prop("selected",!0)})}),0 option").prop("selected",!0)}),v(document.body).on("blur",".evf-number-of-stars[type=number]",function(){v(".evf_error_tip").fadeOut("100",function(){v(this).remove()})}).on("change click",".evf-number-of-stars[type=number]",function(e){100',"heart"===t?iconClass='':"thumb"===t?iconClass='':"smiley"===t?iconClass='':"bulb"===t&&(iconClass=''),$icons.html(iconClass)}),v(document).ready(function(s){s(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=s(this),i=t.val(),t=t.closest(".everest-forms-field-option-row").data("field-id");s("#everest-forms-field-"+t+" .rating-icon svg").css("fill",i)}})})},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(v(this).closest(".evf-shortcode-field").find("input").val(),v(this)),e.preventDefault()},copySuccess:function(){v(this).tooltipster("content",v(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=v(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){v(this).closest(".evf-shortcode-field").find("input").focus().select()},load:function(){v(".everest-forms-overlay").fadeOut()},ready:function(){var e,t;a=v("#everest-forms-builder"),m.bindUIActions(),m.bindEditActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar&&(e=v(".everest-forms-tab-content"),t=v(".everest-forms-panel"),1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(".everest-forms-tab-content",{suppressScrollX:!0})),t.each(function(){var e=v(this),t=e.attr("id");1<=e.find(".everest-forms-panel-sidebar").length&&(window.evf_setting_scroller=new PerfectScrollbar("#"+t+" .everest-forms-panel-sidebar"))})),a.on("change",".everest-forms-field-option-row-limit_enabled input",function(e){m.updateTextFieldsLimitControls(v(e.target).parents(".everest-forms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-row-min_length_enabled input",function(e){m.updateTextFieldsMinLengthControls(v(e.target).parents(".everest-forms-field-option-row-min_length_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-select .everest-forms-field-option-row-enhanced_select input",function(e){m.enhancedSelectFieldStyle(v(e.target).parents(".everest-forms-field-option-row-enhanced_select").data().fieldId,e.target.checked)}),a.on("click",".everest-forms-field-option-row-choices .everest-forms-btn-group span",function(e){var t;v(this).hasClass("upgrade-modal")&&"checkbox"===v(this).data("type")?(v(this).parent().find("span").addClass("is-active"),v(this).removeClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,!1)):(v(this).parent().find("span").removeClass("is-active"),v(this).addClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,"multiple"===v(this).data("selection"))),"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").show()):(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").hide())}),v(document.body).on("click",'.everest-forms-field, .everest-forms-field-select[data-field-type="select"]',function(){a.find(".everest-forms-field-option-row-choices .everest-forms-btn-group span").each(function(){var e=v(this).parent().parent().data("field-id");"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?v("#everest-forms-field-option-"+e+"-select_all").parent().parent().parent().show():v("#everest-forms-field-option-"+e+"-select_all").parent().parent().parent().hide()})}),a.on("keyup",".everest-forms-search-fields",function(){var t=v(this).val().toLowerCase();v(".evf-registered-item").each(function(){var e=v(this);field_type=e.data("field-type"),field_label=e.text().toLowerCase(),-1'),t.find(".actions").show(),a.trigger("everestFormsImageUploadAdd",[s,t])}),i.open()}),a.on("click",".everest-forms-attachment-media-view .remove-button",function(e){e.preventDefault();e=v(this).parent().parent();e.find(".attachment-thumb").remove(),e.parent().find(".source").val(""),e.parent().find(".button-add-media").show(),a.trigger("everestFormsImageUploadRemove",[v(this),e])}),a.on("everestFormsImageUploadAdd everestFormsImageUploadRemove",function(e,t,i){var i=i.closest(".evf-choices-list"),s=i.data("field-type"),i=i.data("field-id");m.choiceUpdate(s,i)}),a.on("change",".everest-forms-field-option-row-input_columns select",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),i="";"inline"===t?i="everest-forms-list-inline":""!==t&&(i="everest-forms-list-"+t+"-columns"),v("#everest-forms-field-"+e).removeClass("everest-forms-list-inline everest-forms-list-2-columns everest-forms-list-3-columns").addClass(i)}),a.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),m.fieldTabChoice(v(this).attr("id"))}),v(document).on("mouseenter",'.everest-forms-tabs li[class*="part_"]',function(){!1===v(this).hasClass("active")&&(v(document).find(".everest-forms-field").hasClass("ui-sortable-helper")||v(document).find(".evf-registered-buttons button.evf-registered-item").hasClass("field-dragged"))&&v(this).find("a").trigger("click")}),a.on("change",".everest-forms-field-option-address input.hide",function(){var e=v(this),t=e.parent().parent().data("field-id"),e=e.parent().parent().data("subfield");v("#everest-forms-field-"+t).find(".everest-forms-"+e).toggleClass("hidden")}),a.on("input",".everest-forms-field-option-row-label input",function(){var e=v(this),t=e.val().replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "),e=e.parent().data("field-id"),e=v("#everest-forms-field-"+e).find(".label-title .text");e.hasClass("nl2br")?e.html(t.replace(/\n/g,"
    ")):e.html(t)}),a.on("change",".everest-forms-field-option-row-enable_prepopulate input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("parameter_name"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-parameter_name").show():v("#everest-forms-field-option-row-"+t+"-parameter_name").hide()}),a.on("change",".everest-forms-field-option-row-enable_regex_validation input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("regex_value"),v(e.target).is(":checked")?(v("#everest-forms-field-option-row-"+t+"-regex_value").show(),v("#everest-forms-field-option-row-"+t+"-regex_message").show()):(v("#everest-forms-field-option-row-"+t+"-regex_value").hide(),v("#everest-forms-field-option-row-"+t+"-regex_message").hide())}),a.on("input",".everest-forms-field-option-row-description textarea",function(){var e=v(this),t=e.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".description"),e=(e=e.val()).replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," ");t.hasClass("nl2br")?t.html(e.replace(/\n/g,"
    ")):t.html(e)}),a.on("change",".everest-forms-field-option-row-required input",function(e){var t=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required"),v(e.target).is(":checked")?(v("#everest-forms-field-option-row-"+t+"-required_field_message_setting").show(),v("#everest-forms-field-option-"+t+"-required_field_message_setting-individual").is(":checked")&&v("#everest-forms-field-option-row-"+t+"-required-field-message").show()):(v("#everest-forms-field-option-row-"+t+"-required_field_message_setting").hide(),v("#everest-forms-field-option-row-"+t+"-required-field-message").hide(),(slot_booking=v(document).find(".everest-forms-slot-booking input")).prop("checked",!1),v(document).find(".everest-forms-past-date-disable-format input").parent().parent().parent().show())}),a.on("change",".everest-forms-field-option-row-required_field_message_setting input",function(e){var t=v(this).parent().parent().parent().parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required_field_message_setting"),"individual"===v(this).val()?v("#everest-forms-field-option-row-"+t+"-required-field-message").show():v("#everest-forms-field-option-row-"+t+"-required-field-message").hide()}),a.on("change",".everest-forms-field-option-row-confirmation input",function(e){var t=v(this).parent().parent().parent().data("field-id");v(e.target).is(":checked")?(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled")):(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"))}),a.on("change",".everest-forms-slot-booking input",function(e){v(this).is(":checked")?(disable_past_date=v(document).find(".everest-forms-past-date-disable-format input"),(required=v(document).find(".everest-forms-field-option-row-required input")).is(":not(:checked)")&&required.prop("checked",!0),disable_past_date.is(":not(:checked)")&&disable_past_date.prop("checked",!0),disable_past_date.parent().parent().parent().hide()):disable_past_date.parent().parent().parent().show()}),a.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".widefat:not(.secondary-input)");t.is("select")?i.length?(t.find(".placeholder").length?t.find(".placeholder").text(i):t.prepend('"),t.data("placeholder",i),t.hasClass("enhanced")&&t.parent().find(".select2-search__field").prop("placeholder",i)):t.find(".placeholder").remove():t.attr("placeholder",i)}),a.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=v(this),i=t.val(),s=t.parent().parent().data("field-id"),t=t.parent().parent().data("subfield");v("#everest-forms-field-"+s).find(".everest-forms-"+t+" input").attr("placeholder",i)}),a.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".secondary-input").attr("placeholder",t)}),a.on("input",".everest-forms-field-option-row-card_number_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".everest-forms-authorize-net-card-number input").attr("placeholder",t)}),a.on("input",".everest-forms-field-option-row-cvc_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".everest-forms-authorize-net-cvc input").attr("placeholder",t)}),a.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("label_hide")}),a.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=v(this).parent().parent().parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),a.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-item_price select, .everest-forms-field-option-row-format select",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id");v("#everest-forms-field-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),v("#everest-forms-field-option-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)}),a.on("change",".everest-forms-field-option-row-datetime_style select",function(){m.dateSettingToggler(v(this).parent().attr("data-field-id"),v(this).val())}),v(".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]").each(function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [for*=select_min_time]").show(),v(this).parent().parent().find(".input-group-col-2").has("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("click",".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]",function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find("[for*=select_min_time]").show(),v(this).parent().parent().find("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("change",".everest-forms-field-option-row-time_interval_format select[id*=time_format]",function(){min_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=min_time_hour]"),max_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=max_time_hour]");var e,t,s=min_hour.find("option:selected").val(),o=max_hour.find("option:selected").val(),n="";for(i=0;i<=23;i++)"H:i"===v(this).val()?n+='":(e=" PM",0==(t=i<12?(e=" AM",i):i-12)&&(t=12),n+='");min_hour.html(n),max_hour.html(n),min_hour.find("option[value="+s+"]").prop("selected",!0),max_hour.find("option[value="+o+"]").prop("selected",!0)})},dateSettingToggler:function(e,t){"picker"==t?(v("#everest-forms-field-option-row-"+e+"-placeholder").show(),v("#everest-forms-field-option-"+e+"-disable_dates").show(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").show(),v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").show(),v(".everest-forms-field-option-row-date_format .time_interval").show(),v("#everest-forms-field-option-"+e+"-date_localization").show(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").show(),v("#everest-forms-field-option-"+e+"-date_default").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().parent().parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").prop("checked")&&(v("#everest-forms-field-option-"+e+"-set_date_range").parent().show(),(v("#everest-forms-field-option-"+e+"-set_date_range").prop("checked")?v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-range-option"):v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option")).removeClass("everest-forms-hidden")),v("#everest-forms-field-option-"+e+"-time_interval").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").parent().parent().parent().hide(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").hide(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().hide()):(v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").hide(),v("#everest-forms-field-option-"+e+"-date_default").parent().parent().parent().hide(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-placeholder").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-set_date_range").parent().parent().parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-range-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-disable_dates").hide(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").hide(),v(".everest-forms-field-option-row-date_format .everest-forms-checklist").hide(),v(".everest-forms-field-option-row-date_format .time_interval").hide(),v("#everest-forms-field-option-"+e+"-date_localization").hide(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").hide(),v("#everest-forms-field-option-"+e+"-time_interval").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").parent().parent().parent().show(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").prop("checked")&&(v("label[for=everest-forms-field-option-"+e+"-select_min_time]").show(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").show(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().show(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().show()))},choicesInit:function(e){v(e=e||".everest-forms-field-option-row-choices ul").sortable({items:"li",axis:"y",handle:".sort",scrollSensitivity:40,stop:function(e){var e=v(e.target).attr("data-field-id"),t=v("#everest-forms-field-option-"+e).find(".everest-forms-field-option-hidden-type").val();m.choiceUpdate(t,e)}})},choiceAdd:function(e,t,i){e&&e.preventDefault&&e.preventDefault();var e=v(t),t=e.parent(),s=t.find("input.default").is(":checked"),e=e.closest(".everest-forms-field-option-row-choices").data("field-id"),o=t.parent().attr("data-next-id"),n=t.parent().data("field-type"),r=t.clone().insertAfter(t);r.attr("data-key",o),r.find("input.label").val(i).attr("name","form_fields["+e+"][choices]["+o+"][label]"),r.find("input.value").val(i).attr("name","form_fields["+e+"][choices]["+o+"][value]"),r.find("input.source").val("").attr("name","form_fields["+e+"][choices]["+o+"][image]"),r.find("input.default").attr("name","form_fields["+e+"][choices]["+o+"][default]").prop("checked",!1),r.find(".attachment-thumb").remove(),r.find(".button-add-media").show(),!0===s&&t.find("input.default").prop("checked",!0),o++,t.parent().attr("data-next-id",o),a.trigger("everestFormsChoiceAdd"),m.choiceUpdate(n,e)},choiceDelete:function(e,t){e.preventDefault();e=v(t),t=e.parent().parent();t.find("li").length<2?v.alert({title:!1,content:c.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(e.parent().remove(),m.choiceUpdate(t.data("field-type"),t.data("field-id")),a.trigger("everestFormsChoiceDelete"))},choiceUpdate:function(o,n){var e,t,r,i=v("#everest-forms-field-option-"+n);$primary=v("#everest-forms-field-"+n+" .primary-input"),"radio"===o||"checkbox"===o||"payment-multiple"===o||"payment-checkbox"===o?(e=[],i=m.formObject(i).form_fields[n],v("#everest-forms-field-option-"+n).find(".evf-choices-list li").each(function(){e.push(v(this).data("key"))}),t=wp.template("everest-forms-field-preview-choices"),data={type:o="checkbox"===o||"payment-checkbox"===o?"checkbox":"radio",order:e,settings:i,amountFilter:m.amountFilter},v("#everest-forms-field-"+n).find("ul.primary-input").replaceWith(t(data))):("select"===o&&(r="",$primary.find("option").not(".placeholder").remove()),v("#everest-forms-field-option-row-"+n+"-choices .evf-choices-list li").each(function(e){var t=v(this),i=t.find("input.label").val().replace(/<\s*script/gi,"").replace(/\s+on\w+\s*=/gi," "),t=t.find("input.default").is(":checked"),s=v(r.replace("{label}",i));if(v("#everest-forms-field-"+n+" .primary-input").append(s),i&&!0===t)switch(o){case"select":s.prop("selected",!0);break;case"radio":case"checkbox":s.find("input").prop("checked",!0)}}))},amountFilter:function(e,t){return"right"===e.currency_symbol_pos?t+" "+e.currency_symbol:e.currency_symbol+" "+t},bindFormSettings:function(){v("body").on("click",".evf-setting-panel",function(e){var t;v(this).hasClass("upgrade-addons-settings")||(t=v(this).attr("data-section"),v(".evf-setting-panel").removeClass("active"),v(".everest-forms-active-email").removeClass("active"),v(".everest-forms-active-sms-notifications").removeClass("active"),v(".everest-forms-active-conversational-forms").removeClass("active"),v(".evf-content-section").removeClass("active"),v(this).addClass("active"),v(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault())}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){v("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){v(this).siblings(".everest-forms-active-email").removeClass("active"),v(this).next(".everest-forms-active-email").addClass("active");var t=v(this).siblings(".everest-forms-active-email.active").find(".everest-forms-active-email-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormSmsNotifications:function(){v("body").on("click",".everest-forms-panel-sidebar-section-sms-notifications",function(e){v(this).siblings(".everest-forms-active-sms-notifications").removeClass("active"),v(this).next(".everest-forms-active-sms-notifications").addClass("active");var t=v(this).siblings(".everest-forms-active-sms-notifications.active").find(".everest-forms-active-sms-notifications-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormConversational:function(){v("body").on("click",".everest-forms-panel-sidebar-section-conversational-forms ",function(e){v(this);v(this).siblings(".everest-forms-active-conversational-forms").removeClass("active"),v(this).next(".everest-forms-active-conversational-forms").addClass("active");var t=v(this).siblings(".everest-forms-active-conversational-forms.active");t.length&&t.children(".evf-content-tab ").trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){v("body").on("click",".evf-integrations-panel",function(e){var t=v(this).attr("data-section"),i=(v(".evf-integrations-panel").removeClass("active"),v("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),v(this).addClass("active"),v(this).parent().find(".everest-forms-active-connections").removeClass("active"),v(this).next(".everest-forms-active-connections").addClass("active"),v(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li"));i.length&&i.children(".user-nickname").first().trigger("click"),v(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){v("body").on("click",".evf-payments-panel",function(e){var t=v(this).attr("data-section");v(".evf-payments-panel").removeClass("active"),v(this).siblings().removeClass("icon active"),v(this).addClass("active"),v(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),v(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id"),e=v("#everest-forms-field-option-"+e);v(this).remove(),e.remove()}),e.remove()},bindRemoveRow:function(){v("body").on("click",".evf-delete-row",function(){var e=v(this),t=v(".evf-admin-row").length,i=e.closest(".evf-admin-row"),s=i.attr("data-row-id"),e=e.parents(".evf-admin-field-container").attr("data-current-part"),o=v("#everest-forms-builder").hasClass("multi-part-activated");(t=e&&o?v("#part_"+e).find(".evf-admin-row").length:t)<2?v.alert({title:c.i18n_row_locked,content:c.i18n_single_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.removeRow(i),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),v("#everest-forms-row-option-row_"+s).remove()}},cancel:{text:c.i18n_cancel}}})})},bindAddNewRow:function(){v("body").on("click",".evf-add-row span",function(){v("#add-fields").trigger("click");var t,e=v(this),i=v(".evf-admin-field-wrapper"),s=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),s=Math.max.apply(Math,s),o=v(".evf-admin-row").eq(0).clone(),n=e.parent().attr("data-total-rows"),r=e.parents(".evf-admin-field-container").attr("data-current-part");s++,n++,r&&(i=v(".evf-admin-field-wrapper").find("#part_"+r)),o.find(".evf-admin-grid").html(""),o.attr("data-row-id",s),e.parent().attr("data-total-rows",n),e.parent().attr("data-next-row-id",s),0'),i.append(o),m.bindFields(),m.checkEmptyGrid(),t=o.attr("data-row-id"),r=window.evf_data,v.ajax({url:r.ajax_url,type:"POST",data:{action:"everest_forms_new_row",security:r.evf_add_row_nonce,form_id:r.form_id,row_id:t},success:function(e){!0===e.success&&"undefined"!=typeof e.data.html&&(v(document).find(".everest-forms-row-option-group").append(e.data.html),m.conditionalLogicAppendRow(t),v("#everest-forms-panel-field-form_rows-connection_row_"+t+"-conditional_logic_status").prop("checked",!1))}}).always(function(){o.css({padding:0}),o.find("div").show(),o.find(".evf-toggle-row-content").css("display","none"),o.find("i").remove(),e.trigger("everest-forms-after-add-row",o)})):(i.append(o),m.bindFields(),m.checkEmptyGrid(),e.trigger("everest-forms-after-add-row",o))})},bindCloneField:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=v(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneFieldAction(e)}},cancel:{text:c.i18n_cancel}}})}),v("body").on("click",".evf-admin-row .evf-duplicate-row",function(){var e=v(this).closest(".evf-admin-row");e.find(".everest-forms-field").hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_row_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneRowAction(e)}},cancel:{text:c.i18n_cancel}}})})},cloneRowAction:function(t){row_ids=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),max_row_id=Math.max.apply(Math,row_ids),row_clone=t.clone(),total_rows=v(".evf-add-row").attr("data-total-rows"),max_row_id++,total_rows++,row_clone.attr("data-row-id",max_row_id),v(".evf-add-row").attr("data-total-rows",total_rows),v(".evf-add-row").attr("data-next-row-id",max_row_id);var e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:c.form_id,fields:row_clone.find(".everest-forms-field").length};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){"boolean"==typeof e.success&&!0===e.success&&(t.after(row_clone),v.each(e.data,function(e,t){var i=t.field_id,t=t.field_key,i=(v("#everest-forms-field-id").val(i),(field=row_clone.find(".everest-forms-field").eq(e)).attr("data-field-id"));m.render_node(field,i,t),field.remove(),v(document.body).trigger("init_field_options_toggle")}),m.bindFields())}})},cloneFieldAction:function(i){var s=i.attr("data-field-id"),e=c.form_id,e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:e};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t;"boolean"==typeof e.success&&!0===e.success&&(t=e.data.field_id,e=e.data.field_key,v("#everest-forms-field-id").val(t),m.render_node(i,s,e),v(document.body).trigger("init_field_options_toggle"))}})},render_node:function(e,s,o){var t=v(".everest-forms-field-options #everest-forms-field-option-"+s),i=v("#everest-forms-field-option-"+s+"-label").val(),n=v("#everest-forms-field-option-"+s+"-meta-key").length?v("#everest-forms-field-option-"+s+"-meta-key").val():"",r=e.attr("data-field-type"),a=t.html(),i=i+" "+c.i18n_copy,n="html"!==r?n.replace(/\(|\)/g,"").toLowerCase().substring(0,n.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",d=e.clone(),l=new RegExp(s,"g"),a=a.replace(l,o),f=v('
    ');f.append(a),v.each(t.find(":input"),function(){var e,t=v(this).attr("type"),i=(v(this).attr("name")?v(this).attr("name"):"").replace(l,o);"text"===t||"hidden"===t?(e=v(this).val(),f.find('input[name="'+i+'"]').val(e),f.find('input[value="'+s+'"]').val(o)):"checkbox"===t||"radio"===t?v(this).is(":checked")?f.find('input[name="'+i+'"]').prop("checked",!0).attr("checked","checked"):f.find('[name="'+i+'"]').prop("checked",!1).attr("checked",!1):v(this).is("select")?v(this).find("option:selected").length&&(e=v(this).find("option:selected").val(),f.find('[name="'+i+'"]').find('[value="'+e+'"]').prop("selected",!0)):""!==v(this).val()&&f.find('[name="'+i+'"]').val(v(this).val())}),v(".everest-forms-field-options").append(f),v("#everest-forms-field-option-"+o+"-label").val(i),v("#everest-forms-field-option-"+o+"-meta-key").val(n),d.attr("class",e.attr("class")),d.attr("id","everest-forms-field-"+o),d.attr("data-field-id",o),d.attr("data-field-type",r),d.find(".label-title .text").text(i),e.closest(".evf-admin-grid").find('[data-field-id="'+s+'"]').after(d),v(document).trigger("everest-form-cloned",[o,r]),m.switchToFieldOptionPanel(o),v(document.body).trigger("evf_render_node_complete",[r,o,d,f])},bindFieldDelete:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var i=v(this).closest(".everest-forms-field"),e=i.attr("data-field-id"),s=v("#everest-forms-field-option-"+e);v(this).closest(".evf-admin-grid");i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id"),t=i.attr("data-field-type");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),s.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e),m.oneTimeDraggableRemoveField(t)})}},cancel:{text:c.i18n_cancel}}})})},bindFieldDeleteWithKeyEvent:function(){v("body").on("keyup",function(e){var t,i=v(".everest-forms-preview .everest-forms-field.active");46===e.which&&!0===i.hasClass("active")&&!1===i.hasClass("evf-delete-event-active")&&0!=v(".evf-admin-row").hasClass("evf-hover")&&(i.addClass("evf-delete-event-active"),e=i.attr("data-field-id"),t=v("#everest-forms-field-option-"+e),i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"],action:function(){i.removeClass("evf-delete-event-active")}}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),t.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)}),i.removeClass("evf-delete-event-active")}},cancel:{text:c.i18n_cancel,action:function(){i.removeClass("evf-delete-event-active")}}}}))})},bindSaveOption:function(){v("body").on("click",".everest-forms-save-button",function(){var t=v(this),e=v("form#everest-forms-builder-form"),i=m.getStructure(),s=e.serializeArray(),o=v("#evf-edit-form-name").val().trim();if(v(document).trigger("everest_forms_save_args",[s]),""===o)v.alert({title:c.i18n_field_title_empty,content:c.i18n_field_title_payload,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}});else{e.triggerHandler("everest_forms_process_ajax_data",[t,s])&&(s=e.triggerHandler("everest_forms_process_ajax_data",[t,s])),v(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});for(var n,r=[],a=(v(".everest-forms-field[data-field-id]").each(function(){r.push(v(this).attr("data-field-id"))}),s.length);a--;)s[a].name.startsWith("form_fields")&&(n=!1,r.forEach(function(e){s[a].name.startsWith("form_fields["+e+"]")&&(n=!0)}),-1')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove(),v(document).trigger("everest_forms_save_data",e.data),e.success||v.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),v(".everest-forms-panel-content-wrap").unblock()}})}})},bindEmbedOption:function(){v("body").on("click",".everest-forms-embed-button",function(){var e={action:"everest_forms_embed_form",security:c.evf_embed_form},t=v(this);v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){t.addClass("processing"),t.find(".loading-dot").remove(),t.append('')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove();var s="",s='

    We can help embed your form with just a few clicks!

    ';v.alert({title:"

    Embed in Page

    ",content:s,type:"blue",onContentReady:function(){var i=v(".everest-forms-embed-button").attr("data-form_id");v(".jconfirm-buttons").hide(),v(".everest-forms-select-existing-page").click(function(){v(".everest_forms_hide_container").hide();var t="";e.data.forEach(e=>{t+='"});s='

    Select the page you would like to embed your form in.

    Go Back
    ',v(".everest-forms-show-exist-page").append(s),v(".everest-forms-show-container").click(function(){v(".everest_forms_hide_container").show(),v(".everest-forms-select-existing-post-container").remove()}),v(".everest-forms-select-existing-post-container").change(function(){var t=v(this).find(":selected").val();v(".everest-forms-lets-go-btn").click(function(){var e={action:"everest_forms_goto_edit_page",security:c.evf_goto_edit_page,page_id:t,form_id:i};v.ajax({url:c.ajax_url,type:"POST",data:e,success:function(e){e.success&&(window.location=e.data)}})})})}),v(".everest-forms-create-new-page").click(function(){v(".everest_forms_hide_container").hide();s='

    What would you like to call the new page?

    Go Back
    ',v(" .everest-forms-show-exist-page").append(s),v(".everest-forms-show-container").click(function(){v(".everest_forms_hide_container").show(),v(".everest-forms-select-existing-post-container").remove()}),v(".everest-forms-lets-go-btn").click(function(){var e=v("[name='page_title']").val(),e={action:"everest_forms_goto_edit_page",security:c.evf_goto_edit_page,page_title:e,form_id:i};v.ajax({url:c.ajax_url,type:"POST",data:e,success:function(e){e.success&&(window.location=e.data)}})})})}})}})})},bindPreviewConfirmation:function(){v("#everest-forms-panel-field-settings-preview_confirmation").prop("checked")?v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").show():v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").hide(),v("#everest-forms-panel-field-settings-preview_confirmation").on("change",function(){v(this).prop("checked")?v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").show():v("#everest-forms-panel-field-settings-preview_confirmation_select-wrap").hide()})},bindSaveOptionWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"s"!==String.fromCharCode(e.which).toLowerCase()&&83!==e.which||(e.preventDefault(),v(".everest-forms-save-button").trigger("click"))})},bindOpenShortcutKeysModalWithKeyEvent:function(){v("body").on("keydown",function(e){var i;!e.ctrlKey&&!e.metaKey||"h"!==String.fromCharCode(e.which).toLowerCase()&&72!==e.which||(e.preventDefault(),i="",v.each(c.i18n_shortcut_keys,function(e,t){i+=`
    • ${t}
      diff --git a/assets/js/admin/progressbar.min.js b/assets/js/admin/progressbar.min.js index 9dce28268..bc65b2c13 100644 --- a/assets/js/admin/progressbar.min.js +++ b/assets/js/admin/progressbar.min.js @@ -1 +1 @@ -!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ProgressBar=t()}(function(){return function u(i,r,o){function s(n,t){if(!r[n]){if(!i[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(a)return a(n,!0);t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}e=r[n]={exports:{}};i[n][0].call(e.exports,function(t){var e=i[n][1][t];return s(e||t)},e,e.exports,u,i,r,o)}return r[n].exports}for(var a="function"==typeof require&&require,t=0;tt.strokeWidth?t.trailWidth:e)/2;return o.render(this._pathTemplate,{radius:t,"2radius":2*t})},i.prototype._trailString=function(t){return this._pathString(t)},e.exports=i},{"./shape":7,"./utils":9}],3:[function(t,e,n){var i,r=t("./shape"),o=t("./utils");(i=function i(t,e){this._pathTemplate="M 0,{center} L 100,{center}",r.apply(this,arguments)}).prototype=new r,(i.prototype.constructor=i).prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 "+e.strokeWidth),t.setAttribute("preserveAspectRatio","none")},i.prototype._pathString=function(t){return o.render(this._pathTemplate,{center:t.strokeWidth/2})},i.prototype._trailString=function(t){return this._pathString(t)},e.exports=i},{"./shape":7,"./utils":9}],4:[function(t,e,n){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./square":8,"./utils":9}],5:[function(t,e,n){var i,a=t("shifty"),u=t("./utils"),r={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"};(i=function i(t,e){if(!(this instanceof i))throw new Error("Constructor was called without new keyword");e=u.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},e),t=u.isString(t)?document.querySelector(t):t,this.path=t,this._opts=e,this._tweenable=null;t=this.path.getTotalLength();this.path.style.strokeDasharray=t+" "+t,this.set(0)}).prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},i.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e,n=this._opts.step;u.isFunction(n)&&(e=this._easing(this._opts.easing),n(this._calculateTo(t,e),this._opts.shape||this,this._opts.attachment))},i.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},i.prototype.animate=function(t,n,e){n=n||{},u.isFunction(n)&&(e=n,n={});var i=u.extend({},n),r=u.extend({},this._opts),r=(n=u.extend(r,n),this._easing(n.easing)),i=this._resolveFromAndTo(t,r,i),o=(this.stop(),this.path.getBoundingClientRect(),this._getComputedDashOffset()),t=this._progressToOffset(t),s=this;this._tweenable=new a,this._tweenable.tween({from:u.extend({offset:o},i.from),to:u.extend({offset:t},i.to),duration:n.duration,easing:r,step:function(t){s.path.style.strokeDashoffset=t.offset;var e=n.shape||s;n.step(t,e,n.attachment)},finish:function(t){u.isFunction(e)&&e()}})},i.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},i.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},i.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},i.prototype._calculateFrom=function(t){return a.interpolate(this._opts.from,this._opts.to,this.value(),t)},i.prototype._calculateTo=function(t,e){return a.interpolate(this._opts.from,this._opts.to,t,e)},i.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable=null)},i.prototype._easing=function(t){return r.hasOwnProperty(t)?r[t]:t},e.exports=i},{"./utils":9,shifty:1}],6:[function(t,e,n){var i,r=t("./shape"),o=t("./circle"),s=t("./utils");(i=function i(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,r.apply(this,arguments)}).prototype=new r,(i.prototype.constructor=i).prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},i.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?s.setStyle(n,"transform","translate(-50%, 0)"):s.setStyle(n,"transform","translate(-50%, 50%)"))},i.prototype._pathString=o.prototype._pathString,i.prototype._trailString=o.prototype._trailString,e.exports=i},{"./circle":2,"./shape":7,"./utils":9}],7:[function(t,e,n){var r,o=t("./path"),s=t("./utils"),i="Object is destroyed";(r=function r(t,e){if(!(this instanceof r))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=s.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},e,!0),s.isObject(e)&&e.svgStyle!==undefined&&(this._opts.svgStyle=e.svgStyle),s.isObject(e)&&s.isObject(e.text)&&e.text.style!==undefined&&(this._opts.text.style=e.text.style);var n=this._createSvgView(this._opts),i=s.isString(t)?document.querySelector(t):t;if(!i)throw new Error("Container does not exist: "+t);this._container=i,this._container.appendChild(n.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&s.setStyles(n.svg,this._opts.svgStyle),this.svg=n.svg,this.path=n.path,this.trail=n.trail,this.text=null;i=s.extend({attachment:undefined,shape:this},this._opts);this._progressPath=new o(n.path,i),s.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}}).prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(i);this._progressPath.animate(t,e,n)},r.prototype.stop=function(){if(null===this._progressPath)throw new Error(i);this._progressPath!==undefined&&this._progressPath.stop()},r.prototype.destroy=function(){if(null===this._progressPath)throw new Error(i);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,(this._progressPath=null)!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},r.prototype.set=function(t){if(null===this._progressPath)throw new Error(i);this._progressPath.set(t)},r.prototype.value=function(){if(null===this._progressPath)throw new Error(i);return this._progressPath===undefined?0:this._progressPath.value()},r.prototype.setText=function(t){if(null===this._progressPath)throw new Error(i);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),s.isObject(t)?(s.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},r.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=(this._initializeSvg(e,t),null),t=((t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n)),this._createPath(t));return e.appendChild(t),{svg:e,path:t,trail:n}},r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},r.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},r.prototype._createTrail=function(t){var e=this._trailString(t),t=s.extend({},t);return t.trailColor||(t.trailColor="#eee"),t.trailWidth||(t.trailWidth=t.strokeWidth),t.color=t.trailColor,t.strokeWidth=t.trailWidth,t.fill=null,this._createPathElement(e,t)},r.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},r.prototype._createTextContainer=function(t,e){var n=document.createElement("div"),i=(n.className=t.text.className,t.text.style);return i&&(t.text.autoStyleContainer&&(e.style.position="relative"),s.setStyles(n,i),i.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},r.prototype._initializeTextContainer=function(t,e,n){},r.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._warnContainerAspectRatio=function(t){var e,n,i;this.containerAspectRatio&&(e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),i=parseFloat(e.getPropertyValue("height"),10),s.floatEquals(this.containerAspectRatio,n/i)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",n/i),console.warn("Aspect ratio of should be",this.containerAspectRatio)))},e.exports=r},{"./path":5,"./utils":9}],8:[function(t,e,n){var i,r=t("./shape"),o=t("./utils");(i=function i(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",r.apply(this,arguments)}).prototype=new r,(i.prototype.constructor=i).prototype._pathString=function(t){var e=100-t.strokeWidth/2;return o.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},i.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return o.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=i},{"./shape":7,"./utils":9}],9:[function(t,e,n){var o="Webkit Moz O ms".split(" ");function i(t,e,n){for(var i=t.style,r=0;r