1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[236],{6440:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources/[slug]",function(){return n(7039)}])},185:function(e,a){"use strict";a.Z=function(){var e,a,n,l;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,t=(null==s?void 0:null===(e=s.content)||void 0===e?void 0:e.meta_title)?s.content.meta_title:null,o=(null==s?void 0:null===(a=s.content)||void 0===a?void 0:a.meta_description)?s.content.meta_description:null,r=(null==s?void 0:null===(n=s.content)||void 0===n?void 0:n.og_image)?s.content.og_image.filename:null,c=(null==s?void 0:null===(l=s.content)||void 0===l?void 0:l.og_image)?s.content.og_image.alt:null,m=Object.assign({},t&&{title:t,openGraph:{title:t}},o&&{description:o,openGraph:{description:o}},r&&{openGraph:{images:[{url:r,alt:c}]}},i&&i);return m}},7039:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSG:function(){return g},default:function(){return b}});var l=n(5893),s=n(9008),i=n.n(s),t=n(2308),o=n(3277),r=n(5203),c=n(1163),m=n(2962),d=n(185),u=n(7294),h=e=>{let{mailchimpTag:a,asset:n}=e,[s,i]=(0,u.useState)("idle"),[t,o]=(0,u.useState)(""),[r,c]=(0,u.useState)({fname:"",lname:"",email:"",company:"",hp:"",marketingOptIn:!1}),m=async e=>{e.preventDefault(),i("loading");let l=await fetch("/.netlify/functions/addMember",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({formData:r,mailchimpTag:a,assetName:n.alt,audienceId:"a47710090c"})});if(l.ok)i("success"),o(""),window.open(n.filename,"_blank");else{let e=await l.text();i("error"),o(e)}};return(0,l.jsx)("form",{className:"js-validate card shadow-lg",onSubmit:m,method:"post",id:"mc-subscribe-form",children:(0,l.jsxs)("div",{className:"card-body p-4 p-md-5",children:[(0,l.jsx)("input",{id:"hp",name:"hp",style:{display:"none"},type:"text",tabIndex:-1,autoComplete:"off",value:r.hp,onChange:e=>c({...r,hp:e.target.value})}),(0,l.jsxs)("div",{className:"js-form-message form-group mb-3",children:[(0,l.jsx)("label",{className:"sr-only",htmlFor:"mce-EMAIL",children:"Email Address"}),(0,l.jsx)("input",{type:"email",onChange:e=>c({...r,email:e.target.value}),value:r.email,className:"form-control",name:"EMAIL",id:"mce-EMAIL",placeholder:"[email protected]","aria-label":"Email address",required:!0,"data-msg":"Please enter a valid email address"})]}),(0,l.jsxs)("div",{className:"js-form-message form-group mb-3",children:[(0,l.jsx)("label",{className:"sr-only",htmlFor:"mce-FNAME",children:"First Name"}),(0,l.jsx)("input",{type:"text",onChange:e=>c({...r,fname:e.target.value}),value:r.fname,className:"form-control",name:"FNAME",id:"mce-FNAME",placeholder:"First name","aria-label":"First name",required:!0,"data-msg":"Please enter your first name"})]}),(0,l.jsxs)("div",{className:"js-form-message form-group mb-3",children:[(0,l.jsx)("label",{className:"sr-only",htmlFor:"mce-LNAME",children:"Last Name"}),(0,l.jsx)("input",{type:"text",onChange:e=>c({...r,lname:e.target.value}),value:r.lname,className:"form-control",name:"LNAME",id:"mce-LNAME",placeholder:"Last name","aria-label":"Last name",required:!0,"data-msg":"Please enter your last name"})]}),(0,l.jsxs)("div",{className:"js-form-message form-group mb-3",children:[(0,l.jsx)("label",{className:"sr-only",htmlFor:"mce-MMERGE5",children:"Company name"}),(0,l.jsx)("input",{type:"text",onChange:e=>c({...r,company:e.target.value}),value:r.company,className:"form-control",name:"MMERGE5",id:"mce-MMERGE5",placeholder:"Company name","aria-label":"Company name",required:!0,"data-msg":"Please enter your company name"})]}),(0,l.jsx)("div",{className:"js-form-message mb-3",children:(0,l.jsx)("div",{className:"d-flex align-items-center",children:(0,l.jsx)("label",{children:(0,l.jsxs)("small",{children:["By submitting your details, you hereby agree to our"," ",(0,l.jsx)("a",{className:"link-underline",href:"/privacy",children:"Privacy Policy"}),"."]})})})}),(0,l.jsx)("div",{className:"js-form-message mb-2",children:(0,l.jsxs)("div",{className:"custom-control custom-checkbox d-flex align-items-center",children:[(0,l.jsx)("input",{type:"checkbox",onChange:e=>c({...r,marketingOptIn:e.target.checked}
1),value:r.marketingOptIn,className:"custom-control-input",name:"ADDOPTIN",id:"mce-ADDOPTIN"}),(0,l.jsx)("label",{className:"custom-control-label small",htmlFor:"mce-ADDOPTIN",children:"I also agree to receive other communications from ExpenseIn. I can opt out at any time."})]})}),(0,l.jsxs)("button",{type:"submit",className:"btn btn-primary btn-block mb-2",disabled:"loading"===s,children:[(0,l.jsx)("span",{className:"".concat("loading"===s?"d-none":"d-inline-block"),children:"Download Guide"}),(0,l.jsx)("div",{className:"spinner-border spinner-border-sm ".concat("loading"===s?"d-inline-block":"d-none"),"aria-hidden":"true",children:(0,l.jsx)("span",{role:"status",className:"invisible",children:"Loading..."})})]}),"error"==s?(0,l.jsxs)("div",{className:"d-block mt-3 invalid-feedback",children:["Apologies, we had an issue: ",(0,l.jsxs)("span",{id:"error-text",children:["'",t,"'"]})]}):null]})})},p=n(387),v=n(455),x=n(5308),g=!0;function b(e){var a,n,s,u,g,b,j,f,N;let{story:y,articlesData:_,categories:k,global:E,preview:w,extraData:M}=e;y=(0,x.Z)(y,w);let I=(0,c.useRouter)();if(I.isFallback)return(0,l.jsx)(r.Z,{});let A="true"==M.noindex?{noindex:!0,nofollow:!0}:null;(null===(n=y)||void 0===n?void 0:null===(a=n.content)||void 0===a?void 0:a.featured_image)&&(y.content.og_image=y.content.featured_image);let C=(0,d.Z)(y,A),F="https://www.expensein.com/".concat(null===(s=y)||void 0===s?void 0:s.full_slug.replace(/\/+$/,""));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsxs)("title",{children:[y?y.name:"ExpenseIn Guides"," | ExpenseIn"]}),(0,l.jsx)(o.Z,{preview:w}),(0,l.jsx)("script",{src:"/assets/vendor/hs-scroll-nav/dist/hs-scroll-nav.min.js",onLoad:"initScrollNav()"})]}),(0,l.jsx)(m.PB,{...C,canonical:F}),(0,l.jsx)(t.Z,{layout:null===(u=y)||void 0===u?void 0:u.content.layout,global:E,preview:w,story:y,children:(0,l.jsxs)("main",{id:"resource-page",className:"border-bottom",children:[(null===(g=y)||void 0===g?void 0:g.content.hero)?y.content.hero.map(e=>(0,l.jsx)(p.Z,{blok:e},e._uid)):null,(0,l.jsx)("div",{className:"container container-fluid space-2",id:"form-section",children:(0,l.jsxs)("div",{className:"row justify-content-lg-between align-items-center",children:[(0,l.jsx)("div",{className:"col-md-5 mb-9 mb-lg-0",children:(0,l.jsx)("div",{className:"richtext_block",children:(0,v.sY)(null===(b=y)||void 0===b?void 0:b.content.text,{nodeResolvers:{[v.wZ]:e=>(0,l.jsxs)("div",{className:"media resource-list align-items-center mb-2",children:[(0,l.jsx)("span",{className:"icon icon-lg h-auto",children:(0,l.jsx)("i",{className:"fa-xs text-primary fas fa-check"})}),(0,l.jsx)("div",{className:"media-body",children:e})]}),[v.mD]:e=>(0,l.jsx)("div",{className:"list mb-4",children:e}),[v.MM]:(e,a)=>(0,l.jsx)("img",{...a,className:"mw-100"})},blokResolvers:{button:e=>(0,l.jsx)(Button,{blok:e,classes:"mb-3"}),divider:e=>(0,l.jsx)(Divider,{blok:e})}})})}),(0,l.jsx)("div",{className:"col-md-6 col-lg-5",children:(0,l.jsx)(h,{mailchimpTag:null===(j=y)||void 0===j?void 0:j.content.mailchimp_tag,asset:null===(f=y)||void 0===f?void 0:f.content.resource})})]})}),(null===(N=y)||void 0===N?void 0:N.content.extra_blocks)?y.content.extra_blocks.map(e=>(0,l.jsx)(p.Z,{blok:e},e._uid)):null]})})]})}}},function(e){e.O(0,[662,164,89,541,10,776,698,387,774,888,179],function(){return e(e.s=6440)}),_N_E=e.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.