(t=>{t(document).ready(function(n){var o;n=jQuery.noConflict(),o="action=bookingor_weekly_chart",o+="&nonce="+TCN_BIND.nonce,n.ajax({url:TCN_BIND.GET_URL,type:"POST",data:o,dataType:"json",success:function(o){var e,t;n("#bookingor-chart")[0]&&(e=n.map(o,function(o){return o.date}),o=n.map(o,function(o){return parseFloat(o.daily_sum)}),t=n("#bookingor-chart")[0].getContext("2d"),new Chart(t,{type:"line",data:{labels:e,datasets:[{label:"Daily Sum",data:o,backgroundColor:"rgba(75, 192, 192, 0.2)",borderColor:"rgb(75, 192, 192)",borderWidth:1,tension:.1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,ticks:{callback:function(o,e,t){return"".concat(o," %")}}}}}}))},complete:function(o,e){n(".bookingor-container").removeClass("bookingor-d-none")}})}),t("#secure-this-bookingor").on("click",function(o){o.preventDefault();o=t('select[name="settings_license_code_id"]').val(),o={edd_action:"check_license",lc_code:t('input[name="settings_license_code"]').val(),nonce:TCN_BIND.nonce,it_id:encodeURIComponent(o),action:"aktBookingor"};t.post({url:TCN_BIND.GET_URL,data:o,dataType:"json",beforeSend:function(){t.toast({text:"Processing...",icon:"info",position:"bottom-right"})},success:function(o){console.log(o),"success"===o.status&&"valid"===o.license?t.toast({text:o.message,icon:"success",position:"bottom-right"}):"error"===o.status&&"inactive"===o.license?t.toast({text:o.message,icon:"error",position:"bottom-right"}):"invalid_item_id"===o.license?t.toast({text:"Invalid Selected Plan. Please select a valid plan.",icon:"error",position:"bottom-right"}):t.toast({text:"Contact Bookingor Support",icon:"error",position:"bottom-right"})},complete:function(o,e){t("#bookingor-lc-code").attr("disabled",!0),window.location.href=res.redirect_url}})}),t("#example-vertical").steps({headerTag:"h3",bodyTag:"section",transitionEffect:"slideLeft",enableAllSteps:!0,stepsOrientation:"vertical"})})(jQuery);