1/*! For license information please see 2051-70b240a633c82708ce81.chunk.js.LICENSE.txt */ 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1e455ebf-f889-4927-9693-e58e94e8b433",e._sentryDebugIdIdentifier="sentry-dbid-1e455ebf-f889-4927-9693-e58e94e8b433")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"345d17736be6774bd7507b387a63cdaa81f43b76"},(globalThis.webpackChunktop_webgroup=globalThis.webpackChunktop_webgroup||[]).push([[2051,6973],{82051(e,t,n){"use strict";n.d(t,{initTimeRangeCalendar:()=>c});var a=n(23927),i=n.n(a);var o=n(45365),d=n(6973),s=n.n(d),r=n(77666),l=n(95616);o.dayjs.extend(s());const c=function(){!function(){const e=l('input[name="time_slots_flexibility_contract[unpredictable_monthly]"]');e.off("change",u),e.on("change",u),e.trigger("change")}(),u(),l(".timerange-calendar").each(function(){const e=l(this);!function(e){const t=!!e.data("editUrl"),n=function(t){return e.data("editUrl").replace(".day.",t)};if(l("html[data-turbo-preview]").length>0)return;const a=e.data("dateDisplayMode"),o=!0===e.data("readonly"),d="ged"===e.data("careType")?"#949cdf":"";e.fullCalendar({lang:"fr",defaultView:"agendaWeek",defaultDate:e.data("date"),header:!1,allDaySlot:!1,columnFormat:"real-date"===a?"ddd D MMM":"dddd",eventOverlap:!1,height:400,selectable:!o,timezone:"Europe/Paris",editable:!1,scrollTime:e.data("starthour"),slotDuration:"01:00:00",snapDuration:"00:05:00",axisFormat:"H",selectHelper:!0,eventConstraint:{start:"00:00",end:"24:00"},selectConstraint:{start:"00:00",end:"24:00"},eventSources:[{url:e.data("events")}],eventColor:d,eventClick:function(e,a,o){if(t){if(window.timerangeClickTimeout)return;(0,r.Ir)(n(e.wday),"_2"),window.timerangeClickTimeout=setTimeout(function(){delete window.timerangeClickTimeout},1e3)}else{const t=i().getOrCreateInstance(a.target,{content:e.description,placement:"auto",offset:[0,0]});t.show(),setTimeout(()=>{t.hide().dispose()},1e3)}},dayClick:function(e,a,i){if(t){if(window.timerangeClickTimeout)return;(0,r.Ir)(n(e.isoWeekday()),"_2"),window.timerangeClickTimeout=setTimeout(function(){delete window.timerangeClickTimeout},1e3)}},select:function(e,a){if(t){if(window.timerangeClickTimeout)return;(0,r.Ir)(n(e.isoWeekday())+"&"+function(e){const t=[];for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}({starts_at:e.format("[YYYYescape] YYYY-MM-DDTHH:mm"),ends_at:a.format("[YYYYescape] YYYY-MM-DDTHH:mm")}),"_2"),window.timerangeClickTimeout=setTimeout(function(){delete window.timerangeClickTimeout},1e3)}}})}(e);if(e.data("public-holidays").split(",").forEach(t=>{e.find(".fc-"+t).addClass("fc-public-holiday")}),e.data("child-vacations")){e.data("child-vacations").split(",").forEach(t=>{e.find(".fc-"+t).addClass("fc-child-vacation")})}})};function u(){if("occasional"!==l("#schedule_type").val()){const e=l('input[name="time_slots_flexibility_contract[unpredictable_monthly]"]'),t=e.length>0&&"true"===e.filter(":checked").val(),n=function(e){const t=l(".schedules").children(".row:visible"),n=e.data("schedules-min"),a=void 0===n||parseInt(n)<=t.length,i=e.data("schedules-max"),o=void 0===i||parseInt(i)>t.length;return a&&o};l(".monthly, .weekly, [data-schedules-min], [data-schedules-max]").each(function(){const e=l(this);let a=n(e);e.hasClass("monthly")&&(a=a&&t),e.hasClass("weekly")&&(a=a&&!t),e.toggle(a)})}}globalThis.refreshAttendances=function(){let e=document.querySelector("turbo-frame#attendance_week");e&&(e.src=e.dataset.refreshUrl,e.reload()),e=document.querySelector("turbo-frame#report-content"),e&&(e.src=e.dataset.refreshUrl,e.reload());const t=window.notebook_store_dispatch;"function"===typeof t&&(t("loadAttendances"),t("reload_meals"))}},6973(e){e.exports=function(){"use strict";var e="day";return function(t,n,a){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,o,d,s=i(this),r=(n=this.isoWeekYear(),d=4-(o=(this.$u?a.utc:a)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(d+=7),o.add(d,e));return s.diff(r,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var d=o.startOf;o.startOf=function(e,t){var n=this.$utils(),a=!!n.u(t)||t;return"isoweek"===n.p(e)?a?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):d.bind(this)(e,t)}}}()}}]); 3//# sourceMappingURL=2051-70b240a633c82708ce81.chunk.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.