-
Notifications
You must be signed in to change notification settings - Fork 0
/
1209-8e1109a19e5cc87ca679.js
1 lines (1 loc) · 4.88 KB
/
1209-8e1109a19e5cc87ca679.js
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1209],{81209:function(e,t,o){o.d(t,{J:function(){return E}});var r=o(25773),a=o(64649),n=o(18808),l=o(27378),c=o(67687),i=o(34864),s=o(55175),m=o(635),g=o(23356),p=o(37305),h=o(34811),d=o(5708),C=o(8016),u=o(50969),b=o(92361),f=o(44358),v=o(43415),x=o(81792),y=o(50659).V;function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){(0,a.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var P={componentClassName:"closer",cta:"Get started\u2014free forever.",href:x._.signup,id:"closer",target:"none",text:"Join the millions of people using InVision to make the products you love most.",textHighlightColor:"#000",theme:"purple"},E=function(e){var t=e.bgColor,o=e.className,a=e.componentClassName,x=e.cta,w=e.ctaColor,P=e.ctaHoverColor,E=e.ctaProps,O=e.customTheme,H=e.extraCtaProps,N=e.href,j=e.id,L=e.imageLoadingColor,S=e.imagePlaceholder,Z=e.imageSrc,T=e.onClick,I=e.sanityImageProps,W=e.target,_=e.text,D=e.textColor,z=e.textHighlightColor,B=e.textProps,F=e.theme,V=e.videoPlaceholder,G=e.videoSrc,J=(0,n.Z)(e,["bgColor","className","componentClassName","cta","ctaColor","ctaHoverColor","ctaProps","customTheme","extraCtaProps","href","id","imageLoadingColor","imagePlaceholder","imageSrc","onClick","sanityImageProps","target","text","textColor","textHighlightColor","textProps","theme","videoPlaceholder","videoSrc"]),q=Boolean(Z||G),A=q?_.length<60?"display-350":"heading-700":"display-350",M=q?{0:2,768:4,1100:2}:{0:2,768:4},$=q?{0:2,768:3,1100:2}:4,K=q?{0:3,768:5,1100:2}:4,Q=O||y[F]||{},R=Q.primaryColor,U=Q.secondaryColor,X=Q.tertiaryColor,Y=Q.theme,ee=Y.themeBgColor,te=Y.themeTextColor,oe=Y.themeCtaColor,re=Y.themeCtaHoverColor,ae=Y.themeTextHighlightColor,ne=Y.themeImageLoadingColor,le={bg:t||ee||R,cta:w||oe||"#FFF",ctaHover:P||re||te||X||U,text:D||B&&B.color||te||U,textHighlight:ae||z,imageLoading:L||ne||U},ce=B||{},ie=ce.text,se=void 0===ie?_:ie,me=(0,n.Z)(ce,["text"]),ge="".concat(se," - ").concat(x),pe=(0,c.k)(W),he={actionType:"converting-cta",component:"Closer",eventType:"Marketing.Site.Selected",key:"auto",location:"closer"},de=(0,i.w)(E,"href")?E.href:N;return l.createElement(g.$,(0,r.Z)({className:(0,s.A)(a,o),id:j,bgColor:le.bg},J),l.createElement(p.W,{cpx:M,cpt:$,cpb:K},l.createElement(h.k,{align:"space-between",valign:"middle",wrap:"wrap",css:"\n *::-moz-selection {\n background: ".concat(le.textHighlight,";\n }\n\n *::selection {\n background: ").concat(le.textHighlight,";\n }\n ")},q&&l.createElement(h.k.Item,(0,r.Z)({element:"a",c:{0:"100%",768:32,1100:14},pt:Z||I?{"0-767":"100%"}:void 0,"aria-label":ge,href:de},pe,{onClick:function(e){(0,m.h)("inv-site-select-clicked",k(k({},he),{},{ariaLabel:ge,href:de})),T&&T(e)}}),I?l.createElement(p.W,{bgColor:le.imageLoading,position:{"0-767":"absolute"},t:{"0-767":0},l:{"0-767":0},w:"inherit",h:"inherit"},l.createElement(d.d,(0,r.Z)({asBackground:!0,renderedSizes:{0:"100vw",768:"80vw",1100:"35vw"}},I))):Z?l.createElement(C.G,{placeholder:S,src:Z,bgColor:le.imageLoading,position:{"0-767":"absolute"},t:{"0-767":0},l:{"0-767":0},w:"inherit",h:"inherit"}):G?l.createElement(p.W,{bgColor:le.imageLoading,w:"inherit",h:"inherit",css:"\n &:before {\n content: '';\n display: block;\n padding-top: 100%;\n }\n\n > * {\n position: absolute !important;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n }\n "},l.createElement(u.z,{placeholder:V,src:G})):null),l.createElement(h.k.Item,{cw:q?{0:"100%",1100:19}:void 0,w:q?void 0:{0:"100%",1100:"62em"}},l.createElement(b.x,(0,r.Z)({variant:A,element:"h2",color:le.text,fixOrphans:!1,cmt:q?{0:2,1100:0}:void 0},me),l.createElement("div",{className:"closer-text-wrap"},se),l.createElement(p.W,{className:"closer-cta-wrap",cmt:{0:1,768:.5,1400:.25}},l.createElement(f.q,(0,r.Z)({ariaLabel:x,href:de},pe,{color:le.cta,hoverColor:le.ctaHover},he,E,{onClick:function(e){T&&T(e)}}),x)),H&&l.createElement(p.W,{className:"extra-closer-cta-wrap",cmt:{0:3,768:1,1400:.75}},l.createElement(v.k,(0,r.Z)({align:"left",location:"closer",actionType:"follow",textVariant:"lead-copy-500",color:le.cta,hoverColor:le.ctaHover},H))))))))};E.displayName="Closer",E.defaultProps=P,E.displayName="Closer"}}]);