1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
|
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=191)}({1:function(t,e){t.exports=jQuery},11:function(t,e,n){var o=n(3).default;t.exports=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},14:function(t,e,n){"use strict";(function(t,o){n.d(e,"a",(function(){return r}));var r=function(e){e.tooltip({content:function(){return t(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})};o(document).ready((function(t){r(t(".edd-help-tip"))}))}).call(this,n(1),n(1))},168:function(t,e){function n(t,e,n,o,r,i,a){try{var d=t[i](a),c=d.value}catch(t){return void n(t)}d.done?e(c):Promise.resolve(c).then(o,r)}t.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(r,i){var a=t.apply(e,o);function d(t){n(a,r,i,d,c,"next",t)}function c(t){n(a,r,i,d,c,"throw",t)}d(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},191:function(t,e,n){"use strict";n.r(e),function(t,e){var o=n(2),r=n.n(o),i=n(168),a=n.n(i),d=n(21),c=n.n(d),s=n(14);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p,f={vars:{nonce:""},init:function(){f.vars.nonce=t("#_wpnonce").val(),this.init_step_buttons(),this.init_upload_buttons(),this.start_onboarding();var e=f.get_step_class(t(".edd-onboarding_current-step").val());e&&f[e].init()},loading_state:function(e){t(".edd-onboarding__loading-status").empty(),t(".edd-onboarding__loading").toggle(e),t(".edd-onboarding").toggleClass("edd-onboarding__loading-in-progress",e)},init_step_buttons:function(){t(document.body).on("click",".edd-onboarding__button-back",(function(e){e.preventDefault(),f.load_step(t(".edd-onboarding_current-previous-step").val())})),t(document.body).on("click",".edd-onboarding__button-skip-step",(function(t){t.preventDefault(),f.next_step(!0)})),t(document.body).on("click",".edd-onboarding__button-save-step",(function(e){e.preventDefault();var n=f.get_step_class(t(".edd-onboarding_current-step").val());n&&f[n].save().then((function(){f.next_step()}))})),t(document.body).on("click",".edd-onboarding__dismiss",(function(t){f.onboarding_skipped(!0,t.target)}))},init_upload_buttons:function(){var e;window.form_upload_field=!1,t(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var o=t(this);window.form_upload_field=t(o.data("input")),e||((e=wp.media.frames.file_frame=wp.media({title:o.data("uploader_t
|