!function(){const t=jQuery,o={init(){t(".sfwd_option_label .sfwd_help_text").on("click touch",this.fixButtonClickInHelpText),t(".learndash-copy-text").on("click touch",this.copyToClipBoard),t(".learndash-copy-text").on("mouseover focus",this.resetTooltip),t(".learndash-copy-text").on("mouseleave",this.closeTooltip)},fixButtonClickInHelpText(o){t(this).find(".learndash-copy-text").length<=0||o.preventDefault()},copyToClipBoard(o){o.preventDefault();const e=t(this).data("text");if(e.length<=0)return;window.navigator.clipboard.writeText(e);const i=t(this).data("tooltip-success");i.length<=0||t(this).attr("data-tooltip",i)},resetTooltip(){const o=t(this).data("tooltip-default");o.length<=0||t(this).attr("data-tooltip",o)},closeTooltip(){t(this).trigger("blur")}};t(document).on("ready",(function(){o.init()}))}();