{"status":"success","message":"","html":"      <input type=\"hidden\" id=\"txt-calendar-item\" value=\"{}\"><input type=\"hidden\" id=\"txt-calendar-maxqty\" value=\"\"><input type=\"hidden\" id=\"txt-calendar-now\" value=\"2026-04-04T18:02:33-05:00\"><input type=\"hidden\" id=\"txt-current-date\" value=\"2026-04-04T18:02:33-05:00\"><input type=\"hidden\" id=\"price-current-day\" value=\"2026-04\"><div class=\"calendar-loader\"><div class=\"loading-mask\" id=\"bo-loading-call\" style=\"display: none;\"><div class=\"loader\"><img style=\"position: absolute;\" alt=\"Please wait....\" src=\"https:\/\/onlyluxe.com.au\/static\/frontend\/OnlyLuxe\/OnlyLuxeTheme\/en_US\/images\/loader-1.gif\"><\/div><\/div><div id=\"price-full-calendar\"><\/div><\/div><script>\n\n    require([\n        'jquery',\n        'moment',\n        'book_full_calendar',\n    ],function ($,moment) {\n        var strReport = $('#txt-calendar-item').val();\n\n        var cnow =  $('#txt-calendar-now').val();\n        var cdate =  $('#txt-current-date').val();\n\n        strReport = JSON.parse(strReport);\n        var calendar = $('#price-full-calendar').fullCalendar({\n            now : $('#txt-calendar-now').val(),\n            \n            buttonHtml: {\n                prev: '<i class=\"ace-icon fa fa-chevron-left\"><\/i>',\n                next: '<i class=\"ace-icon fa fa-chevron-right\"><\/i>'\n            },\n            header: {\n                left: 'prev',\n                center: 'title',\n                right: 'month,next'\n            },\n            events: strReport,\n            editable: false,\n            droppable: false, \n            selectable: false,\n            selectHelper: true,\n            select: function(start, end, allDay) {\n                console.log('12355666');\n                bootbox.prompt(\"New Event Title:\", function(title) {\n                    if (title !== null) {\n                        calendar.fullCalendar('renderEvent',\n                            {\n                                title: title,\n                                start: start,\n                                end: end,\n                                allDay: allDay,\n                                className: 'label-info'\n                            },\n                            true \n                        );\n                    }\n                });\n                calendar.fullCalendar('unselect');\n            },\n            viewRender: function(currentView){\n              \n\n                \n                if(cnow == cdate){  \n\n                    $(\".fc-prev-button\").prop('disabled', true); \n                    $(\".fc-prev-button\").addClass('fc-state-disabled'); \n                }\n                else {\n                    $(\".fc-prev-button\").removeClass('fc-state-disabled'); \n                    $(\".fc-prev-button\").prop('disabled', false); \n                }\n               \n    },\n\n       showNonCurrentDates: false,\n\n            eventClick: function(calEvent, jsEvent, view) {\n\n                var longformat =   $('#long-format-date').val();\n\n             var datepic = moment(calEvent.start._i).format(longformat);\n\n\n\nvar dateString = moment(calEvent.start._i).format(\"YYYY-MM-DD\");\n\n $('.fc-day').removeAttr(\"style\");\n\n  $(view.el[0]).find('.fc-day[data-date=' + dateString + ']').css('background-color', '#f1cf64');\n\n\n                $('#start-date').val(datepic);\n                $('#end-date').val(datepic);\n                \n                \n                \n                \n                \n\n                \n               \n\n            }\n        });\n\n    \n\n  \n$('tr').each(function( index ) {\n\n    var $this = $(this);\n    $this.children(\"td\").each(function(pindex){\n\n      var finindex = pindex+1;\n        if($(this).hasClass('fc-empty')){\n\n     var datatd = $this.parent().parent().parent().parent().find('.fc-bg tbody tr td:nth-child('+finindex+')').closest('td');\n\n      var datad = datatd.attr('data-date');\n\n\n    if( typeof datad  !== 'undefined') {\n        datatd.addClass('fc-bg-empty');\n   }\n\n var datatdskel = $this.parent().parent().parent().parent().find('.fc-content-skeleton thead tr td:nth-child('+finindex+')').closest('td');\n\n  var datask = datatdskel.attr('data-date');\n\n if( typeof datask  !== 'undefined') {\n        datatdskel.addClass('unavailable');\n   }\n\n\n         }\n    });\n \n});\n\nvar maxqty = $('#txt-calendar-maxqty').val();\n\n\nvar qtysel  = $(\"#qty\").val();\n\n$(\"#qty\").empty();\n\n\n\n\nfor (i = 1; i <= maxqty; i++)\n{ \n     $('#qty').append($('<option>',\n     {\n        value: i,\n        text : i \n    }));\n}\n\n\nif (typeof qtysel !== 'undefined' && qtysel !== null){\n  if(1 >= maxqty){\n    $('#qty').val(1);\n    $(\"#qty_custom\").val(1);\n\n  }else{\n        $('#qty').val(qtysel);\n        $(\"#qty_custom\").val(qtysel);\n\n        var dropdwnqty = $('#qty').val();\n\n        if(dropdwnqty == null ){\n         $(\"#booking-more-choose\").show();   \n        }else{\n            $(\"#booking-more-choose\").hide();\n        }\n\n\n   }\n}else{\n  if(1 >= maxqty){\n    $('#qty').val(1);\n    $(\"#qty_custom\").val(1);\n\n  }else{  \n    $('#qty').val(2);\n    $(\"#qty_custom\").val(2);\n  }\n}\n\n\n        $('#price-full-calendar').on(\"click\",\".fc-prev-button\",function () {\n            if($('.fc-month-button').hasClass('fc-state-active'))\n            {\n                $(\"#booking-more-choose\").hide();\n               \n                $('#book-price-action').val('prev');\n                $('#tab-label-calendar_tab').click();\n            }\n\n        })\n        $('#price-full-calendar').on(\"click\",\".fc-next-button\",function () {\n            if($('.fc-month-button').hasClass('fc-state-active'))\n            {\n                $(\"#booking-more-choose\").hide();\n                \n                $('#book-price-action').val('next');\n                $('#tab-label-calendar_tab').click();\n            }\n        })\n    })<\/script>"}