1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2990],{7418:(e,l,t)=>{t.d(l,{A:()=>r});var n=t(37876);t(14232);var a=t(19762),o=t(61351);let i=e=>{let{text:l,className:t,style:a}=e;return(0,n.jsx)("button",{type:"button",className:t,style:a,children:(0,n.jsx)(o.A,{content:l})})},r=e=>{let{text:l,url:t,className:r,labelClassName:s,labelStyle:d,isPreview:c,lpId:u,slug:m,templateId:x=0,theme:p,lpCrmContent:h,currentLpInquiryEmails:g,setOpen:f}=e,v=(e=>"string"==typeof e&&e.startsWith("modal:"))(t);return(0,n.jsx)(a.Je,{url:t,lpId:u,isPreview:c,className:r,slug:m,theme:p,templateId:x,lpCrmContent:h,currentLpInquiryEmails:g,setOpen:f,children:v?(0,n.jsx)(i,{text:l,className:s,style:d}):(0,n.jsx)(o.A,{content:l,className:s,style:d})})}},12990:(e,l,t)=>{t.r(l),t.d(l,{default:()=>f});var n=t(37876),a=t(14232),o=t(54587),i=t.n(o),r=t(19762),s=t(26952),d=t(98375),c=t(6226),u=t(31777),m=t(18175),x=t(43278),p=t(51086),h=t(7418),g=t(61351);let f=e=>{var l,t,o,f,v,b,w,y,j,N,k,C,P,S,F,I,A,R,E,L,z,B,T,_,q,M,D,J,K,V,O,H,W,$,G,Z;let{data:U,theme:Y,lpId:Q,slug:X,currentLpInquiryEmails:ee,isPreview:el,orderIndex:et,templateId:en=0,lpCrmContent:ea}=e;(0,u.wA)();let eo=(0,a.useRef)(null),[ei,er]=(0,a.useState)(0),{media:es}=U,ed=(null==es?void 0:es.image)?(0,m.g)(null==es?void 0:es.image,{width:220,quality:80}):(0,m.g)("landing-page/thumbnail.png",{width:220,quality:65}),[ec,eu]=(0,a.useState)(!1),[em,ex]=(0,a.useState)(!1),ep=(null==U||null==(l=U.button)?void 0:l.buttonColor)||(null==Y||null==(t=Y.color)?void 0:t.primary),eh=(null==U||null==(o=U.button1)?void 0:o.buttonColor)||(null==Y||null==(f=Y.color)?void 0:f.primary),{isTransparentHeader:eg,headerBackgroundColor:ef,opaqueHeaderBackgroundColor:ev}=(0,p.Vd)(null==U?void 0:U.backgroundColor,"#fff",null==U?void 0:U.backgroundColorOnScroll);(0,a.useEffect)(()=>{let e=()=>{eo.current&&er(eo.current.offsetHeight)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[em]);let eb=(0,a.useCallback)(()=>ex(e=>!e),[]),ew=()=>{var e,l;let{backgroundMedia:t}=U,a=(null==t?void 0:t.image)?(0,m.g)(null==t?void 0:t.image,{width:1400,quality:72}):"/v2/static/images/landing/thumbnail.png";return(0,n.jsxs)("div",{className:"overflow-hidden",children:[(0,n.jsx)(i(),{src:a,alt:(null==t?void 0:t.altText)||"AboutUsImage",title:(null==t?void 0:t.title)||"AboutUsImage",fill:!0,priority:!0,sizes:"100vw",className:"object-cover object-center absolute top-0 ".concat((null==U||null==(e=U.downloadPdf)?void 0:e.pdf)?"max-w-[77rem]":"max-w-screen-cw"," mx-auto lg:rounded-b-[17px]")}),(null==t?void 0:t.overlay)&&(0,n.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-30 z-0 ".concat((null==U||null==(l=U.downloadPdf)?void 0:l.pdf)?"max-w-[77rem]":"max-w-screen-cw"," mx-auto lg:rounded-b-[17px]")})]})};return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)("div",{className:"md:max-h-[90px]",children:(0,n.jsxs)(n.Fragment,{children:[ec&&(0,n.jsx)(x.A,{open:ec,setOpen:eu,slug:X,pdf:null==U||null==(v=U.downloadPdf)?void 0:v.pdf,theme:Y,lpId:Q,currentLpInquiryEmails:ee}),(0,n.jsxs)("div",{ref:eo,"data-template0-header-measure":!0,className:"overflow-hidden ".concat(0===et?"fixed top-0 left-0 right-0 w-full z-50 mx-auto ".concat((null==U||null==(b=U.downloadPdf)?void 0:b.pdf)?"max-w-[77rem]":"max-w-screen-cw"):"relative"," "),children:[!eg&&(null==U||null==(w=U.backgroundMedia)?void 0:w.image)&&(0,n.jsx)(ew,{}),(0,n.jsxs)("div",{className:"px-5 tablets:max-lg:px-2 w-full ".concat((null==U||null==(y=U.downloadPdf)?void 0:y.pdf)?"max-w-[77rem]":"max-w-screen-cw"," flex justify-center lg:justify-center mx-auto items-center gap-3 lg:rounded-b-[17px] text-[1rem] font-filsonProBook leading-[150%] text-center overflow-hidden"),style:{backgroundColor:ef},children:[(0,n.jsxs)("div",{className:"flex items-center lg:justify-between w-full",children:[(0,n.jsx)("div",{className:"flex h-full py-1 my-2 lg:my-0 max-h-[90px] relative",children:(0,n.jsx)(r.Je,{url:(null==es?void 0:es.imageLink)||"/",lpId:Q,isPreview:el,slug:X,theme:Y,templateId:en,lpCrmContent:ea,children:(0,n.jsx)("div",{role:"link","aria-label":"Go to homepage",className:"relative w-[207px] h-[80px]",children:(0,n.jsx)(i(),{src:ed,alt:(null==es?void 0:es.altText)||"",title:(null==es?void 0:es.title)||"",width:207,height:80,className:"object-contain w-full h-full",priority:!0,fetchPriority:"high",style:{height:"80px",objectFit:"contain"}})})})}),(0,n.jsx)("div",{className:"lg:flex items-center justify-center gap-10 hidden relative",children:null==U||null==(N=U.menus)||null==(j=N.filter(e=>(0,d.$J)(null==e?void 0:e.text)))?void 0:j.map((e,l)=>(0,n.jsx)(r.Je,{url:null==e?void 0:e.url,index:null==e?void 0:e.index,isPreview:el,lpId:Q,slug:X,templateId:en,theme:Y,lpCrmContent:ea,className:"tablets:max-sm:hidden mb-2 hidden md:mb-0 lg:block ",children:(0,n.jsx)(g.A,{content:null==e?void 0:e.text,className:"font-filsonProBook font-[400] text-[1rem] leading-[150%] text-[#343434] "})},l))}),(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsxs)("div",{className:"flex items-center gap-4 relative",children:[(0,n.jsx)(s.A,{content:null==U||null==(k=U.menus2)?void 0:k.text,className:"ml-0 md:mx-[20px] mb-2 md:mb-0 text-center hidden lg:block mx-auto font-filsonProBook ".concat((0,d.KV)(null==U||null==(C=U.menus2)?void 0:C.text)),tag:"p"}),(0,n.jsx)(h.A,{text:null==U||null==(P=U.button)?void 0:P.text,url:null==U||null==(S=U.button)?void 0:S.url,className:"cursor-pointer ".concat((0,d.KV)(null==U||null==(F=U.button)?void 0:F.text)," hidden lg:block"),labelClassName:"ml-2 section1:max-lg:ml-[calc(50vw-207px-10px-10px)] normal-case bg-[#343434] text-white text-[1rem] tablets:max-herosection:w-[125px] herosection:max-bigtablets:w-[150px] tablets:max-bigtablets:h-[35px] w-[200px] h-full p-[0.5rem] font-filsonProBook block bigtablets:min-h-[45px] items-center place-content-center cursor-pointer sm:max-lg:hidden",labelStyle:{backgroundColor:ep||"#343434",...ep&&{border:"none"},borderRadius:"".concat(null!=(W=null==U||null==(I=U.button)?void 0:I.buttonRadius)?W:625,"rem")},isPreview:el,lpId:Q,slug:X,templateId:en,theme:Y,lpCrmContent:ea}),(null==U||null==(A=U.downloadPdf)?void 0:A.pdf)&&""===(0,d.KV)(null==U||null==(R=U.button1)?void 0:R.text)&&(0,n.jsx)("button",{className:"min-w-[200px] min-h-[45px] px-[10px] text-black border-black border bg-transparent text-[1rem] font-[425] leading-[142%] font-filsonProBook lg:block hidden",style:{borderColor:eh||"#000",textTransform:"none",borderRadius:"".concat(null!=($=null==U||null==(E=U.button1)?void 0:E.buttonRadius)?$:625,"rem")},onClick:e=>{var l,t;e.preventDefault(),(null==U||null==(l=U.downloadPdf)?void 0:l.emailAccess)=="Yes"?eu(!0):window.open("".concat("https://assets.1851franchise.com/v1","/landing-page/pdf/").concat(null==U||null==(t=U.downloadPdf)?void 0:t.pdf),"_blank")},children:(0,n.jsx)(g.A,{content:null==U||null==(L=U.button1)?void 0:L.text})})]})})]}),(0,n.jsx)("div",{className:"block lg:hidden relative cursor-pointer",children:(0,n.jsxs)("svg",{width:"28",height:"17",viewBox:"0 0 28 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:eb,children:[(0,n.jsx)("rect",{width:"28",height:"3",rx:"2",fill:"#2F3330"}),(0,n.jsx)("rect",{x:"5",y:"7",width:"23",height:"3",rx:"1.5",fill:"#2F3330"}),(0,n.jsx)("rect",{x:"8",y:"14",width:"20",height:"3",rx:"2",fill:"#2F3330"})]})})]})]}),em&&(0,n.jsxs)("div",{className:"fixed top-0 right-0 h-screen shadow-xl transform transition-transform duration-300 blur-none overflow-hidden ".concat(em?"translate-x-0":"translate-x-full"," w-[90%] sm:w-[60%] z-50 flex flex-col"),style:{backgroundColor:ev},children:[(null==U||null==(z=U.backgroundMedia)?void 0:z.image)&&(0,n.jsx)(ew,{}),(0,n.jsxs)("div",{className:"relative z-10 flex flex-col w-full h-full overflow-y-auto",children:[(0,n.jsx)("button",{className:"text-gray-600 text-xl self-start",onClick:eb,children:(0,n.jsx)(c.Z6D,{className:"m-4 font-semibold"})}),(0,n.jsxs)("div",{className:"flex flex-col w-[100%] items-center gap-[30px]",children:[null==U||null==(T=U.menus)||null==(B=T.filter(e=>(0,d.$J)(null==e?void 0:e.text)))?void 0:B.map((e,l)=>(0,n.jsx)(r.Je,{url:null==e?void 0:e.url,index:null==e?void 0:e.index,onChangeToggle:eb,isPreview:el,lpId:Q,isMobile:!0,slug:X,templateId:en,theme:Y,lpCrmContent:ea,className:"mb-2 md:mb-0",children:(0,n.jsx)(g.A,{content:null==e?void 0:e.text,className:"font-filsonProBook font-[400] text-[1rem] leading-[150%] text-[#343434] "})},l)),(0,n.jsx)(s.A,{content:null==U||null==(_=U.menus2)?void 0:_.text,className:"font-filsonProBook leading-[150%] text-[#2F3330] ml-0 md:ml-[30px] mb-2 md:mb-0 ",tag:"p"}),(0,n.jsx)(h.A,{text:null==U||null==(q=U.button)?void 0:q.text,url:null==U||null==(M=U.button)?void 0:M.url,className:"cursor-pointer ".concat((0,d.KV)(null==U||null==(D=U.button)?void 0:D.text)),labelClassName:"bg-[#2F3330] text-white font-[400] text-[1rem] min-w-[200px] min-h-[45px] flex justify-center items-center rounded-full !normal-case place-content-center text-center cursor-pointer font-filsonProBook",labelStyle:{backgroundColor:ep||"#343434",...ep&&{border:"none"},borderRadius:"".concat(null!=(G=null==U||null==(J=U.button)?void 0:J.buttonRadius)?G:625,"rem")},isPreview:el,lpId:Q,slug:X,templateId:en,theme:Y,lpCrmContent:ea}),(null==U||null==(K=U.downloadPdf)?void 0:K.pdf)&&""===(0,d.KV)(null==U||null==(V=U.button1)?void 0:V.text)&&(0,n.jsx)("button",{className:"min-w-[200px] min-h-[45px] px-[10px] text-black border-black border bg-transparent text-[1rem] font-[425] leading-[142%] font-filsonProBook",style:{borderColor:eh||"#000",textTransform:"none",borderRadius:"".concat(null!=(Z=null==U||null==(O=U.button1)?void 0:O.buttonRadius)?Z:625,"rem")},onClick:e=>{var l,t;e.preventDefault(),(null==U||null==(l=U.downloadPdf)?void 0:l.emailAccess)=="Yes"?eu(!0):window.open("".concat("https://assets.1851franchise.com/v1","/landing-page/pdf/").concat(null==U||null==(t=U.downloadPdf)?void 0:t.pdf),"_blank")},children:(0,n.jsx)(g.A,{content:null==U||null==(H=U.button1)?void 0:H.text})})]})]})]})]})})})}},18175:(e,l,t)=>{t.d(l,{f:()=>o,g:()=>a});var n=t(49567);let a=function(e){var l;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="https://newimage.1851franchise.com";return e&&o?(0,n.mZ)(o,e,{format:"webp",quality:null!=(l=t.quality)?l:75,width:t.width,height:t.height}):a},o=e=>!!e&&(0,n.di)(e).toLowerCase().endsWith("transparent101.png")},26952:(e,l,t)=>{t.d(l,{A:()=>
1o});var n=t(37876),a=t(14232);let o=e=>{let{content:l,className:t="",tag:o="div",style:i={},type:r="normal",disabled:s=!1}=e,d="\n .rich-text-paragraph {\n margin: 0;\n padding: 0;\n min-height: 1em; /* Preserve empty paragraphs */\n }\n h4 {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n font-family: inherit;\n }\n p {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n font-family: inherit;\n }\n ",[c,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{u(!0)},[]);let m=null==l?void 0:l.replace(/<p>\s*<\/p>/g,"<span style='display:block;'> </span>");return c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{children:d}),"submit"==r?(0,n.jsx)("button",{className:t,type:r,disabled:s,style:i,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:m}})}):(0,n.jsx)(o,{className:t,dangerouslySetInnerHTML:{__html:m},style:i})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{children:d}),(0,n.jsx)(o,{className:t,style:i})]})}},43278:(e,l,t)=>{t.d(l,{A:()=>c});var n=t(37876),a=t(5797),o=t(25785),i=t(14232),r=t(89099),s=t(42887),d=t(85862);let c=e=>{var l,t,c,u,m;let{open:x,setOpen:p,slug:h,pdf:g,theme:f,type:v=3,lpId:b,currentLpInquiryEmails:w}=e,y=(0,r.useRouter)(),j={email:"",formType:2,type:v,lpId:b,inquiryEmail:w},[N,k]=(0,i.useState)(!1),[C,P]=(0,i.useState)(h),[S,F]=(0,i.useState)(j),I=()=>{p(!1),F(j),k(!1)},A=async e=>{if(e.preventDefault(),N)return;let l=(0,s.NK)(y.query),t={...S,...l};try{k(!0);let e=await (0,d.tR)(t,h);(null==e?void 0:e.status)&&(I(),window.open("".concat("https://assets.1851franchise.com/v1","/landing-page/pdf/").concat(g),"_blank"))}catch(e){k(!1)}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.e.Root,{show:x,as:i.Fragment,children:(0,n.jsxs)(o.lG,{as:"div",className:"relative z-50",onClose:()=>p(!0),children:[(0,n.jsx)(a.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed inset-0 z-50 w-screen overflow-auto",children:(0,n.jsx)("div",{className:"flex min-h-full justify-center p-2 py-8 text-center items-center sm:p-0",children:(0,n.jsx)(a.e.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)(o.lG.Panel,{className:"relative transform rounded-lg bg-white text-left shadow-xl transition-all w-full max-w-2xl ",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{className:"absolute -top-6 right-0 md:-right-10 md:m-4 text-gray-100 hover:text-white cursor-pointer border-0 outline-none",onClick:()=>{I()},children:(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),(0,n.jsx)("div",{className:"bg-[#f5f5f5] rounded-[10px] relative h-full px-2 md:px-6 py-4",children:(0,n.jsxs)("div",{className:"bg-white rounded-[10px] ",children:[(0,n.jsx)("div",{className:"relative flex items-start justify-between min-h-[70px] h-full px-5 py-3.5 gap-x-2 gap-y-2 border-b-1 border-b-[#F2F2F2] ",children:(0,n.jsx)("h2",{className:"text-primary",style:{color:(null==f||null==(l=f.color)?void 0:l.primary)?null==f||null==(t=f.color)?void 0:t.primary:""},children:"Download PDF"})}),(0,n.jsx)("hr",{}),(0,n.jsx)("div",{children:(0,n.jsx)("form",{className:"px-8 pt-2 w-full",onSubmit:A,children:(0,n.jsxs)("div",{className:"grid gap-y-2 pb-5",children:[(0,n.jsx)("div",{className:"col-span-2 md:col-span-2",children:(0,n.jsx)("input",{type:"email",id:"email",name:"email",placeholder:"Enter Email",required:!0,value:S.email,onChange:e=>{F({...S,[e.target.name]:e.target.value})},className:"mt-1 p-2 border border-[#cccccc] rounded-lg w-full h-14 outline-none"})}),(0,n.jsx)("div",{className:"col-span-2 text-center pt-2",children:(0,n.jsx)("button",{className:"px-14 roun
1ded-tr-[14px] rounded-l-[14px] rounded-r-[14px] rounded-br-[14px] p-3.5 text-white h-16 md:h-auto \n ".concat((null==f||null==(c=f.color)?void 0:c.primary)?"":"bg-primary-gradient","\n "),type:"submit",disabled:N,style:{backgroundColor:(null==f||null==(u=f.color)?void 0:u.primary)?null==f||null==(m=f.color)?void 0:m.primary:"bg-primary-gradient"},children:"Download"})})]})})})]})})]})})})})})]})})})}},49567:(e,l,t)=>{t.d(l,{di:()=>n,iN:()=>o,mZ:()=>a});let n=e=>e.replace(/^\/+/,""),a=function(e,l){let{width:t,height:a,quality:o,format:i="auto"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[null!=t&&"width=".concat(t),null!=a&&"height=".concat(a),null!=o&&"quality=".concat(o),null!=i&&"format=".concat(i)].filter(Boolean).join(","),s="/".concat(n(l));return"".concat(e.startsWith("http")?e.replace(/\/$/,""):"https://".concat(e.replace(/\/$/,"")),"/cdn-cgi/image/").concat(r).concat(s)},o=(e,l)=>{var t;if(!(e=>"string"==typeof e&&e.length>0&&"undefined"!==e)(e))return"";let n=null!=(t=null!=l?l:"https://newimage.1851franchise.com")?t:"";return n?a(n,e,{format:"webp"}):""}},61351:(e,l,t)=>{t.d(l,{A:()=>u,O:()=>c});var n=t(37876);t(14232);let a="p|div|h[1-6]|section|article|ul|ol|li",o="a|button|input|select|textarea|form|label|option",i="span|strong|b|em|i|u|s|sup|sub|small",r=new Set(i.split("|").concat("br")),s=new Set(["color","background-color","font-size","font-weight","font-family","font-style","line-height","letter-spacing","text-decoration","text-transform","vertical-align","white-space"]),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=((e,l)=>{var t,n,a;let o=e.match(RegExp("".concat(l,"\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s>]+))"),"i"));return null!=(a=null!=(n=null!=(t=null==o?void 0:o[1])?t:null==o?void 0:o[2])?n:null==o?void 0:o[3])?a:""})(e,"style").split(";").map(e=>{let l=e.indexOf(":");if(-1===l)return"";let t=e.slice(0,l).trim().toLowerCase(),n=(e=>{let l=e.trim();return!l||/(?:expression|javascript:|url\s*\(|@import|<|>)/i.test(l)?"":l})(e.slice(l+1));return s.has(t)&&n?"".concat(t,": ").concat(n):""}).filter(Boolean).join("; ");return l?' style="'.concat(l.replace(/&/g,"&").replace(/"/g,"""),'"'):""},c=e=>e?String(e).replace(/<!--[\s\S]*?-->/g,"").replace(/<\s*(script|style)\b[^>]*>[\s\S]*?<\s*\/\s*\1\s*>/gi,"").replace(RegExp("<\\s*(".concat(o,")\\b[^>]*>"),"gi"),"").replace(RegExp("<\\s*\\/\\s*(".concat(o,")\\s*>"),"gi"),"").replace(/<\s*br\s*\/?>/gi,"<br/>").replace(RegExp("<\\s*(".concat(a,")\\b([^>]*)>"),"gi"),(e,l,t)=>"<span".concat(d(t),">")).replace(RegExp("<\\s*\\/\\s*(".concat(a,")\\s*>"),"gi"),"</span>").replace(RegExp("<\\s*(".concat(i,")\\b([^>]*)>"),"gi"),(e,l,t)=>"<".concat(String(l).toLowerCase()).concat(d(t),">")).replace(RegExp("<\\s*\\/\\s*(".concat(i,")\\s*>"),"gi"),(e,l)=>"</".concat(String(l).toLowerCase(),">")).replace(/<\/?([a-z][\w:-]*)\b[^>]*>/gi,(e,l)=>r.has(String(l).toLowerCase())?e:"").trim():"",u=e=>{let{content:l,className:t,style:a,tag:o="span"}=e;return(0,n.jsx)(o,{className:t,style:a,dangerouslySetInnerHTML:{__html:c(l)}})}}}]);
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.