PageSourceSearch

https://relationshipengineer.com/_next/static/chunks/82-0a2130579c8cf08c.js

js relationshipengineer.com collected 2026-10-04 04:00:40 UTC 15,054 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{1438:(e,t,r)=>{r.d(t,{ImageCarousel:()=>g});var n=r(95155),a=r(12115),s=r(15239),l=r(68072),o=r(35626),i=r(52987),d=r(64269),c=r(3998);let u=a.createContext(null);function m(){let e=a.useContext(u);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function x(e){let{orientation:t="horizontal",opts:r,setApi:s,plugins:o,className:i,children:c,...m}=e,[x,f]=(0,l.A)({...r,axis:"horizontal"===t?"x":"y"},o),[p,h]=a.useState(!1),[b,g]=a.useState(!1),v=a.useCallback(e=>{e&&(h(e.canScrollPrev()),g(e.canScrollNext()))},[]),y=a.useCallback(()=>{null==f||f.scrollPrev()},[f]),j=a.useCallback(()=>{null==f||f.scrollNext()},[f]),N=a.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[y,j]);return a.useEffect(()=>{f&&s&&s(f)},[f,s]),a.useEffect(()=>{if(f)return v(f),f.on("reInit",v),f.on("select",v),()=>{null==f||f.off("select",v)}},[f,v]),(0,n.jsx)(u.Provider,{value:{carouselRef:x,api:f,opts:r,orientation:t||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:j,canScrollPrev:p,canScrollNext:b},children:(0,n.jsx)("div",{onKeyDownCapture:N,className:(0,d.cn)("relative",i),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...m,children:c})})}function f(e){let{className:t,...r}=e,{carouselRef:a,orientation:s}=m();return(0,n.jsx)("div",{ref:a,className:"overflow-hidden","data-slot":"carousel-content",children:(0,n.jsx)("div",{className:(0,d.cn)("flex","horizontal"===s?"-ml-4":"-mt-4 flex-col",t),...r})})}function p(e){let{className:t,...r}=e,{orientation:a}=m();return(0,n.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:(0,d.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===a?"pl-4":"pt-4",t),...r})}function h(e){let{className:t,variant:r="outline",size:a="icon",...s}=e,{orientation:l,scrollPrev:i,canScrollPrev:u}=m();return(0,n.jsxs)(c.$,{"data-slot":"carousel-previous",variant:r,size:a,className:(0,d.cn)("absolute size-8 rounded-full","horizontal"===l?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!u,onClick:i,...s,children:[(0,n.jsx)(o.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function b(e){let{className:t,variant:r="outline",size:a="icon",...s}=e,{orientation:l,scrollNext:o,canScrollNext:u}=m();return(0,n.jsxs)(c.$,{"data-slot":"carousel-next",variant:r,size:a,className:(0,d.cn)("absolute size-8 rounded-full","horizontal"===l?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!u,onClick:o,...s,children:[(0,n.jsx)(i.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Next slide"})]})}function g(e){let{images:t,caption:r}=e,[l,o]=(0,a.useState)(),[i,c]=(0,a.useState)(0),u=(0,a.useCallback)(()=>{l&&c(l.selectedScrollSnap())},[l]);return(0,a.useEffect)(()=>{if(l)return u(),l.on("select",u),()=>{l.off("select",u)}},[l,u]),(0,n.jsxs)("div",{className:"my-8 max-w-2xl mx-auto",children:[(0,n.jsxs)(x,{opts:{loop:!0},setApi:o,className:"w-full",children:[(0,n.jsx)(f,{children:t.map((e,t)=>(0,n.jsx)(p,{children:(0,n.jsx)(s.default,{src:e.src,alt:e.alt,width:1226,height:398,className:"rounded-lg w-full h-auto"})},t))}),(0,n.jsx)(h,{variant:"ghost",className:"size-10 -left-14 dark:[box-shadow:0_0_5px_#00FF88,0_0_10px_#00FF88,0_0_15px_#00FF88] dark:[animation:breathing-glow-green_3s_ease-in-out_infinite] dark:hover:[box-shadow:0_0_10px_#00FF88,0_0_20px_#00FF88,0_0_30px_#00FF88]"}),(0,n.jsx)(b,{variant:"ghost",className:"size-10 -right-14 dark:[box-shadow:0_0_5px_#00FF88,0_0_10px_#00FF88,0_0_15px_#00FF88] dark:[animation:breathing-glow-green_3s_ease-in-out_infinite] dark:hover:[box-shadow:0_0_10px_#00FF88,0_0_20px_#00FF88,0_0_30px_#00FF88]"})]}),(0,n.jsx)("div",{className:"flex justify-center gap-2 mt-3",children:t.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l.scrollTo(t),className:(0,d.cn)("size-2 rounded-full transition-colors",t===i?"bg-primary":"bg-muted-foreground
1/30"),"aria-label":"Go to slide ".concat(t+1)},t))}),r&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground text-center mt-2",children:r})]})}},3998:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(95155);r(12115);var a=r(32467),s=r(83101),l=r(64269);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:r,size:s,asChild:i=!1,...d}=e,c=i?a.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,l.cn)(o({variant:r,size:s,className:t})),...d})}},64269:(e,t,r)=>{r.d(t,{cn:()=>s});var n=r(2821),a=r(75889);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}},70415:(e,t,r)=>{r.d(t,{VacancyCostCalculator:()=>i});var n=r(95155),a=r(12115);let s=[{p:0,days:21},{p:.25,days:46},{p:.5,days:62},{p:.75,days:95},{p:.9,days:119},{p:1,days:317}];function l(e){return!isFinite(e)||e<=0?"$0":e>=1e6?"$".concat((e/1e6).toFixed(2),"M"):"$".concat(Math.round(e/1e3),"k")}function o(e,t){if(!e)return"";let[r,n,a]=e.split("-").map(Number);if(!r||!n||!a)return"";let s=new Date(r,n-1,a);return s.setDate(s.getDate()+t),s.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function i(e){let{title:t,defaultSalary:r=15e4,percentiles:i=s}=e,[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(r),[x,f]=(0,a.useState)(null),[p,h]=(0,a.useState)(null),[b,g]=(0,a.useState)(!1),[v,y]=(0,a.useState)(null),j=(0,a.useRef)(null);(0,a.useEffect)(()=>(c(function(){let e=new Date,t=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t,"-").concat(r)}()),()=>{j.current&&clearTimeout(j.current)}),[]);let N=(e,t)=>{y(null),g(!1),f(e),h(t)},k=u/365,w=null!==x?k*x:0,_=null!==v?o(d,v):"",F=null!==x?o(d,x):"",S=b||null!==x;return(0,n.jsxs)("figure",{className:"my-8 w-full rounded-lg border border-border bg-card p-4 sm:p-6 shadow-md",children:[t&&(0,n.jsx)("p",{className:"text-center text-lg font-semibold text-foreground mb-6",children:t}),(0,n.jsxs)("div",{className:"mx-auto max-w-sm space-y-5 mb-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"vcc-published",className:"block text-sm font-medium text-foreground mb-1",children:"Req open date"}),(0,n.jsx)("input",{id:"vcc-published",type:"date",value:d,onChange:e=>c(e.target.value),className:"w-full rounded-md border border-border bg-background px-3 py-2.5 text-base text-foreground tabular-nums focus:outline-none focus:ring-2 focus:ring-primary/40 focus:border-primary [color-scheme:light] dark:[color-scheme:dark] [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-50 [&::-webkit-calendar-picker-indicator]:hover:opacity-80"})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,n.jsx)("label",{htmlFor:"vcc-salary",className:"text-sm font-medium text-foreground",children:"Target salary"}),(0,n.jsx)("span",{className:"text-lg font-semibold text-foreground tabular-nums",children:l(u)})]}),(0,n.jsx)("input",{id:"vcc-salary",type:"range",min:8e4,max:3e5,step:5e3,value:u,onChange:e=>
1m(Number(e.target.value)),className:"w-full accent-primary cursor-pointer"})]})]}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsxs)("button",{type:"button",onClick:()=>{var e,t;if(b)return;j.current&&clearTimeout(j.current);let r=Math.random(),n=function(e,t){for(let r=1;r<e.length;r++)if(t<=e[r].p){let n=e[r-1],a=e[r],s=a.p-n.p||1,l=(t-n.p)/s;return Math.round(n.days+l*(a.days-n.days))}return e[e.length-1].days}(i,r),a=Math.min(99,Math.max(1,Math.round(100*r)));if(null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)return void N(n,a);g(!0),f(null),h(null);let s=i[0].days,l=i[i.length-1].days,o=0,d=60,c=()=>{y(s+Math.round(Math.random()*(l-s))),(o+=d)>850&&(d*=1.25),o<1400?j.current=setTimeout(c,d):N(n,a)};c()},disabled:b,className:"inline-flex items-center gap-2 rounded-md bg-primary px-6 py-3 text-base font-semibold text-primary-foreground shadow-sm transition-colors hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-primary/40 disabled:opacity-80 disabled:cursor-default",children:[(0,n.jsx)("span",{className:b?"inline-block animate-spin":"inline-block","aria-hidden":"true",children:"\uD83C\uDFB2"}),b?"Rolling…":null===x?"Roll your req":"Roll again"]})}),S&&(0,n.jsxs)("div",{className:"mt-6 text-center border-t border-border pt-5 space-y-1.5",children:[(0,n.jsxs)("p",{className:"text-lg font-medium text-foreground tabular-nums",children:["You’d fill this around ",b?_:F]}),!b&&null!==x&&(0,n.jsxs)("p",{className:"text-lg font-medium text-muted-foreground tabular-nums",children:[x," days \xb7"," ",(0,n.jsxs)("span",{className:"text-destructive",children:[l(w)," cost of vacancy"]})," \xb7"," ",function(e){let t=["th","st","nd","rd"],r=e%100;return"".concat(e).concat(t[(r-20)%10]||t[r]||t[0])}(null!=p?p:0)," percentile"]})]})]})}},85979:(e,t,r)=>{r.d(t,{PentagonPicker:()=>l});var n=r(95155),a=r(12115);let s=[{id:"sustainable",label:"Sustainable",point:"0,-150"},{id:"speed",label:"Fast",point:"142.658,-46.352"},{id:"cost",label:"Cheap",point:"88.167,121.352"},{id:"legal",label:"Legal",point:"-88.167,121.352"},{id:"quality",label:"Good",point:"-142.658,-46.352"}];function l(){let[e,t]=(0,a.useState)(new Set(["quality","speed","legal","sustainable"])),r=s.map(t=>e.has(t.id)?t.point:"0,0").join(" "),l=4-e.size;return(0,n.jsx)("div",{className:"max-w-4xl mx-auto my-8",children:(0,n.jsxs)("div",{className:"flex flex-wrap gap-8 items-start",children:[(0,n.jsx)("div",{className:"flex-1 min-w-[300px]",children:(0,n.jsx)("svg",{viewBox:"-50 -50 500 500",className:"w-full",children:(0,n.jsxs)("g",{transform:"translate(200, 200)",children:[(0,n.jsx)("polygon",{points:"0,-150 142.658,-46.352 88.167,121.352 -88.167,121.352 -142.658,-46.352",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-border"}),(0,n.jsx)("polygon",{points:"0,-120 114.126,-37.082 70.534,97.082 -70.534,97.082 -114.126,-37.082",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-border"}),(0,n.jsx)("polygon",{points:"0,-90 85.595,-27.811 52.9,72.811 -52.9,72.811 -85.595,-27.811",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-border"}),s.map(e=>{let[t,r]=e.point.split(",").map(Number);return(0,n.jsx)("line",{x1:"0",y1:"0",x2:t,y2:r,stroke:"currentColor",strokeWidth:"0.5",className:"text-border"},e.id)}),(0,n.jsx)("polygon",{points:r,style:{fill:"color-mix(in srgb, var(--primary) 20%, transparent)",stroke:"var(--primary)"},strokeWidth:"2"}),(0,n.jsx)("text",{x:"0",y:"-170",textAnchor:"middle",fontSize:"16",className:"fill-foreground font-sans",children:"Sustainable"}),(0,n.jsx)("text",{x:"162.658",y:"-46.352",textAnchor:"start",fontSize:"16",className:"fill-foreground font-sans",children:"Fast"}),(0,n.jsx)("text",{x:"98.167",y:"141.352",textAnchor:"middle",fontSize:"16",className:"fill-foreground font-sans",children:"Cheap"}),(0,n.jsx)("text",{x:"-98.167",y:"141.352",textAnchor:"middle",fontSize:"16",className:"fill-foreground font-sans",children:"Legal"}),(0,n.jsx)("text",{x:"-172.658",y:"-46.352",textAnchor:"end",fontSize:"16",className:"fill-foreground font-sans",children:"Good"})]})})}),(0,n.jsxs)("div",{className:"flex-1 min-w-[300px]",children:[s.map(r=>{let a=e.has(r.id),s=!a&&e.size>=4;return(0,n.jsxs)("div",{className:"flex justify-between items-center py-3 border-b border-border last:border-b-0",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-foreground",children:r.label}),(0,n.jsx)("button",{type:"button","aria-label":"".concat(r.label,": ").concat(a?"selected":"not selected"),title:"Toggle ".concat(r.label),disabled:s,onClick:()=>{var e;return e=r.id,void t(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.size<4&&r.add(e),r})},className:"\n                    relative inline-flex h-7 w-14 shrink-0 cursor-pointer rounded-full border-2\n                    transition-colors duration-200 ease-in-out\n                    focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n                    ".concat(a?"bg-primary border-primary":"bg-muted border-primary/50","\n                    ").concat(s?"opacity-50 cursor-not-allowed":"","\n                  "),children:(0,n.jsx)("span",{className:"\n                      pointer-events-none inline-block h-5 w-5 transform rounded-full\n                      shadow-lg ring-0 transition duration-200 ease-in-out\n                      ".concat(a?"translate-x-7":"translate-x-0.5"," bg-white outline outline-2 outline-primary\n                      mt-0.5\n                    ")})})]},r.id)}),(0,n.jsxs)("p",{className:"mt-4 text-sm text-muted-foreground",children:["Select exactly 4 dimensions. ",l," remaining."]})]})]})})}},88243:(e,t,r)=>{r.r(t),r.d(t,{Subscribe:()=>l});var n=r(95155),a=r(12115),s=r(5379);function l(){let e=(0,a.useRef)(null),{theme:t}=(0,s.D)(),[r,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>
1{l(!0)},[]),(0,a.useEffect)(()=>{let n=e.current;if(!n||!r)return;n.innerHTML="";let a="dark"===t,s=document.createElement("script");return s.src="https://cdn.jsdelivr.net/ghost/signup-form@~0.3/umd/signup-form.min.js",s.setAttribute("data-button-color",a?"#00FF88":"#065f46"),s.setAttribute("data-button-text-color",a?"#0A0A0A":"#FFFFFF"),s.setAttribute("data-site","https://gtm.relationshipengineer.com/"),s.setAttribute("data-locale","en"),s.async=!0,n.appendChild(s),()=>{n.innerHTML=""}},[t,r]),(0,n.jsx)("div",{className:"mt-12 pt-8 border-t border-border",children:(0,n.jsx)("div",{ref:e,className:"min-h-[58px] max-w-[440px]"})})}}}]);

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.