1(self.webpackChunkmarketing_site=self.webpackChunkmarketing_site||[]).push([[5299],{20121:function(e,a,t){"use strict";t.d(a,{A:function(){return i}});var s=t(91169),n=t(35066),r=t(93816);function i(e,a){(0,r.A)(2,arguments);var t=(0,n.A)(e),i=(0,s.A)(a);return isNaN(i)?new Date(NaN):i?(t.setDate(t.getDate()+i),t):t}},68133:function(e,a,t){"use strict";t.d(a,{A:function(){return i}});var s=t(91169),n=t(35066),r=t(93816);function i(e,a){(0,r.A)(2,arguments);var t=(0,n.A)(e),i=(0,s.A)(a);if(isNaN(i))return new Date(NaN);if(!i)return t;var o=t.getDate(),l=new Date(t.getTime());return l.setMonth(t.getMonth()+i+1,0),o>=l.getDate()?l:(t.setFullYear(l.getFullYear(),l.getMonth(),o),t)}},74581:function(e,a,t){"use strict";t.d(a,{A:function(){return r}});var s=t(35066),n=t(93816);function r(e){(0,n.A)(1,arguments);var a=(0,s.A)(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(23,59,59,999),a}},62815:function(e,a,t){"use strict";t.d(a,{A:function(){return i}});var s=t(91169),n=t(68133),r=t(93816);function i(e,a){return(0,r.A)(2,arguments),function(e,a){(0,r.A)(2,arguments);var t=(0,s.A)(a);return(0,n.A)(e,12*t)}(e,-(0,s.A)(a))}},686:function(e,a,t){"use strict";var s=t(17602);a.dv=s.useBreakpoint,s.BreakpointProvider,s.BreakpointContext,t(77998).withBreakpoints},77998:function(e,a,t){"use strict";var s=t(24994);a.__esModule=!0,a.withBreakpoints=void 0;var n=s(t(94634)),r=s(t(96540)),i=t(17602);a.withBreakpoints=e=>a=>{const t=(0,i.useBreakpoint)();return r.default.createElement(e,(0,n.default)({breakpoints:t},a))}},30552:function(e,a,t){"use strict";var s=t(74848);const n=e=>{var a,t;let{variant:n,size:r}=e;return(0,s.jsxs)("div",{className:`wiw-spinner-loader ${null!==(a=`${null!==(t=`${r}-size`)&&void 0!==t?t:"default-size"} ${n}-style`)&&void 0!==a?a:""}`,children:[(0,s.jsx)("div",{className:"wiw-loader-background"}),(0,s.jsx)("div",{className:"wiw-loader-segment light"}),(0,s.jsx)("div",{className:"wiw-loader-segment medium"}),(0,s.jsx)("div",{className:"wiw-loader-segment dark"}),(0,s.jsx)("span",{className:"is-sr-only",children:"Loading..."})]})};a.A=n},69020:function(e,a,t){"use strict";var s=t(96540),n=t(34829),r=t(686),i=t(69811),o=t(74848);a.A=e=>{const a=(0,r.dv)(),{0:t,1:l}=(0,s.useState)(0);return(0,o.jsx)("div",{className:e.third?"hwi--comparison-cards":"hwi--comparison-cards only-two",children:a.sm?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsxs)(n.Ay,{enableMouseEvents:!0,index:t,onChangeIndex:e=>l(e),style:{padding:"0 30px"},children:[(0,o.jsx)("div",{className:"hwi--swipe-card",children:e.first}),(0,o.jsx)("div",{className:"hwi--swipe-card",children:e.second}),e.third&&(0,o.jsx)("div",{className:"hwi--swipe-card",children:e.third})]}),(0,o.jsx)(i.A,{activeIndex:t,count:e.third?3:2,onSelect:e=>l(e)})]}):(0,o.jsxs)(s.Fragment,{children:[e.first,e.second,e.third&&e.third]})})}},76052:function(e,a,t){"use strict";var s=t(74848);a.A=e=>{let{direction:a,label:t,value:n,variant:r}=e;return(0,s.jsxs)("div",{className:`hwi--change-value variant--${r} animation--slide-down-fade-in`,children:[(0,s.jsx)("span",{className:`hwi-change-value--value hwi--trending-${a}`,children:n}),(0,s.jsx)("span",{className:"hwi-change-value--label",children:t})]})}},66704:function(e,a,t){"use strict";var s=t(96540),n=t(56735),r=t(74848);a.A=e=>{var a;let{backgroundColor:t,image:i}=e;return(0,r.jsxs)(s.Fragment,{children:[t&&(0,r.jsx)("div",{"aria-hidden":!0,className:"hwi-compare-card--background",children:(0,r.jsx)(n.A,{color:t})}),(0,r.jsx)("div",{className:"hwi-compare-card--image animation--slide-down-fade-in",children:(0,r.jsx)("img",{src:i.source_url,alt:null!==(a=i.alt_text)&&void 0!==a?a:""})})]})}},37414:function(e,a,t){"use strict";var s=t(76052),n=t(66704),r=t(22533),i=t(47339),o=t(25869),l=t(74848);a.A=e=>{let{backgroundColor:a,backgroundImage:t,changeValue:c,date:d,linkUrl:u,title:h}=e;const m=(0,i.A)(c);return(0,l.jsxs)("div",{className:"hwi--right-now-compare-card "+(u&&""!==u?"is-linked":""),onClick:u?e=>{var a,t;u&&"a"!==(null===(a=e.nativeEvent.target)||void 0===a||null===(t=a.tagName)||void 0===t?void 0:t.toLowerCase())&&window.open(u,"_blank")}:void 0,children:[(0,l.jsxs)("div",{className:"hwi-card--title animation--slide-up-fade-in",children:[h,(0,l.jsx)("span",{children:d})]}),(0,l.jsx)(r.A,{direction:m}),(0,l.jsx)(s.A,{direction:m,label:"HWI",value:(0,o.A)(c),variant:"lg"}),!!t&&(0,l.jsx)("a",{href:u,target:"_blank",rel:"noreferrer",children:(0,l.jsx)(n.A,{backgroundColor:a,image:t})})]})}},95631:function(e,a,t){"use strict";var s=t(30552),n=t(56735),r=t(66278),i=t(94774),o=t(32110),l=t(74848);a.A=e=>{let{showArc:a}=e;return(0,l.jsxs)("div",{className:"hwi--placeholder-big-card",children:[(0,l.jsx)(s.A,{size:"small",variant:"basic"}),(0,l.jsx)(o.A,{}),(0,l.jsx)(r.A,{variant:"large"}),(0,l.jsx)(i.A,{}),a&&(0,l.jsx)("div",{className:"hwi-compare-card--background",children:(0,l.jsx)(n.A,{color:"#EEEEEE"})})]})}},66278:function(e,a,t){"use strict";var s=t(35928),n=t(74848);a.A=e=>{let{variant:a}=e;return(0,n.jsx)(s.A,{borderRadius:"8px",className:"hwi-placeholder--card-number",height:"small"===a?"30px":"50px",width:"small"===a?"90px":"130px"})}},94774:function(e,a,t){"use strict";var s=t(35928),n=t(74848);a.A=()=>(0,n.jsx)(s.A,{borderRadius:"8px",className:"hwi-placeholder--card-label",height:"10px",width:"30px"})},32110:function(e,a,t){"use strict";var s=t(35928),n=t(74848);a.A=()=>(0,n.jsx)(s.A,{borderRadius:"8px",className:"hwi-placeholder--card-title",height:"10px",width:"120px"})},14823:function(e,a,t){"use strict";var s=t(30552),n=t(66278),r=t(94774),i=t(32110),o=t(74848);a.A=()=>(0,o.jsxs)("div",{className:"hwi--placeholder-small-card",children:[(0,o.jsx)(s.A,{size:"small",variant:"basic"}),(0,o.jsx)(i.A,{}),(0,o.jsxs)("div",{className:"hwi-compare-card--side-by-side",children:[(0,o.jsxs)("div",{className:"hwi-compare-side-by-side",children:[(0,o.jsx)(n.A,{variant:"small"}),(0,o.jsx)(r.A,{})]}),(0,o.jsx)("img",{src:"https://marketing-assets.wheniwork-production.com/2021/12/11224620/dashed-border.svg","aria-hidden":!0,alt:"Dashed Border Image"}),(0,o.jsxs)("div",{className:"hwi-compare-side-by-side",children:[(0,o.jsx)(n.A,{variant:"small"}),(0,o.jsx)(r.A,{})]})]})]})},29047:function(e,a,t){"use strict";var s=t(96540),n=t(41234),r=t(74848);a.A=e=>{var a;const t=(0,s.useRef)(null);return(0,r.jsxs)("div",{className:"hwi--state-selector",children:[(0,r.jsxs)("div",{className:"hwi--current-view-label","aria-hidden":!0,
1children:[e.value?null===(a=e.options.find((a=>a.short===e.value)))||void 0===a?void 0:a.name:e.allStatesLabel,(0,r.jsx)(n.A,{icon:"chevron-down"})]}),(0,r.jsxs)("select",{ref:t,id:"hwi-state-selector",onChange:e.onChange,value:e.value,children:[(0,r.jsx)("option",{value:"",children:e.allStatesLabel}),Object.values(e.options).map((e=>(0,r.jsx)("option",{value:e.short,children:e.name},e.short)))]})]})}},22533:function(e,a,t){"use strict";var s=t(47759),n=t(41234),r=t(74848);a.A=e=>{let{direction:a}=e;const t=a===s.S.GAIN?"arrow-up":a===s.S.DROP?"arrow-down":"sort";return(0,r.jsxs)("div",{className:`hwi-compare-card--direction-arrow hwi--trending-${a}`,children:[(0,r.jsxs)("span",{className:"is-sr-only",children:["Trend: ",a]}),(0,r.jsx)(n.A,{"aria-hidden":!0,icon:t})]})}},47339:function(e,a,t){"use strict";t.d(a,{A:function(){return n}});var s=t(47759);function n(e,a){return void 0!==a?e>0&&a>0?s.S.GAIN:e<0&&a<0?s.S.DROP:s.S.NEUTRAL:e>=0?s.S.GAIN:s.S.DROP}},25869:function(e,a,t){"use strict";function s(e){return`${a=e,(a>0?1:a<0?-1:a)>0?"+":""}${function(e){if(e>=1||e<=-1)return Math.round(e);const a=Math.pow(10,1);return Math.round(e*a)/a}(e)}%`;var a}t.d(a,{A:function(){return s}})},20002:function(e,a,t){"use strict";t.d(a,{A:function(){return l}});var s=t(73178),n=t(35066),r=t(93816);function i(e){return(0,r.A)(1,arguments),(0,n.A)(e).getDate()}var o=t(55494);function l(e,a,t){const n=(0,o.A)(e),r=(0,o.A)(a),l=(0,s.A)(n,"MMMM"),c=(0,s.A)(r,"MMMM"),d=(0,s.A)(n,"y"),u=(0,s.A)(r,"y"),h=i(n),m=i(r),g=new Date,v=new Date(g.getFullYear(),g.getMonth(),g.getDate()),f=new Date(v.setDate(v.getDate()-v.getDay()));return d===u?l===c?`${l} ${h} - ${t&&t?m:i(f)}, ${d}`:`${l} ${h} - ${c} ${m}, ${d}`:`${l} ${h}, ${d} - ${c} ${m}, ${u}`}},55494:function(e,a,t){"use strict";function s(e){const a=new Date(e);return new Date(a.valueOf()+60*a.getTimezoneOffset()*1e3)}t.d(a,{A:function(){return s}})},65665:function(e,a,t){"use strict";t.d(a,{A:function(){return n}});var s=t(74848);function n(e){let{data:a}=e;const t=a.replace(/(“|”|″|")/g,'"').replace(/&/g,"&");return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}})}},4960:function(e,a,t){"use strict";var s=t(28007),n=t(65665),r=t(67302),i=t(74848);a.A=e=>{const a=(0,s.GR)("2900423163"),t=a.allWordpressAcfOptions.edges[0].node.options.structured_data.default_site_data,o=a.allWordpressAcfOptions.edges[0].node.options.structured_data.default_software_application_data;return(0,i.jsxs)("footer",{className:"minimal-footer",children:[(0,i.jsx)("section",{className:"footer-section",style:{backgroundColor:`${e.backgroundColor?e.backgroundColor:"#ecf9e8"}`},children:(0,i.jsx)("div",{className:"container-large",children:(0,i.jsxs)("section",{className:"footer-wrap bottom","data-section":"footer-legal-links",children:[(0,i.jsxs)("div",{className:"footer-copyright",children:[(0,i.jsxs)("p",{className:"footer-text",children:["© ",(new Date).getFullYear()," When I Work, Inc."]}),(0,i.jsxs)("ul",{className:"footer-legal",children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"separator",children:" | "}),(0,i.jsx)(r.A,{to:"/privacy",className:"legal-link",title:"Privacy Notice",children:"Privacy Notice"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"separator",children:" | "}),(0,i.jsx)(r.A,{to:"/cookie-notice",className:"legal-link",title:"Cookie Notice",children:"Cookie Notice"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"separator",children:" | "}),(0,i.jsx)(r.A,{to:"/terms",className:"legal-link",title:"Terms of Service",children:"Terms of Service"})]})]})]}),(0,i.jsx)("div",{className:"footer-logo",children:(0,i.jsx)("img",{loading:"lazy",src:"https://marketing-assets.wheniwork-production.com/2020/05/14134746/footer-wheniwork-logo.svg",alt:"When I Work - Get Shift Done - Logo"})})]})})}),(0,i.jsx)(n.A,{data:t}),(0,i.jsx)(n.A,{data:o})]})}},56735:function(e,a,t){"use strict";var s=t(74848);a.A=e=>{let{color:a,svgClass:t}=e;return(0,s.jsx)("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:"0 0 398 119",version:"1.1","aria-hidden":"true",className:t&&t,children:(0,s.jsx)("g",{id:"v2",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("path",{d:"M0,-2.27450982e-08 C66.3333333,26.6666666 132.666667,40 199,40 C265.333333,40 331.666667,26.6666666 398,-2.27450982e-08 L398,119 L0,119 L0,-2.27450982e-08 Z",fill:null!=a?a:"#EEEEEE"})})})}},79535:function(e,a,t){"use strict";t.d(a,{z:function(){return l}});var s=t(96540),n=t(99634),r=t.n(n),i=t(686),o=t(74848);const l=e=>
1{let{background_image:a,className:t,title:n,sub_title:l,copy:c,imageBeforeText:d,imageFillBackground:u,imageDesktopOnly:h}=e;const{0:m,1:g}=(0,s.useState)(!0),v=(0,i.dv)();return(0,s.useEffect)((()=>{h&&v.sm?g(!1):g(!0)}),[v]),(0,o.jsxs)("section",{className:`default-page-hero-section section ${null!=t?t:""}`,children:[(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("div",{className:"hero-content",children:[l&&void 0===n?(0,o.jsx)("h1",{className:"sub-title",children:l}):(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("h1",{className:"title",children:n}),(0,o.jsx)("h2",{className:"sub-title",children:l})]}),d&&(0,o.jsx)("img",{src:null==a?void 0:a.source_url,className:"hero-image",role:"presentation"}),c&&(0,o.jsx)("p",{className:"copy",dangerouslySetInnerHTML:{__html:c}})]}),!u&&!d&&a&&m&&(0,o.jsx)("img",{src:null==a?void 0:a.source_url,className:"hero-image",role:"presentation"})]}),u&&a&&(0,o.jsx)("img",{src:null==a?void 0:a.source_url,className:r()({imageFillBackground:!0}),role:"presentation"})]})}},35928:function(e,a,t){"use strict";var s=t(99634),n=t.n(s),r=t(74848);a.A=e=>{let{backgroundColor:a,borderRadius:t,className:s,height:i,styles:o,width:l}=e;return(0,r.jsx)("div",{className:n()("placeholder-basic",s),style:{backgroundColor:null!=a?a:"#EEEEEE",borderRadius:t,height:i,width:l,...o}})}},94800:function(e,a,t){"use strict";var s=t(67302),n=t(74848);a.A=e=>{let{card:{slug:a,source_url:t,name:r,title:i,date:o}}=e;return(0,n.jsx)("div",{className:"column post-container is-one-third-desktop is-half-tablet",children:(0,n.jsxs)("div",{className:"card",children:[(0,n.jsx)("header",{className:"card-image",children:(0,n.jsx)("figure",{className:"image is-2by1",children:(0,n.jsx)("img",{loading:"lazy",src:null!=t?t:"https://marketing-assets.wheniwork-production.com/2021/12/11223232/generic_blog_image_post_header.jpg",alt:"Article Image"})})}),(0,n.jsxs)("div",{className:"card-content",children:[(0,n.jsxs)("div",{className:"card-date-category-container is-uppercase",children:[(0,n.jsx)("time",{children:o}),(0,n.jsx)("span",{className:"date-category-separator",children:"/"}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})]}),(0,n.jsx)("h3",{className:"title has-margin-top-md",dangerouslySetInnerHTML:{__html:i}})]}),(0,n.jsx)("footer",{className:"card-footer",children:(0,n.jsx)("div",{className:"card-button",children:(0,n.jsx)(s.A,{className:"button is-rounded",to:a,children:"Read Article"})})})]})})}},69811:function(e,a,t){"use strict";var s=t(23181),n=t.n(s),r=t(74848);a.A=e=>(0,r.jsx)("div",{className:"slider-dots",children:n()(0,e.count).map((a=>(0,r.jsx)("div",{className:"slider-dot "+(e.activeIndex===a?"slider-dot-filled":""),onClick:()=>e.onSelect(a)},a)))})},38239:function(e,a,t){"use strict";t.d(a,{A:function(){return x}});var s=t(28007),n=t(74745),r=t.n(n),i=t(90048),o=t(4960),l=t(7628),c=t(67302),d=t(74848);var u=()=>{const e=(0,s.GR)("4083288541");return(0,d.jsx)("nav",{className:"contact-us-navigation","data-section":"minimalPageNavigation",children:(0,d.jsx)("div",{className:"container-large",children:(0,d.jsxs)("div",{className:"columns is-vcentered is-flex",children:[(0,d.jsx)("div",{className:"column",children:(0,d.jsx)(c.A,{className:"logo-link",to:"/",title:"When I Work - Home",children:(0,d.jsx)("img",{className:"logo",src:e.allWordpressAcfOptions.edges[0].node.options.nav_logo.source_url,alt:e.allWordpressAcfOptions.edges[0].node.options.nav_logo.alt_text||"When I Work Logo - To Home Page"})})}),(0,d.jsx)("div",{className:"column has-text-right buttons nav-items",children:(0,d.jsx)("a",{className:"button is-press-inquiry is-rounded",href:"mailto:[email protected]",children:"Press Inquiries"})})]})})})};r().setAppElement("#___gatsby");var h=e=>{let{children:a}=e;return(0,d.jsxs)("div",{className:"layout-wrapper",children:[(0,d.jsx)(l.A,{}),(0,d.jsxs)(i.Zn,{children:[(0,d.jsx)(u,{}),(0,d.jsx)("div",{role:"main",children:a}),(0,d.jsx)(o.A,{})]})]})};var m=e=>{let{title:a,background_image:t,article:n}=e;return(0,d.jsx)("section",{className:"hwi--articles-section",children:(0,d.jsxs)("div",{className:"container",children:[(0,d.jsx)("h2",{className:"headline has-text-centered",children:a}),(0,d.jsxs)("div",{className:"hwi--featured-article",onClick:e=>{var a;"a"!==(null===(a=e.target.nodeName)||void 0===a?void 0:a.toLowerCase())&&(0,s.oo)(n.link.url)},children:[(0,d.jsx)("img",{loading:"lazy",className:"hwi--featured-article-image",src:t.desktop.source_url,alt:"Featured Article Graphic"}),(0,d.jsxs)("div",{className:"hwi--featured-article-cta",children:[(0,d.jsx)("h3",{className:"hwi--featured-article-cta-title",children:n.title}),(0,d.jsx)(c.A,{className:"hwi--featured-article-cta-button button is-rounded is-green",to:n.link.url,children:n.link.title})]})]})]})})},g=t(74316),v=t(79535),f=t(94800);var p=e=>{const a=[],t=/(Newsletter|Articles)/;
1return e.edges.forEach((e=>{var s,n,r;let{node:i}=e;const o=i.categories.filter((e=>!t.test(e.name)));return a.push({slug:`/blog/${i.slug}`,source_url:null!==(s=null==i||null===(n=i.featured_media)||void 0===n?void 0:n.source_url)&&void 0!==s?s:"https://marketing-assets.wheniwork-production.com/2021/12/11223232/generic_blog_image_post_header.jpg",name:null===(r=o[0])||void 0===r?void 0:r.name,title:i.title,excerpt:i.excerpt,date:i.date})})),(0,d.jsx)("section",{className:"section posts-section","data-section":"blogPosts",children:(0,d.jsx)("div",{className:"container",children:(0,d.jsx)("div",{className:"columns",children:a.map((e=>(0,d.jsx)(f.A,{card:e},e.slug)))})})})};var x=e=>{let{children:a}=e;const t=(0,s.GR)("400045601"),n=t.allWordpressPage.edges[0].node,r=t.allWordpressPost,i=n.acf.generic_featured_article,o=n.acf.default_page_hero;return(0,d.jsxs)(h,{children:[(0,d.jsx)(g.A,{...n.yoast_head_json}),(0,d.jsxs)("div",{className:"hwi-page-wrapper",children:[(0,d.jsx)(v.z,{...o,className:"hwi--hero",imageFillBackground:!0}),a,(0,d.jsx)(m,{...i}),(0,d.jsx)(p,{...r})]})]})}},63915:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return N},hwiPageUrl:function(){return A}});var s=t(96540),n=t(3701),r=t(28007),i=t(38239),o=t(82607),l=t(84072),c=t(69020),d=t(37414),u=t(76052),h=t(22533),m=t(47339),g=t(25869),v=t(74848);var f=e=>{let{blsChangeValue:a,date:t,hwiChangeValue:s,title:n}=e;const r=(0,m.A)(a,s);return(0,v.jsxs)("div",{className:"hwi--national-compare-card",children:[(0,v.jsxs)("div",{className:"hwi-card--title animation--slide-up-fade-in",children:[n,(0,v.jsx)("span",{children:t})]}),(0,v.jsx)(h.A,{direction:r}),(0,v.jsxs)("div",{className:"hwi-compare-card--side-by-side",children:[(0,v.jsx)("div",{className:"hwi-compare-side-by-side",children:(0,v.jsx)(u.A,{direction:(0,m.A)(s),label:"HWI",value:(0,g.A)(s),variant:"sm"})}),(0,v.jsx)("img",{src:"https://marketing-assets.wheniwork-production.com/2021/12/11224620/dashed-border.svg","aria-hidden":!0,alt:""}),(0,v.jsx)("div",{className:"hwi-compare-side-by-side",children:(0,v.jsx)(u.A,{direction:(0,m.A)(a),label:"BLS",value:(0,g.A)(a),variant:"sm"})})]})]})},p=t(95631),x=t(14823),j=t(29047),w=t(20002);e=t.hmd(e);const A="/hourly-workforce-index";var N=()=>{const a=(0,r.GR)("2343474530"),t=a.allWordpressPage.edges[0].node,u=(0,n.useQuery)(["hwi-national"],(()=>o.A.GetNationalData()));return(0,v.jsx)(i.A,{children:(0,v.jsx)("section",{className:"hwi--view-wrapper","data-signal":a.allWordpressPage.edges[0].node.wordpress_id,children:(0,v.jsx)("div",{className:"container container-large is-max-desktop",children:(0,v.jsxs)("div",{className:"hwi--data-container",children:[(0,v.jsx)("div",{className:"hwi--view-indicator",children:(0,v.jsx)(j.A,{allStatesLabel:t.acf.hwi_national.national_label,onChange:a=>{const{value:t}=a.target,s="click";let n=t,i=`${A}/state?state=${t}`;if(""===t)return n="National Index",i=A,(0,l.A)(s,e,n,i),void(0,r.oo)(A);(0,l.A)(s,e,n,i),(0,r.oo)(`${A}/state?state=${t}`)},options:t.acf.states.state.map((e=>({short:e.initial,name:e.name}))),value:""})}),(0,v.jsx)("div",{className:"hwi--view-by-links",children:(0,v.jsxs)(r.N_,{className:"button is-green is-rounded",to:`${A}/industry`,children:[(0,v.jsx)("span",{className:"is-hidden-mobile",children:"View By "}),"Industry"]})}),(0,v.jsx)(c.A,{first:(0,v.jsx)("div",{className:"hwi--compare-previous",children:u.data?(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(f,{blsChangeValue:u.data.lastMonth.changeBls,date:(0,w.A)(u.data.lastMonth.targetDay,u.data.lastMonth.referenceDay,!0),hwiChangeValue:u.data.lastMonth.change,title:t.acf.hwi_national.small_card_top_label}),(0,v.jsx)(f,{blsChangeValue:u.data.lastYear.changeBls,date:(0,w.A)(u.data.lastYear.targetDay,u.data.lastYear.referenceDay,!1),hwiChangeValue:u.data.lastYear.change,title:t.acf.hwi_national.small_card_bottom_label})]}):(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{}),(0,v.jsx)(x.A,{})]})}),second:(0,v.jsx)("div",{className:"hwi--compare-present",children:u.data?(0,v.jsx)(d.A,{backgroundColor:t.acf.hwi_national.large_card_background_color,backgroundImage:t.acf.hwi_national.large_card_image,changeValue:u.data.rightNow.change,date:(0,w.A)(u.data.rightNow.targetDay,u.data.r
1ightNow.referenceDay,!1),title:t.acf.hwi_national.large_card_label}):(0,v.jsx)(p.A,{showArc:!0})})})]})})})})}},47759:function(e,a,t){"use strict";t.d(a,{S:function(){return s}});let s=function(e){return e.GAIN="gain",e.DROP="drop",e.NEUTRAL="neutral",e}({})},82607:function(e,a,t){"use strict";t.d(a,{A:function(){return _}});var s=t(53224),n=t.n(s),r=t(73178),i=t(91169),o=t(68133),l=t(93816);function c(e,a){(0,l.A)(2,arguments);var t=(0,i.A)(a);return(0,o.A)(e,-t)}var d=t(35066);function u(e){(0,l.A)(1,arguments);var a=(0,d.A)(e);return a.setDate(1),a.setHours(0,0,0,0),a}var h=t(74581),m=t(20121);function g(e,a){(0,l.A)(2,arguments);var t=(0,i.A)(a);return(0,m.A)(e,-t)}var v=t(62815);var f=t(59238),p=t(55494);const x="y-MM-dd";function j(e){return(0,r.A)(e,x)}function w(e,a){return e-a}function A(e,a){let t=`https://public.wiwdata.com/hwi/region/${e}.html`;return a&&(t=`${t}?start=${a.start}&end=${a.end}`),t}function N(e){const a=f.A.parse(e);return{end:a.end?a.end:"",start:a.start?a.start:""}}function y(e,a){return{...a,hwiLink:A(e.toUpperCase(),N(a.hwiLink))}}const b="https://assets.wheniwork.com/hwi";let k=function(){function e(){}return e.GetNationalData=async function(){const e=await n().get(`${b}/hwi-bls-national.json`),a=e.data.data.national[0],t=a.history[a.history.length-1];return a.lastMonth=function(e,a){const t=c((0,p.A)(a.day),1),s=u(t),n=(0,h.A)(t);let r,i,o;for(const l of e)if(l.day===j(s)&&(r=l),l.day===j(n)&&(i=l),l.day===j(g(s,1))&&(o=l),r&&i&&o)break;if(!r||!i||!o)throw new Error("Error constructing lastMonth of national data");return{change:w(i.yoyEmployment,r.yoyEmployment),changeBls:w(r.yoyEmploymentBls,o.yoyEmploymentBls),referenceDay:j(n),targetDay:j(s)}}(a.history,t),a.rightNow=function(e,a){const t=(0,p.A)(a.day),s=u(t),n=e.find((e=>e.day===j(s)));if(!n)throw new Error("Error constructing rightNow of national data");return{change:w(a.yoyEmployment,n.yoyEmployment),changeBls:0,referenceDay:j(t),targetDay:j(s)}}(a.history,t),a.lastYear=function(e,a){const t=(0,p.A)(a.day),s=(0,h.A)(c(t,1)),n=(0,v.A)(s,1);let r,i;for(const o of e)if(o.day===j(s)&&(r=o),o.day===j(n)&&(i=o),r&&i)break;if(!r||!i)throw new Error("Error constructing lastYear of national data");return{change:w(r.yoyEmployment,i.yoyEmployment),changeBls:w(r.yoyEmploymentBls,i.yoyEmploymentBls),referenceDay:j(s),targetDay:j(n)}}(a.history,t),e.data.data={...e.data.data,national:[{...a}]},a},e.GetRegionalData=async function(e){let a=(await n().get(`${b}/hwi-${e.toUpperCase()}.json`)).data;return a&&(a={...a,hwiLink:A(e),lastWeek:y(e,a.lastWeek),thisMonth:y(e,a.thisMonth),lastMonth:y(e,a.lastMonth),lastYear:y(e,a.lastYear),sinceCovid:y(e,a.sinceCovid)}),a},e.MakeRegionalMapImageUrl=function(e,a){const t=e.stateShort.toUpperCase();let s=e.endDate;if("lastMonth"===a){const a=function(e){(0,l.A)(1,arguments);var a=(0,d.A)(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(0,0,0,0),a}((0,p.A)(e.lastMonth.date));s=(0,r.A)(a,x)}return`${b}/maps/${t}/${s}/${a}.png`},e.GetFoodServiceData=async function(){return(await n().get(`${b}/hwi-raw-national-foodservice.json`)).data},e.GetHospitalityData=async function(){return(await n().get(`${b}/hwi-raw-national-hospitality.json`)).data},e.GetRetailData=async function(){return(await n().get(`${b}/hwi-raw-national-retail.json`)).data},e.GetAllIndustryData=async function(){const e=[this.GetFoodServiceData(),this.GetHospitalityData(),this.GetRetailData()],a=await Promise.all(e);return{foodService:a[0],hospitality:a[1],retail:a[2]}},e.GetAvailableReports=async function(){return(await n().get("https://marketing-backend.api.wheniwork-production.com/api/hourly-workforce-index-monthly-reports")).data.reports},e}();var _=k},86151:function(e){var a=Math.ceil,t=Math.max;e.exports=function(e,s,n,r){for(var i=-1,o=t(a((s-e)/(n||1)),0),l=Array(o);o--;)l[r?o:++i]=e,e+=n;return l}},54128:function(e,a,t){var s=t(31800),n=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(n,""):e}},85508:function(e,a,t){var s=t(86151),n=t(36800),r=t(17400);e.exports=function(e){return function(a,t,i){return i&&"number"!=typeof i&&n(a,t,i)&&(t=i=void 0),a=r(a),void 0===t?(t=a,a=0):t=r(t),i=void 0===i?a<t?1:-1:r(i),s(a,t,i,e)}}},30361:function(e){var a=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var s=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==s||"symbol"!=s&&a.test(e))&&e>-1&&e%1==0&&e<t}},36800:function(e,a,t){var s=t(75288),n=t(64894),r=t(30361),i=t(23805);e.exports=function(e,a,t){if(!i(t))return!1;var o=typeof a;return!!("number"==o?n(t)&&r(a,t.length):"string"==o&&a in t)&&s(t[a],e)}},31800:function(e){var a=/\s/;e.exports=function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}},64894:function(e,a,t){var s=t(1882),n=t(30294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},30294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},23181:function(e,a,t){var s=t(85508)();e.exports=s},17400:function(e,a,t){var s=t(99374),n=1/0;e.exports=function(e){return e?(e=s(e))===n||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},99374:function(e,a,t){var s=t(54128),n=t(23805),r=t(44394),i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(n(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=n(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var t=o.test(e);return t||l.test(e)?c(e.slice(2),t?2:8):i.test(e)?NaN:+e}},94634:function(e){function a(){return e.exports=a=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,a.apply(this,arguments)}
1e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}}]); 2//# sourceMappingURL=76e49ac6b88d32f00e135327ffc5b0149a627faa-22f34854094330b6000e.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.