1import{__name}from"./chunk-A6LPM36J.js";var _HolidayPlanner=class _HolidayPlanner{static async updateHolidayPlannerAccountAccess(items,total=null){var _a,_b,_c;let updateItems=__name(totalValue=>{items.each(function(){let $item=$(this),$icon=$item.find(".icon-user, .icon-user-active"),$totalLabel=$item.find(".total");$item.attr("data-total",totalValue),$totalLabel.length&&$totalLabel.text(totalValue),totalValue>0?$icon.hasClass("icon-user")&&$icon.removeClass("icon-user").addClass("icon-user-active"):$icon.hasClass("icon-user-active")&&$icon.removeClass("icon-user-active").addClass("icon-user")})},"updateItems");if(total!==null&&typeof total<"u"){let totalInt=parseInt(total,10);if(!isNaN(totalInt)){updateItems(totalInt);return}}let endpoint=(_b=(_a=window==null?void 0:window.base_client)==null?void 0:_a.endpoints)==null?void 0:_b.holiday_planner_counter;if(!(!endpoint||!items||items.length===0))try{let response=await fetch(endpoint,{mode:"cors",credentials:"include",headers:{Accept:"application/json"}});if(!response.ok)throw new Error(`HTTP error! status: ${response.status}`);let data=await response.json(),totalFromApi=((_c=data==null?void 0:data.count)==null?void 0:_c.total)||0;updateItems(totalFromApi)}catch(error){console.warn("Could not update holiday planner access counter:",error)}}};__name(_HolidayPlanner,"HolidayPlanner");var HolidayPlanner=_HolidayPlanner;export{HolidayPlanner}; 2//# sourceMappingURL=HolidayPlanner-JM7DIZYQ.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.