Skillshare For Beginners Fast Track Training (2024)

Log in

Download Free oneddl » Video Courses » Skillshare For Beginners Fast Track Training

| view 👀:242 | 🙍 oneddl | redaktor: FreshWap.CC | Rating👍:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5

Skillshare For Beginners Fast Track Training (2)
Skillshare For Beginners: Fast Track Training
Video: .mp4 (1280x720, 30 fps(r)) | Audio: aac, 44100 Hz, 2ch | Size: 413 MB
Genre: eLearning Video | Duration: 21 lectures (55 mins) | Language: English

A Step By Step Process That Will Show You How To Earn A Full Time Income By Selling Your Courses On Skillshare.
What you'll learn
Brand New Over-The-Shoulder Video Series To Learn Skillshare
How To Easily Master Skillshare For Beginners
Know Best Practices For Success On Skillshare
Create A Passive Income On Skillshare
Requirements
A computer with internet access
A willingness to learn and take action
A Skillshare account
Description
Heard about people making money with Skillshare?
Brand New Over-The-Shoulder Video Series On How To Sell Your Knowledge For Passive Profits On Skillshare.
Have you ever thought about selling what you know online?
How about not having to mess up with all the technical aspect of building a website and driving traffic to your info products?
Does that interests you to know an easy and no hassle way of making money online and not having to compete with fierce marketers?
If the you answer YES to all of these, then I've good news for you...
In one word: "Skillshare".
The Holy Grail For Infopreneurs
Skillshare has over 3,000,000 students who are active on the site.
That's right - 3 millions!
By teaching on Skillshare you can easily tape into that ever-expanding pool of eager students.
You do not have to advertise your class, the platform is popular enough for students to find your class and enroll easily.
Most classes on Skillshare gain students organically.
No Experience Required, Fast, Easy, Convenient
The advantage with Skillshare is that you do not need anything to get started and hit the ground running.
Everything you require to start and teach a successful class is made available on the platform.
It only takes a few minutes to set everything up and get started.
For pre-recorded videos, the teaching platform has some easy to use editing tools that teachers make can make use of.
Why You Need To Get Started Now:
Unlimited number of classes to teach on Skillshare.
No advertising needed to teach a successful class on Skillshare.
Turn your creative skill into an income by selling on Skillshare.
No tools are required to hit the ground running when teaching a class on Skillshare.
Benefit from the positive Skillshare community and learn from other teachers as well.
And the list goes on and on.
Selling on Skillshare will bring your business to the next level and that is why I decided to come up with this unique over the shoulder video series to get you started very quickly with it.
How To Make Passive Profits By Teaching What You Know
There's nothing like this video series.
Watch as I show you how to get started on Skillshare and sell your knowledge for passive income.
I reveal my best tips for using some unknown tactics that only a few elite few knows. You get to see everything. I explain everything to you.
There will be no guesswork.
All you need is just a short hour of your time to learn everything and you'd be ready to get started with it instantly.
Here's What You'll Discover Inside This Video Training:
Learn how to get started with Skillshare and discover how it's going to help your business overall.
How to correctly set up your Skillshare Account within just a few minutes.
How to select the right topic of your online course.
Learn the easiest way to create and deliver your online course on Skillshare.
Learn the fastest way to create your course outlines, checklist and text content.
How to use case studies in your content for maximum credibility.
Harness the power of Skillshare online community and get help from other people when you need.
How to effectively use available promotional strategies.
How to build up your business brand and maximize your revenue.
Protecting your content and understand the rules to follow.
--------------------------
Skillshare For Beginners: Fast Track Training:
Section 1: Overview
1 - Overview
Section 2: Consider Using Skillshare
2 - Reasons To Consider Using Skillshare
3 - How You Will Earn Revenue
4 - Minimum Equipment Needed
Section 3: Skillshare Account Set Up
5 - Policies and Screening
6 - Skillshare Account Set Up
7 - Creating A Course Outline
Section 4: Creating Course Content
8 - Should I Use PLR
9 - Creating Course Content
10 - Recording Your Course
Section 5: Editing Your Course Videos
11 - Editing Your Course Videos
12 - Increasing Audio Quality In Your Video
13 - Annotating Your Course Video
Section 6: Creating A Promotional Video
14 - Creating A Promotional Video
15 - Uploading Content To Skillshare
16 - Setting Up Your Course and Sample Video
Section 7: Making Referrals & Student Engagement
17 - Making Referrals
18 - First Time Teacher Challenge Workshop
19 - Student Engagement
Section 8: Conclusion
20 - Conclusion
Who this course is for:
Beginners to Skillshare
Students who want to master the Skillshare platform
Professionals, Business Owners, Internet Marketers, Entrepreneurs, Hobbyists
This course is specifically for the students who wish to create an asset and start teaching on Skillshare

Buy Premium From My Links To Get Resumable Support,Max Speed & Support Me


Oneddl |

Video Courses«Free Download - OneDDL»

Comments (0)

Information
Users of Guests are not allowed to comment this publication.

