(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6273],{46834:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(56168),r=t(62044),o=/<(\w+)>(.*?)<\/\1>|<(\w+)\/>/,l=/(?:\r\n|\r|\n)/g;function a(e){if(!e.length)return[];var n=e.slice(0,4),t=n[0],i=n[1],r=n[2];return[[t||r,i||"",n[3]]].concat(a(e.slice(4,e.length)))}function c(e,n){void 0===n&&(n=[]);var t=e.replace(l,"").split(o);if(1===t.length)return e;var r=[],p=t.shift();return p&&r.push(p),a(t).forEach((function(e,t){var o=e[0],l=e[1],a=e[2],p=n[o]||i.createElement(i.Fragment,null);r.push((0,i.cloneElement)(p,{key:t},l?c(l,n):p.props.children)),a&&r.push(a)})),r}function p(e){var n=e.i18nKey,t=e.values,o=e.components,l=e.fallback,a=e.defaultTrans,p=e.ns,u=(0,r.Z)(p),d=u.t,s=u.lang;return(0,i.useMemo)((function(){var e=d(n,t,{fallback:l,default:a});return o&&0!==o.length?c(e,o):e}),[n,t,o,s])}},91520:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var i=t(18003),r=t(8583),o=(t(56168),t(15218)),l=t(59338),a=t(68025),c=(t(4423),t(93976)),p=t(8014),u=["title","subtitle","action","bg"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function f(e){var n=e.title,t=e.subtitle,i=e.action,d=e.bg,f=(0,r.Z)(e,u),h=o.Z;return d&&(h=o.q),(0,p.jsx)(h,s(s({size:"large",bg:d},f),{},{children:(0,p.jsxs)(a.Z,{direction:"column",align:"center",children:[(0,p.jsx)(l.Z,{pb:t&&"20px",children:n}),t&&(0,p.jsx)(c.Z,{pb:"40px",textAlign:"center",children:t}),i]})}))}},59338:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(18003),r=t(89959),o=t(43545),l=t(60864),a=t(8014);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var u=(0,r.default)(l.Z).attrs((function(e){return p(p({},e),{},{colorArray:e.color&&e.color.split(".")})})).withConfig({displayName:"sectionHeading__StyledSectionHeading",componentId:"sc-1h37sqw-0"})(["color:",";font-weight:",";line-height:",";;text-align:",";padding-top:",";padding-bottom:",";font-size:",";max-width:",";@media (min-width:","){font-size:",";}@media (min-width:","){font-size:",";}@media (min-width:","){font-size:",";padding-bottom:",";}"],(function(e){var n=e.colorArray,t=e.theme;return n&&n.length>0?t.colors[n[0]][n[1]||"default"]:t.colors.primaryText.default}),(function(e){return e.fontWeight?e.theme.fontWeights[e.fontWeight]:e.theme.fontWeights.bold}),(function(e){return e.lineHeight||1.15}),(function(e){return e.textAlign||"center"}),(function(e){return e.pt||e.paddingTop||"0px"}),(function(e){return e.pb||e.paddingBottom||"30px"}),(function(e){return e.theme.fontSizes.xl}),(function(e){return e.maxWidth||"100%"}),o.AV.sm,(function(e){return e.theme.fontSizes["2xl"]}),o.AV.md,(function(e){return e.theme.fontSizes["3xl"]}),o.AV.lg,(function(e){return e.theme.fontSizes["4xl"]}),(function(e){return e.pb||e.paddingBottom||"70px"}));function d(e){return(0,a.jsx)(u,p({as:"h2"},e))}},93976:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(18003),r=(t(56168),t(89959)),o=t(43545),l=t(60864),a=t(8014);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var u=(0,r.default)(l.Z).attrs((function(e){return p(p({},e),{},{colorArray:e.color&&e.color.split(".")})})).withConfig({displayName:"subHeading__StyledSubHeading",componentId:"sc-172k0bt-0"})(["color:",";font-weight:",";padding-bottom:",";line-height:",";text-align:",";font-size:",";@media (min-width:","){font-size:",";}"],(function(e){var n=e.colorArray,t=e.theme;return n&&n.length>0?t.colors[n[0]][n[1]||"default"]:t.colors.primaryText.default}),(function(e){return e.fontWeight?e.theme.fontWeights[e.fontWeight]:e.theme.fontWeights.bold}),(function(e){return e.pb||e.paddingBottom||"20px"}),(function(e){return e.lineHeight||1.15}),(function(e){return e.textAlign||"left"}),(function(e){return e.fontSize?e.theme.fontSizes[e.fontSize]:e.theme.fontSizes.xl}),o.AV.xl,(function(e){return e.fontSize?e.theme.fontSizes[e.fontSize]:e.theme.fontSizes["2xl"]}));function d(e){return(0,a.jsx)(u,p({as:"h2"},e))}},43695:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return ge},default:function(){return me}});var i=t(25883),r=t(11729),o=t(18003),l=t(14219),a=t.n(l),c=t(56168),p=t(89975),u=t(89959),d=t(68025),s=t(60864),f=t(44099),h=t(4423),g=t(16135),m=t(22783),v=t(62044),b=t(8014);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=(0,u.default)(g.ZP).attrs((function(e){return w(w({},e),{},{color:"black"})})).withConfig({displayName:"inviteFooter__NavLink",componentId:"sc-1gko6pq-0"})(["display:block;font-size:",";font-weight:",";line-height:2.43;"],(function(e){return e.theme.fontSizes.md}),(function(e){return e.theme.fontWeights.default}));function j(e){var n=e.isWhitelabel,t=(0,v.Z)("common").t;return(0,b.jsxs)(m.Z,{type:"slim",withoutStoreLinks:n,children:[n?null:(0,b.jsx)(s.Z,{m:"20px",mr:"120px",children:(0,b.jsx)(y,{href:"/",children:t("toOL")})}),(0,b.jsx)(s.Z,{m:"20px",mr:"120px",children:(0,b.jsx)(y,{href:"/imprint",prefetch:!1,children:t("impr")})}),(0,b.jsx)(s.Z,{m:"20px",mr:"120px",children:(0,b.jsx)(y,{href:"/legal",prefetch:!1,children:t("AGB")})})]})}var O,_,S=t(42527),P=t(75657),k=t.n(P),Z=t(7426),I=t(49375),C=t(89885);function N(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw o}}}}function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var D="development"===(null===(O=C)||void 0===C||null===(_=O.env)||void 0===_?void 0:"production");function T(e){return E.apply(this,arguments)}function E(){return E=(0,i.Z)(a().mark((function e(n){var t,i,o,l,c,p,u,d,s,f,h=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h.length>1&&void 0!==h[1]?h[1]:{};try{if(window){l=new URLSearchParams(null===(i=window)||void 0===i||null===(o=i.location)||void 0===o?void 0:o.search),c=N(l.entries());try{for(c.s();!(p=c.n()).done;)u=(0,r.Z)(p.value,2),d=u[0],s=u[1],d&&s&&d.includes("utm")&&(t[d]=s)}catch(a){c.e(a)}finally{c.f()}t.url=window.location.href}}catch(g){}return D&&console.log("mixpanel.track - event: ",n," - params: ",t),f="https://api.orderlion.com",D&&(f="http://localhost:3010"),e.prev=5,e.next=8,fetch("".concat(f,"/track"),{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:n,params:t})});case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("mixpanel.track - error",e.t0);case 13:case"end":return e.stop()}}),e,null,[[5,10]])}))),E.apply(this,arguments)}function W(e){var n;return e?{supplierId:e._id,supplierName:(null===e||void 0===e?void 0:e.shortName)||(null===e||void 0===e?void 0:e.name)||"unknown",supplierCreatedAt:null===(n=e.createdAt)||void 0===n?void 0:n.toISOString(),supplierIndustry:(null===e||void 0===e?void 0:e.industry)||"unknown",supplierCountry:(null===e||void 0===e?void 0:e.countryCode)||"unknown"}:{}}function z(e){var n,t,i,r,o,l,a,c=e.invite,p=e.supplier;return c||p?{inviteId:null===c||void 0===c?void 0:c._id,groupId:(null===c||void 0===c||null===(n=c.buyer)||void 0===n?void 0:n._id)||(null===c||void 0===c||null===(t=c.group)||void 0===t?void 0:t._id)||null,buyerId:(null===c||void 0===c||null===(i=c.buyer)||void 0===i?void 0:i._id)||(null===c||void 0===c||null===(r=c.group)||void 0===r?void 0:r._id)||null,supplierId:(null===c||void 0===c||null===(o=c.supplier)||void 0===o?void 0:o._id)||(null===p||void 0===p?void 0:p._id)||null,supplierName:(null===c||void 0===c||null===(l=c.supplier)||void 0===l||null===(a=l.company)||void 0===a?void 0:a.name)||(null===p||void 0===p?void 0:p.name)||null,source:(null===c||void 0===c?void 0:c.source)||null,method:(null===c||void 0===c?void 0:c.method)||null}:{}}function L(e){var n=e.navbarBg,t=void 0===n?"primary":n,i=e.appUrl;(0,v.Z)("common").t;return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(p.Z,{mt:"20px",mb:"200px",outline:!0,color:"primary"===t?"supportive":"primary",onClick:function(){T("clickedLoginOnSupplierLandingPage",{device:"mobile"}),window.open(i||"https://app.orderlion.com","_blank")},children:"Login"})})}function V(e){var n=e.isOnTop,t=e.navbarBg,i=void 0===t?"primary":t,r=e.logo,o=e.appUrl;(0,v.Z)("common").t;return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(I.ur,{isOnTop:n,navbarBg:i,children:[(0,b.jsx)(d.Z,{as:"nav",h:"100%",align:"center",children:r?r({isOnTop:n}):(0,b.jsx)(k(),{href:"/",children:(0,b.jsx)("a",{children:n&&"primary"===i?(0,b.jsx)(Z.iP,{}):(0,b.jsx)(Z.sY,{})})})}),(0,b.jsx)(d.Z,{align:"center",children:(0,b.jsx)(p.Z,{outline:!0,ml:"16px",height:"48px",minWidth:"160px",color:n&&"primary"===i?"supportive":"primary",onClick:function(){T("clickedLoginOnSupplierLandingPage",{device:"browser"}),window.open(o||"https://app.orderlion.com","_blank")},children:"Login"})})]})})}function U(e){var n=e.logo,t=e.navbarBg,i=void 0===t?"primary":t,r=e.appUrl;return(0,b.jsx)(I.ZP,{navbarBg:i,defaultContent:function(e){var t=e.isOnTop;return(0,b.jsx)(V,{isOnTop:t,navbarBg:i,logo:n,appUrl:r})},mobileContent:function(e){var n=e.isOnTop,t=e.isOpen;return(0,b.jsx)(L,{isOnTop:n,isOpen:t,navbarBg:i,appUrl:r})},logo:n})}t(22319);var B=u.default.main.withConfig({displayName:"invite__Main",componentId:"sc-10u29jp-0"})(["min-height:500px;"]),M=u.default.div.withConfig({displayName:"invite__Wrapper",componentId:"sc-10u29jp-1"})(["",""],(function(e){var n=e.brandColor,t=e.theme;return n&&(0,u.css)(["button{background-color:"," !important;border:2px solid "," !important;color:"," !important;}button:hover{opacity:0.8 !important;}"],n,n,t.colors.white.default)}));function H(e){var n=e.children,t=e.navbarBg,i=e.logo,r=e.title,o=e.description,l=e.ogImages,a=e.brandColor,c=e.noIndex,p=e.isWhitelabel,u=e.appUrl;return(0,b.jsx)(S.Z,{title:r,description:o,ogImages:l,noIndex:c,children:(0,b.jsxs)(M,{brandColor:a,children:[(0,b.jsx)(U,{logo:i,navbarBg:t,appUrl:u}),(0,b.jsx)(B,{children:n}),(0,b.jsx)(j,{isWhitelabel:p})]})})}var F=t(43545),R=t(92877),q=t(91520),K=t(79451),X=t(24608),G=t(46834),J=t(37117),Y=t(89885);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee=t(50608),ne=u.default.img.withConfig({displayName:"invite__AppBadge",componentId:"sc-1hg6s7a-0"})(["width:140px;height:40px;padding:10px;&:hover{cursor:pointer;}@media (min-width:","){width:180px;height:52px;}"],F.AV.lg),te=(0,u.default)(s.Z).withConfig({displayName:"invite__SupplierLogo",componentId:"sc-1hg6s7a-1"})(["transition:0.4s ease;height:",";width:auto;@media (min-width:","){height:",";}"],(function(e){return e.isOnTop||e.navOpen?"45px":"30px"}),F.AV.lg,(function(e){return e.isOnTop||e.navOpen?"75px":"40px"})),ie=u.default.img.withConfig({displayName:"invite__HeroImage",componentId:"sc-1hg6s7a-2"})(["width:100%;object-fit:contain;@media (min-width:","){min-height:400px;width:750px;height:auto;}"],F.AV.md),re=(0,u.default)(s.Z).withConfig({displayName:"invite__ImageWrapper",componentId:"sc-1hg6s7a-3"})(["position:relative;display:flex;align-items:center;width:100%;margin-left:-20px;@media (min-width:","){margin-left:-20px;width:750px;}"],F.AV.md),oe=(0,u.default)(s.Z).withConfig({displayName:"invite__TextWrapper",componentId:"sc-1hg6s7a-4"})(["width:100%;margin-left:0px;margin-right:0px;margin-top:20px;margin-bottom:20px;@media (min-width:","){flex:1 1 300px;min-width:300px;max-width:800px;margin-right:",";margin-left:",";order:",";}@media (min-width:","){max-width:600px;margin-right:",";margin-left:",";order:",";}"],F.AV.md,(function(e){return"left"===e.imageSide?"0px":"40px"}),(function(e){return"left"===e.imageSide?"40px":"0px"}),(function(e){return"left"===e.imageSide?1:0}),F.AV.xl,(function(e){return"left"===e.imageSide?"0px":"80px"}),(function(e){return"left"===e.imageSide?"80px":"0px"}),(function(e){return"left"===e.imageSide?1:0})),le=u.default.img.withConfig({displayName:"invite__SupplierLogoOverlay",componentId:"sc-1hg6s7a-5"})(["position:absolute;height:40px;width:80px;object-fit:contain;top:56px;left:75px;border-radius:8px;padding:",";background-color:",";"],(function(e){return e.theme.paddings.single}),(function(e){return e.theme.colors.white.default})),ae=u.default.img.withConfig({displayName:"invite__SupplierLogoOverlayPhone",componentId:"sc-1hg6s7a-6"})(["position:absolute;height:25px;width:60px;object-fit:contain;top:115px;right:90px;border-radius:8px;padding:",";background-color:",";"],(function(e){return e.theme.paddings.single}),(function(e){return e.theme.colors.white.default})),ce=u.default.img.withConfig({displayName:"invite__SupplierLogoOverlayMobile",componentId:"sc-1hg6s7a-7"})(["position:absolute;height:6%;width:30%;object-fit:contain;top:4%;left:37%;border-radius:8px;padding:",";background-color:",";"],(function(e){return e.theme.paddings.single}),(function(e){return e.theme.colors.white.default})),pe=(0,u.default)(X.Z).withConfig({displayName:"invite__StyledVideo",componentId:"sc-1hg6s7a-8"})(["position:absolute;right:12px;top:100px;video{border-radius:16px;border:5px solid ",";}"],(function(e){return e.theme.colors.white.default})),ue=(0,u.default)(X.Z).withConfig({displayName:"invite__StyledVideoMobile",componentId:"sc-1hg6s7a-9"})(["margin-top:20px;margin-left:auto;margin-right:auto;video{border-radius:16px;border:5px solid ",";}"],(function(e){return e.theme.colors.white.default})),de={produce:"/hero_produce.png",beverage:"/hero_beverage.png",bakedgoods:"/hero_bakedgoods.png",meat:"/hero_meat.png",cleaningsupplies:"/hero_cleaningsupplies.png",icecream:"/hero_gelato.png"},se={produce:"/mobile_produce.png",beverage:"/mobile_beverage.png",bakedgoods:"/mobile_bakedgoods.png",meat:"/mobile_meat.png",cleaningsupplies:"/mobile_cleaningsupplies.png",icecream:"/mobile_gelato.png"},fe=[];function he(e,n){var t=new URL(e),i=t.searchParams;return n&&i.append("selfVerificationId",n),t.toString()}var ge=!0;function me(e){var n,t,o,l,u,s,g,m,x,w,y,j,O,_,S=e.supplierId,P=e.supplier,k=e.invite,Z=null===(n=window)||void 0===n||null===(t=n.isMobile)||void 0===t?void 0:t.any,I=null===(o=window)||void 0===o||null===(l=o.isMobile)||void 0===l||null===(u=l.apple)||void 0===u?void 0:u.device,C=null===(s=window)||void 0===s||null===(g=s.isMobile)||void 0===g||null===(m=g.android)||void 0===m?void 0:m.device,N=(null===P||void 0===P?void 0:P.shortName)||(null===P||void 0===P?void 0:P.name),A=function(e){var n=e.isWhitelabel,t=e.supplierName,i=(0,v.Z)("invite","common");return Q(Q({},i),{},{t:function(e,r){if(n){var o="".concat(e,"Whitelabel"),l=i.t(o,Q(Q({},r),{},{supplierName:t}));if(l!==o)return l}return i.t(e,Q(Q({},r),{},{supplierName:t}))}})}({isWhitelabel:!(null===P||void 0===P||!P.whitelabel),supplierName:N}),D=A.t,E=A.lang,L=(0,K.Z)("(max-width: 769px)"),V=(0,r.Z)(L,1)[0],U=(0,c.useState)(!1),B=U[0],M=U[1],F=(0,c.useRef)(null);(0,c.useEffect)((function(){!Z&&k&&Ce();var e=Z?"mobile":"browser";(Z&&(k&&T("clickedInvite",Q({device:e},z({invite:k,supplier:P}))),T("viewAppDownload",Q({device:e},z({invite:k,supplier:P})))),k)||(F.current=Math.floor(Math.random()*Date.now()),T("viewSupplierLandingPage",Q({device:e,selfVerificationId:F.current},W(P))))}),[]),(0,c.useEffect)((function(){M(V)}),[V]);var X=function(){T("clickedStartSelfVerification",Q({device:Z?"mobile":"browser",selfVerificationId:F.current},W(P)))},$="https://play.google.com/store/apps/details?id=at.orderlion.mobileapp&utm_source=invite&utm_medium=mobile&utm_campaign=applinks",ge="https://itunes.apple.com/app/orderlion/id1460657077?utm_source=invite&utm_medium=mobile&utm_campaign=applinks",me="orderlion://",ve="development"===(null===(x=Y)||void 0===Y||null===(w=x.env)||void 0===w?void 0:"production")?"http://localhost:3000":"https://app.orderlion.com";if(null!==P&&void 0!==P&&P.whitelabel){var be,xe,we,ye,je=(null===(be=P.whitelabel)||void 0===be||null===(xe=be.appSettings)||void 0===xe?void 0:xe.mobile)||{},Oe=je.playStoreUrl,_e=je.appStoreUrl,Se=je.deeplinkUrlScheme;$=Oe||$,ge=_e||ge,me=Se||me,ve=null!==(we=P.whitelabel)&&void 0!==we&&we.mainDomain?"https://".concat(null===(ye=P.whitelabel)||void 0===ye?void 0:ye.mainDomain):ve}var Pe,ke,Ze,Ie,Ce=function(){var e=document.location,n=e.pathname,t=e.search,i=new RegExp(ee.locales.map((function(e){return"(".concat(e,")/")})).join("|"),"i"),r=he("".concat(ve).concat(n.replace(i,"")).concat(t||""),F.current);window.location.replace(r)},Ne=function(){var e=(0,i.Z)(a().mark((function e(){var n,t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=he(window.location.href,F.current),e.next=4,navigator.clipboard.writeText(n);case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0),T("writeClipboardError",{reason:e.t0.reason||void 0,err:e.t0});case 10:return e.prev=10,T("clickedAppDownload",z({invite:k,supplier:P})),k||X(),setTimeout((function(){window.location.href=I?ge:$}),25),(t=new URL("".concat(me,"invite"))).search=window.location.search,F.current&&t.searchParams.append("selfVerificationId",F.current),window.location.href=t.toString(),e.finish(10);case 19:case"end":return e.stop()}}),e,null,[[0,6,10,19]])})));return function(){return e.apply(this,arguments)}}(),Ae=(0,J.Oq)(de[null===P||void 0===P?void 0:P.industry]||"/hero_produce.png",E),De=(0,J.Oq)(se[null===P||void 0===P?void 0:P.industry]||"/mobile_produce.png",E),Te=!0;null!==P&&void 0!==P&&null!==(y=P.whitelabel)&&void 0!==y&&null!==(j=y.emailOverride)&&void 0!==j&&j.inviteHeroImg&&(Ae=null===P||void 0===P||null===(Pe=P.whitelabel)||void 0===Pe||null===(ke=Pe.emailOverride)||void 0===ke?void 0:ke.inviteHeroImg,Te=!1);null!==P&&void 0!==P&&null!==(O=P.whitelabel)&&void 0!==O&&null!==(_=O.emailOverride)&&void 0!==_&&_.inviteHeroMobileImg&&(De=null===P||void 0===P||null===(Ze=P.whitelabel)||void 0===Ze||null===(Ie=Ze.emailOverride)||void 0===Ie?void 0:Ie.inviteHeroMobileImg,Te=!1);var Ee="Store";return I&&(Ee="Appstore"),C&&(Ee="Playstore"),(0,b.jsxs)(H,{brandColor:null===P||void 0===P?void 0:P.brandColor,title:P?D("metaTitle"):void 0,description:P?D("metaDescription"):void 0,ogImages:[{url:"https://orderlion.com/invite/".concat(S,".jpg"),width:1024,height:1024,alt:"Orderlion"}],navbarBg:"white",logo:function(e){var n=e.isOnTop,t=e.navOpen;return P&&(0,b.jsx)(te,{as:"img",src:P.logo,alt:"Supplier Logo",isOnTop:n,navOpen:t})},noIndex:!P||!!k,isWhitelabel:!(null===P||void 0===P||!P.whitelabel),appUrl:ve,children:[(0,b.jsx)(R.Z,{bg:"gray",pb:"0px",children:(0,b.jsxs)(d.Z,{align:"center",justify:"space-between",wrap:"wrap",children:[(0,b.jsxs)(oe,{imageSide:"right",children:[P?(0,b.jsx)(f.Z,{pb:"15px",children:(0,b.jsx)(G.Z,{i18nKey:P.whitelabel?"invite:titleWhitelabel":"invite:title",components:{underline:(0,b.jsx)(f.p,{as:"span",td:"underline",tdColor:null===P||void 0===P?void 0:P.brandColor})},values:{supplierName:P.shortName||P.name}})}):(0,b.jsx)(f.Z,{pb:"15px",children:D("titleFallback")}),(0,b.jsxs)(h.ZP,{my:"20px",children:[D("orderNow")," ",(0,b.jsx)("br",{}),(0,b.jsx)("br",{})," \u2713 ",D("advantage1"),(0,b.jsx)("br",{})," \u2713 ",D("advantage2"),(0,b.jsx)("br",{})," \u2713 ",D("advantage3"),(0,b.jsx)("br",{})," \u2713 ",D("advantage4")]}),P&&!Z?(0,b.jsx)(p.Z,{mt:"5px",onClick:function(e){e.preventDefault(),P&&(k||X(),Ce())},children:D("signUp")}):P&&Z?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.ZP,{mt:"30px",mb:"20px",fontWeight:"bold",children:D("downloadFreeAppFromStore",{storeName:Ee})}),(0,b.jsx)(p.Z,{mt:"5px",onClick:Ne,children:D("downloadOrderlionApp")})]}):null]}),(0,b.jsx)(re,{children:B?fe.includes(S)?(0,b.jsx)(ue,{width:"300px",height:"649px",playing:!0,loop:!0,muted:!0,playsinline:!0,url:"appVideo_".concat(S,".mp4")}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(ie,{src:De,alt:"User Interface"}),(null===P||void 0===P?void 0:P.logo)&&Te&&(0,b.jsx)(ce,{src:P.logo,alt:"Logo"})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(ie,{src:Ae,alt:"User Interface"}),(null===P||void 0===P?void 0:P.logo)&&Te&&(0,b.jsx)(le,{src:P.logo,alt:"Logo"}),(null===P||void 0===P?void 0:P.logo)&&Te&&(0,b.jsx)(ae,{src:P.logo,alt:"Logo"}),fe.includes(S)&&(0,b.jsx)(pe,{width:"230px",height:"498px",playing:!0,loop:!0,muted:!0,url:"appVideo_".concat(S,".mp4")})]})})]})}),(0,b.jsx)(q.Z,{mb:"0px",mt:"50px",bg:"white",title:D("inviteAlreadyReceived"),action:(0,b.jsxs)(d.Z,{children:[(0,b.jsx)("a",{href:ge,target:"_blank",children:(0,b.jsx)(ne,{src:"/appstore-badge_320@2x.png",alt:"App Store Badge"})}),(0,b.jsx)("a",{href:$,target:"_blank",children:(0,b.jsx)(ne,{src:"/google-play-badge_320@2x.png",alt:"Play Store Badge"})})]})})]})}},3807:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invite",function(){return t(43695)}])}},function(e){e.O(0,[2211,2992,4608,7861,9774,2888,179],(function(){return n=3807,e(e.s=n);var n}));var n=e.O();_N_E=n}]);