PageSourceSearch

https://factorialhr.pt/_next/static/chunks/1qae2wc5-ijl6.js?dpl=ceb09ffe14595ac32a0d85de387b7f96f8712030

js factorialhr.pt collected 2026-10-04 08:30:14 UTC 15,047 bytes, 10 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="43a22e26-f479-b73d-7ef9-28c6273ba796")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,610133,e=>{"use strict";var t,a,s,n,l,o,i,r,u=e.i(744664),d=e.i(987588),c=e.i(264458),p=e.i(254207),h=e.i(539795),f=e.i(880613);let m=[...new Set([...e.i(567924).resourcesHomepageRoutesConfig.countries.map(e=>e.rootPath),"modelos","modelli","models","templates","vorlagen","modeles","factorial-academy-cursos","strumenti","tools","herramientas","outils","werkzeuge","ferramentas","webinars","ebooks","plantillas","videos","podcasts","webinare"])],g=["time","talent","payroll","finance","core","hr-software-seo","all-in-one_hr-software"];var w=e.i(654852),b=e.i(668966);function v(){return(v=Object.assign.bind()).apply(null,arguments)}let x=function(e){return d.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 19 18"},e),t||(t=d.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m10.904 9.013 6.872 6.873.708.707-1.415 1.414-.707-.707-6.872-6.872L2.617 17.3l-.707.707-1.413-1.414.707-.707 6.873-6.873-6.854-6.852-.707-.708L1.93.04l.707.707L9.49 7.6 16.343.746l.707-.707 1.414 1.414-.707.708-6.853 6.852z"})))},C=({isConversationReady:e,isOpen:t,onClose:a})=>{let s=(0,h.useIntl)(),n=(0,d.useRef)(null),l=(0,d.useRef)(null);return(0,d.useEffect)(()=>{t&&requestAnimationFrame(()=>{e&&n.current?n.current.focus():l.current&&l.current.focus()})},[t,e]),(0,d.useEffect)(()=>{let e=document.createElement("style");e.innerHTML=`#hubspot-conversations-inline-iframe, #hubspot-conversations-inline-parent {
3      height: 100%;
4      width: 100%;
5      border-radius: 16px;
6      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add your desired shadow here */
7    }
8    `,document.body.appendChild(e)},[]),(0,d.useEffect)(()=>{if(t&&e){let e=window.HubSpotConversations?.widget;e&&(e.status().loaded?e.refresh({openToNewThread:!0}):e.load({widgetOpen:!0}))}},[t,e]),(0,d.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&(e.preventDefault(),a())};if(t)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,a]),(0,u.jsx)("div",{ref:l,id:"hubspot-chat-entrypoint-wrapper",role:"dialog","aria-label":s.formatMessage({id:"F7EYod",defaultMessage:[{type:0,value:"Chat conversation"}]}),"aria-modal":"true","aria-hidden":!t,tabIndex:-1,className:(0,c.default)(!t&&"hidden",t,e?"h-[100vh] md:h-hubspotConversation":"h-fakeHubspotConversation","w-[100vw] md:w-hubspotConversation","z-20 fixed inset-0 md:absolute md:inset-auto md:bottom-3xl cursor-default transition-opacity"),children:e&&(0,u.jsx)("button",{ref:n,type:"button",onClick:()=>{a()},"aria-label":s.formatMessage({id:"4wyRCG",defaultMessage:[{type:0,value:"Close chat"}]}),className:(0,c.default)("flex place-content-center items-center absolute top-0 right-0 rounded-full w-hubspotChat h-hubspotChat cursor-pointer bg-transparent border-none p-0"),children:(0,u.jsx)(b.default,{mode:"stroke",size:"sm",color:"neutral80",icon:x,ariaHidden:!0})})})};function y(){return(y=Object.assign.bind()).apply(null,arguments)}let M=function(e){return d.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),a||(a=d.createElement("path",{fill:"#fff",d:"M10.123 18.261c0-3.17-2.383-5.739-5.323-5.739V24c2.94 0 5.323-2.57 5.323-5.739Z"})),s||(s=d.createElement("path",{fill:"#fff",d:"M0 9.985C0 4.471 4.47 0 9.985 0h4.755c5.515 0 9.986 4.47 9.986 9.985s-4.47 9.986-9.986 9.986H9.985C4.471 19.97 0 15.5 0 9.985Z"})))};function j(){return(j=Object.assign.bind()).apply(null,arguments)}let E=function(e){return d.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=d.createElement("path",{fill:"#515164",d:"M3 8.857A3.857 3.857 0 0 1 6.857 5H17a4 4 0 0 1 4 4v6a4 4 0 0 1-4 4h-4.667L9.71 20.968A2 2 0 0 1 6.613 20l-.35-1.047A3.872 3.872 0 0 1 3 15.129V8.857ZM6.857 7A1.857 1.857 0 0 0 5 8.857v6.272A1.87 1.87 0 0 0 6.87 17c.508 0 .959.325 1.12.806l.52 1.561 2.623-1.967a2 2 0 0 1 1.2-.4H17a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H6.857Z"})),l||(l=d.createElement("rect",{width:10,height:2,x:7,y:9,fill:"#515164",rx:1})),o||(o=d.createElement("rect",{width:8,height:2,x:7,y:13,fill:"#515164",rx:1})))};function H(){return(H=Object.assign.bind()).apply(null,arguments)}let S=function(e){return d.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:32,height:30,viewB
8ox:"0 0 16 16"},e),i||(i=d.createElement("path",{fill:"#fff",d:"m.038 16 1.125-4.109A7.911 7.911 0 0 1 .105 7.927C.107 3.557 3.663 0 8.033 0c2.121 0 4.112.827 5.61 2.325a7.882 7.882 0 0 1 2.32 5.61c-.003 4.371-3.56 7.928-7.93 7.928a7.934 7.934 0 0 1-3.792-.966L.038 16Zm4.398-2.538c1.117.663 2.184 1.06 3.595 1.061a6.602 6.602 0 0 0 6.592-6.59A6.588 6.588 0 0 0 8.036 1.34a6.6 6.6 0 0 0-6.593 6.589c0 1.483.434 2.594 1.164 3.756l-.666 2.432 2.495-.654Zm7.591-3.643c-.049-.082-.18-.132-.38-.231-.198-.1-1.172-.579-1.354-.645-.18-.066-.313-.099-.446.1-.132.198-.512.644-.627.776-.115.132-.231.149-.43.05-.197-.1-.836-.308-1.593-.984a5.963 5.963 0 0 1-1.102-1.372c-.115-.198-.012-.306.087-.404.09-.089.198-.232.297-.348.101-.114.134-.197.2-.33.066-.132.034-.248-.016-.347-.05-.099-.446-1.074-.61-1.47-.162-.387-.326-.335-.447-.34l-.38-.007a.726.726 0 0 0-.528.248c-.181.198-.693.677-.693 1.652 0 .976.71 1.918.808 2.05.1.132 1.397 2.133 3.384 2.991.473.204.842.326 1.13.417.474.151.906.13 1.248.079.38-.057 1.172-.48 1.337-.942.165-.463.165-.86.115-.943Z"})))};function k(){return(k=Object.assign.bind()).apply(null,arguments)}let I=function(e){return d.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14"},e),r||(r=d.createElement("path",{fill:"#515164",fillRule:"evenodd",d:"M.293.293a1 1 0 0 1 1.414 0L7 5.586 12.293.293a1 1 0 1 1 1.414 1.414L8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L5.586 7 .293 1.707a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})))};var N=e.i(704007),O=e.i(229387),A=e.i(551546),L=e.i(907051),R=e.i(678857),z=e.i(732641);let F=({isConversationReady:e,onChatModalOpen:t,isChatInterfaceOpen:a,setIsModalVisible:s,isModalVisible:n,isWithinHours:l,setIsChatInterfaceOpen:o})=>{let i=(0,h.useIntl)(),{currentTld:r,isoCountryCode:m}=(0,p.useFactorialContext)(),[g,w]=(0,d.useState)(!1),[v,y]=(0,d.useState)(!1),{layoutConfigBySlug:j}=(0,A.useTopMenuContext)(),H=(0,f.usePathname)()??"",k=(0,z.isLandingMenuMode)((0,z.normalizeMenuMode)(j?.menuModeSlugs?.[H])),F=(0,d.useRef)(null),B=r.showWhatsappInHubspotChat,W=B?S:k?E:M,T=k?I:x,V=B?"bg-whatsapp":k?N.default.backgrounds.neutral20:N.default.backgrounds.viridian100,_=k&&!B?"neutral120":"white100";(0,d.useEffect)(()=>{if(e){let e=B?"whatsapp_chat":"normal_chat";(0,O.emitHubspotChatEvent)({action:"viewed",category:e},m),window.HubSpotConversations.on("conversationStarted",t=>{(0,O.emitHubspotChatEvent)({action:"started",category:e,label:`${t.conversation.conversationId}`},m)}),window.HubSpotConversations.on("conversationClosed",t=>{(0,O.emitHubspotChatEvent)({action:"closed",category:e,label:`${t.conversation.conversationId}`},m)})}},[e,m,B]);let Z=(0,d.useCallback)(async()=>{let e=`${m}_chat_within_hours`;window.history.pushState({},e,`?${e}=${l}`),y(!0),await (0,R.sleep)(1e3),y(!1),o(!0)},[m,l,o]),D=a?i.formatMessage({id:"4wyRCG",defaultMessage:[{type:0,value:"Close chat"}]}):i.formatMessage({id:"un14bs",defaultMessage:[{type:0,value:"Open chat"}]});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",{ref:F,type:"button",className:(0,c.default)(V,"flex place-content-center items-center relative rounded-full w-hubspotChat h-hubspotChat cursor-pointer btn-hubspotChat",k&&"border-2 border-neutral-40"),onClick:()=>{if(!v){if((0,O.emitHubspotChatEvent)({action:a?"closed":"opened",category:B?"whatsapp_chat":"normal_chat"},m),n&&s(!1),t?.(),!g){w(!0),Z();return}a?o(!1):Z()}},"aria-label":D,"aria-expanded":a,"aria-controls":"hubspot-chat-entrypoint-wrapper","aria-haspopup":"dialog",children:v?(0,u.jsx)(L.default,{color:k&&!B?"neutral120":"white100/40",size:"xl"}):(0,u.jsx)(b.default,{mode:"fill",size:a?"sm":"md",color:_,icon:a?T:W,ariaHidden:!0})}),(0,u.jsx)(C,{isConversationReady:e,isOpen:a,onClose:()=>{o(!1),F.current?.focus()}})]})};var B=e.i(757007),W=e.i(118375);let T=({isOffHoursMessageVisible:e})=>{let t=e?"/images/offline-chat-signal.png":"/images/online-chat-signal.png";return(0,u.jsx)("div",{className:"flex min-w-[34px] h-[34px]",children:["/images/hs-chat-avatar-4.png"].map((e,a)=>
8(0,u.jsxs)("div",{className:(0,c.default)("pointer-events-none relative inline bg-radical-20 border border-white rounded-full w-[34px] h-[34px]",{"-ml-5xl":a>0}),children:[(0,u.jsx)(W.default,{className:"inline rounded-full object-cover border-2 border-white",src:e,alt:"Chat Avatar",width:40,height:40}),(0,u.jsx)(W.default,{className:"inline absolute -top-2xs right-0",src:t,alt:"Online chat signal",width:11,height:11})]},e))})},V=({isWithinHours:e,message:t})=>{let a=(0,h.useIntl)(),s=new Date().getDay();return(0,u.jsxs)("div",{className:"bg-white p-0 lg:p-sm lg:shadow-chatChip rounded-lg relative transition-opacity flex flex-wrap gap-xs",children:[(0,u.jsxs)("div",{className:"flex items-center gap-xs",children:[(0,u.jsx)(T,{isOffHoursMessageVisible:!e}),(0,u.jsx)("span",{className:"whitespace-pre-wrap text-neutral-80 font-semibold text-xs",children:t})]}),!e&&(0,u.jsx)("div",{className:"w-full text-neutral-80 text-2xs",children:0===s||6===s?a.formatMessage({id:"rif0XW",defaultMessage:[{type:0,value:"Our agents will be available on Monday — but I can help you now."}]}):a.formatMessage({id:"wHB3+x",defaultMessage:[{type:0,value:"Our agents will be back soon — but I can help you now."}]})})]})};var _=e.i(786719),Z=e.i(924243);let D="isChatSelectionPopupPreviouslyClosed",P=({isModalVisible:e,setIsModalVisible:t,isWithinHours:a,message:s})=>{let n=(0,h.useIntl)(),{isoCountryCode:l}=(0,p.useFactorialContext)(),[o,i]=(0,d.useState)(!1),[r,f]=(0,d.useState)(!1);(0,d.useEffect)(()=>{e&&(0,O.emitHubspotChatEvent)({action:"viewed",category:"chat_popup"},l)},[l,e]),(0,d.useEffect)(()=>{let e="false"!==(0,Z.getCookie)(D);i(e),t(e)},[t]),(0,d.useEffect)(()=>{let e=()=>{(window.scrollY||document.documentElement.scrollTop)>=window.innerHeight&&(f(!0),window.removeEventListener("scroll",e))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)}},[]);let m=()=>{let e=new Date;e.setDate(e.getDate()+10),(0,Z.setCookie)(D,"false",{expires:e}),t(!1),(0,O.emitHubspotChatEvent)({action:"dismissed",category:"chat_popup"},l)};return o?(0,u.jsx)("div",{className:(0,c.default)(!e&&"hidden","drop-shadow-chatPopup"),
8children:(0,u.jsxs)("div",{className:(0,c.default)("mb-sm bg-white lg:bg-transparent p-sm lg:p-0 shadow-chatChip lg:shadow-none rounded-lg relative group",r&&"animate-slide-up",!r&&"opacity-0 translate-y-5"),children:[(0,u.jsx)("div",{className:"hidden lg:flex lg:justify-end lg:absolute lg:top-0 lg:right-0 lg:opacity-0 lg:group-hover:opacity-100 lg:transition-opacity lg:-translate-y-full lg:mb-sm",children:(0,u.jsx)("div",{children:(0,u.jsx)(_.default,{layout:"button",icon:B.default,size:"round",type:"tertiary",iconColor:"neutral80",onClick:m,ariaLabel:n.formatMessage({id:"X8jMWV",defaultMessage:[{type:0,value:"Close chat popup"}]})})})}),(0,u.jsx)("div",{className:"absolute top-0 right-0 lg:hidden z-50",children:(0,u.jsx)("div",{className:"w-[28px] h-[28px]",children:(0,u.jsx)(_.default,{layout:"button",icon:B.default,size:"round",type:"link",iconColor:"neutral80",onClick:m,ariaLabel:n.formatMessage({id:"X8jMWV",defaultMessage:[{type:0,value:"Close chat popup"}]})})})}),(0,u.jsx)(V,{isWithinHours:a,message:s})]})}):null};var $=e.i(972804);let q={default:"max-w-[320px]",fr:"max-w-[315px]",de:"max-w-[315px]"};e.s(["default",0,()=>{let e=(0,d.useRef)(null),{isoCountryCode:t}=(0,p.useFactorialContext)(),[a,s]=(0,d.useState)(!1),[n,l]=(0,d.useState)(!1),[o,i]=(0,d.useState)(!1),r=(()=>{let e,[t,a]=(0,d.useState)(""),s=(0,f.usePathname)(),n={homepage:(e=(0,h.useIntl)()).formatMessage({id:"5aphI0",defaultMessage:[{type:0,value:"Not sure where to start? We’re here to help."}]}),product:e.formatMessage({id:"EoXcSF",defaultMessage:[{type:0,value:"Get clear answers and make the most of Factorial."}]}),freebie:e.formatMessage({id:"OA4Hxx",defaultMessage:[{type:0,value:"Move from templates to real solutions with Factorial. We’re here to help."}]})};return(0,d.useEffect)(()=>{var e,t;let l=document.querySelector('meta[name="topic"]');a(n[e=l?.getAttribute("content")??null,t=s??"",m.some(e=>t.includes(e))?"freebie":e&&g.some(t=>e.startsWith(t))?"product":"homepage"])},[s,n]),t}
8)(),{chatEnabled:b,hubspotCodes:v,isWithinHours:x}=(()=>{let{isoCountryCode:e,currentTld:t}=(0,p.useFactorialContext)(),{showHubspotChatModal:a,chatAvailabilityHours:s,lunchBreakHours:n}=t,[l,o]=(0,d.useState)(!1),i=(0,$.default)({})?.hubspot,r=(0,d.useCallback)(e=>!!s&&e>=s.start&&e<s.end,[s]),u=(0,d.useCallback)(e=>!!n&&e>=n.start&&e<n.end,[n]);return(0,d.useEffect)(()=>{if(!a||!s)return;let e=()=>{let e=new Date,[t,a]=new Intl.DateTimeFormat("en-GB",{timeZone:"Europe/Madrid",hour:"2-digit",minute:"2-digit",hour12:!1}).format(e).split(":").map(Number),s=t+a/60,n=r(s),l=u(s);o(n&&!l)};e();let t=setInterval(e,6e4);return()=>clearInterval(t)},[a,s,e,r,u]),{chatEnabled:a,hubspotCodes:i,isWithinHours:l}})(),C=(0,w.useCookieConsentStatistics)();return((0,d.useEffect)(()=>{if(!v?.chatConfig||!C)return;let e="hubspot-messages-loader",t=v.chatConfig,a=document.querySelector(`#${e}`);if(Object.keys(t).reduce((e,t)=>e&&a?.hasAttribute(t),!0)){window.HubSpotConversations?.widget&&l(!0);return}window.hsConversationsSettings={loadImmediately:!1,inlineEmbedSelector:"#hubspot-chat-entrypoint-wrapper",enableWidgetCookieBanner:!0,disableAttachment:!0};let s=document.createElement("script");for(let a of(s.src="https://js.usemessages.com/conversations-embed.js",s.type="text/javascript",s.id=e,Object.keys(t)))s.setAttribute(a,t[a]);let n=document.querySelector("script");n?.parentNode?.insertBefore(s,n),s.onload=()=>{let e=()=>{let t=window.HubSpotConversations?.widget;t&&!t.status().loaded?(t.load({widgetOpen:!0}),l(!0)):requestAnimationFrame(e)};e()}},[v,C]),b&&C)?(0,u.jsxs)("div",{ref:e,className:(0,c.default)("fixed flex flex-col items-end z-40",o&&"z-hubspotChat","right-sm bottom-sm",q[t]??q.default),children:[(0,u.jsx)(P,{isModalVisible:a,setIsModalVisible:s,isWithinHours:x,message:r}),(0,u.jsx)(F,{onChatModalOpen:()=>s(!1),isConversationReady:n,isChatInterfaceOpen:o,setIsModalVisible:s,isModalVisible:a,isWithinHours:x,setIsChatInterfaceOpen:i})]}):null}],610133)},522745,function(e){e.n(e.i(610133))}]);
9
10//# debugId=43a22e26-f479-b73d-7ef9-28c6273ba796

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.