PageSourceSearch

https://talentank.eu/6637.3c88f7d10d53b7d8.js

js talentank.eu collected 2026-10-06 17:31:14 UTC 15,194 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaalentfy=self.webpackChunktaalentfy||[]).push([[6637],{6637(W,m,l){l.d(m,{VirtualFairChatAgendaComponent:()=>$});var f=l(87829),c=l(80656),g=l(7212),C=l(54498),M=l(8020),b=l(24817),D=l(96820),u=l(22882),v=l(31027),P=l(55432),O=l(70750),h=l(37222),y=l(8271),t=l(54303);const x=(o,d)=>({start:o,end:d});function F(o,d){1&o&&t.nrm(0,"spinner-loading",13)}function A(o,d){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"virtual-fair.chat-agenda.chat-available")," ")}function E(o,d){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"virtual-fair.chat-agenda.chat-not-available")," ")}function R(o,d){if(1&o&&(t.j41(0,"div",23)(1,"span"),t.nrm(2,"app-icon",24),t.nVh(3,A,2,3)(4,E,2,3),t.k0s()()),2&o){const a=t.XpG().$implicit;t.AVh("off",0==a.active_chat),t.R7$(3),t.vxM(1==a.active_chat?3:4)}}function T(o,d){if(1&o&&(t.j41(0,"span",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o){const a=d.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"virtual-fair.calendar.range-hour",t.l_i(4,x,a.start,a.end))," ")}}function w(o,d){if(1&o&&(t.j41(0,"div",22),t.Z7z(1,T,3,7,"span",25,t.fX1),t.k0s()),2&o){const a=t.XpG().$index,n=t.XpG();t.R7$(),t.Dyx(n.availableHours()[a])}}function k(o,d){if(1&o){const a=t.RV6();t.j41(0,"div",15)(1,"div",17)(2,"a",18),t.bIt("click",function(){const e=c.eBV(a).$implicit,s=t.XpG();return c.Njj(s.selectStand(e))}),t.nrm(3,"img",19),t.k0s(),t.j41(4,"a",20),t.bIt("click",function(){const e=c.eBV(a).$implicit,s=t.XpG();return c.Njj(s.selectStand(e))}),t.j41(5,"h4"),t.EFF(6),t.k0s()(),t.nVh(7,R,5,3,"div",21),t.k0s(),t.nVh(8,w,3,0,"div",22),t.k0s()}if(2&o){const a=d.$implicit,n=t.XpG();t.R7$(3),t.Y8G("src",a.icon_picture||"https://tfyglobal-assets.s3.eu-west-1.amazonaws.com/assets/gfx/logo-company-default.jpg",t.B4B),t.R7$(3),t.JRh(a.name),t.R7$(),t.vxM(n.chatAvailable()&&n.fairEnabled()&&n.fairOpen()?7:-1),t.R7$(),t.vxM(n.chatAvailable()&&n.fairEnabled()&&n.fairOpen()?8:-1)}}function I(o,d){1&o&&(t.j41(0,"div",16)(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&o&&(t.R
17$(2),t.JRh(t.bMT(3,1,"virtual-fair.chat-agenda.no-companies-data")))}let $=(()=>{class o{backendHelper=(0,c.WQX)(M.L);translate=(0,c.WQX)(u.c$);fairService=(0,c.WQX)(D._);notif=(0,c.WQX)(v.I2);router=(0,c.WQX)(C.Ix);destroyRef=(0,c.WQX)(c.abz);companyList=(0,c.vPA)([]);availableHours=(0,c.vPA)([]);fairId;fairDates;currentDate;sameDate="minDate";subscriptions=[];isWaitingForApiResponse=(0,c.vPA)(!1);currentLang;chatAvailable=(0,c.vPA)(void 0);fairEnabled=(0,c.vPA)(void 0);fairOpen=(0,c.vPA)(void 0);constructor(){const a=(0,c.WQX)(b.T);this.subscriptions.push(a.isChatAvailable().pipe((0,g.pQ)(this.destroyRef)).subscribe(e=>{this.chatAvailable.set(e)})),this.subscriptions.push(this.backendHelper.getObservableLang().pipe((0,g.pQ)(this.destroyRef)).subscribe(e=>{this.currentLang=e}));const n=this.fairService.fair();if(null!=n&&0==this.companyList().length){this.fairId=n.id,this.fairOpen.set(this.fairService.open()),n?.id&&this.fairEnabled.set(!0),this.availableHours.set([]);const e={year:new Date(n.close_date).getFullYear(),month:new Date(n.close_date).getMonth()+1,day:new Date(n.close_date).getDate()};this.currentDate={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getDate()},this.fairDates={open_date:{...this.currentDate},close_date:e},this.isWaitingForApiResponse||(this.companyList.set([]),this.availableHours.set([]),this.loadCompanies())}}loadCompanies(){this.isWaitingForApiResponse.set(!0);const a=(0,f.Yq)(new Date(this.currentDate.year,this.currentDate.month-1,this.currentDate.day),"YYYY-MM-dd",this.currentLang);this.subscriptions.push(this.backendHelper.post("/available-hours/companies",{day:a}).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{if(n?.companies.length){const e=[...this.companyList()],s=[...this.availableHours()];n.companies.forEach(i=>{if(i?.range_hours.length){e.push(i);const r=this.rangeHourToMilliseconds(i.range_hours),p=this.setRangeHours(r);s.push(p),p.length||(e.pop(),s.pop())}}),this.companyList.set(e),this.availableHours.set(s)}this.isWaitingForApiResponse.set(!1)},n=>{this.isWaitingForApiResponse.set(!1),this.companyList.set([]),this.availableHours.set([]),this.notif.error(this.translate.instant("notif.error"))}))}rangeHourToMilliseconds(a){const n=new Date(this.currentDate.year,this.currentDate.month-1,this.currentDate.day),e=[];return a.forEach(i=>{const r=new Date(i.start);let p=new Date(r.getFullYear(),r.getMonth(),r.getDate());const _=new Date(i.end);for(;r.getTime()+18e5<=_.getTime()&&n.getTime()>=p.getTime();)n.getTime()==p.getTime()&&e.push(r.getTime()),r.setMinutes(r.getMinutes()+30),p=new Date(r.getFullYear(),r.getMonth(),r.getDate())}),e.sort(),e}setRangeHours(a){const n=new Date(this.currentDate.year,this.currentDate.month-1,this.currentDate.day),e=[];return a?.forEach(s=>{const i=new Date(s),r=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes()+30),p=new Date(r.getFullYear(),r.getMonth(),r.getDate());if(0==r.getHours()&&0==r.getMinutes()&&p.setDate(p.getDate()-1),e.length){const _=e[e.length-1].end.split(":");new Date(n.getFullYear(),n.getMonth(),n.getDate(),_[0],_[1]).getTime()==i.getTime()?e[e.length-1].end=`${r.getHours()||"00"}:${r.getMinutes()||"00"}`:p.getTime()==n.getTime()&&e.push({start:`${i.getHours()||"00"}:${i.getMinutes()||"00"}`,end:`${r.getHours()||"00"}:${r.getMinutes()||"00"}`})}else e.push({start:`${i.getHours()||"00"}:${i.getMinutes()||"00"}`,end:`${r.getHours()||"00"}:${r.getMinutes()||"00"}`})}),e}setDate(a,n){if(!this.isWaitingForApiResponse()){let e=new Date(this.currentDate.year,this.currentDate.month-1,this.currentDate.day);const s=new Date(this.fairDates.close_date.year,this.fairDates.close_date.month-1,this.fairDates.close_date.day),i=new Date(this.fairDates.open_date.year,this.fairDates.open_date.month-1,this.fairDates.open_date.day);switch(a){case"next":e.setDate(e.getDate()+1);break;case"previous":e.setDate(e.getDate()-1);break;case"today":e=new Date}e.getTime()<=s.getTime()&&e.getTime()>=i.getTime()&&("datepicker"!==a?this.currentDate={year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}:(this.currentDate=n,e=new Date(this.currentDate.year,this.currentDate.month,this.currentDate.day)),this.sameDate=e.setHours(0,0,0,0)>=s.setHours(0,0,0,0)?"maxDate":e.setHours(0,0,0,0)<=i.setHours(0,0,0,0)?"minDate":"",this.companyList.set([]),this.availableHours.set([]),this.loadCompanies())}}selectStand(a){a?.stand_id&&a?.name&&this.router.navigate(["/virtual-fair/stand",a.stand_id,a.name])}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=t.VBU({type:o,selectors:[["virtual-fair-chat-agenda"]],decls:30,vars:33,consts:[[1,"vf
1-header"],[1,"header-buttons"],[1,"button-section"],[1,"previous-day",3,"click"],["name","angle-left",1,"ico"],[1,"today","btn-primary",3,"click"],[1,"next-day",3,"click"],["name","angle-right",1,"ico"],[1,"input-group"],["id","currentDate","name","currentDate","mode","date",1,"append-child",3,"ngModelChange","setDate","placeholder","disabled","ngModel","minDate","maxDate","appDropdownPlacement"],["role","alert",1,"alert","alert-primary","alert-space"],[1,"infoSection"],["name","exclamation-circle",1,"ico"],[1,"loading"],[1,"content"],[1,"company-card"],[1,"no-companies"],[1,"company-info"],[3,"click"],["alt","Icono de la empresa",3,"src"],[1,"companyName",3,"click"],[1,"available-chat",3,"off"],[1,"available_hours"],[1,"available-chat"],["name","chat",1,"ico"],[1,"range-hour"]],template:function(n,e){1&n&&(t.j41(0,"div",0)(1,"h1"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",1)(5,"div",2)(6,"button",3),t.bIt("click",function(){return e.setDate("previous")}),t.nrm(7,"app-icon",4),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"button",5),t.bIt("click",function(){return e.setDate("today")}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"button",6),t.bIt("click",function(){return e.setDate("next")}),t.EFF(14),t.nI1(15,"translate"),t.nrm(16,"app-icon",7),t.k0s()(),t.j41(17,"div",8)(18,"app-custom-date-selector",9),t.nI1(19,"translate"),t.mxI("ngModelChange",function(i){return t.DH7(e.currentDate,i)||(e.currentDate=i),i}),t.bIt("setDate",function(i){return e.setDate("datepicker",i)}),t.k0s()()()(),t.j41(20,"div",10)(21,"span",11),t.nrm(22,"app-icon",12),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.nVh(25,F,1,0,"spinner-loading",13),t.j41(26,"div",14),t.Z7z(27,k,9,4,"div",15,t.fX1),t.nVh(29,I,4,3,"div",16),t.k0s()),2&n&&(t.R7$(2),t.JRh(t.bMT(3,21,"virtual-fair.chat-agenda.title")),t.R7$(4),t.AVh("disabled",e.isWaitingForApiResponse()||e.sameDate&&"minDate"===e.sameDate),t.R7$(2),t.SpI(" ",t.bMT(9,23,"common.previous")," "),t.R7$(2),t.AVh("disabled",e.isWaitingForApiResponse()),t.R7$(),t.SpI(" ",t.bMT(12,25,"content.public_calendar.today")," "),t.R7$(2),t.AVh("disabled",e.isWaitingForApiResponse()||e.sameDate&&"maxDate"===e.sameDate),t.R7$(),t.SpI(" ",t.bMT(15,27,"common.next")," "),t.R7$(4),t.Y8G("placeholder",t.bMT(19,29,"admin_tfb.statistics.filter.error.text1"))("disabled",e.isWaitingForApiResponse()),t.R50("ngModel",e.currentDate),t.Y8G("minDate",null==e.fairDates?null:e.fairDates.open_date)("maxDate",null==e.fairDates?null:e.fairDates.close_date)("appDropdownPlacement","left"),t.R7$(5),t.SpI(" ",t.bMT(24,31,"virtual-fair.chat-agenda.description")),t.R7$(2),t.vxM(e.isWaitingForApiResponse()?25:-1),t.R7$(),t.AVh("hide",e.isWaitingForApiResponse()),t.R7$(),t.Dyx(e.companyList()),t.R7$(2),t.vxM(e.isWaitingForApiResponse()||e.companyList().length?-1:29))},dependencies:[P.R,O.S,h.YN,h.BC,h.vS,y.$,u.h,u.D9],styles:[".vf-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .input-group-append[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:0 10px!important}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .input-group-append[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:var(--btnBaseColor);opacity:1}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .input-group-append[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled:hover{background-color:transparent;opacity:.5}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .button-section[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;gap:10px;border-radius:4px}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .button-section[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:6px;font-weight:500;border:0;text-wrap:nowrap;word-break:keep-all;color:var(--btnBaseColor);background-color:transparent;transition:opacity .2s ease-in-out}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .button-section[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{opacity:.5}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .button-section[_ngcontent-%COMP%]   button.disabled[_ngcontent-%COMP%]{opacity:1;color:#ccc;cursor:not-allowed}.vf-header[_ngcontent-%COMP%]   .header-buttons[_ngcontent-%COMP%]   .button-section[_ngcontent-%COMP%]   button.today[_ngcontent-%COMP%]{padding:6px 12px;margin:0 5px}.infoSection[_ngcontent-%COMP%]{font-size:16px;font-weight:500;display:flex;align-items:center;gap:8px}.loading[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999}.input-group[_ngcontent-%COMP%]{width:fit-content}  .cdate-nav-btn{color:var(--btnBaseColor)}  .cdate-day span{background-color:transparent;transition:background-color .3s ease}  .cdate-day.select span{border:1px solid var(--btnBaseColor)!important;background-color:var(--btnBaseColor)!important;color:var(--blanco)}  .cdate-day:hover span{background-color:var(--btnBaseColor)!important;transition:background-color .3s ease}.content[_ngcontent-%COMP%]{width:100%;height:auto;max-height:100%;display:flex;flex-wrap:wrap;gap:2%}.content.hide[_ngcontent-%COMP%]{opacity:0}
1.content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:24px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]{max-width:49%;min-width:49%;display:flex;flex-direction:column;height:auto;background-color:var(--color_caja_blanca);border:1px solid var(--color_borde_caja_blanca);border-radius:4px;gap:20px;padding:10px 20px 20px;margin-bottom:20px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-bottom:0}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:60px;width:60px;margin-right:10px;object-fit:cover;border-radius:50%;vertical-align:middle;border:1px solid var(--color_borde_caja_blanca);background-color:#fff}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   .companyName[_ngcontent-%COMP%]{flex:1}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   .available-chat[_ngcontent-%COMP%]{width:fit-content;padding:4px;font-size:13px;font-weight:600;color:#fff;background-color:var(--color_base_1);border:1px solid var(--color_base_1);border-radius:6px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   .available-chat.off[_ngcontent-%COMP%]{background-color:var(--circleCompanyCardOff);border-color:var(--circleCompanyCardOff)}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .available_hours[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .available_hours[_ngcontent-%COMP%]   .range-hour[_ngcontent-%COMP%]{padding:4px 8px;font-weight:500;color:var(--btnSecondaryText);background-color:var(--btnSecondaryBg);border:1px solid var(--btnSecondaryBordert);border-radius:6px}.content[_ngcontent-%COMP%]   .no-companies[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center;background-color:var(--color_caja_blanca);border:1px solid var(--color_borde_caja_blanca);border-radius:4px;padding:20px}@media (max-width: 1200px){.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:20px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]   .available_hours[_ngcontent-%COMP%]   .range-hour[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 993px){.content[_ngcontent-%COMP%]{flex-direction:column;height:100%;gap:15px;margin-top:25px}.content[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]{max-width:100%;min-width:100%;margin-bottom:0}}  .caja-gris .contenido,   .caja-gris{height:0;width:0;margin-bottom:0!important;display:none}"],changeDetection:0})}return o})()}}]);

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.