PageSourceSearch

https://topnanny.es/packs/js/5271-91257dbf27d591056251.chunk.js

js topnanny.es collected 2026-09-25 18:48:05 UTC 12,746 bytes, 2 lines download raw bytes

1!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]="e5902b9d-f928-45ce-9899-ea55b22cc32a",e._sentryDebugIdIdentifier="sentry-dbid-e5902b9d-f928-45ce-9899-ea55b22cc32a")}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([[5271,9524],{34414(e,t,n){"use strict";n.r(t);var i=n(95285),a=n.n(i),s=n(90358),r=n.n(s),o=n(49524),d=n.n(o),c=n(88809),h=n.n(c),u=n(54214),f=n.n(u),m=n(73968),l=n.n(m),_=n(57365),g=n.n(_),p=n(7168),v=n.n(p),b=n(95616);a().extend(r()),a().extend(d()),a().extend(h()),b.fn.attendanceManagement=function(e){return this.formType=e,b(".attendance-form__edit-button").on("change",function(){const e=b(this).prop("checked");b(".attendance-form__has-changes").val(!e)}).change(),this.each(function(){const t=b(this),n=new T(t,e);n.updateTimes(),t.on("change",".attendance-form__time-select select",function(e){return e.preventDefault(),n.adjustSelectTimes(b(this)),n.updateTimesheet(b(this).parents(".attendance-form__time-select")),b("input[type='submit']").toggle(),setTimeout(function(){b("input[type='submit']").toggle()},100),!0}).change(),t.on("click",".delete-attendance-timesheet",function(e){e.preventDefault();const t=b(this).parents(".attendance-form__time-select"),i=t.parents(".attendance-form__timesheet-wrapper");return t.find(".attendance-absence").prop("checked",!0),n.updateTimesheet(t),t.hide(),i.find(".attendance-form__responsible-duration").hide(),i.find(".attendance-form__timesheet-header").hide(),i.find(".attendance-form__night-intervention").hide(),function(){if(b(".attendance-form__edit-button").prop("checked"))return;if(b(".attendance-form__time-select:visible").length>0)return;b(".attendance-form__meal .radio_buttons .radio_buttons_menu_wrapper").each(function(){b(this).find(".radio_button").first().click()})}(),!0}),t.on("fields_added.nested_form_fields",function(e,t){return e.preventDefault(),b(e.target).find(".attendance-form__time-select").attr("data-timesheet-id",Math.random().toString(36).substr(2)+Math.random().toString(36).substr(2)),n.addTimesheet(b(e.target).find(".attendance-form__time-select")),!0}),t.find(".attendance-form__absence-deducted-type").on("change",function(){t.find(".absence_deducted_type_message>div").hide(),t.find(".absence_deducted_type_message ."+b(this).val()+"_message").show(),b(".attendance-form__absence-reasons select").val(b(this).val()),b(".absence_deducted_type_message ."+b(this).val()+"_message").show()}).change(),t.on("change",".attendance-form__charge-everything input:visible",function(e){e.preventDefault();const t=b(this).parents(".additional-time-charged").find(".attendance-form__charged-additional-duration-time");return k(b(this).val(),t,n.additional_time),!0}),t.on("change",".attendance-form__deduct-all-absence input:visible",function(e){e.preventDefault();const t=b(this).parents(".absence-time-deduction").find(".attendance-form__absence-deducted-time");return k(b(this).val(),t,n.absence_time),!0})}),this};const T=function(e,t){this.formType=t,this.selectors=function(){return"assmat"===t?{timeRange:".attendance-time-range",additionalTime:".additional-time-wrapper",absenceTime:".absence-time-wrapper"}:{timeRange:".attendance-form__time-range-"+this.formType,additionalTime:".attendance-form__additional-time-"+this.formType,absenceTime:".attendance-form__absence-time-"+this.formType}},this.timeranges=f()(b(this.selectors().timeRange),function(e){const t=b(e);return"00h00"===t.find(".starts-at").text()&&"00h00"===t.find(".ends-at").text()&&t.find(".ends-at").text("24h00"),new w(t)}),this.timesheets=f()(b(e).find(".attendance-form__time-select"),function(e){return new y(b(e))}
1),this.timesheets.forEach(e=>{0===e.ends_at.hour()&&0===e.ends_at.minute()&&(e.ends_at=e.ends_at.add(24,"hours"),b(e.element.find(".ends-at").find("select")[0]).val(24))}),this.additional_time=0,this.absence_time=0,this.valid_timesheets=function(){return l()(this.timesheets,function(e){return!e.absence})},this.updateTimes=function(){const e=this;e.additional_time=0,e.absence_time=0;const t=[];e.timeranges.forEach(n=>{e.valid_timesheets().forEach(e=>{const i=(s=e,r=n,new I(a().max(a().min(s.starts_at,r.ends_at),r.starts_at),a().min(a().max(r.starts_at,s.ends_at),r.ends_at)));var s,r;i.duration()>0&&t.push(i)})});const n=R(t),i=R(e.timeranges);e.absence_time=i-n,e.additional_time=R(e.valid_timesheets())-n,D(e.additional_time,".additional-time",e.selectors().additionalTime,e.formType),D(e.absence_time,".absence-time",e.selectors().absenceTime,e.formType),b(e.selectors().absenceTime+" .full-day-deduction-alert").toggle(0===e.additional_time&&e.absence_time===i),b(".child_absent_and_worked_schedule").toggle(0===e.valid_timesheets().length)},this.updateTimesheet=function(e){const t=this,n=new y(e),i=g()(t.timesheets,function(e){return e.id===n.id});t.timesheets[i]=n,t.updateTimes()},this.addTimesheet=function(e){this.timesheets.push(new y(e)),this.updateTimes()},this.removeTimesheet=function(e){const t=this,n=new y(e),i=g()(t.timesheets,function(e){return e.id===n.id});t.timesheets.splice(i,1),t.updateTimes()},this.adjustSelectTimes=function(e){const t=e.parents(".attendance-form__time-select"),n=t.find(".ends-at select"),i=n.eq(0),a=n.eq(1);"24"===i.val()&&a.val("00"),"00"===i.val()&&"00"===a.val()&&i.val("24");const s=new y(t);s.starts_at>s.ends_at&&(e.parent().hasClass("starts-at")?s.updateTime("ends-at",s.starts_at):s.updateTime("starts-at",s.ends_at))}},y=function(e){this.element=e,this.id=e.data("timesheet-id"),this.absence=e.find(".attendance-absence").prop("checked"),this.starts_at=N(x(e.find(".starts-at"))),this.ends_at=N(x(e.find(".ends-at"))),this.duration=function(){return this.absence?0:E(this.ends_at,this.starts_at)},this.updateTime=function(e,t){b(this.element.find("."+e).find("select")[0]).val(t.format("HH")),b(this.element.find("."+e).find("select")[1]).val(t.format("mm"))}},w=function(e){this.id=e.data("time-range-id"),this.starts_at=N(e.find(".starts-at").html()),this.ends_at=N(e.find(".ends-at").html()),this.ends_at.startOf("day").isSame(this.ends_at)&&this.ends_at.day()===this.starts_at.day()&&(this.ends_at=this.ends_at.add(1,"days")),this.duration=function(){return E(this.ends_at,this.starts_at)}},I=function(e,t){this.starts_at=e,this.ends_at=t,this.duration=function(){return E(this.ends_at,this.starts_at)}};function x(e){return f()(e.find("select"),function(e){return b(e).val()}).join(":")}function E(e,t){return e.isBefore(t)&&0===e.hour()&&(e=e.add(1,"days")),parseInt(e.diff(t,"minutes"))}function N(e){return a()(e,"HH:mm")}function D(e,t,n,i){e>0?(b(n+" "+t+" span.value").html(function(e){let t="";const n=a().duration(e,"minutes");n.asHours()>=1&&(t+=Math.floor(n.asHours())+"h");n.minutes()>0&&(t+=(n.asHours()>=1?" ":"")+n.minutes()+"min");return""===t?"Aucune":t}(e)),b(n+" "+t+"-input").val(e),"night"!==i&&b(n).show()):(b(n+" "+t+"-input").val(0),b(n).hide())}function k(e,t,n){b(t).toggle("true"!==e)}function R(e){return v()(e,function(e,t){return e+t.duration()},0)}const S={nightScheduleHoursOptionsToRemove:["09","10","11","12","13","14","15","16","17"],nightInterventionParentClass:{original:"attendance-form__night-intervention-original",clone:"attendance-form__night-intervention-copy"},bindEvents:function(){b(".attendance-form__time-select--ged .starts-at, .attendance-form__time-select--ged .ends-at").change(function(){S.hideTimesheetError(b(this).parents("attendance-form__timesheet-wrapper").first())}),b(document).on("change",".attendance-form__responsible-duration select",function(){S.hideResponsibleDurationError(this)}),b(".attendance-form__night-schedule").on("fields_added.nested_form_fields",function(){S.removeNightScheduleTimeRanges()}),this.removeNightScheduleTimeRanges(),this.cloneNightIntervention(),b(document).on("change",".attendance-form__night-intervention-select",function(){S.manageNightIntervention(this)}),b(document).on("change",".attendance-form__interventions-duration select.hour",function(){S.manageNightInterventionDuration(this,".attendance-form__interventions-duration select.hour")}),b(document).on("change",".attendance-form__interventions-duration select.minute",function(){S.manageNightInterventionDuration(this,".attendance-form__interventions-duration select.minute")})},removeNightScheduleTimeRanges:function(){this.nightScheduleHoursOptionsToRemove.forEach(function(e){b(".attendance-form__night-schedule .attendance-form__time-select .starts-at").each(function(){b(this).find("select:first option[value='"+e+"']").remove()}),b(".attendance-form__night-schedule .attendance-form__time-select .ends-at").each(function(){b(this).find("select:first option[value='"+e+"']").remove()})})},hideTimesheetError:function(e){b(e).find(".attendance-form__timesheet-error").hide(),b(e).find(".is-invalid").removeClass(".is-invalid")},manageNightIntervention:function(e){const t=b(e),n=t.parents(".attendance-form__night-intervention"),i=n.data("time-range-id"),a=t.val(),s="3"===a,r=this.nightInterventionOtherElementParent(t,i);n.find(".attendance-form__night-intervention-duration").toggle(s),r.find(".attendance-form__night-intervention-select").val(a),s||(n.find("select.hour").val("0"),n.find("select.minute").val("0"),r.find("select.hour").val("0"),r.find("select.minute").val("0"))},manageNightInterventionDuration:function(e,t){const n=b(e),i=n.val(),a=n.parents(".attendance-form__night-intervention"),s=a.data("time-range-id"),r=this.nightInterventionOtherElementParent(n,s);r.find(t).val(i),a.find(".attendance-form__intervention-duration-error").hide(),r.find(".attendance-form__intervention-duration-error").hide()},nightInterventionOtherElementParent:function(e,t){const n=e.parents(".attendance-form__night-intervention").parent().prop("className")===this.nightInterventionParentClass.original?this.nightInterventionParentClass.clone:this.nightInterventionParentClass.original;return b("."+n+" .attendance-form__night-intervention[data-time-range-id='"+t+"']")},cloneNightIntervention:function(){b(".attendance-form__night-intervention-copy").find(".attendance-form__night-intervention").length>0||b(".attendance-form__night-intervention").each(function(){const e=b(this),t=b(this).data("time-range-id");e.clone().appendTo(".attendance-form__night-intervention-copy[data-time-range-id='"+t+"']")})},hideResponsibleDurationError:function(e){b(e).parents(".attendance-form__simple-timesheet").find(".attendance-form__responsible-duration-error").hide()}};globalThis.GedAttendanceManagement=S},49524(e){e.exports=function(){"use strict";return function(e,t,n){var i=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;var n;1===t.length&&t[0].length>0&&(t=t[0]),n=(t=t.filter(function(e){return e}))[0];for(var i=1;i<t.length;i+=1)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n};n.max=function(){var e=[].slice.call(arguments,0);return i("isAfter",e)},n.min=function(){var e=[].slice.call(arguments,0);return i("isBefore",e)}}}()},42814(e){e.exports=function(e,t,n,i){var a=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}},91738(e,t,n){var i=n(72305);e.exports=function(e,t){var n=[];return i(e,function(e,i,a){t(e,i,a)&&n.push(e)}),n}},42226(e){e.exports=function(e,t,n,i,a){return a(e,function(e,a,s){n=i?(i=!1,e):t(n,e,a,s)}),n}},73968(e,t,n){var i=n(61414),a=n(91738),s=n(9073),r=n(6397);e.exports=function(e,t){return(r(e)?i:a)(e,s(t,3))}}
1,57365(e,t,n){var i=n(15663),a=n(9073),s=n(79445),r=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var d=null==n?0:s(n);return d<0&&(d=r(o+d,0)),i(e,a(t,3),d)}},54214(e,t,n){var i=n(44272),a=n(9073),s=n(23892),r=n(6397);e.exports=function(e,t){return(r(e)?i:s)(e,a(t,3))}},7168(e,t,n){var i=n(42814),a=n(72305),s=n(9073),r=n(42226),o=n(6397);e.exports=function(e,t,n){var d=o(e)?i:r,c=arguments.length<3;return d(e,s(t,4),n,c,a)}},95378(e,t,n){var i=n(68812),a=n(58953),s=n(75414),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=o.test(e);return n||d.test(e)?c(e.slice(2),n?2:8):r.test(e)?NaN:+e}}}]);
2//# sourceMappingURL=5271-91257dbf27d591056251.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.