images
10 months ago
lazy-chunks
5 days ago
tutor-addon-list.js
5 days ago
tutor-admin.js
5 days ago
tutor-core.js
5 days ago
tutor-coupon.js
5 days ago
tutor-course-builder.js
5 days ago
tutor-dashboard.js
5 days ago
tutor-front.js
5 days ago
tutor-gutenberg.js
5 days ago
tutor-import-export.js
5 days ago
tutor-learning-area.js
5 days ago
tutor-order-details.js
5 days ago
tutor-payment-settings.js
5 days ago
tutor-setup.js
5 days ago
tutor-tax-settings.js
5 days ago
tutor.js
5 days ago
tutor-gutenberg.js
21 lines
| 1 | (()=>{"use strict";var t={};// The module cache |
| 2 | var r={};// The require function |
| 3 | function e(n){// Check if module is in cache |
| 4 | var o=r[n];if(o!==undefined){return o.exports}// Create a new module (and put it into the cache) |
| 5 | var a=r[n]={exports:{}};// Execute the module function |
| 6 | t[n](a,a.exports,e);// Return the exports of the module |
| 7 | return a.exports}// webpack/runtime/rspack_version |
| 8 | (()=>{e.rv=()=>"1.6.5"})();// webpack/runtime/rspack_unique_id |
| 9 | (()=>{e.ruid="bundler=rspack@1.6.5"})();// CONCATENATED MODULE: external "wp.i18n" |
| 10 | const n=wp.i18n;// CONCATENATED MODULE: ./assets/src/js/gutenberg/custom-button.js |
| 11 | /** |
| 12 | * Add custom button on Gutenberg header to open Tutor frontend |
| 13 | * builder |
| 14 | * |
| 15 | * @since v2.0.5 |
| 16 | */(function(t,r){var e="tutor-frontend-builder-trigger";// prepare our custom link's html. |
| 17 | var o='\n <a id="'.concat(e,'" class="tutor-btn tutor-btn-primary tutor-btn-sm tutor-text-nowrap" href="').concat(tutorInlineData.frontend_dashboard_url,'" target="_blank">\n ').concat((0,n.__)("Edit with Frontend Course Builder","tutor"),"\n </a>\n ");// check if gutenberg's editor root element is present. |
| 18 | var a=document.getElementById("editor");if(!a){return}var i=r.data.subscribe(function(){setTimeout(function(){if(!document.getElementById(e)){var t=a.querySelector(".edit-post-header-toolbar");if(t instanceof HTMLElement){t.insertAdjacentHTML("beforeend",o)}}},100)});// unsubscribe is a function - it's not used right now |
| 19 | // but in case you'll need to stop this link from being reappeared at any point you can just call unsubscribe(); |
| 20 | })(window,wp);// CONCATENATED MODULE: ./assets/src/js/gutenberg/index.js |
| 21 | })(); |