PageSourceSearch

https://awning.com/a/_next/static/chunks/400-d3ac8eed2b4e9909.js

js awning.com collected 2026-09-25 19:03:55 UTC 6,757 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{62411:function(n,e,t){t.d(e,{f:function(){return l}});var r=t(66586),i=t(44922),o=t(84583),a=t(81952),c=(t(52983),t(54840)),l=function(n){var e=n.sx,t=void 0===e?{}:e,l=n.newTab,s=void 0!==l&&l,d=n.href,u=n.children,h=n.onClick,f=(0,o.Z)(n,["sx","newTab","href","children","onClick"]);if(s)return(0,a.tZ)(c.xu,(0,i.Z)((0,r.Z)({as:"a",href:d,target:"_blank",rel:"noreferrer",sx:t,onClick:h},f),{children:u}));var x=(null===d||void 0===d?void 0:d.includes("http"))?d:"".concat("/a").concat(d);return(0,a.tZ)(c.xu,(0,i.Z)((0,r.Z)({as:"a",href:x,onClick:h,sx:t},f),{children:u}))}},74090:function(n,e,t){t.d(e,{W_:function(){return S},CX:function(){return y}});var r=t(55388),i=t(66586),o=t(71864),a=t(81952),c=t(52983),l=t(99291),s=t(36921),d=t(62411),u=t(54840),h=t(42684),f=t(14134),x=t(44922),p=t(11707),g=t.n(p),b=t(80811),w=t.n(b),v=t(23403),Z=t(14401),m=function(){var n,e,t=(0,Z.L)((function(n){return n.user})),r=t.firstName,l=t.lastName,s=(0,o.Z)(c.useState(-1),2),d=s[0],h=s[1],p=[{label:"Account",href:"".concat("/a","/account")},{label:"Log out",onClick:function(){b()}}],b=function(){var n=(0,f.Z)(g().mark((function n(){return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,w().post("".concat("/a","/api/accounts/logout"));case 3:n.next=7;break;case 5:n.prev=5,n.t0=n.catch(0);case 7:case"end":return n.stop()}}),n,null,[[0,5]])})));return function(){return n.apply(this,arguments)}}();return(0,a.tZ)(v.ZP,{interactive:!0,placement:"bottom-end",appendTo:function(){return document.body},arrow:!0,trigger:"click",render:function(n){return(0,a.tZ)(u.xu,{sx:{background:"white",border:"1px solid",borderColor:"gray.200",borderRadius:"lg",boxShadow:"lg",color:"gray.700",minWidth:"200px",overflow:"hidden"},children:p.map((function(e,t){var r=e.label,o=e.href,c=e.newTab,l=e.onClick;return o?(0,a.tZ)(C,{href:o,newTab:c,children:(0,a.tZ)(u.xu,(0,x.Z)((0,i.Z)({sx:{borderBottom:t<p.length-1?"1px solid":"none",borderColor:"gray.200",paddingLeft:"14px",paddingY:3,fontWeight:"normal",backgroundColor:d===t?"gray.700":"white",color:d===t?"white":"inherit"}},n),{onMouseEnter:function(){return h(t)},children:(0,a.tZ)(u.xv,{children:r})}))},t):(0,a.tZ)(u.xu,(0,x.Z)((0,i.Z)({sx:{borderBottom:t<p.length-1?"1px solid":"none",borderColor:"gray.200",paddingLeft:"14px",paddingY:3,fontWeight:"normal",backgroundColor:d===t?"gray.700":"white",color:d===t?"white":"inherit"}},n),{onMouseEnter:function(){return h(t)},onClick:l,children:(0,a.tZ)(u.xv,{children:r})}),t)}))})},children:(0,a.BX)(u.kC,{sx:{borderRadius:"100%",backgroundColor:"#c4c4c4",color:"gray.600",display:"inline-flex",width:{base:"24px",md:"40px"},height:{base:"24px",md:"40px"},alignItems:"center",justifyContent:"center",lineHeight:1.5},children:[null!==(n=null===r||void 0===r?void 0:r.charAt(0))&&void 0!==n?n:"-",null!==(e=null===l||void 0===l?void 0:l.charAt(0))&&void 0!==e?e:"-"]})})},C=function(n){var e=n.newTab,t=n.href,r=n.children;return(0,a.tZ)(a.HY,{children:e?(0,a.tZ)("a",{href:t,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:r}):(0,a.tZ)("a",{href:t,style:{textDecoration:"none"},children:r})})},k=function(n){var e=n.isActive,t=n.href,r=n.title,i=n.shortTitle,o=n.className,c=void 0===o?"":o,l=n.children;return(0,a.BX)(d.f,{href:t,sx:{textDecoration:"none",position:"relative",cursor:"pointer"},children:[(0,a.tZ)(u.xv,{className:c,sx:{marginLeft:4,fontWeight:e?"bold":"normal",display:{base:"none",lg:"block"}},children:r}),(0,a.tZ)(u.xv,{className:c,sx:{marginLeft:4,display:{base:"block",lg:"none"},fontWeight:e?"bold":"normal"},children:i||r}),l]})},y=c.createRef(),B=(0,l.qq)((function(n,e){return{show:!0,showChildren:!0,setShow:function(e){return n({show:e})},setShowAll:function(e){return n({show:e,showChildren:e})},toggle:function(){return n({show:!e().show})},toggleAll:function(){return n({show:!e().show,showChildren:!e().showChildren})}}})),S=function(n){var e=n.centerContainerContent,t=void 0===e||e,l=n.render,f=((0,h.useRouter)().asPath,(0,Z.L)((function(n){var e;return null===(e=n.isLoggedIn)||void 0===e?void 0:e.call(n)}))),x=(0,o.Z)(B((function(n){return[n.show,n.showChildren,n.setShow]}),s.Z),3),p=x[0],g=x[1],b=x[2];c.useEffect((function(){return function(){b(!0)}}),[]);var w=t?{paddingX:{base:4,lg:0}}:(0,r.Z)({paddingX:4},"@media (min-width: ".concat(u.rS.breakpoints[2],")"),{width:"100%",maxWidth:"100%"}),v=p?{opacity:1,boxShadow:"0px 1px 1px  #D8D9DB",visibility:"visible",height:"100%"}:{opacity:0,visibility:"hidden",height:"0px"};return(0,a.BX)(u.xu,{sx:{position:{base:"relative",md:"sticky"},width:"100%",backgroundColor:"white",top:"0px !important",transform:"translateZ(0px) !important",zIndex:99}
1,ref:y,children:[(0,a.tZ)(u.xu,{sx:(0,i.Z)({text:"sm",backgroundColor:"white",transition:"opacity 0.1s ease-in"},v),children:(0,a.tZ)(u.W2,{sx:(0,i.Z)({},w),children:(0,a.BX)(u.kC,{sx:{text:"sm",backgroundColor:"white",paddingY:2,alignItems:"center",justifyContent:"space-between"},children:[(0,a.BX)(d.f,{href:"https://awning.com/",children:[(0,a.tZ)(u.xu,{as:u.xs,textColor:"black",sx:{display:{base:"block",md:"none"},fontSize:"lg"}}),(0,a.tZ)(u.xu,{as:u.lF,sx:{display:{base:"none",md:"block"}}})]}),(0,a.tZ)(u.kC,{sx:{width:"100%",alignItems:"center",justifyContent:"flex-end"},children:f?(0,a.BX)(a.HY,{children:[(0,a.tZ)(k,{isActive:!1,href:"https://www.awning.com/airbnb-estimator",title:"Estimator"}),(0,a.tZ)(u.kC,{sx:{marginLeft:6,alignItems:"center",justifyContent:"center",cursor:"pointer"},children:(0,a.tZ)(m,{})})]}):(0,a.BX)(u.kC,{sx:{gap:4,width:"100%",justifyContent:"flex-end"},children:[(0,a.tZ)(u.xu,{children:(0,a.tZ)(u.Qj,{variant:"secondary",size:"md",href:"".concat("/a","/accounts/login"),sx:{whiteSpace:"nowrap"},children:"Sign in"})}),(0,a.tZ)(u.xu,{children:(0,a.tZ)(u.Qj,{size:"md",sx:{whiteSpace:"nowrap"},href:"".concat("/a","/sign-up"),children:"Join Awning"})})]})})]})})}),function(){if(g&&l){return(0,a.tZ)(u.xu,{sx:{text:"sm",backgroundColor:"white",transition:"opacity 0.1s ease-in",boxShadow:"1px -1px 1px #D8D9DB, 0 1px 1px #D8D9DB"},children:l((function(n){return(0,a.tZ)(u.W2,{sx:(0,i.Z)({},w),children:n.children})}))})}return null}()]})}},14401:function(n,e,t){t.d(e,{L:function(){return a}});var r=t(66586),i=t(99291),o=(0,i._c)({name:"userStore",stateInitializer:function(n,e){return{user:{},isLoggedIn:function(){var n,t;return!(!(null===(n=e().user)||void 0===n?void 0:n.firstName)||!(null===(t=e().user)||void 0===t?void 0:t.id))},setUser:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n(i?{user:t}:{user:(0,r.Z)({},e().user,t)})}}}}),a=(0,i.Bi)(o)}}]);
2//# sourceMappingURL=400-d3ac8eed2b4e9909.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.