',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=n.st.image,o=".image";n.types.push("image"),b(p+o,(function(){"image"===n.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)})),b(c+o,(function(){i.cursor&&e(document.body).removeClass(i.cursor),w.off("resize"+f)})),b("Resize"+o,n.resizeImage),n.isLowIE&&b("AfterChange",n.resizeImage)},resizeImage:function(){var e=n.currItem;if(e&&e.img&&n.st.image.verticalFit){var i=0;n.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",n.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,j&&clearInterval(j),e.isCheckingImgSize=!1,x("ImageHasSize",e),e.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],r=function(s){j&&clearInterval(j),j=setInterval((function(){o.naturalWidth>0?n._onImageHasSize(e):(i>200&&clearInterval(j),3===++i?r(10):40===i?r(50):100===i&&r(500))}),s)};r(1)},getImage:function(i,o){var r=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===n.currItem&&(n._onImageHasSize(i),n.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,x("ImageLoadComplete")):++r<200?setTimeout(s,100):l())},l=function(){i&&(i.img.off(".mfploader"),i===n.currItem&&(n._onImageHasSize(i),n.updateStatus("error",c.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},c=n.st.image,u=o.find(".mfp-img");if(u.length){var d=document.createElement("img");d.className="mfp-img",i.el&&i.el.find("img").length&&(d.alt=i.el.find("img").attr("alt")),i.img=e(d).on("load.mfploader",s).on("error.mfploader",l),d.src=i.src,u.is("img")&&(i.img=i.img.clone()),(d=i.img[0]).naturalWidth>0?i.hasSize=!0:d.width||(i.hasSize=!1)}return n._parseMarkup(o,{title:A(i),img_replaceWith:i.img},i),n.resizeImage(),i.hasSize?(j&&clearInterval(j),i.loadError?(o.addClass("mfp-loading"),n.updateStatus("error",c.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),n.updateStatus("ready")),o):(n.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),n.findImageSize(i)),o)}}});var M;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=n.st.zoom,o=".zoom";if(i.enabled&&n.supportsTransition){var r,s,l=i.duration,d=function(e){var n=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},t="transition";return r["-webkit-"+t]=r["-moz-"+t]=r["-o-"+t]=r[t]=o,n.css(r),n},p=function(){n.content.css("visibility","visible")};b("BuildControls"+o,(function(){if(n._allowZoom()){if(clearTimeout(r),n.content.css("visibility","hidden"),!(e=n._getItemToZoom()))return void p();(s=d(e)).css(n._getOffset()),n.wrap.append(s),r=setTimeout((function(){s.css(n._getOffset(!0)),r=setTimeout((function(){p(),setTimeout((function(){s.remove(),e=s=null,x("ZoomAnimationEnded")}),16)}),l)}),16)}})),b(u+o,(function(){if(n._allowZoom()){if(clearTimeout(r),n.st.removalDelay=l,!e){if(!(e=n._getItemToZoom()))return;s=d(e)}s.css(n._getOffset(!0)),n.wrap.append(s),n.content.css("visibility","hidden"),setTimeout((function(){s.css(n._getOffset())}),16)}})),b(c+o,(function(){n._allowZoom()&&(p(),s&&s.remove(),e=null)}))}},_allowZoom:function(){return"image"===n.currItem.type},_getItemToZoom:function(){return!!n.currItem.hasSize&&n.currItem.img},_getOffset:function(i){var o,r=(o=i?n.currItem.img:n.st.zoom.opener(n.currItem.el||n.currItem)).offset(),s=parseInt(o.css("padding-top"),10),l=parseInt(o.css("padding-bottom"),10);r.top-=e(window).scrollTop()-s;var c={width:o.width(),height:(y?o.innerHeight():o[0].offsetHeight)-l-s};return void 0===M&&(M=void 0!==document.createElement("p").style.MozTransform),M?c["-moz-transform"]=c.transform="translate("+r.left+"px,"+r.top+"px)":(c.left=r.left,c.top=r.top),c}}});var P="retina";e.magnificPopup.registerModule(P,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=n.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(b("ImageHasSize."+P,(function(e,n){n.img.css({"max-width":n.img[0].naturalWidth/i,width:"100%"})})),b("ElementParse."+P,(function(n,o){o.src=e.replaceSrc(o,i)})))}}}}),T()})),function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ClipboardJS=n():e.ClipboardJS=n()}(this,(function(){return function(){var e={686:function(e,n,i){"use strict";i.d(n,{default:function(){return clipboard}});var o=i(279),r=i.n(o),s=i(370),l=i.n(s),c=i(817),u=i.n(c);function d(e){try{return document.execCommand(e)}catch(e){return!1}}var p=function(e){var n=u()(e);return d("cut"),n};var h=function(e,n){var i=function(e){var n="rtl"===document.documentElement.getAttribute("dir"),i=document.createElement("textarea");i.style.fontSize="12pt",i.style.border="0",i.style.padding="0",i.style.margin="0",i.style.position="absolute",i.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return i.style.top="".concat(o,"px"),i.setAttribute("readonly",""),i.value=e,i}(e);n.container.appendChild(i);var o=u()(i);return d("copy"),i.remove(),o},f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},i="";return"string"==typeof e?i=h(e,n):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?i=h(e.value,n):(i=u()(e),d("copy")),i};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.action,i=void 0===n?"copy":n,o=e.container,r=e.target,s=e.text;if("copy"!==i&&"cut"!==i)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==m(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===i&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===i&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?f(s,{container:o}):r?"cut"===i?p(r):f(r,{container:o}):void 0};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e,n){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var n=this;this.listener=l()(e,"click",(function(e){return n.onClick(e)}))}},{key:"onClick",value:function(e){var n=e.delegateTarget||e.currentTarget,i=this.action(n)||"copy",o=g({action:i,container:this.container,target:this.target(n),text:this.text(n)});this.emit(o?"success":"error",{action:i,text:o,trigger:n,clearSelection:function(){n&&n.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return x("action",e)}},{key:"defaultTarget",value:function(e){var n=x("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function(e){return x("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,n)}},{key:"cut",value:function(e){return p(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,i=!!document.queryCommandSupported;return n.forEach((function(e){i=i&&!!document.queryCommandSupported(e)})),i}}],i&&y(n.prototype,i),o&&y(n,o),s}(r()),clipboard=C},828:function(e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=function(e,i){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(i))return e;e=e.parentNode}}},438:function(e,n,i){var o=i(828);function r(e,n,i,o,r){var l=s.apply(this,arguments);return e.addEventListener(i,l,r),{destroy:function(){e.removeEventListener(i,l,r)}}}function s(e,n,i,r){return function(i){i.delegateTarget=o(i.target,n),i.delegateTarget&&r.call(e,i)}}e.exports=function(e,n,i,o,s){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof i?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,n,i,o,s)})))}},879:function(e,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,n,i){var o=i(879),r=i(438);e.exports=function(e,n,i){if(!e&&!n&&!i)throw new Error("Missing required arguments");if(!o.string(n))throw new TypeError("Second argument must be a String");if(!o.fn(i))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,n,i){return e.addEventListener(n,i),{destroy:function(){e.removeEventListener(n,i)}}}(e,n,i);if(o.nodeList(e))return function(e,n,i){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(n,i)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(n,i)}))}}}(e,n,i);if(o.string(e))return function(e,n,i){return r(document.body,e,n,i)}(e,n,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var n;if("SELECT"===e.nodeName)e.focus(),n=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),n=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),n=o.toString()}return n}},279:function(e){function n(){}n.prototype={on:function(e,n,i){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:n,ctx:i}),this},once:function(e,n,i){var o=this;function r(){o.off(e,r),n.apply(i,arguments)}return r._=n,this.on(e,r,i)},emit:function(e){for(var n=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=i.length;o=i.minChars){for(var r="",s=0;s'),n.data("sc",n.sc).data("autocomplete",n.attr("autocomplete")),n.attr("autocomplete","off"),n.cache={},n.last_val="",n.updateSC=function(i,o){if(window.innerWidth>800?n.sc.css({top:e("#main_search").position().top+e(".headroom .header").innerHeight()-e(".main-search__form").innerHeight()/1.3,left:n.offset().left,width:n.outerWidth()}):n.sc.css({top:e(".search__form").position().top+e(".search__form input").innerHeight(),left:n.offset().left,width:n.outerWidth()}),!i&&(n.sc.show(),n.sc.maxHeight||(n.sc.maxHeight=parseInt(n.sc.css("max-height"),10)),n.sc.suggestionHeight||(n.sc.suggestionHeight=e(".autocomplete-suggestion",n.sc).first().outerHeight()),n.sc.suggestionHeight))if(o){var r=n.sc.scrollTop(),s=o.offset().top-n.sc.offset().top;s+n.sc.suggestionHeight-n.sc.maxHeight>0?n.sc.scrollTop(s+n.sc.suggestionHeight+r-n.sc.maxHeight):s<0&&n.sc.scrollTop(s+r)}else n.sc.scrollTop(0)},e(window).on("resize.autocomplete",n.updateSC),n.sc.appendTo(".headroom .header"),n.sc.on("mouseleave",".autocomplete-suggestion",(function(){e(".autocomplete-suggestion.selected").removeClass("selected")})),n.sc.on("mouseenter",".autocomplete-suggestion",(function(){e(".autocomplete-suggestion.selected").removeClass("selected"),e(this).addClass("selected")})),n.sc.on("mousedown click",".autocomplete-suggestion",(function(o){var r=e(this),s=r.data("val");return(s||r.hasClass("autocomplete-suggestion"))&&(n.val(s),i.onSelect(o,s,r),n.sc.hide()),!1})),n.on("blur.autocomplete",(function(){try{over_sb=e(".autocomplete-suggestions:hover").length}catch(e){over_sb=0}over_sb?n.is(":focus")||setTimeout((function(){n.focus()}),20):(n.last_val=n.val(),n.sc.hide(),setTimeout((function(){n.sc.hide()}),350))})),i.minChars||n.on("focus.autocomplete",(function(){n.last_val="\n",n.trigger("keyup.autocomplete")})),n.on("keydown.autocomplete",(function(o){var r;if((40===o.which||38===o.which)&&n.sc.html())return(s=e(".autocomplete-suggestion.selected",n.sc)).length?(r=40===o.which?s.next(".autocomplete-suggestion"):s.prev(".autocomplete-suggestion")).length?(s.removeClass("selected"),n.val(r.addClass("selected").data("val"))):(s.removeClass("selected"),n.val(n.last_val),r=0):(r=40===o.which?e(".autocomplete-suggestion",n.sc).first():e(".autocomplete-suggestion",n.sc).last(),n.val(r.addClass("selected").data("val"))),n.updateSC(0,r),!1;if(27===o.which)n.val(n.last_val).sc.hide();else if(13===o.which||9===o.which){var s;(s=e(".autocomplete-suggestion.selected",n.sc)).length&&n.sc.is(":visible")&&(i.onSelect(o,s.data("val"),s),setTimeout((function(){n.sc.hide()}),20))}})),n.on("keyup.autocomplete",(function(r){if(!~e.inArray(r.which,[13,27,35,36,37,38,39,40])){var s=n.val();if(s.length>=i.minChars){if(s!==n.last_val){if(n.last_val=s,clearTimeout(n.timer),i.cache){if(s in n.cache)return void o(n.cache[s]);for(var l=1;l'+e.replace(re,"$1")+""},onSelect:function(n,i,o){window.innerWidth>767?e(document).find("input#main_search").each((function(n,o){e(this).val()===i&&e(this).closest("form").submit()})):e(document).find("input#main_search-mobile").each((function(n,o){e(this).val()===i&&e(this).closest("form").submit()}))}}}(jQuery),$(document).ready((function(){$(".iaconbox").mouseleave((function(){clearTimeout(e),e=setTimeout((function(){$(".comments_preview_window").fadeOut()}),2e3)})),$(".iaconbox").mouseenter((function(){$news_id=$(this).closest("tr").data("news-id"),$(".comments_list").html('');var n=$(this).offset();$(".comments_preview_window").css("top",n.top-130),$(".comments_preview_window").css("left",n.left-$(".comments_preview_window").outerWidth()-55),$(".comments_preview_window").fadeIn(),clearTimeout(e),$.ajax({type:"POST",url:"/ajax/getCommentsPreviews.ajax.php",data:{news_id:$news_id},dataType:"json",success:function(a){$(".comments_list").html(a)}})}))})),window.onload=posterPopInit,$(document).ready((function(){show_covers_block&&$(".latest-movies-box").owlCarousel({margin:15,nav:!0,dots:!1,navText:["",""],responsiveClass:!0,responsive:{0:{items:1},479:{items:3},759:{items:4},1e3:{items:5},1239:{items:6},1410:{items:7}}})})),jQuery(document).ready((function(){jQuery("app-select > .select-opener").click((function(){$(".is-expanded")[0]&&!jQuery(this).closest("app-select").hasClass("is-expanded")&&jQuery("app-select").removeClass("is-expanded"),jQuery(this).closest("app-select").toggleClass("is-expanded")})),jQuery(document).click((function(e){0==$(e.target).closest("app-select").length&&jQuery("app-select").removeClass("is-expanded")}));jQuery(".select-popup-items-list").find("input").each((function(){jQuery(this).prop("checked")&&jQuery(this).prop("name")})),jQuery(".select-popup-items-list > li > label input").click((function(e){var sort_title=jQuery(this).closest("li").find(".label").html(),sort_str_type=jQuery(this).prop("name");if(!jQuery(this).is(":checked"))return e.preventDefault(),jQuery("app-select").removeClass("is-expanded"),!1;if(jQuery(".select-popup-items-list > li > label input").each((function(){sort_str_type!==jQuery(this).prop("name")&&(jQuery("#sort_"+jQuery(this).prop("name")).closest("em").removeClass("checked"),jQuery("#sort_"+jQuery(this).prop("name")).prop("checked",!1))})),"Today"==sort_title||"Week"==sort_title||"Month"==sort_title||"Year"==sort_title){var filter_path_part=sort_title.toLowerCase();"today"==filter_path_part&&(filter_path_part="full"),window.location.href="/"+filter_path_part+"/"}else 0===jQuery(this).parent().closest(".most-popular-category-select-box").length&&$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=sort&view_value="+sort_str_type+"&page="+jQuery("app-select").data("page"),success:function(e){window.location.reload()}})})),jQuery(".per-page-select-popup-items-list > li > label input").click((function(e){var selected_posts_per_page=jQuery(this).data("per_page");$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=posts_per_page&view_value="+jQuery(this).data("per_page"),success:function(e){window.location.reload()}}),jQuery(".per-page-select-popup-items-list > li > label input").each((function(){selected_posts_per_page!==jQuery(this).data("per_page")&&(jQuery(this).closest("em").removeClass("checked"),jQuery(this).prop("checked",!1))}))})),jQuery(".visible-category-item-hide-icon").click((function(){cat_id=jQuery(this).data("cat_id"),action_name="hide",$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=category_visibility_management&view_value="+cat_id+"&view_action="+action_name,success:function(e){window.location.reload()}})})),jQuery(".hidden-category-item-show-icon").click((function(){cat_id=jQuery(this).data("cat_id"),action_name="show",$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=category_visibility_management&view_value="+cat_id+"&view_action="+action_name,success:function(e){window.location.reload()}})})),jQuery(".visible-category-reset-button, .visible-category-item.reset-button").click((function(){action_name="reset",cat_id=-1,$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=category_visibility_management&view_value="+cat_id+"&view_action="+action_name,success:function(e){window.location.reload()}})})),jQuery(".select-popup-visible-categories-items-list").find("input").each((function(){jQuery(this).prop("checked")&&jQuery(this).prop("name")})),jQuery(".select-popup-visible-categories-items-list > li > label input:not(#category_alias_all)").click((function(e){console.log(jQuery(this).data("cat_id")),cat_id=jQuery(this).data("cat_id"),jQuery(this).is(":checked")?(action_name="show",jQuery(".category-visibility-management-dropdown").closest("app-select").removeClass("is-expanded")):(action_name="hide",jQuery(".category-visibility-management-dropdown").closest("app-select").addClass("is-expanded")),$.ajax({type:"POST",url:"/ajax/viewHelperFunctions.ajax.php",data:"action=dropdown_change_view&view_name=category_visibility_management&view_value="+cat_id+"&view_action="+action_name,success:function(e){window.location.reload()}})}))})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).easepick=t.easepick||{})}(this,(function(t){"use strict";class e extends Date{static parseDateTime(t,n="YYYY-MM-DD",i="en-US"){if(!t)return new Date((new Date).setHours(0,0,0,0));if(t instanceof e)return t.toJSDate();if(t instanceof Date)return t;if(/^-?\d{10,}$/.test(String(t)))return new Date(Number(t));if("string"==typeof t){const o=[];let a=null;for(;null!=(a=e.regex.exec(n));)"\\"!==a[1]&&o.push(a);if(o.length){const n={year:null,month:null,shortMonth:null,longMonth:null,day:null,hour:0,minute:0,second:0,ampm:null,value:""};o[0].index>0&&(n.value+=".*?");for(const[t,a]of Object.entries(o)){const o=Number(t),{group:r,pattern:s}=e.formatPatterns(a[0],i);n[r]=o+1,n.value+=s,n.value+=".*?"}const a=new RegExp(`^${n.value}$`);if(a.test(t)){const o=a.exec(t),r=Number(o[n.year]);let s=null;n.month?s=Number(o[n.month])-1:n.shortMonth?s=e.shortMonths(i).indexOf(o[n.shortMonth]):n.longMonth&&(s=e.longMonths(i).indexOf(o[n.longMonth]));const l=Number(o[n.day])||1,c=Number(o[n.hour]);let u=Number.isNaN(c)?0:c;const d=Number(o[n.minute]),p=Number.isNaN(d)?0:d,h=Number(o[n.second]),f=Number.isNaN(h)?0:h,m=o[n.ampm];return m&&"PM"===m&&(u+=12,24===u&&(u=0)),new Date(r,s,l,u,p,f,0)}}}return new Date((new Date).setHours(0,0,0,0))}static regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|A|a)/g;static MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11];static shortMonths(t){return e.MONTH_JS.map((e=>new Date(2019,e).toLocaleString(t,{month:"short"})))}static longMonths(t){return e.MONTH_JS.map((e=>new Date(2019,e).toLocaleString(t,{month:"long"})))}static formatPatterns(t,n){switch(t){case"YY":case"YYYY":return{group:"year",pattern:`(\\d{${t.length}})`};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:`(${e.shortMonths(n).join("|")})`};case"MMMM":return{group:"longMonth",pattern:`(${e.longMonths(n).join("|")})`};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"};case"h":case"H":return{group:"hour",pattern:"(\\d{1,2})"};case"hh":case"HH":return{group:"hour",pattern:"(\\d{2})"};case"m":return{group:"minute",pattern:"(\\d{1,2})"};case"mm":return{group:"minute",pattern:"(\\d{2})"};case"s":return{group:"second",pattern:"(\\d{1,2})"};case"ss":return{group:"second",pattern:"(\\d{2})"};case"a":case"A":return{group:"ampm",pattern:"(AM|PM|am|pm)"}}}lang;constructor(t=null,n="YYYY-MM-DD",i="en-US"){super(e.parseDateTime(t,n,i)),this.lang=i}getWeek(t){const e=new Date(this.midnight_ts(this)),n=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-n);const i=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((i-e.getTime())/6048e5)}clone(){return new e(this)}toJSDate(){return new Date(this)}inArray(t,e="[]"){return t.some((t=>t instanceof Array?this.isBetween(t[0],t[1],e):this.isSame(t,"day")))}isBetween(t,e,n="()"){switch(n){default:case"()":return this.midnight_ts(this)>this.midnight_ts(t)&&this.midnight_ts(this)=this.midnight_ts(t)&&this.midnight_ts(this)this.midnight_ts(t)&&this.midnight_ts(this)<=this.midnight_ts(e);case"[]":return this.midnight_ts()>=this.midnight_ts(t)&&this.midnight_ts()<=this.midnight_ts(e)}}isBefore(t,e="days"){switch(e){case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")}isSameOrBefore(t,e="days"){switch(e){case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")}isAfter(t,e="days"){switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")}isSameOrAfter(t,e="days"){switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")}isSame(t,e="days"){switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")}add(t,e="days"){switch(e){case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this}subtract(t,e="days"){switch(e){case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this}diff(t,e="days"){switch(e){default:case"day":case"days":return Math.round((this.midnight_ts()-this.midnight_ts(t))/864e5);case"month":case"months":let e=12*(t.getFullYear()-this.getFullYear());return e-=t.getMonth(),e+=this.getMonth(),e}}format(t,n="en-US"){let i="";const o=[];let a=null;for(;null!=(a=e.regex.exec(t));)"\\"!==a[1]&&o.push(a);if(o.length){o[0].index>0&&(i+=t.substring(0,o[0].index));for(const[e,a]of Object.entries(o)){const r=Number(e);i+=this.formatTokens(a[0],n),o[r+1]&&(i+=t.substring(a.index+a[0].length,o[r+1].index)),r===o.length-1&&(i+=t.substring(a.index+a[0].length))}}return i.replace(/\\/g,"")}midnight_ts(t){return t?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0).getTime():new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()}formatTokens(t,n){switch(t){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return`0${this.getMonth()+1}`.slice(-2);case"MMM":return e.shortMonths(n)[this.getMonth()];case"MMMM":return e.longMonths(n)[this.getMonth()];case"D":return String(this.getDate());case"DD":return`0${this.getDate()}`.slice(-2);case"H":return String(this.getHours());case"HH":return`0${this.getHours()}`.slice(-2);case"h":return String(this.getHours()%12||12);case"hh":return`0${this.getHours()%12||12}`.slice(-2);case"m":return String(this.getMinutes());case"mm":return`0${this.getMinutes()}`.slice(-2);case"s":return String(this.getSeconds());case"ss":return`0${this.getSeconds()}`.slice(-2);case"a":return this.getHours()<12||24===this.getHours()?"am":"pm";case"A":return this.getHours()<12||24===this.getHours()?"AM":"PM";default:return""}}}t.DateTime=e,Object.defineProperty(t,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@easepick/datetime")):"function"==typeof define&&define.amd?define(["exports","@easepick/datetime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).easepick=e.easepick||{},e.easepick)}(this,(function(e,t){"use strict";class n{picker;constructor(e){this.picker=e}render(e,n){e||(e=new t.DateTime),e.setDate(1),e.setHours(0,0,0,0),"function"==typeof this[`get${n}View`]&&this[`get${n}View`](e)}getContainerView(e){this.picker.ui.container.innerHTML="",this.picker.options.header&&this.picker.trigger("render",{date:e.clone(),view:"Header"}),this.picker.trigger("render",{date:e.clone(),view:"Main"}),this.picker.options.autoApply||this.picker.trigger("render",{date:e.clone(),view:"Footer"})}getHeaderView(e){const t=document.createElement("header");this.picker.options.header instanceof HTMLElement&&t.appendChild(this.picker.options.header),"string"==typeof this.picker.options.header&&(t.innerHTML=this.picker.options.header),this.picker.ui.container.appendChild(t),this.picker.trigger("view",{target:t,date:e.clone(),view:"Header"})}getMainView(e){const t=document.createElement("main");this.picker.ui.container.appendChild(t);const n=document.createElement("div");n.className=`calendars grid-${this.picker.options.grid}`;for(let t=0;t${e.toLocaleString(this.picker.options.lang,{month:"long"})} ${e.format("YYYY")}`,t.appendChild(n);const i=document.createElement("button");i.className="previous-button unit",i.innerHTML=this.picker.options.locale.previousMonth,t.appendChild(i);const o=document.createElement("button");return o.className="next-button unit",o.innerHTML=this.picker.options.locale.nextMonth,t.appendChild(o),t}getCalendarDayNamesView(){const e=document.createElement("div");e.className="daynames-row";for(let t=1;t<=7;t++){const n=3+this.picker.options.firstDay+t,i=document.createElement("div");i.className="dayname",i.innerHTML=new Date(1970,0,n,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"short"}),i.title=new Date(1970,0,n,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"long"}),e.appendChild(i),this.picker.trigger("view",{dayIdx:n,view:"CalendarDayName",target:i})}return e}getCalendarDaysView(e){const t=document.createElement("div");t.className="days-grid";const n=this.calcOffsetDays(e,this.picker.options.firstDay),i=32-new Date(e.getFullYear(),e.getMonth(),32).getDate();for(let e=0;e{"function"==typeof t?e.push(new t):"string"==typeof t&&"undefined"!=typeof easepick&&Object.prototype.hasOwnProperty.call(easepick,t)?e.push(new easepick[t]):console.warn(`easepick: ${t} not found.`)})),e.sort(((e,t)=>e.priority>t.priority?-1:e.priorityt.dependencies.length?1:e.dependencies.length{e.attach(this.picker),this.instances[e.getName()]=e}))}getInstance(e){return this.instances[e]}addInstance(e){if(Object.prototype.hasOwnProperty.call(this.instances,e))console.warn(`easepick: ${e} already added.`);else{if("undefined"!=typeof easepick&&Object.prototype.hasOwnProperty.call(easepick,e)){const t=new easepick[e];return t.attach(this.picker),this.instances[t.getName()]=t,t}if("undefined"!==this.getPluginFn(e)){const t=new(this.getPluginFn(e));return t.attach(this.picker),this.instances[t.getName()]=t,t}console.warn(`easepick: ${e} not found.`)}return null}removeInstance(e){return e in this.instances&&this.instances[e].detach(),delete this.instances[e]}reloadInstance(e){return this.removeInstance(e),this.addInstance(e)}getPluginFn(e){return[...this.picker.options.plugins].filter((t=>"function"==typeof t&&(new t).getName()===e)).shift()}}class o{Calendar=new n(this);PluginManager=new i(this);calendars=[];datePicked=[];cssLoaded=0;binds={hidePicker:this.hidePicker.bind(this),show:this.show.bind(this)};options={doc:document,css:[],element:null,firstDay:1,grid:1,calendars:1,lang:"en-US",date:null,format:"YYYY-MM-DD",readonly:!0,autoApply:!0,header:!1,inline:!1,scrollToDate:!0,locale:{nextMonth:'',previousMonth:'',cancel:"Cancel",apply:"Apply"},documentClick:this.binds.hidePicker,plugins:[]};ui={container:null,shadowRoot:null,wrapper:null};version="1.2.1";constructor(e){const t={...this.options.locale,...e.locale};this.options={...this.options,...e},this.options.locale=t,this.handleOptions(),this.ui.wrapper=document.createElement("span"),this.ui.wrapper.style.display="none",this.ui.wrapper.style.position="absolute",this.ui.wrapper.style.pointerEvents="none",this.ui.wrapper.className="easepick-wrapper",this.ui.wrapper.attachShadow({mode:"open"}),this.ui.shadowRoot=this.ui.wrapper.shadowRoot,this.ui.container=document.createElement("div"),this.ui.container.className="container",this.options.zIndex&&(this.ui.container.style.zIndex=String(this.options.zIndex)),this.options.inline&&(this.ui.wrapper.style.position="relative",this.ui.container.classList.add("inline")),this.ui.shadowRoot.appendChild(this.ui.container),this.options.element.after(this.ui.wrapper),this.handleCSS(),this.options.element.addEventListener("click",this.binds.show),this.on("view",this.onView.bind(this)),this.on("render",this.onRender.bind(this)),this.PluginManager.initialize(),this.parseValues(),"function"==typeof this.options.setup&&this.options.setup(this),this.on("click",this.onClick.bind(this));const n=this.options.scrollToDate?this.getDate():null;this.renderAll(n)}on(e,t,n={}){this.ui.container.addEventListener(e,t,n)}off(e,t,n={}){this.ui.container.removeEventListener(e,t,n)}trigger(e,t={}){return this.ui.container.dispatchEvent(new CustomEvent(e,{detail:t}))}destroy(){this.options.element.removeEventListener("click",this.binds.show),"function"==typeof this.options.documentClick&&document.removeEventListener("click",this.options.documentClick,!0),Object.keys(this.PluginManager.instances).forEach((e=>{this.PluginManager.removeInstance(e)})),this.ui.wrapper.remove()}onRender(e){const{view:t,date:n}=e.detail;this.Calendar.render(n,t)}onView(e){const{view:t,target:n}=e.detail;"Footer"===t&&this.datePicked.length&&(n.querySelector(".apply-button").disabled=!1)}onClickHeaderButton(e){this.isCalendarHeaderButton(e)&&(e.classList.contains("next-button")?this.calendars[0].add(1,"month"):this.calendars[0].subtract(1,"month"),this.renderAll(this.calendars[0]))}onClickCalendarDay(e){if(this.isCalendarDay(e)){const n=new t.DateTime(e.dataset.time);this.options.autoApply?(this.setDate(n),this.trigger("select",{date:this.getDate()}),this.hide()):(this.datePicked[0]=n,this.trigger("preselect",{date:this.getDate()}),this.renderAll())}}onClickApplyButton(e){if(this.isApplyButton(e)){if(this.datePicked[0]instanceof Date){const e=this.datePicked[0].clone();this.setDate(e)}this.hide(),this.trigger("select",{date:this.getDate()})}}onClickCancelButton(e){this.isCancelButton(e)&&this.hide()}onClick(e){const t=e.target;if(t instanceof HTMLElement){const e=t.closest(".unit");if(!(e instanceof HTMLElement))return;this.onClickHeaderButton(e),this.onClickCalendarDay(e),this.onClickApplyButton(e),this.onClickCancelButton(e)}}isShown(){return this.ui.container.classList.contains("inline")||this.ui.container.classList.contains("show")}show(e){if(this.isShown())return;const t=e&&"target"in e?e.target:this.options.element,{top:n,left:i}=this.adjustPosition(t);this.ui.container.style.top=`${n}px`,this.ui.container.style.left=`${i}px`,this.ui.container.classList.add("show"),this.trigger("show",{target:t})}hide(){this.ui.container.classList.remove("show"),this.datePicked.length=0,this.renderAll(),this.trigger("hide")}setDate(e){const n=new t.DateTime(e,this.options.format);this.options.date=n.clone(),this.updateValues(),this.calendars.length&&this.renderAll()}getDate(){return this.options.date instanceof t.DateTime?this.options.date.clone():null}parseValues(){this.options.date?this.setDate(this.options.date):this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.setDate(this.options.element.value),this.options.date instanceof Date||(this.options.date=null)}updateValues(){const e=this.getDate(),t=e instanceof Date?e.format(this.options.format,this.options.lang):"",n=this.options.element;n instanceof HTMLInputElement?n.value=t:n instanceof HTMLElement&&(n.innerText=t)}hidePicker(e){let t=e.target,n=null;t.shadowRoot&&(t=e.composedPath()[0],n=t.getRootNode().host),this.isShown()&&n!==this.ui.wrapper&&t!==this.options.element&&this.hide()}renderAll(e){this.trigger("render",{view:"Container",date:(e||this.calendars[0]).clone()})}isCalendarHeaderButton(e){return["previous-button","next-button"].some((t=>e.classList.contains(t)))}isCalendarDay(e){return e.classList.contains("day")}isApplyButton(e){return e.classList.contains("apply-button")}isCancelButton(e){return e.classList.contains("cancel-button")}gotoDate(e){const n=new t.DateTime(e,this.options.format);n.setDate(1),this.calendars[0]=n.clone(),this.renderAll()}clear(){this.options.date=null,this.datePicked.length=0,this.updateValues(),this.renderAll(),this.trigger("clear")}handleOptions(){this.options.element instanceof HTMLElement||(this.options.element=this.options.doc.querySelector(this.options.element)),"function"==typeof this.options.documentClick&&document.addEventListener("click",this.options.documentClick,!0),this.options.element instanceof HTMLInputElement&&(this.options.element.readOnly=this.options.readonly),this.options.date?this.calendars[0]=new t.DateTime(this.options.date,this.options.format):this.calendars[0]=new t.DateTime}handleCSS(){if(Array.isArray(this.options.css))this.options.css.forEach((e=>{const t=document.createElement("link");t.href=e,t.rel="stylesheet";const n=()=>{this.cssLoaded++,this.cssLoaded===this.options.css.length&&(this.ui.wrapper.style.display="")};t.addEventListener("load",n),t.addEventListener("error",n),this.ui.shadowRoot.append(t)}));else if("string"==typeof this.options.css){const e=document.createElement("style"),t=document.createTextNode(this.options.css);e.appendChild(t),this.ui.shadowRoot.append(e),this.ui.wrapper.style.display=""}else"function"==typeof this.options.css&&(this.options.css.call(this,this),this.ui.wrapper.style.display="")}adjustPosition(e){const t=e.getBoundingClientRect(),n=this.ui.wrapper.getBoundingClientRect();this.ui.container.classList.add("calc");const i=this.ui.container.getBoundingClientRect();this.ui.container.classList.remove("calc");let o=t.bottom-n.bottom,a=t.left-n.left;return"undefined"!=typeof window&&(window.innerHeight=0&&(o=t.top-n.top-i.height),window.innerWidth=0&&(a=t.right-n.right-i.width)),{left:a,top:o}}}var a=Object.freeze({__proto__:null,Core:o,create:o});e.Core=o,e.create=o,e.easepick=a,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).easepick=e.easepick||{})}(this,(function(e){"use strict";e.BasePlugin=class{picker;options;priority=0;dependencies=[];attach(e){const t=this.getName(),n={...this.options};this.options={...this.options,...e.options[t]||{}};for(const i of Object.keys(n))if(null!==n[i]&&"object"==typeof n[i]&&Object.keys(n[i]).length&&t in e.options&&i in e.options[t]){const o={...e.options[t][i]};null!==o&&"object"==typeof o&&Object.keys(o).length&&Object.keys(o).every((e=>Object.keys(n[i]).includes(e)))&&(this.options[i]={...n[i],...o})}if(this.picker=e,this.dependenciesNotFound()){const e=this.dependencies.filter((e=>!this.pluginsAsStringArray().includes(e)));return void console.warn(`${this.getName()}: required dependencies (${e.join(", ")}).`)}const i=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.add(i),this.onAttach()}detach(){const e=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.remove(e),"function"==typeof this.onDetach&&this.onDetach()}dependenciesNotFound(){return this.dependencies.length&&!this.dependencies.every((e=>this.pluginsAsStringArray().includes(e)))}pluginsAsStringArray(){return this.picker.options.plugins.map((e=>"function"==typeof e?(new e).getName():e))}camelCaseToKebab(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}},Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@easepick/base-plugin"),require("@easepick/datetime")):"function"==typeof define&&define.amd?define(["exports","@easepick/base-plugin","@easepick/datetime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).easepick=e.easepick||{},e.easepick,e.easepick)}(this,(function(e,t,n){"use strict";class i extends t.BasePlugin{rangePlugin;lockPlugin;priority=10;binds={onView:this.onView.bind(this),onColorScheme:this.onColorScheme.bind(this)};options={dropdown:{months:!1,years:!1,minYear:1950,maxYear:null},darkMode:!0,locale:{resetButton:''}};matchMedia;getName(){return"AmpPlugin"}onAttach(){this.options.darkMode&&(this.picker.ui.container.dataset.theme="dark"),this.options.weekNumbers&&this.picker.ui.container.classList.add("week-numbers"),this.picker.on("view",this.binds.onView)}onDetach(){this.options.darkMode&&this.picker.ui.container.removeAttribute("data-theme"),this.picker.ui.container.classList.remove("week-numbers"),this.picker.off("view",this.binds.onView)}onView(e){this.lockPlugin=this.picker.PluginManager.getInstance("LockPlugin"),this.rangePlugin=this.picker.PluginManager.getInstance("RangePlugin"),this.handleDropdown(e),this.handleResetButton(e),this.handleWeekNumbers(e)}onColorScheme(e){const t=e.matches?"dark":"light";this.picker.ui.container.dataset.theme=t}handleDropdown(e){const{view:t,target:i,date:o,index:r}=e.detail;if("CalendarHeader"===t){const e=i.querySelector(".month-name");if(this.options.dropdown.months){e.childNodes[0].remove();const t=document.createElement("select");t.className="month-name--select month-name--dropdown";for(let e=0;e<12;e+=1){const i=document.createElement("option"),r=new n.DateTime(new Date(o.getFullYear(),e,2,0,0,0)),a=new n.DateTime(new Date(o.getFullYear(),e,1,0,0,0));i.value=String(e),i.text=r.toLocaleString(this.picker.options.lang,{month:"long"}),this.lockPlugin&&(i.disabled=this.lockPlugin.options.minDate&&a.isBefore(new n.DateTime(this.lockPlugin.options.minDate),"month")||this.lockPlugin.options.maxDate&&a.isAfter(new n.DateTime(this.lockPlugin.options.maxDate),"month")),i.selected=a.getMonth()===o.getMonth(),t.appendChild(i)}t.addEventListener("change",(e=>{const t=e.target;this.picker.calendars[0].setDate(1),this.picker.calendars[0].setMonth(Number(t.value)),this.picker.renderAll()})),e.prepend(t)}if(this.options.dropdown.years){e.childNodes[1].remove();const t=document.createElement("select");t.className="month-name--select";const i=this.options.dropdown.minYear,r=this.options.dropdown.maxYear?this.options.dropdown.maxYear:(new Date).getFullYear();if(o.getFullYear()>r){const e=document.createElement("option");e.value=String(o.getFullYear()),e.text=String(o.getFullYear()),e.selected=!0,e.disabled=!0,t.appendChild(e)}for(let e=r;e>=i;e-=1){const i=document.createElement("option"),r=new n.DateTime(new Date(e,0,1,0,0,0));i.value=String(e),i.text=String(e),this.lockPlugin&&(i.disabled=this.lockPlugin.options.minDate&&r.isBefore(new n.DateTime(this.lockPlugin.options.minDate),"year")||this.lockPlugin.options.maxDate&&r.isAfter(new n.DateTime(this.lockPlugin.options.maxDate),"year")),i.selected=o.getFullYear()===e,t.appendChild(i)}if(o.getFullYear(){e.innerHTML=e.value,t.appendChild(e)}))}t.addEventListener("change",(e=>{const t=e.target;this.picker.calendars[0].setFullYear(Number(t.value)),this.picker.renderAll()})),e.appendChild(t)}}}handleResetButton(e){const{view:t,target:n}=e.detail;if("CalendarHeader"===t&&this.options.resetButton){const e=document.createElement("button");e.className="reset-button unit",e.innerHTML=this.options.locale.resetButton,e.addEventListener("click",(e=>{e.preventDefault();let t=!0;"function"==typeof this.options.resetButton&&(t=this.options.resetButton.call(this)),t&&this.picker.clear()})),n.appendChild(e)}}handleWeekNumbers(e){if(this.options.weekNumbers){const{view:t,target:i}=e.detail;if("CalendarDayNames"===t){const e=document.createElement("div");e.className="wnum-header",e.innerHTML="Wk",i.prepend(e)}"CalendarDays"===t&&[...i.children].forEach(((e,t)=>{if(0===t||t%7==0){let t;if(e.classList.contains("day"))t=new n.DateTime(e.dataset.time);else{const e=i.querySelector(".day");t=new n.DateTime(e.dataset.time)}let o=t.getWeek(this.picker.options.firstDay);53===o&&0===t.getMonth()&&(o="53/1");const r=document.createElement("div");r.className="wnum-item",r.innerHTML=String(o),i.insertBefore(r,e)}}))}}}e.AmpPlugin=i,Object.defineProperty(e,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@easepick/datetime"),require("@easepick/base-plugin")):"function"==typeof define&&define.amd?define(["exports","@easepick/datetime","@easepick/base-plugin"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).easepick=t.easepick||{},t.easepick,t.easepick)}(this,(function(t,e,n){"use strict";class i extends n.BasePlugin{tooltipElement;triggerElement;binds={setStartDate:this.setStartDate.bind(this),setEndDate:this.setEndDate.bind(this),setDateRange:this.setDateRange.bind(this),getStartDate:this.getStartDate.bind(this),getEndDate:this.getEndDate.bind(this),onView:this.onView.bind(this),onShow:this.onShow.bind(this),onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),onClickCalendarDay:this.onClickCalendarDay.bind(this),onClickApplyButton:this.onClickApplyButton.bind(this),parseValues:this.parseValues.bind(this),updateValues:this.updateValues.bind(this),clear:this.clear.bind(this)};options={elementEnd:null,startDate:null,endDate:null,repick:!1,strict:!0,delimiter:" - ",tooltip:!0,tooltipNumber:t=>t,locale:{zero:"",one:"day",two:"",few:"",many:"",other:"days"},documentClick:this.hidePicker.bind(this)};getName(){return"RangePlugin"}onAttach(){this.binds._setStartDate=this.picker.setStartDate,this.binds._setEndDate=this.picker.setEndDate,this.binds._setDateRange=this.picker.setDateRange,this.binds._getStartDate=this.picker.getStartDate,this.binds._getEndDate=this.picker.getEndDate,this.binds._parseValues=this.picker.parseValues,this.binds._updateValues=this.picker.updateValues,this.binds._clear=this.picker.clear,this.binds._onClickCalendarDay=this.picker.onClickCalendarDay,this.binds._onClickApplyButton=this.picker.onClickApplyButton,Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds.setStartDate},setEndDate:{configurable:!0,value:this.binds.setEndDate},setDateRange:{configurable:!0,value:this.binds.setDateRange},getStartDate:{configurable:!0,value:this.binds.getStartDate},getEndDate:{configurable:!0,value:this.binds.getEndDate},parseValues:{configurable:!0,value:this.binds.parseValues},updateValues:{configurable:!0,value:this.binds.updateValues},clear:{configurable:!0,value:this.binds.clear},onClickCalendarDay:{configurable:!0,value:this.binds.onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds.onClickApplyButton}}),this.options.elementEnd&&(this.options.elementEnd instanceof HTMLElement||(this.options.elementEnd=this.picker.options.doc.querySelector(this.options.elementEnd)),this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.readOnly=this.picker.options.readonly),"function"==typeof this.picker.options.documentClick&&(document.removeEventListener("click",this.picker.options.documentClick,!0),"function"==typeof this.options.documentClick&&document.addEventListener("click",this.options.documentClick,!0)),this.options.elementEnd.addEventListener("click",this.picker.show.bind(this.picker))),this.options.repick=this.options.repick&&this.options.elementEnd instanceof HTMLElement,this.picker.options.date=null,this.picker.on("view",this.binds.onView),this.picker.on("show",this.binds.onShow),this.picker.on("mouseenter",this.binds.onMouseEnter,!0),this.picker.on("mouseleave",this.binds.onMouseLeave,!0),this.checkIntlPluralLocales()}onDetach(){Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds._setStartDate},setEndDate:{configurable:!0,value:this.binds._setEndDate},setDateRange:{configurable:!0,value:this.binds._setDateRange},getStartDate:{configurable:!0,value:this.binds._getStartDate},getEndDate:{configurable:!0,value:this.binds._getEndDate},parseValues:{configurable:!0,value:this.binds._parseValues},updateValues:{configurable:!0,value:this.binds._updateValues},clear:{configurable:!0,value:this.binds._clear},onClickCalendarDay:{configurable:!0,value:this.binds._onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds._onClickApplyButton}}),this.picker.off("view",this.binds.onView),this.picker.off("show",this.binds.onShow),this.picker.off("mouseenter",this.binds.onMouseEnter,!0),this.picker.off("mouseleave",this.binds.onMouseLeave,!0)}parseValues(){if(this.options.startDate||this.options.endDate)this.options.strict?this.options.startDate&&this.options.endDate?this.setDateRange(this.options.startDate,this.options.endDate):(this.options.startDate=null,this.options.endDate=null):(this.options.startDate&&this.setStartDate(this.options.startDate),this.options.endDate&&this.setEndDate(this.options.endDate));else if(this.options.elementEnd)this.options.strict?this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setDateRange(this.picker.options.element.value,this.options.elementEnd.value):(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.setStartDate(this.picker.options.element.value),this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setEndDate(this.options.elementEnd.value));else if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){const[t,e]=this.picker.options.element.value.split(this.options.delimiter);this.options.strict?t&&e&&this.setDateRange(t,e):(t&&this.setStartDate(t),e&&this.setEndDate(e))}}updateValues(){const t=this.picker.options.element,e=this.options.elementEnd,n=this.picker.getStartDate(),i=this.picker.getEndDate(),o=n instanceof Date?n.format(this.picker.options.format,this.picker.options.lang):"",a=i instanceof Date?i.format(this.picker.options.format,this.picker.options.lang):"";if(e)t instanceof HTMLInputElement?t.value=o:t instanceof HTMLElement&&(t.innerText=o),e instanceof HTMLInputElement?e.value=a:e instanceof HTMLElement&&(e.innerText=a);else{const e=`${o}${o||a?this.options.delimiter:""}${a}`;t instanceof HTMLInputElement?t.value=e:t instanceof HTMLElement&&(t.innerText=e)}}clear(){this.options.startDate=null,this.options.endDate=null,this.picker.datePicked.length=0,this.updateValues(),this.picker.renderAll(),this.picker.trigger("clear")}onShow(t){const{target:e}=t.detail;this.triggerElement=e,this.picker.options.scrollToDate&&this.getStartDate()instanceof Date&&this.picker.gotoDate(this.getStartDate()),this.initializeRepick()}onView(t){const{view:n,target:i}=t.detail;if("Main"===n&&(this.tooltipElement=document.createElement("span"),this.tooltipElement.className="range-plugin-tooltip",i.appendChild(this.tooltipElement)),"CalendarDay"===n){const t=new e.DateTime(i.dataset.time),n=this.picker.datePicked,o=n.length?this.picker.datePicked[0]:this.getStartDate(),a=n.length?this.picker.datePicked[1]:this.getEndDate();o&&o.isSame(t,"day")&&i.classList.add("start"),o&&a&&(a.isSame(t,"day")&&i.classList.add("end"),t.isBetween(o,a)&&i.classList.add("in-range"))}if("Footer"===n){const t=1===this.picker.datePicked.length&&!this.options.strict||2===this.picker.datePicked.length;i.querySelector(".apply-button").disabled=!t}}hidePicker(t){let e=t.target,n=null;e.shadowRoot&&(e=t.composedPath()[0],n=e.getRootNode().host),this.picker.isShown()&&n!==this.picker.ui.wrapper&&e!==this.picker.options.element&&e!==this.options.elementEnd&&this.picker.hide()}setStartDate(t){const n=new e.DateTime(t,this.picker.options.format);this.options.startDate=n?n.clone():null,this.updateValues(),this.picker.renderAll()}setEndDate(t){const n=new e.DateTime(t,this.picker.options.format);this.options.endDate=n?n.clone():null,this.updateValues(),this.picker.renderAll()}setDateRange(t,n){const i=new e.DateTime(t,this.picker.options.format),o=new e.DateTime(n,this.picker.options.format);this.options.startDate=i?i.clone():null,this.options.endDate=o?o.clone():null,this.updateValues(),this.picker.renderAll()}getStartDate(){return this.options.startDate instanceof Date?this.options.startDate.clone():null}getEndDate(){return this.options.endDate instanceof Date?this.options.endDate.clone():null}onMouseEnter(t){const n=t.target;if(n instanceof HTMLElement){this.isContainer(n)&&this.initializeRepick();const t=n.closest(".unit");if(!(t instanceof HTMLElement))return;if(this.picker.isCalendarDay(t)){if(1!==this.picker.datePicked.length)return;let n=this.picker.datePicked[0].clone(),i=new e.DateTime(t.dataset.time),o=!1;if(n.isAfter(i,"day")){const t=n.clone();n=i.clone(),i=t.clone(),o=!0}if([...this.picker.ui.container.querySelectorAll(".day")].forEach((a=>{const r=new e.DateTime(a.dataset.time),s=this.picker.Calendar.getCalendarDayView(r);r.isBetween(n,i)&&s.classList.add("in-range"),r.isSame(this.picker.datePicked[0],"day")&&(s.classList.add("start"),s.classList.toggle("flipped",o)),a===t&&(s.classList.add("end"),s.classList.toggle("flipped",o)),a.className=s.className})),this.options.tooltip){const e=this.options.tooltipNumber(i.diff(n,"day")+1);if(e>0){const n=new Intl.PluralRules(this.picker.options.lang).select(e),i=`${e} ${this.options.locale[n]}`;this.showTooltip(t,i)}else this.hideTooltip()}}}}onMouseLeave(t){if(this.isContainer(t.target)&&this.options.repick){const t=this.getStartDate(),e=this.getEndDate();t&&e&&(this.picker.datePicked.length=0,this.picker.renderAll())}}onClickCalendarDay(t){if(this.picker.isCalendarDay(t)){2===this.picker.datePicked.length&&(this.picker.datePicked.length=0);const n=new e.DateTime(t.dataset.time);if(this.picker.datePicked[this.picker.datePicked.length]=n,2===this.picker.datePicked.length&&this.picker.datePicked[0].isAfter(this.picker.datePicked[1])){const t=this.picker.datePicked[1].clone();this.picker.datePicked[1]=this.picker.datePicked[0].clone(),this.picker.datePicked[0]=t.clone()}1!==this.picker.datePicked.length&&this.picker.options.autoApply||this.picker.trigger("preselect",{start:this.picker.datePicked[0]instanceof Date?this.picker.datePicked[0].clone():null,end:this.picker.datePicked[1]instanceof Date?this.picker.datePicked[1].clone():null}),1===this.picker.datePicked.length&&(!this.options.strict&&this.picker.options.autoApply&&(this.picker.options.element===this.triggerElement&&this.setStartDate(this.picker.datePicked[0]),this.options.elementEnd===this.triggerElement&&this.setEndDate(this.picker.datePicked[0]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()})),this.picker.renderAll()),2===this.picker.datePicked.length&&(this.picker.options.autoApply?(this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide()):(this.hideTooltip(),this.picker.renderAll()))}}onClickApplyButton(t){this.picker.isApplyButton(t)&&(1!==this.picker.datePicked.length||this.options.strict||(this.picker.options.element===this.triggerElement&&(this.options.endDate=null,this.setStartDate(this.picker.datePicked[0])),this.options.elementEnd===this.triggerElement&&(this.options.startDate=null,this.setEndDate(this.picker.datePicked[0]))),2===this.picker.datePicked.length&&this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide())}showTooltip(t,e){this.tooltipElement.style.visibility="visible",this.tooltipElement.innerHTML=e;const n=this.picker.ui.container.getBoundingClientRect(),i=this.tooltipElement.getBoundingClientRect(),o=t.getBoundingClientRect();let a=o.top,r=o.left;a-=n.top,r-=n.left,a-=i.height,r-=i.width/2,r+=o.width/2,this.tooltipElement.style.top=`${a}px`,this.tooltipElement.style.left=`${r}px`}hideTooltip(){this.tooltipElement.style.visibility="hidden"}checkIntlPluralLocales(){if(!this.options.tooltip)return;const t=[...new Set([new Intl.PluralRules(this.picker.options.lang).select(0),new Intl.PluralRules(this.picker.options.lang).select(1),new Intl.PluralRules(this.picker.options.lang).select(2),new Intl.PluralRules(this.picker.options.lang).select(6),new Intl.PluralRules(this.picker.options.lang).select(18)])],e=Object.keys(this.options.locale);t.every((t=>e.includes(t)))||console.warn(`${this.getName()}: provide locales (${t.join(", ")}) for correct tooltip text.`)}initializeRepick(){if(!this.options.repick)return;const t=this.getStartDate(),e=this.getEndDate();e&&this.triggerElement===this.picker.options.element&&(this.picker.datePicked[0]=e),t&&this.triggerElement===this.options.elementEnd&&(this.picker.datePicked[0]=t)}isContainer(t){return t===this.picker.ui.container}}t.RangePlugin=i,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@easepick/datetime"),require("@easepick/base-plugin")):"function"==typeof define&&define.amd?define(["exports","@easepick/datetime","@easepick/base-plugin"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).easepick=t.easepick||{},t.easepick,t.easepick)}(this,(function(t,e,n){"use strict";class i extends n.BasePlugin{priority=1;binds={onView:this.onView.bind(this)};options={minDate:null,maxDate:null,minDays:null,maxDays:null,selectForward:null,selectBackward:null,presets:!0,inseparable:!1,filter:null};getName(){return"LockPlugin"}onAttach(){if(this.options.minDate&&(this.options.minDate=new e.DateTime(this.options.minDate,this.picker.options.format,this.picker.options.lang)),this.options.maxDate&&(this.options.maxDate=new e.DateTime(this.options.maxDate,this.picker.options.format,this.picker.options.lang),this.options.maxDate instanceof e.DateTime&&this.picker.options.calendars>1&&this.picker.calendars[0].isSame(this.options.maxDate,"month"))){const t=this.picker.calendars[0].clone().subtract(1,"month");this.picker.gotoDate(t)}if((this.options.minDays||this.options.maxDays||this.options.selectForward||this.options.selectBackward)&&!this.picker.options.plugins.includes("RangePlugin")){const t=["minDays","maxDays","selectForward","selectBackward"];console.warn(`${this.getName()}: options ${t.join(", ")} required RangePlugin.`)}this.picker.on("view",this.binds.onView)}onDetach(){this.picker.off("view",this.binds.onView)}onView(t){const{view:n,target:i,date:a}=t.detail;if("CalendarHeader"===n&&(this.options.minDate instanceof e.DateTime&&a.isSameOrBefore(this.options.minDate,"month")&&i.classList.add("no-previous-month"),this.options.maxDate instanceof e.DateTime&&a.isSameOrAfter(this.options.maxDate,"month")&&i.classList.add("no-next-month")),"CalendarDay"===n){const t=this.picker.datePicked.length?this.picker.datePicked[0]:null;if(this.testFilter(a))return void i.classList.add("locked");if(this.options.inseparable){if(this.options.minDays){const t=a.clone().subtract(this.options.minDays-1,"day"),e=a.clone().add(this.options.minDays-1,"day");let n=!1,o=!1;for(;t.isBefore(a,"day");){if(this.testFilter(t)){n=!0;break}t.add(1,"day")}for(;e.isAfter(a,"day");){if(this.testFilter(e)){o=!0;break}e.subtract(1,"day")}n&&o&&i.classList.add("not-available")}this.rangeIsNotAvailable(a,t)&&i.classList.add("not-available")}this.dateIsNotAvailable(a,t)&&i.classList.add("not-available")}if(this.options.presets&&"PresetPluginButton"===n){const t=new e.DateTime(Number(i.dataset.start)),n=new e.DateTime(Number(i.dataset.end)),a=n.diff(t,"day"),o=this.options.minDays&&athis.options.maxDays;(o||r||this.lockMinDate(t)||this.lockMaxDate(t)||this.lockMinDate(n)||this.lockMaxDate(n)||this.rangeIsNotAvailable(t,n))&&i.setAttribute("disabled","disabled")}}dateIsNotAvailable(t,e){return this.lockMinDate(t)||this.lockMaxDate(t)||this.lockMinDays(t,e)||this.lockMaxDays(t,e)||this.lockSelectForward(t)||this.lockSelectBackward(t)}rangeIsNotAvailable(t,e){if(!t||!e)return!1;const n=(t.isSameOrBefore(e,"day")?t:e).clone(),i=(e.isSameOrAfter(t,"day")?e:t).clone();for(;n.isSameOrBefore(i,"day");){if(this.testFilter(n))return!0;n.add(1,"day")}return!1}lockMinDate(t){return this.options.minDate instanceof e.DateTime&&t.isBefore(this.options.minDate,"day")}lockMaxDate(t){return this.options.maxDate instanceof e.DateTime&&t.isAfter(this.options.maxDate,"day")}lockMinDays(t,e){if(this.options.minDays&&e){const n=e.clone().subtract(this.options.minDays-1,"day"),i=e.clone().add(this.options.minDays-1,"day");return t.isBetween(n,i)}return!1}lockMaxDays(t,e){if(this.options.maxDays&&e){const n=e.clone().subtract(this.options.maxDays,"day"),i=e.clone().add(this.options.maxDays,"day");return!t.isBetween(n,i)}return!1}lockSelectForward(t){if(1===this.picker.datePicked.length&&this.options.selectForward){const e=this.picker.datePicked[0].clone();return t.isBefore(e,"day")}return!1}lockSelectBackward(t){if(1===this.picker.datePicked.length&&this.options.selectBackward){const e=this.picker.datePicked[0].clone();return t.isAfter(e,"day")}return!1}testFilter(t){return"function"==typeof this.options.filter&&this.options.filter(t,this.picker.datePicked)}}t.LockPlugin=i,Object.defineProperty(t,"__esModule",{value:!0})})),$(document).ready((function(){if($("#back-to-top").length){var e=function(){$(window).scrollTop()>500?$(".btt").addClass("show"):$(".btt").removeClass("show")};e(),$(window).on("scroll",(function(){e()})),$("#back-to-top").on("click",(function(e){return isItBtt=1,$("html, body").animate({scrollTop:0},"slow",(function(){isItBtt=0})),!1}))}})),$(document).ready((function(){var e=jQuery(window).width();function i(){!function(){var n;n=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.offsetWidth,window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.offsetHeight;var vh=.01*window.innerHeight-2;document.documentElement.style.setProperty("--vh","".concat(vh,"px"));var i=jQuery(window).width();null!==document.querySelector(".select-opener.sort-select")&&($(".select-opener.sort-select").offset().top>160?($(".filter-item.sort.sort-dropdown:not(.mobile-filter-buttons-box)").addClass("wrapped"),left_offset(e,i,!0)):null!==document.querySelector(".wrapped")&&($(".filter-item.sort.sort-dropdown").removeClass("wrapped"),left_offset(e,i,!0))),null!==document.querySelector(".sort-dropdown-content-box")&&left_offset(e,i),e=i,n>1600?$(".default-block.most-popular-news-block").css("padding","66px "+document.getElementById("shell").getBoundingClientRect().left+"px"):$(".default-block.most-popular-news-block").removeAttr("style"),n<500&&$(".header__inner_justify_end .link:not(:first)").each((function(){$(this).children("em").length>0&&($(this).addClass("link_display_mobile"),$("section.content").css("padding-top",$(".headroom").height()+20))})),n<785?$("footer.site_footer").css("padding-top","20px"):($("footer.site_footer").css("border-top","0 none"),$("footer.site_footer").css("padding-top","0"))}()}$("footer.site_footer").children(".most-popular-news-block").length&&$("footer.site_footer").css("margin-top","0"),i(),window.onresize=i,$("a.more_detail_link").click((function(){return $(this).closest("td").find("textarea.more_detail_area").slideToggle(150),!1}));var t=1;$(".tab_buttons").each((function(){t=1,$(this).find("> li").each((function(){$(this).addClass("tab"+t),t++}))})),$(".tabs_content").each((function(){t=1,$(this).find("> li").each((function(){$(this).addClass("tab"+t),t++}))})),$(".tab_buttons li a").click((function(){$(this).parents(".tab_buttons").find("li").removeClass("active");var e=$(this).parent().attr("class");return $(this).parent().parent().parent().find(".tabs_content li").hide(),$(this).parent().parent().parent().find(".tabs_content li."+e).show(),$(this).parent().addClass("active"),$(".pagination li").show(),$(".smilleys li").show(),!1})),$("ul.pagination li").each((function(){$(this).hasClass("active")&&$(this).closest("li").next().hasClass("next_page")?$("ul.pagination li.next_page").hide():$(this).hasClass("active")&&$(this).closest("li").prev().hasClass("prev_page")&&$("ul.pagination li.prev_page").hide()})),$(".binfo_right .binfo_link a").click((function(){return $(this).parents(".binfo_right").find(".blog_description").slideToggle(150),!1})),$('input[type="checkbox"]').change((function(){$(this).prop("checked")?$(this).parent(".checkbox").addClass("checked"):$(this).parent(".checkbox").removeClass("checked")})),$(".checkbox").click((function(){$(this).parent().find("label").click()})),$('input[type="checkbox"]').each((function(){"checked"===$(this).attr("checked")?$(this).parent(".checkbox").addClass("checked"):$(this).parent(".checkbox").removeClass("checked")})),$(".radio").on("click",(function(){var e=$(this).find('input[type="radio"]').attr("id");$("label").each((function(){$(this).attr("for")===e&&(console.log($(this).attr("for")),$(this).click())}))})),$('input[type="radio"]').on("change",(function(){$('input[type="radio"]').each((function(){$(this).prop("checked")?(console.log("test"),$(this).parent(".radio").addClass("checked")):$(this).parent(".radio").removeClass("checked")}))})),$(".face").click((function(){return $(this).find(".face_panel").slideToggle(1),$(this).toggleClass("active"),!1})),$(".profile_personal_sized tr:first-child th:first-child").width($(".profile_personal tr:first-child th:first-child").width()),$(".categories_mobile").on("click",null,(function(){return $(".main_menu_mobile").removeClass("main_menu").addClass("main_menu"),$(".main_menu_mobile").is(":visible"),$(".main_menu_mobile").slideToggle(150),!1})),$(".top_ranking_mobile a.button_comments").click((function(){return $(".top_ranking_mobile a").removeClass("active"),$(this).addClass("active"),$(".half_left.border").hide(),$(".half_right.border").show(),!1})),$(".top_ranking_mobile a.button_rating").click((function(){return $(".top_ranking_mobile a").removeClass("active"),$(this).addClass("active"),$(".half_left.border").show(),$(".half_right.border").hide(),!1})),n(document.getElementById("main_search")),n(document.getElementById("your_email")),n(document.getElementById("search_in_blog")),n(document.getElementById("find_user")),n(document.getElementById("find_question")),n(document.getElementById("find_question_1"))})),jQuery.fn.toggleAttr=function(e){return this.each((function(){var n=$(this);n.attr(e)?n.removeAttr(e):n.attr(e,e)}))},$(document).ready((function(){$("input#main_search").on("click",(function(){if(!$("html").hasClass("chrome-hide-overflow")){var e=$("html").scrollTop()?$("html").scrollTop():$("body").scrollTop();window.innerWidth>768&&$("#search-overlay-shadow").addClass("on-search").focus(),$("html").addClass("chrome-hide-overflow").css("top",-e)}e=parseInt($("html").css("top"));$("input#main_search").on({focusout:function(){$(this).data("timer",setTimeout(function(){$("html").removeClass("chrome-hide-overflow").css("top",""),$("html,body").scrollTop(-e),$("#search-overlay-shadow").removeClass("on-search")}.bind(this),0))},focusin:function(){clearTimeout($(this).data("timer"))},keydown:function(n){27===n.which&&($("html").removeClass("chrome-hide-overflow").css("top",""),$("html,body").scrollTop(-e),window.innerWidth>768&&$("#search-overlay-shadow").removeClass("on-search"),$("input#main_search").val(""),n.preventDefault())}})})),$(".advanced-options-icon").on("click",(function(e){e.preventDefault();var n=$("html").scrollTop()?$("html").scrollTop():$("body").scrollTop();let i=new URLSearchParams(window.location.search);if(i.has("q"))var o=i.get("q");if(i.has("start"))var r=i.get("start");if(i.has("exact"))var s=i.get("exact");if(i.has("or"))var l=i.get("or");if(i.has("sub"))var c=i.get("sub");if(i.has("category"))var u=i.get("category");if(i.has("subcategory"))var d=i.get("subcategory");if(i.has("isbn"))var p=i.get("isbn");var h={};""!=o&&(h.q=o),""!=r&&(h.start=r),""!=s&&(h.exact=s),""!=l&&(h.or=l),""!=c&&(h.sub=c),""!=p&&(h.isbn=p),""!=u&&(h.category=u),""!=d&&(h.subcategory=d),$.ajax({url:"/ajax/advancedSearch.ajax.php",type:"POST",cache:!1,data:h,success:function(e){$.magnificPopup.open({type:"inline",focus:"#ext-search-all-words",items:{src:e},fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,closeOnContentClick:!1,midClick:!1,removalDelay:200,mainClass:"my-mfp-slide-bottom",callbacks:{open:function(){jQuery("html").addClass("chrome-hide-overflow").css("top",-n),$(".extended-search-form-block").find("input[name=q]").focus()},close:function(){var e=parseInt($("html").css("top"));jQuery("html").removeClass("chrome-hide-overflow").css("top",""),$("html,body").scrollTop(-e)}}})}})}))})),$(document).ready((function(){$(".profile-email-edit-link").click((function(){return $(".profile-email-info-field").hide(),$(".profile-email-edit-link").hide(),$(".profile-email-edit-field").fadeIn().focus(),$(".profile-email-save-link").css("opacity",0).addClass("visible").animate({opacity:1},300),$(".profile-email-cancel-link").css("opacity",0).addClass("visible").animate({opacity:1},300),$(".profile-email-edit-field").val($(".profile-email-edit-field").val()),!1})),$(".profile-email-cancel-link").click((function(){return $(".profile-email-save-link").css("opacity",0),$(".profile-email-cancel-link").css("opacity",0),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-edit-field").fadeOut("fast",(function(){$(".profile-email-info-field").fadeIn(),$(".profile-email-edit-link").fadeIn()})),!1})),$(".profile-email-edit-field").on("keypress",(function(e){return 13===e.keyCode?($(".profile-email-save-link").trigger("click"),!1):27===e.keyCode?($(".profile-email-cancel-link").trigger("click"),!1):void 0})),$(".delete-email").click((function(e){return!0===window.confirm("Are you sure? You will not be able to reset your password!")&&$.ajax({url:"/ajax/profileHelperFunctions.ajax.php",type:"post",dataType:"text",data:{action:"delete_email"},success:function(t){$(".profile-email-info-field").text("N/A"),$(".delete-email").remove()}}),e.preventDefault(),!1})),$(".profile-email-save-link").click((function(e){$(".profile-email-edit-field").removeClass("error");return $(".profile-email-edit-field").val()===$(".profile-email-info-field").text()?($(".profile-email-edit-field").fadeOut("fast",(function(){$(".profile-email-save-link").css("opacity",0),$(".profile-email-cancel-link").css("opacity",0),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-info-field").fadeIn(),$(".profile-email-edit-link").fadeIn()})),!1):(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test($(".profile-email-edit-field").val())?$.ajax({url:"/ajax/profileHelperFunctions.ajax.php",type:"post",dataType:"text",data:{action:"change_email",new_email:$(".profile-email-edit-field").val()},success:function(t){t?($(".profile-email-edit-field").fadeOut("fast",(function(){$(".profile-email-save-link").css("opacity",0),$(".profile-email-cancel-link").css("opacity",0),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-save-link").removeClass("visible"),$(".profile-email-info-field").fadeIn(),$(".profile-email-edit-link").fadeIn()})),$(".profile-email-info-field").text($(".profile-email-edit-field").val()),$(".email-successfully-changed-box").show()):alert("Incorrect email address")}}):(alert("Incorrect email address"),$(".profile-email-edit-field").addClass("error")),e.preventDefault(),!1)}))}));var r=function(e,n){var i=e,o=n,r="",s=0;for(var l in i)s<3&&(r+=i[l]),"/"===i[l]&&s++;return r.length+o>=i.length?i:r+"..."+i.substr(i.length-o)};function shortURL(){$(".auto_link").replaceWith((function(){return''+r($(this).html(),15)+""}))}$(document).ready((function(){var e,n=!1;if(window.innerWidth>1e3){var i=0;$(window).on("scroll",(function(e){var o=$(this).scrollTop();if(o>=105){o>i&&!$("html").hasClass("chrome-hide-overflow")&&!$(".headroom").hasClass("headroom-fixed")&&($(".headroom").addClass("headroom-hidden"),$(".headroom").addClass("headroom-fixed"),setTimeout((function(){$(".headroom").addClass("headroom-animation")}),180),n=!1),$(document).on("mouseleave",(function(e){e.stopPropagation(),e.clientY<=0&&(!1===n&&$(".headroom").hasClass("headroom-fixed")||!0===n&&$(".headroom").hasClass("headroom-hidden"))&&($(".headroom").removeClass("headroom-hidden"),n=!0)})),$(document).on("mouseenter",(function(e){e.stopPropagation(),!0===n&&e.clientY>111&&$(".headroom").hasClass("headroom-fixed")&&!$("html").hasClass("chrome-hide-overflow")&&($(".headroom").addClass("headroom-hidden"),n=!1)})),$(document).on("mouseenter",".headroom",(function(e){$(".headroom").hasClass("headroom-fixed")&&!1===n&&($(".headroom").removeClass("headroom-hidden"),n=!0)})),$(document).on("mouseleave",".headroom",(function(e){!0===n&&$(".headroom").hasClass("headroom-fixed")&&!$("html").hasClass("chrome-hide-overflow")&&($(".headroom").addClass("headroom-hidden"),n=!1)})),i=o}else $("html").hasClass("chrome-hide-overflow")||($(".headroom").removeClass("headroom-fixed"),$(".headroom").removeClass("headroom-animation headroom-hidden"))}))}$("input, textarea").on("keydown",(function(e){e.stopPropagation()})),$(document).keydown((function(){return 191==event.keyCode&&!0===n?($("#main_search").focus(),setTimeout((function(){$("#main_search").trigger("click")}),150),!1):191==event.keyCode&&!1===n?($(".headroom").removeClass("headroom-hidden"),n=!0,$("#main_search").focus(),setTimeout((function(){$("#main_search").trigger("click")}),150),!1):void 0})),$(document).on("mouseenter",".a4",(function(){if(window.innerWidth>800){var n=$(this).find(".a3"),i=document.body.scrollWidth||window.innerWidth;null!=e&&clearTimeout(e),e=setTimeout((function(){if(!$(this).is($(".a4:last"))){n.addClass("showDd");var e=n[0]&&n[0].getBoundingClientRect(),o=0;void 0!==e&&(e.left<=0&&n.css({left:n.css("left").split("px")[0]-e.left+"px"}),(o=i-e.left-n.width()-2*n.css("borderWidth").split("px")[0])<0&&n.css({left:n.css("left").split("px")[0]- -o+"px"}))}}),300)}})),$(document).on("mouseleave",".a4",(function(){null!=e&&(clearTimeout(e),e=null),$(this).find(".a3").removeClass("showDd").attr("style","")}));var o=$(".popup.search"),r=$(".search__field");$(".header__inner_justify_end").on("click",".search-button",(function(e){e.preventDefault(),document.getElementById("chrome-sticky-header").getAttribute("style")&&$(".headroom").removeAttr("style"),o.addClass("fade-search-popup-enter fade-search-popup-enter-active"),r.addClass("fade-search-field-enter fade-search-field-enter-active"),$(".popup").css("display",""),r.css("display",""),setTimeout((function(){o.removeClass("fade-search-popup-enter"),o.addClass("fade-search-popup-enter-to"),o.removeClass("fade-search-popup-enter-active fade-search-popup-enter-to")}),100),setTimeout((function(){r.removeClass("fade-search-field-enter"),r.addClass("fade-search-field-enter-to"),r.removeClass("fade-search-field-enter-to fade-search-field-enter-active"),r.focus()}),200),$(".autocomplete-suggestions").length&&$(".autocomplete-suggestions").remove(),$(".search__form input").autoComplete({minChars:4,cache:!1,menuClass:"mobile",source:function(e,n){try{xhr.abort()}catch(e){}xhr=$.getJSON("/ajax/getSearchKeywords.ajax.php",{q:e},(function(e){n(e)}))}})})),$(".popup__control_close").on("click",(function(e){e.preventDefault(),o.addClass("fade-search-popup-leave fade-search-popup-leave-active"),r.addClass("fade-search-field-leave fade-search-field-leave-active"),setTimeout((function(){r.removeClass("fade-search-field-leave").addClass("fade-search-field-leave-to")}),70),setTimeout((function(){o.removeClass("fade-search-popup-leave").addClass("fade-search-popup-leave-to")}),150),setTimeout((function(){o.removeClass("fade-search-popup-leave-active fade-search-popup-leave-to"),r.removeClass("fade-search-field-leave-active fade-search-field-leave-to"),$(".popup").css("display","none"),r.css("display","none")}),270)})),$(".tags-filter-checkbox-input-box a").click((function(){$(".tags-filter-checkbox-input-box a").removeClass("active"),$(this).addClass("active"),$(this).hasClass("any")?$("#tags_filter_option").val("any"):$("#tags_filter_option").val("all")}))})),$(document).ready((function(){var clipboard=new ClipboardJS(".cB");clipboard.on("success",(function(e){var n,i;n=e.trigger,i="Copied!",n.setAttribute("aria-label",i),$(n).find("svg").remove(),$(n).append(''),setTimeout((function(){$(n).find("svg").remove(),$(n).append(''),n.setAttribute("aria-label","Copy link to clipboard")}),2e3)})),clipboard.on("error",(function(e){})),$(".share-popup button").on("click",(function(e){0===$(".sharing_is_caring").length?navigator.share&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?navigator.share({title:$("h1.item_title>span").text(),url:$(location).attr("href")}).then((()=>console.log("Successful share"))).catch((e=>console.log("Error sharing",e))):($(".ui-lib-context-menu").remove(),$(".share-popup").append(''),new ClipboardJS(".sh_copy").on("success",(function(e){$(".sh-context-menu__item-text").text("Copied")}))):$(".ui-lib-context-menu").remove();e.stopPropagation(),$("html").click((function(e){$(".ui-lib-context-menu").is(e.target)||0!==$(".ui-lib-context-menu").has(e.target).length||$(".ui-lib-context-menu").remove()}))}))})),$(document).ready((function(){$(".confirm_ajaxLink").click((function(e){e.preventDefault();var n=$(this).attr("href");return $.ajax({url:n,type:"POST",dataType:"json",data:{request_type:"ajax"},success:function(e){"show"==e.method&&($("#confirm_url_popup").html(e.html),$("#open_confirm_url_popup").trigger("click")),"ok"==e.method&&(window.location=e.url)}}),!1})),null!==document.querySelector(".sort-dropdown-content-box")&&left_offset(),null!==document.querySelector(".select-opener.sort-select")&&$(".select-opener.sort-select").offset().top>160&&$(".filter-item.sort.sort-dropdown:not(.mobile-filter-buttons-box)").addClass("wrapped")}));var s=function(e){var n="0";if($('[name="dont_ask"]').is(":checked"))n="1";$.ajax({type:"POST",url:"/ajax/confirm_url_dont_ask.ajax.php",data:{checkbox_value:n},dataType:"text",success:function(a){}})},l=function(e){return window.location=e,!1},left_offset=function(e,n,i){$(".sort-dropdown-content-box").each((function(){i&&jQuery(this).css("--left-offset","0px");var o=$(this).outerWidth(!0),r=jQuery(this)[0].getBoundingClientRect().left+$(window).scrollLeft(),s=$(window).width()-(jQuery(this).offset().left+jQuery(this).outerWidth());"0px"===jQuery(this).css("--left-offset")?jQuery(this).css("--left-offset",-(-(o-($(window).width()-r)+10)>0?0:o-($(window).width()-r)+10)+"px"):e>n&&s<10?jQuery(this).css("--left-offset",(parseFloat(jQuery(this).css("--left-offset"))-(e-n)>0?0:parseFloat(jQuery(this).css("--left-offset"))-(e-n))+"px"):s<10?jQuery(this).css("--left-offset",parseFloat(jQuery(this).css("--left-offset"))-1+"px"):jQuery(this).css("--left-offset",parseFloat(jQuery(this).css("--left-offset"))+1+"px")}))},vh=.01*window.innerHeight-2;document.documentElement.style.setProperty("--vh","".concat(vh,"px"));$(document).ready(function(){$('.most-popular-news-block').each(function(){$(this).find('.content-list:first').addClass('visible');});$('.time-toggle-buttons-box').on('click', '.toggle-menu__item:not(.active)', function() {$(this).addClass('active').siblings().removeClass('active').parents('.most-popular-news-block').find('.content-list').hide().eq($(this).index()).fadeIn(0);});});
Skillshare For Beginners Fast Track Training (2024)
Top Articles
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 5659

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.