admin-add-ons.asset.php
1 year ago
admin-add-ons.js
1 year ago
admin-onboarding-wizard-rtl.css
1 year ago
admin-onboarding-wizard.asset.php
1 year ago
admin-onboarding-wizard.css
1 year ago
admin-onboarding-wizard.js
1 year ago
admin-reports-rtl.css
1 year ago
admin-reports-widget-rtl.css
1 year ago
admin-reports-widget.asset.php
1 year ago
admin-reports-widget.css
1 year ago
admin-reports-widget.js
1 year ago
admin-reports.asset.php
1 year ago
admin-reports.css
1 year ago
admin-reports.js
1 year ago
admin-setup.asset.php
1 year ago
admin-setup.js
1 year ago
admin-shortcodes.asset.php
1 year ago
admin-shortcodes.js
1 year ago
admin-upsell-addons-page-rtl.css
1 year ago
admin-upsell-addons-page.asset.php
1 year ago
admin-upsell-addons-page.css
1 year ago
admin-upsell-addons-page.js
1 year ago
admin-upsell-sale-banner.asset.php
1 year ago
admin-upsell-sale-banner.js
1 year ago
admin-widgets.asset.php
1 year ago
admin-widgets.js
1 year ago
admin.asset.php
3 weeks ago
admin.js
3 weeks ago
donation-options.asset.php
1 year ago
donation-options.js
1 year ago
donor-dashboards-app-rtl.css
4 months ago
donor-dashboards-app.asset.php
4 months ago
donor-dashboards-app.css
4 months ago
donor-dashboards-app.js
4 months ago
donor-dashboards-block.asset.php
7 months ago
donor-dashboards-block.js
7 months ago
give-add-v2form-rtl.css
1 year ago
give-add-v2form.asset.php
4 months ago
give-add-v2form.css
1 year ago
give-add-v2form.js
4 months ago
give-admin-donation-forms-rtl.css
7 months ago
give-admin-donation-forms.asset.php
4 months ago
give-admin-donation-forms.css
7 months ago
give-admin-donation-forms.js
4 months ago
give-admin-donations-rtl.css
8 months ago
give-admin-donations.asset.php
8 months ago
give-admin-donations.css
8 months ago
give-admin-donations.js
8 months ago
give-admin-donors-rtl.css
8 months ago
give-admin-donors.asset.php
8 months ago
give-admin-donors.css
8 months ago
give-admin-donors.js
8 months ago
give-admin-event-tickets-details-rtl.css
8 months ago
give-admin-event-tickets-details.asset.php
8 months ago
give-admin-event-tickets-details.css
8 months ago
give-admin-event-tickets-details.js
8 months ago
give-admin-event-tickets-rtl.css
8 months ago
give-admin-event-tickets.asset.php
8 months ago
give-admin-event-tickets.css
8 months ago
give-admin-event-tickets.js
8 months ago
give-admin-subscriptions-rtl.css
8 months ago
give-admin-subscriptions.asset.php
8 months ago
give-admin-subscriptions.css
8 months ago
give-admin-subscriptions.js
8 months ago
give-classic-template.asset.php
1 year ago
give-classic-template.js
1 year ago
give-donation-forms-load-async-data.asset.php
1 year ago
give-donation-forms-load-async-data.js
1 year ago
give-donation-summary.asset.php
1 year ago
give-donation-summary.js
1 year ago
give-edit-v2form-rtl.css
1 year ago
give-edit-v2form.asset.php
4 months ago
give-edit-v2form.css
1 year ago
give-edit-v2form.js
4 months ago
give-log-list-table-app-rtl.css
8 months ago
give-log-list-table-app.asset.php
8 months ago
give-log-list-table-app.css
8 months ago
give-log-list-table-app.js
8 months ago
give-migrations-list-table-app-rtl.css
8 months ago
give-migrations-list-table-app.asset.php
8 months ago
give-migrations-list-table-app.css
8 months ago
give-migrations-list-table-app.js
8 months ago
give-sequoia-template.asset.php
1 year ago
give-sequoia-template.js
1 year ago
give-stripe-becs.asset.php
1 year ago
give-stripe-becs.js
1 year ago
give-stripe-sepa.asset.php
1 year ago
give-stripe-sepa.js
1 year ago
give-stripe.asset.php
1 year ago
give-stripe.js
1 year ago
give.asset.php
1 year ago
give.js
1 year ago
iframe-content.asset.php
1 year ago
iframe-content.js
1 year ago
orphaned-forms-list-table-rtl.css
8 months ago
orphaned-forms-list-table.asset.php
8 months ago
orphaned-forms-list-table.css
8 months ago
orphaned-forms-list-table.js
8 months ago
parent-page.asset.php
1 year ago
parent-page.js
1 year ago
payment-gateway.asset.php
1 year ago
payment-gateway.js
1 year ago
paypal-commerce.asset.php
1 year ago
paypal-commerce.js
1 year ago
plugin-deactivation-survey.asset.php
1 year ago
plugin-deactivation-survey.js
1 year ago
utils.asset.php
1 year ago
utils.js
1 year ago
welcome-banner-rtl.css
1 year ago
welcome-banner.asset.php
1 year ago
welcome-banner.css
1 year ago
welcome-banner.js
1 year ago
admin-shortcodes.js
1 lines
| 1 | (()=>{let t,e;jQuery((function(o){const n=o(this);window.render_continue_button_title_field=function(){const t=o(".mce-txt",".mce-give-display-style").text();-1!==o.inArray(t,["- Select -","All Fields"])?o(".mce-give-continue-button-title").closest(".mce-container").hide():o(".mce-give-continue-button-title").closest(".mce-container").show()},window.scForm={open:function(e){const n=tinymce.get(e);if(!n)return;let i,c,s,r,d;i={action:"give_shortcode",shortcode:t},o.post(ajaxurl,i,(function(e){if(!e.body)return void console.error("Bad AJAX response!");if(0===e.body.length)return window.send_to_editor("["+e.shortcode+"]"),void scForm.destroy();o.each(e.body,(function(t,o){"display_style"===o.name&&(e.body[t].onselect=function(){render_continue_button_title_field()})}));const i={title:e.title,body:e.body,classes:"sc-popup",minWidth:320,buttons:[{text:e.ok,classes:"primary sc-primary",onclick:function(){d=n.windowManager.getWindows()[0],s=scShortcodes[t],r=!0;for(const t in s)if(s.hasOwnProperty(t)&&(c=d.find("#"+t)[0],void 0!==c&&""===c.state.data.value)){r=!1,new Give.modal.GiveErrorAlert({modalContent:{desc:s[t],cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render();break}r&&d.submit()}},{text:e.close,onclick:"close"}],onsubmit:function(t){let o="";for(const e in t.data)t.data.hasOwnProperty(e)&&""!==t.data[e]&&(o+=" "+e+'="'+t.data[e]+'"');window.send_to_editor("["+e.shortcode+o+"]")},onclose:function(){scForm.destroy()},onopen:function(){const t=o(".mce-sc-popup");t.css({width:t.width(),height:t.height(),overflow:"auto"}),render_continue_button_title_field()}};e.ok.constructor===Array&&(i.buttons[0].text=e.ok[0],i.buttons[0].onclick="close",delete i.buttons[1]),n.windowManager.open(i)}))},destroy:function(){const t=o("#scTemp");t.length&&(tinymce.get("scTemp").remove(),t.remove())}};const i=function(){void 0!==e&&e.removeClass("active").parent().find(".sc-menu").hide()};n.on("click",(function(t){o(t.target).closest(".sc-wrap").length||i()})),n.on("click",".sc-button",(function(t){t.preventDefault(),e=o(this),e.hasClass("active")?i():e.addClass("active").parent().find(".sc-menu").show()})),n.on("click",".sc-shortcode",(function(e){e.preventDefault(),t=o(this).attr("data-shortcode"),t?(tinymce.get(window.wpActiveEditor)?tinymce.execCommand("Give_Shortcode"):(o("#scTemp").length||(o("body").append('<textarea id="scTemp" style="display: none;" />'),tinymce.init({mode:"exact",elements:"scTemp",plugins:["give_shortcode","wplink"]})),setTimeout((function(){tinymce.execCommand("Give_Shortcode")}),200)),setTimeout((function(){i()}),100)):console.warn("That is not a valid shortcode link.")}))}))})(); |