1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73312],{593873:function(e,t,a){"use strict";var l,n,i=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 32",width:"1em",height:"1em"},e),l||(l=i.createElement("path",{d:"M22.612 3.92c2.134-2.143 5.257-2.188 6.985-.451 1.732 1.737 1.685 4.88-.451 7.023l-3.607 3.621a1.116 1.116 0 0 0 1.581 1.575l3.607-3.621c2.844-2.857 3.201-7.414.451-10.175-2.752-2.764-7.302-2.404-10.148.451l-7.213 7.246c-2.844 2.857-3.201 7.414-.451 10.175a1.115 1.115 0 1 0 1.583-1.573c-1.732-1.741-1.685-4.882.451-7.025l7.213-7.244z"})),n||(n=i.createElement("path",{d:"M20.761 12.235a1.118 1.118 0 0 0-1.583 1.579c1.732 1.737 1.685 4.88-.451 7.023l-7.213 7.242c-2.136 2.143-5.259 2.188-6.987.453-1.732-1.739-1.683-4.882.451-7.025l3.607-3.621a1.116 1.116 0 1 0-1.58-1.577L3.398 19.93C.554 22.787.197 27.346 2.947 30.107c2.752 2.766 7.302 2.404 10.148-.453l7.215-7.242c2.844-2.855 3.201-7.416.451-10.177z"})))}},972456:function(e,t,a){"use strict";var l,n,i=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=i.createElement("path",{d:"M3.597 3.556h10.792c.989 0 1.799-.8 1.799-1.778S15.379 0 14.389 0H3.597C1.619 0 0 1.6 0 3.556v24.889c0 1.956 1.619 3.556 3.597 3.556h10.792c.989 0 1.799-.8 1.799-1.778s-.809-1.778-1.799-1.778H3.597V3.556z"})),n||(n=i.createElement("path",{d:"m31.746 15.378-5.018-4.96c-.576-.569-1.547-.178-1.547.622v3.182h-12.59c-.989 0-1.799.8-1.799 1.778s.809 1.778 1.799 1.778h12.59v3.182c0 .8.971 1.191 1.529.622l5.018-4.96a.867.867 0 0 0 .018-1.244z"})))}},364647:function(e,t,a){"use strict";var l,n,i=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=i.createElement("path",{d:"M.5 18.5 17.5 0h4L5 18.5H.5ZM15.5 10.5l8 8H19l-5.5-6 2-2Z",fill:"#fff"})),n||(n=i.createElement("path",{d:"M13.525 8.5 5 0H1l10.5 10.5 2.025-2Z",fill:"#fff"})))}},841189:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=n.createElement("path",{d:"M29.09 2.462H2.909c-1.6 0-2.91 1.218-2.91 2.708v16.246c0 1.489 1.31 2.708 2.91 2.708H13.09v2.708h-1.452c-.802 0-1.457.61-1.457 1.354 0 .746.655 1.354 1.455 1.354h8.729c.8 0 1.452-.61 1.452-1.354s-.652-1.354-1.452-1.354H18.91v-2.708h10.181c1.6 0 2.91-1.218 2.91-2.708V5.17c0-1.489-1.31-2.708-2.91-2.708zm-1.452 18.953H4.362c-.8 0-1.455-.61-1.455-1.354V6.523c0-.743.655-1.354 1.452-1.354h23.274c.8 0 1.455.608 1.455 1.354v13.538c0 .743-.655 1.354-1.452 1.354z"})))}},799877:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=n.createElement("path",{d:"M26.935 9.102h1.648V9.1A3.417 3.417 0 0 1 32 12.517v.012-.001 15.186a4.343 4.343 0 0 1-3.999 4.285l-.015.001H3.255A3.255 3.255 0 0 1 0 28.745V3.255A3.255 3.255 0 0 1 3.255 0h19.07a3.254 3.254 0 0 1 3.243 3.255v24.459c0 1.13.863 2.058 1.966 2.16l.009.001h.313a2.172 2.172 0 0 0 1.975-2.16V12.52c0-.689-.559-1.248-1.248-1.248h-1.648a1.086 1.086 0 0 1-.003-2.17h.002zM2.487 29.511c.206.203.48.318.768.318l20.72.055a4.294 4.294 0 0 1-.56
15-2.141v-.029.002V3.259c0-.6-.486-1.086-1.086-1.086H3.254c-.599 0-1.084.485-1.086 1.083v25.488c0 .288.114.565.32.768zm9.524-24.894h6.306c.457 0 .827.565.827 1.259s-.37 1.259-.827 1.259h-6.306c-.457 0-.827-.565-.827-1.259s.37-1.259.827-1.259zm-6.274 6.519h12.274c.457 0 .823.565.823 1.259s-.368 1.259-.825 1.259H5.737c-.457 0-.827-.565-.827-1.259s.37-1.259.827-1.259zm0 6.302 12.272-.002c.457 0 .827.567.827 1.262s-.37 1.259-.827 1.259H5.737c-.457 0-.827-.565-.827-1.259s.37-1.259.827-1.259zm0 6.754h12.274c.457 0 .823.565.823 1.259s-.368 1.259-.825 1.259H5.737c-.457 0-.827-.565-.827-1.259s.37-1.259.827-1.259z"})))}},472895:function(e,t,a){"use strict";var l,n,i=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return i.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"#676767",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=i.createElement("path",{d:"M9.746 4.508 5.952 8.301 4.254 6.603a.563.563 0 0 0-.795.795l2.095 2.094a.56.56 0 0 0 .795 0l4.19-4.19a.563.563 0 0 0 0-.794.56.56 0 0 0-.794 0Z"})),n||(n=i.createElement("path",{d:"M7 0C3.14 0 0 3.14 0 7s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7Zm0 12.877A5.883 5.883 0 0 1 1.123 7 5.883 5.883 0 0 1 7 1.123 5.883 5.883 0 0 1 12.877 7 5.883 5.883 0 0 1 7 12.877Z"})))}},894340:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 16 13",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5 1.84 5.08 12.44.5 7.78l1.376-1.4 3.205 3.26 9.043-9.2 1.376 1.4Z"})))}},91674:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{d:"M11.162 1.408c.26-.26.68-.26.94 0 .25.25.25.68 0 .93L7.615 6.823 7.44 7l.176.177 4.486 4.485a.664.664 0 1 1-.94.94L6.677 8.116 6.5 7.94l-.177.176-4.485 4.486a.664.664 0 1 1-.94-.94l4.486-4.485L5.56 7l-.176-.177L.899 2.338a.663.663 0 1 1 .94-.94l4.484 4.486.177.176.177-.176 4.485-4.476Z",fill:"#676767",stroke:"#fff",strokeWidth:.5})))}},610887:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.735 8.44 2 13.173l1.265 1.266L8 9.704l4.735 4.735L14 13.174 9.265 8.44 14 3.705l-1.265-1.266L8 7.174 3.265 2.44 2 3.705l4.735 4.734Z"})))}},677141:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{d:"m4.5 6.75 4.5 4.5 4.5-4.5",stroke:"#676767",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}},166797:function(e,t,a){"use strict";var l,n=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 13 10",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{d:"M7.583 3.333h4.334v.556H7.583v-.556ZM11.917 0H1.083C.488 0 0 .5 0 1.111V8.89C0 9.5.487 10 1.083 10h10.834c.595 0 1.078-.5 1.078-1.111L13 1.11C13 .5 12.512 0 11.917 0ZM4.333 1.667c.9 0 1.625.744 1.625 1.666C5.958 4.256 5.232 5 4.333 5s-1.625-.744-1.625-1.667c0-.922.726-1.666 1.625-1.
1666Zm2.98 6.389-2.98.277-2.979-.277-.27-.278c0-1.111 2.166-1.722 3.25-1.722 1.083 0 3.25.61 3.25 1.722l-.271.278ZM11.916 5H7.583v-.556h4.334V5Z"})))}},626709:function(e,t){"use strict";t.Z={src:"https://builder-cdn.access.com/_next/static/media/idx-request-sent-2.f0d57610.png",height:235,width:312,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAQlBMVEVMaXGnp6fHx8esrKykpKTOzs63t7etra2tra23t7enp6e0tLTy8vKxsbETExPo6OiVlZWzs7OwsLDk5OTHx8fW1tb0pP4gAAAAE3RSTlMAHbxVB/3+EiaJ3zv53xreNV7r8BZgIAAAAAlwSFlzAAAQnAAAEJwBJs06NAAAADVJREFUeJwVykcSwCAMALGl2qYnwP+/monOgjjMCyDL3z0raEitbRNcyCdlc1B7Ke/Dv1QjfCfcAWjOPmQuAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6}},140320:function(e,t,a){"use strict";a.d(t,{Z:function(){return idxRequestContent}});var l,n,i,s,r,o,d,c,m=a(785893),u=a(667294),p=a(603597),h=a.n(p),x=a(386010),v=a(376299),f=a(626709);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_user1=function(e){return u.createElement("svg",_extends({viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=u.createElement("path",{d:"M16 16c4.42 0 8-3.58 8-8s-3.58-8-8-8-8 3.58-8 8 3.58 8 8 8zm0 4c-5.34 0-16 2.68-16 8v2c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2v-2c0-5.32-10.66-8-16-8z"})))};function icon_email_extends(){return(icon_email_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_email=function(e){return u.createElement("svg",icon_email_extends({viewBox:"0 0 44 32",width:"1em",height:"1em"},e),n||(n=u.createElement("path",{d:"M39.6 0H4.4C1.98 0 .022 1.8.022 4L0 28c0 2.2 1.98 4 4.4 4h35.2c2.42 0 4.4-1.8 4.4-4V4c0-2.2-1.98-4-4.4-4zm-.88 8.5-15.554 8.84c-.704.4-1.628.4-2.332 0L5.28 8.5c-.55-.32-.88-.86-.88-1.44 0-1.34 1.606-2.14 2.86-1.44L22 14l14.74-8.38c1.254-.7 2.86.1 2.86 1.44 0 .58-.33 1.12-.88 1.44z"})))};function icon_post_extends(){return(icon_post_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_post=function(e){return u.createElement("svg",icon_post_extends({viewBox:"0 0 27 32",width:"1em",height:"1em"},e),i||(i=u.createElement("path",{d:"M15.243 12.951h7.622l4.573-4.573-4.573-4.573h-7.622V.756h-3.049v3.049H1.524v9.146h10.67V16H4.572l-4.573 4.573 4.573 4.573h7.622v6.097h3.049v-6.097h10.67V16h-10.67v-3.049z"})))};function icon_location_pin_extends(){return(icon_location_pin_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_location_pin=function(e){return u.createElement("svg",icon_location_pin_extends({viewBox:"0 0 26 32",width:"1em",height:"1em"},e),s||(s=u.createElement("path",{d:"M11.704 29.553c-1.198-1.841-9.57-13.188-9.57-17.584 0-6.021 4.776-10.902 10.667-10.902s10.667 4.881 10.667 10.902c0 4.396-8.271 15.742-9.57 17.584s-.995 1.841-2.192 0zM12.8 16.512c2.455 0 4.444-2.034 4.444-4.543s-1.99-4.543-4.444-4.543-4.444 2.034-4.444 4.543c0 2.509 1.99 4.543 4.444 4.543z"})))};function icon_city_extends(){return(icon_city_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_city=function(e){return u.createElement("svg",icon_city_extends({viewBox:"0 0 27 32",width:"1em",height:"1em"},e),r||(r=u.createElement("path",{d:"M18.286 15.238V6.095l-4.571-4.571-4.571 4.571v3.048H.001v21.333H27.43V15.238h-9.143zM6.095 27.428H3.047V24.38h3.048v3.048zm0-6.095H3.047v-3.048h3.048v3.048zm0-6.095H3.047V12.19h3.048v3.048zm9.143 12.19H12.19V24.38h3.048v3.048zm0-6.095H12.19v-3.048h3.048v3.048zm0-6.095H12.19V12.19h3.048v3.048zm0-6.095H12.19V6.095h3.048v3.048zm9.143 18.285h-3.048V24.38h3.048v3.048zm0-6.095h-3.048v-3.048h3.048v3.048z"})))};function icon_hash_extends(){return(icon_hash_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_hash=function(e){return u.createElement("svg",icon_hash_extends({viewBox:"0 0 32 32",width:"1em",height:"1em"},e),o||(o=u.createElement("path",{d:"M31.111 12.444 32 8.888h-7.111l1.778-7.111h-3.556l-1.778 7.111h-7.111L16 1.777h-3.556l-1.778 7.111H3.555l-.889 3.556h7.111l-1.778 7.111H.888l-.889 3.556H7.11l-1.778 7.111h3.556l1.778-7.111h7.111l-1.778 7.111h3.556l1.778-7.111h7.111l.889-3.556h-7.111L24 12.444h7.111zm-12.444 7.111h-7.111l1.778-7.111h7.111l-1.778 7.111z"})))};function icon_house_2_extends(){return(icon_house_2_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_house_2=function(e){return u.createElement("svg",icon_house_2_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"}
1,e),d||(d=u.createElement("path",{d:"M12.801 29.6V20h6.398v9.6H27.2V16.801H32L16 2.399 0 16.798h4.8v12.799h8.001z"})))},b=a(593873),g=a(166797);function icon_suitcase_extends(){return(icon_suitcase_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_suitcase=function(e){return u.createElement("svg",icon_suitcase_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),c||(c=u.createElement("path",{d:"M28.8 7.664h-6.4V4.63c0-1.68-1.424-3.03-3.2-3.03h-6.4c-1.776 0-3.2 1.35-3.2 3.03v3.034H3.2c-1.776 0-3.184 1.347-3.184 3.03L0 27.366C0 29.049 1.424 30.4 3.2 30.4h25.6c1.776 0 3.2-1.35 3.2-3.03V10.698c0-1.686-1.424-3.034-3.2-3.034zm-9.6 0h-6.4V4.63h6.4v3.034z"})))},_=a(425675),j=a.n(_),w={src:"https://builder-cdn.access.com/_next/static/media/idx-banner.756d8c4f.png",height:677,width:720,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAWlBMVEWdnZumnZJISk3Cw8Otq6iqtsOYoajf3+DJ0dDX2NezubdXV1hna3FQUlN0d3m4ta+jo6N8fX2NkpZlX1mjraiOjIxUWWansLaEhZGCg4msqaqhmpDQ1tXF0d30gOrUAAAACnRSTlP+9v//+/b2/vz7GqSMJwAAAAlwSFlzAAAQnAAAEJwBJs06NAAAAEJJREFUeJwFwQcCQDAQAMGV4NK7zv+/aYZPRF6emxFU7ypnUmwz4RRSGK5c+4Ex2mntGjUVoG7EqLxX3iKWaV4X8wN2JQLaWz+wmAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},y=a(756312),N=a(287536),S=a(719298),P=a(701604),C=a(314976),E=a(626403),Z=a(905918),M=a(887799),A=a(264805),k=a(785945),O=a(662830),I=a.n(O),D=a(809473),F=a(752819),T=a(925536);let R=P.z.object({website:S.C1,firstName:S.BV,lastName:S.CV,email:S.Do,phone:S.m7,licenseNumber:S.C1,addressLine1:S.C1,addressLine2:S.C1,city:S.C1,state:S.C1,zipCode:S.C1,brokerageName:S.C1,brokerageAddress:S.C1,brokerRecordName:S.C1,brokerEmail:S.Do,mlsBoardName1:S.C1,mlsBoardName2:S.C1,mlsBoardName3:S.C1,agentId:S.C1,officeId:S.C1,websiteDomainName:S.C1}),useUserPackage=e=>
1{let[t,a]=u.useState(null);return u.useEffect(()=>{if(!e)return;let t=(0,T.a4)(e);fetch("/api/idx/control-panel/user?websiteId=".concat(t.id)).then(e=>e.ok?e.json():null).then(e=>{var t,l,n;return a(null!==(n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.userPackage)||void 0===t?void 0:t.packageId)&&void 0!==n?n:null)}).catch(()=>a(null))},[e]),1665===t};var idxRequestContent=e=>{var t,a,l,n,i,s,r,o,d,c,p,_,S,P,O,T,B,L,H;let{data:z}=(0,M.JP)(),U=e.title||"Request for IDX Property Search",V=useUserPackage(null===(t=e.website)||void 0===t?void 0:t.id),[G,W]=u.useState(!1),q=(0,E.QJl)(C.ZP),Y=e.website,J=(0,Z.GK)(e=>e.idxClient),{register:X,handleSubmit:K,formState:{errors:Q,isSubmitting:$},reset:ee,watch:et}=(0,N.cI)({resolver:(0,y.F)(R)}),ea=(0,k.NL)(),el=(0,E.VW)(C.ZP,{},{staleTime:3e5,initialData:()=>ea.getQueryData(E.VW.getKey())}),[en,ei]=u.useState(""),[es,er]=u.useState({id:I()(),iso2:"US",iso3:"USA",name:"United States",phoneCode:"1"}),eo=(0,E._$8)(C.ZP,{input:{id:null!==(T=null===(a=e.website)||void 0===a?void 0:a.id)&&void 0!==T?T:""}},{enabled:!!(null===(l=e.website)||void 0===l?void 0:l.id),refetchOnWindowFocus:!1}),ed=null===(o=eo.data)||void 0===o?void 0:null===(r=o.website)||void 0===r?void 0:null===(s=r.stripeSubscription)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:null===(n=i.stripeCustomer)||void 0===n?void 0:n.stripeCustomerId,ec=(0,E.$nl)(C.ZP,{customerId:null!=ed?ed:"",websiteId:null!==(B=null===(d=e.website)||void 0===d?void 0:d.id)&&void 0!==B?B:""},{enabled:!!ed&&!!(null===(c=e.website)||void 0===c?void 0:c.id)}),em=null!==(L=null===(_=null===(S=ec.data)||void 0===S?void 0:S.getSubscriptionsByCustomer)||void 0===_?void 0:null===(p=_.data)||void 0===p?void 0:p.some(e=>"iHomefinder Max Plan"===e.productName))&&void 0!==L&&L,eu=(0,D.I0)();u.useEffect(()=>{resetFields()},[null==z?void 0:z.user.id,null==z?void 0:z.user.sessionToken]);let renderInput=(e,t,a,l)=>{let n=Q[t];return(0,m.jsxs)("div",{className:h()["input-wrapper"],children:[(0,m.jsx)("label",{className:h()["input-wrapper--label"],children:e}),(0,m.jsxs)("div",{className:(0,x.Z)(h()["input-wrapper--field"],{"!border-error":n}),children:[l,(0,m.jsx)("input",{autoComplete:"off",type:"text",...X(t),name:t,placeholder:a},G.toString())]}),(0,m.jsx)("span",{className:"text-xxs text-error",children:null==n?void 0:n.message})]})},ep=K(async t=>{try{var a;await q.mutateAsync({input:{...t,phone:"+"+es.phoneCode+t.phone,websiteId:Y.id,hasIHF:e.hasIHF||V}}),eu((0,F.yg)({...Y,options:{...Y.options,idxRequestSent:!0}})),resetFields(),W(!0),null===(a=e.onRequestSent)||void 0===a||a.call(e)}catch(e){}}),resetFields=()=>{var e,t,a,l,n,i;return ee({website:Y.name,firstName:null!==(l=null==z?void 0:null===(e=z.user)||void 0===e?void 0:e.firstName)&&void 0!==l?l:"",lastName:null!==(n=null==z?void 0:null===(t=z.user)||void 0===t?void 0:t.lastName)&&void 0!==n?n:"",email:null!==(i=null==z?void 0:null===(a=z.user)||void 0===a?void 0:a.email)&&void 0!==i?i:"",phone:"",licenseNumber:"",addressLine1:"",addressLine2:"",city:"",state:"",zipCode:"",brokerageName:"",brokerageAddress:"",brokerRecordName:"",brokerEmail:"",mlsBoardName1:"",mlsBoardName2:"",mlsBoardName3:"",agentId:"",officeId:"",websiteDomainName:""})},eh=!G&&Y.options.idxRequestSent;return G||Y.options.idxRequestSent&&!J?(0,m.jsx)("div",{className:(0,x.Z)(h()["request-modal-wrapper"],e.modalWrapper,"!w-[616px] "),children:(0,m.jsxs)("div",{className:"flex flex-col items-center justify-center ",children:[(0,m.jsx)(j(),{src:f.Z,alt:"builder-loader",height:156,width:208}),(0,m.jsx)("div",{className:(0,x.Z)("mb-4 mt-6",h().title),children:eh?"You have an existing IDX Search request.":"Thank you!"}),(0,m.jsxs)("div",{className:(0,x.Z)("!mb-10 text-center"),children:[(0,m.jsx)("p",{className:h().subtitle,children:"We've received your request. Someone from our team will c
1ontact you soon."}),eh&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("br",{}),(0,m.jsxs)("p",{className:h().subtitle,children:["If you have questions or clarifications,",(0,m.jsx)("br",{}),"feel free to call"," ",(0,m.jsx)("a",{href:"tel:8009779497",className:"font-bold text-access-primary-500",children:"800.977.9497"})," ","or send us a"," ",(0,m.jsx)("a",{href:"https://access.com/contact-us/",target:"_blank",className:"font-bold text-access-primary-500 underline",rel:"noreferrer",children:"message"}),"."]})]})]}),(0,m.jsx)("div",{className:"flex justify-center",children:(0,m.jsx)(v.ZP,{className:h()["btn-done"],label:eh?"OK":"Done",onClick:e.onDone})})]})}):(0,m.jsxs)("div",{className:(0,x.Z)(h()["request-modal-wrapper"],e.modalWrapper),children:[(0,m.jsx)("div",{className:h().title,children:U}),(0,m.jsxs)("div",{className:h()["request-idx-content"],children:[(0,m.jsx)(j(),{src:w,alt:"builder-loader",className:"min-w-[30rem] xl:mr-10",height:212,width:480}),(0,m.jsxs)("form",{className:h()["request-idx-form"],onSubmit:ep,children:[(0,m.jsxs)("div",{className:(0,x.Z)(h().subtitle,"mb-8"),children:["Welcome to our IDX Property Search request form! We're excited to help you accelerate your real estate business.",(0,m.jsx)("br",{}),(0,m.jsx)("br",{}),"Please provide us with the following information:"]}),(e.hasIHF||V||em)&&(0,m.jsxs)("div",{className:(0,x.Z)(h()["input-wrapper"],"mb-4"),children:[(0,m.jsx)("label",{className:h()["input-wrapper--label"],children:"IHOMEFINDER PLAN TYPE"}),(0,m.jsx)("div",{className:"pointer-events-none rounded-sm border-[0.4px] border-lightGray-800 bg-access-primary-50 p-4 font-openSans text-sm text-access-primary-400",children:"IHOMEFINDER MAX"})]}),(0,m.jsx)("div",{children:renderInput("WEBSITE","website","Enter website",(0,m.jsx)(b.Z,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("website")})}))}),(0,m.jsxs)("div",{className:"mt-4",children:[(0,m.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[renderInput("FIRST NAME","firstName","Enter first name",(0,m.jsx)(icon_user1,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("firstName")})})),renderInput("LAST NAME","lastName","Enter last name",(0,m.jsx)(icon_user1,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("lastName")})}))]}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("EMAIL","email","Enter email",(0,m.jsx)(icon_email,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("email")})}))}),(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsxs)("div",{className:h()["input-wrapper"],children:[(0,m.jsx)("label",{className:h()["input-wrapper--label"],children:"PHONE NUMBER"}),(0,m.jsx)("div",{className:(0,x.Z)(h()["input-wrapper--field"],{"!border-error":Q.phone}),children:(0,m.jsxs)("div",{className:"relative flex w-full ",children:[(0,m.jsx)(A.Z,{wrapperClassName:"!h-[3.25rem] !border-b-0 rounded-sm -ml-2.5 transition-colors duration-200 ".concat(""),contentClassName:"!w-[28.125rem] tablet-sm:!w-[38.75rem] xl:!w-[33.875rem]",country:es,countries:null!==(H=null==el?void 0:null===(P=el.data)||void 0===P?void 0:P.countries)&&void 0!==H?H:[],onCountryChange:e=>er(e)}),(0,m.jsx)("input",{autoComplete:"off",type:"text",...X("phone"),name:"phone",placeholder:"2345678096",onFocus:()=>ei("true"),onBlur:()=>ei("")},G.toString())]})}),(0,m.jsx)("span",{className:"text-xxs text-error",children:null===(O=Q.phone)||void 0===O?void 0:O.message})]})}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("LICENSE NUMBER","licenseNumber","Enter license number",(0,m.jsx)(icon_hash,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("licenseNumber")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("ADDRESS LINE 1","addressLine1","Enter address line 1",(0,m.jsx)(icon_location_pin,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("addressLine1")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("ADDRESS LINE 2","addressLine2","Enter address line 2",(0,m.jsx)(icon_location_pin,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("addressLine2")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("CITY","city","Enter city",(0,m.jsx)(icon_city,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("city")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("STATE","state","Enter state",(0,m.jsx)(icon_location_pin,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("state")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("ZIP CODE","zipCode","Enter zip code",(0,m.jsx)(icon_post,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("zipCode")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("BROKERAGE NAME","brokerageName","Enter brokerage name",(0,m.jsx)(icon_user1,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("brokerageName")}
1)}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("BROKERAGE ADDRESS","brokerageAddress","Enter brokerage address",(0,m.jsx)(icon_location_pin,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("brokerageAddress")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("BROKER ON RECORD NAME","brokerRecordName","Enter broker on record name",(0,m.jsx)(icon_user1,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("brokerRecordName")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("BROKER'S EMAIL ADDRESS","brokerEmail","Enter broker's email address",(0,m.jsx)(icon_email,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("brokerEmail")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("MLS BOARD NAME (1)","mlsBoardName1","Enter mls board name 1",(0,m.jsx)(icon_house_2,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("mlsBoardName1")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("MLS BOARD NAME (2)","mlsBoardName2","Enter mls board name 2",(0,m.jsx)(icon_house_2,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("mlsBoardName2")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("MLS BOARD NAME (3)","mlsBoardName3","Enter mls board name 3",(0,m.jsx)(icon_house_2,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("mlsBoardName3")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("AGENT ID","agentId","Enter agent ID",(0,m.jsx)(g.Z,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("agentId")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("OFFICE ID","officeId","Enter office ID",(0,m.jsx)(icon_suitcase,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("officeId")})}))}),(0,m.jsx)("div",{className:"mt-4",children:renderInput("WEBSITE DOMAIN NAME","websiteDomainName","Enter website domain name",(0,m.jsx)(b.Z,{className:(0,x.Z)(h()["input-wrapper--field--icon"],{"!fill-lightGray-800":!et("websiteDomainName")})}))}),(0,m.jsx)("div",{className:"mt-6 flex justify-center",children:(0,m.jsx)(v.ZP,{loading:$,type:"submit",className:h()["btn-send-request"],label:"Send Request"})})]})]})]})]})}},43465:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(894340),s=a(610887),r=a(386010),o=a(264999),d=a.n(o),c=a(809473),m=a(78045),u=a(992893),p=a(811163),h=a(385590),x=a(903089),v=a(396716),f=a(220329),b=a(905749);let Card=e=>{var t,a,o,c,m;let{plan:f,setPlan:g,setIhfMaxUpgrade:_,ihfMaxUpgrade:j}=(0,x.U)(),[w,y]=n.useState(!1),[N,S]=n.useState(!1),P=n.useRef(null),C=(0,p.useRouter)(),E=!!(null===(a=e.website)||void 0===a?void 0:null===(t=a.template.meta)||void 0===t?void 0:t.singlePage)||(null===(o=e.website)||void 0===o?void 0:o.template.name)==="Mosaic"||(null===(c=e.website)||void 0===c?void 0:c.template.name)==="Prism",Z=n.useCallback(()=>{let e=P.current;if(!e)return;let t=e.scrollTop+e.clientHeight>=e.scrollHeight-4;S(t)},[]);n.useEffect(()=>{let t=P.current;if(t&&e.hasScroll)return t.addEventListener("scroll",Z,{passive:!0}),Z(),()=>t.removeEventListener("scroll",Z)},[e.hasScroll,Z]);let M={productId:e.id,plan:e.plan,price:e.prices.map(e=>{var t;return{recurring:null===(t=e.recurring)||void 0===t?void 0:t.interval,priceId:e.id,value:(0,u.T)(e.unit_amount||0),numPrice:(e.unit_amount||0)/100,nickname:e.nickname}}),currency:"$",currencyLabel:"USD",accessTool:!0,customDomain:!0,idx:"Platinum Plan"===e.plan,currentSubscription:e.currentSubscription};n.useEffect(()=>{var t,a,l;(h.limitedEditionTemplates.includes(null!==(l=null===(t=e.template)||void 0===t?void 0:t.name)&&void 0!==l?l:null===(a=e.website)||void 0===a?void 0:a.template.name)||e.forIDX)&&"PLATINUM"===e.type?(g(M),_(!1)):(E||e.tenant?"PLATINUM"===e.type:"SILVER"===e.type)?(g(M),"SILVER"===e.type&&_(!1)):E&&"SINGLE PROPERTY PLAN"===e.type&&(g(M),_(!1))},[]);let getIHFMaxPricing=e=>{let t=null==e?void 0:e.find(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)==="month"}),a=null==e?void 0:e.find(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)==="year"}),format=e=>
1(e/100).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2});return{monthly:t?format(t.unit_amount):null,yearly:a?format(a.unit_amount):null}};n.useEffect(()=>{y(null!=j&&j)},[j]);let A=!!e.ihfMax;return(0,l.jsxs)("div",{className:(0,r.Z)(d()["plan-card--container"],E?"!max-w-none !cursor-default lg:!max-w-none lg:!px-[2.5rem]":"!min-h-[554px] sm:!h-[554px] lg:!w-[320px]",{"after:!opacity-0":N,"!border-access-primary-500 bg-[#F3F6FC]":(null==f?void 0:f.plan)===M.plan,"pointer-events-none cursor-default [&>*]:text-access-neutrals-300":e.notAvailable,"!border-transparent bg-[#f8f8f8]":e.notAvailable,"!h-auto":A}),onClick:()=>{g(M)},children:[(0,l.jsx)("p",{className:(0,r.Z)("py-1font-graphie mb-4 rounded-[5px] bg-[#e1e1e1] px-5 text-center text-sm font-bold leading-6 tracking-[1.4px] text-[#1b1b1b]",E?"w-auto":"w-[7.75rem]",{"!bg-access-primary-500 !text-white":(null==f?void 0:f.plan)===M.plan}),children:e.type}),(0,l.jsxs)("div",{className:"mb-2 flex items-baseline font-graphie",children:[(0,l.jsx)("p",{className:"text-[2rem] font-bold leading-[2.75rem] tracking-[-1.28px] lg:text-[2.5rem] lg:tracking-[-1.6px] ",children:e.price.replace(/\.00$/,"")}),(0,l.jsxs)("p",{className:(0,r.Z)("text-center text-[1rem] font-normal lg:text-lg"),children:["/",e.recurrence]})]}),(0,l.jsx)("div",{className:(0,r.Z)("mb-4 flex flex-col items-center",{"[&>*]:!text-access-neutrals-300":e.notAvailable}),children:(0,l.jsxs)("p",{className:"mr-2 whitespace-pre text-center font-openSans text-xs leading-4 text-neutral-400 lg:text-[1rem] lg:leading-6",children:[e.note," ",!E&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),"(",(0,l.jsx)("span",{className:(0,r.Z)({"text-access-primary-500":!e.n
1otAvailable}),children:e.free}),")"]})]})}),e.header&&(0,l.jsx)("div",{className:d()["plan-card--header"],children:e.header}),e.subheader&&(0,l.jsx)("div",{className:d()["plan-card--subheader"],children:e.subheader}),e.inclusions&&(0,l.jsx)("div",{ref:e.hasScroll?P:void 0,className:(0,r.Z)(d().inclusions,e.hasScroll&&d().scrollable),children:e.inclusions.map((t,a)=>(0,l.jsx)(l.Fragment,{children:t.highlight?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:(0,r.Z)("flex",t.highlight&&"-ml-2 bg-access-primary-100 px-[0.46875rem] py-[0.3125rem]"),children:[(0,l.jsx)("div",{className:(0,r.Z)("mr-2 h-4 w-4 lg:mr-4",{"px-[0.125rem] py-[0.1875rem]":"check"===t.icon,"p-[0.125rem]":"cross"===t.icon,"[&>*]:!fill-access-neutrals-300":e.notAvailable}),children:"check"===t.icon?(0,l.jsx)(i.Z,{}):(0,l.jsx)(s.Z,{})}),(0,l.jsx)("div",{className:(0,r.Z)({"[&>*]:!text-access-neutrals-300":e.notAvailable}),children:(0,l.jsx)("p",{className:"font-openSans text-[0.75rem] !leading-6 text-[#1b1b1b] lg:text-[1rem] lg:text-sm",children:t.item})})]},a),t.note&&(0,l.jsx)("div",{children:(0,l.jsx)("p",{className:"mt-2.5 font-openSans text-xs leading-[1.125rem] text-neutral-400",children:t.note})})]}):(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("div",{className:(0,r.Z)("mr-2 h-4 w-4 lg:mr-4",{"px-[0.125rem] py-[0.1875rem]":"check"===t.icon,"p-[0.125rem]":"cross"===t.icon,"[&>*]:!fill-access-neutrals-300":e.notAvailable}),children:"check"===t.icon?(0,l.jsx)(i.Z,{}):(0,l.jsx)(s.Z,{})}),(0,l.jsxs)("div",{className:(0,r.Z)({"[&>*]:!text-access-neutrals-300":e.notAvailable}),children:[(0,l.jsx)("p",{className:"font-openSans text-[0.75rem] !leading-6 text-[#1b1b1b] lg:text-[1rem] lg:text-sm",children:t.item}),t.note&&(0,l.jsx)("p",{className:"-ml-8 mt-2.5 font-openSans text-xs leading-[1.125rem] text-neutral-400",children:t.note})]})]},a)}))}),e.inclusions&&e.hasScroll&&(0,l.jsxs)("div",{className:(0,r.Z)(d()["scroll-more"],{[d()["scroll-more--hidden"]]:N}),children:["Scroll to view more",(0,l.jsx)(b.Z,{})]}),"PLATINUM"===e.type&&(0,l.jsxs)("div",{className:d()["ihfMax--container"],children:[(0,l.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,l.jsx)(v.Z,{isChecked:!1,boxClassname:(0,r.Z)("!w-5 !h-5 !border-access-neutrals-300",d()["ihfMax--checkbox"],w&&d().checked,w&&"!border-access-neutrals-300 !bg-access-primary-500"),textClassname:"!text-sm !font-semibold !leading-6 !font-openSans !text-access-neutrals-500",label:"Upgrade to iHomefinder Max",onToggle:()=>{y(!1),_(!1),g(M)}})}),(0,l.jsx)("div",{className:d()["ihfMax--price"],children:(()=>{var t;let{monthly:a,yearly:n}=getIHFMaxPricing(null===(t=e.ihfMax)||void 0===t?void 0:t.prices);return(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsxs)("span",{children:["+",a]})," monthly /"," ",n&&(0,l.jsxs)("span",{children:["+",n]})," annually"]})})()}),(0,l.jsxs)("div",{className:d()["ihfMax--description"],children:[(0,l.jsx)("b",{children:"Full-featured CRM"})," with advanced automation, premium lead routing, and enhanced engagement tools."," ",(0,l.jsx)("b",{children:"Includes Marketboost + Eureka."})]})]}),C.pathname.includes("/builder")&&e.isSubscribed&&(0,l.jsx)(l.Fragment,{children:(null===(m=e.subscriptionInfo)||void 0===m?void 0:m.productName)===e.plan&&(0,l.jsx)("span",{className:"absolute bottom-[30px] font-openSans text-base font-semibold",children:"YOUR CURRENT SUBSCRIPTION"})})]})};t.Z=e=>{var t,a,i,s,r,o,d,x,v,b,g,_,j,w,y,N,S,P;let C=(0,p.useRouter)(),E=(0,c.v9)(m.Cf),[Z,M]=n.useState(),A=null!==(w=null==E?void 0:E.id)&&void 0!==w?w:null===(t=e.website)||void 0===t?void 0:t.id,{data:k}=(0,f.Z)({suspense:!0}),O=e.website&&(null===(a=e.website)||void 0===a?void 0:a.stripeSubscription)!==null&&(null===(s=e.website)||void 0===s?void 0:null===(i=s.stripeSubscription)||void 0===i?void 0:i.length)!==0&&(null===(r=e.website)||void 0===r?void 0:r.stripeSubscription[0].status)==="active",I=e.products,D=!!(null===(d=e.website)||void 0===d?void 0:null===(o=d.template.meta)||void 0===o?void 0:o.singlePage)||(null===(x=e.website)||void 0===x?void 0:x.template.name)==="Mosaic"||(null===(v=e.website)||void 0===v?void 0:v.template.name)==="Prism",setupPriceRates=e=>{let t=e.filter(e=>D?"Single Property Plan"===e.name:"Single Property Plan"!==e.name),a=t.sort((e,t)=>
1{var a,l;let n=null===(a=e.prices)||void 0===a?void 0:a.find(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)==="month"}).unit_amount,i=null===(l=t.prices)||void 0===l?void 0:l.find(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)==="month"}).unit_amount;return n-i}).map(e=>{let t=F.filter(t=>t.id===e.id)[0];if(!t)return null;let getPricing=t=>{let a=e.prices.filter(e=>e.nickname===t);if(a.length>0)return a;let l="Billed Monthly"===t?"month":"year";return e.prices.filter(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)===l})};return{id:e.id,siteId:A,type:t.type,price:(0,u.T)(getPricing("Billed Monthly")[0].unit_amount||0),recurrence:"month"===getPricing("Billed Monthly")[0].recurring.interval?"monthly":"yearly",note:t.note,free:t.free,inclusions:t.inclusions,header:t.header,subheader:t.subheader,hasScroll:t.hasScroll,currentSubscription:t.currentSubscription&&O,productId:e.id,plan:e.name,currency:"$",currencyLabel:"USD",accessTool:!0,customDomain:!0,idx:"Platinum Plan"===e.name||"Diamond Plan"===e.name,prices:e.prices}});M(a)};n.useEffect(()=>{var e,t;(null==I?void 0:null===(e=I.getStripeProducts)||void 0===e?void 0:e.data)&&setupPriceRates(null==I?void 0:null===(t=I.getStripeProducts)||void 0===t?void 0:t.data.filter(e=>e.prices.every(e=>e.recurring)))},[I]);let getProductDetails=e=>{var t;let a=null==I?void 0:null===(t=I.getStripeProducts.data)||void 0===t?void 0:t.find(t=>t.name===e),l=null==a?void 0:a.prices.find(e=>{var t;return(null===(t=e.recurring)||void 0===t?void 0:t.interval)==="year"});return{id:null==a?void 0:a.id,annualPrice:((null==l?void 0:l.unit_amount)/100).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:"Single Property Plan"===e?0:2,maximumFractionDigits:2})}},F=[...k?[]:[{id:getProductDetails("Silver Plan").id,type:"SILVER",recurrence:"monthly",note:"".concat(getProductDetails("Silver Plan").annualPrice," billed annually"),free:"2 months free",inclusions:[{icon:"check",item:"Connect to a custom domain",note:""},{icon:"check",item:"25 Free Single Property Sites",note:""},{icon:"cross",item:"Does not include IDX",note:""}],currentSubscription:null!==(y=O&&(null===(b=e.subscriptionInfo)||void 0===b?void 0:b.productName)==="Silver Plan")&&void 0!==y&&y}],{id:getProductDetails("Platinum Plan").id,type:"PLATINUM",recurrence:"monthly",note:"".concat(getProductDetails("Platinum Plan").annualPrice," billed annually"),free:"2 months free",inclusions:[{icon:"check",item:"Limited edition designs",note:""},{icon:"check",item:"Connect to a custom domain",note:""},{icon:"check",item:"25 Free Single Property Sites"},{icon:"check",item:"Single IDX feed",note:(0,l.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,l.jsx)("div",{children:"*Single Feed, Single User, Possible additional cost for additional feeds"}),(0,l.jsx)("div",{children:"*Plus pass-through fee, if applicable."})]})}],currentSubscription:null!==(N=O&&(null===(g=e.subscriptionInfo)||void 0===g?void 0:g.productName)==="Platinum Plan")&&void 0!==N&&N},{id:getProductDetails("Diamond Plan").id,type:"DIAMOND",recurrence:"monthly",note:"".concat(getProductDetails("Diamond Plan").annualPrice," billed annually"),free:"2 months free",header:(0,l.jsxs)("div",{children:["All Platinum Features + ",(0,l.jsx)("span",{children:"iHomefinder Max"})]}),subheader:"AI-powered CRM & marketing tools",hasScroll:!0,inclusions:[{icon:"check",item:"IDX property search & lead capture"},{icon:"check",item:"Full CRM and mobile app for lead management"},{icon:"check",item:"AI lead behavior tracking and scoring"},{icon:"check",item:"Customizable and automated drip marketing"},{icon:"check",item:"Automated property alerts"},{icon:"check",item:"Fully branded property search experience"},{icon:"check",item:"Saved searches & client activity tracking"},{icon:"check",item:"Market reports and insights"}],currentSubscription:null!==(S=O&&(null===(_=e.subscriptionInfo)||void 0===_?void 0:_.productName)==="Diamond Plan")&&void 0!==S&&S},{id:getProductDetails("Single Property Plan").id,type:"SINGLE PROPERTY PLAN",recurrence:"monthly",note:"".concat(getProductDetails("Single Property Plan").annualPrice," billed annually"),currentSubscription:null!==(P=O&&(null===(j=e.subscriptionInfo)||void 0===j?void 0:j.productName)==="Single Property Plan")&&void 0!==P&&P}],T=null==I?void 0:I.getStripeProducts.data.find(e=>"iHomefinder Max Plan"===e.name);return Z?(0,l.jsx)(l.Fragment,{children:Z.filter(e=>null!=e).map(t=>{var a,n,i,s;return(0,l.jsx)(Card,{togglePayment:e.togglePayment,isSubscribed:O,subscriptionInfo:e.subscriptionInfo,website:null!==(i=e.website)&&void 0!==i?i:E,...t,tenant:k,template:e.template,revalidate:e.revalidate,closeSubscriptionModal:e.closeSubscriptionModal,isBuilder:C.asPath.includes("builder"),forIDX:e.forIDX,notAvailable:"SILVER"===t.type&&(h.limitedEditionTemplates.includes(null!==(s=null===(a=e.template)||void 0===a?void 0:a.name)&&void 0!==s?s:null===(n=e.website)||void 0===n?void 0:n.template.name)||e.isSilverNotAvailable),ihfMax:T},t.id)})}):(0,l.jsx)("div",{className:"min-h-[26.125rem] min-w-[20rem]"})}},810083:function(e,t,a){"use strict";a.d(t,{I6:function(){return E},U_:function(){return Z},ZP:function(){return modals}});var l=a(785893),n=a(425675),i=a.n(n),s=a(508710),r=a(11702),o=a.n(r),d=a(163106);a(973935);var c=a(811163),m=a(264805),u=a(626403),p=a(314976),h=a(785945),x=a(667294),v=a(662830),f=a.n(v),b=a(386010),g=a(287536),_=a(701604),j=a(719298),w=a(756312),y=a(887799),N=a(376299),S=a(131955),P=a(194829);a(133209);let C=_.z.object({phone:j.m7}),E="dashboard_selector_dismissed",Z="showAdminModePopover",PhonePrompt=e=>{var t,a,n,i;let{setToggleModal:r}=e,d=(0,P.Z)("screen and (min-width: 1024px)",!0),[c,v]=(0,x.useState)(d),{data:_}=(0,y.JP)(),j=(0,h.NL)(),[E,Z]=(0,x.useState)(!1),M=(0,u.VW)(p.ZP,{},{staleTime:3e5,initialData:()=>j.getQueryData(u.VW.getKey())}),handleSubmitAndExit=e=>{let t=s[s.length-1],[a,l,n]=t.startDate.split("-"),i=new Date("".concat(n,"-").concat(a,"-").concat(l)),o=new Date("".concat(n,"-").concat(a,"-").concat(l));o.setDate(o.getDate()+7);let d=new Date;d>i&&d<o&&"true"===S.Z.get("featuresAnnouncement")?(r("featuresAnnouncement",e),setTimeout(()=>{S.Z.set("featuresAnnouncement","false")},1e3)):r(void 0,e)},{register:A,handleSubmit:k,watch:O,formState:{errors:I}}=(0,g.cI)({resolver:(0,w.F)(C)}),[D,F]=(0,x.useState)({id:f()(),iso2:"US",iso3:"USA",name:"United States",phoneCode:"1"}),T=(0,u.kDo)(p.ZP,{onMutate(){Z(!0)},onSettled(){Z(!1),handleSubmitAndExit(!0)}}),R=k(async e=>{var t;if(E)return;let a={phone:JSON.stringify({iso2:D.iso2,phoneCode:D.phoneCode,phone:e.phone})};T.mutate({input:{id:null!==(t=null==_?void 0:_.user.id)&&void 0!==t?t:"",...a}})});return(0,x.useEffect)(()=>{v(d)},[d]),(0,l.jsxs)("form",{className:o()["modal-phonePrompt__content"],onSubmit:R,children:[(0,l.jsx)("p",{className:o().title,children:"â ï¸ Action Required: Phone Number Required to Secure Your Account"}),(0,l.jsxs)("div",{className:"mb-4 flex flex-col",children:[(0,l.jsxs)("div",{className:o()["input
1s-container"],children:[c&&(0,l.jsx)("p",{className:o().label,children:"Phone Number"}),(0,l.jsx)(m.Z,{wrapperClassName:(0,b.Z)("*:mt-[-1.1875rem] relative transition-colors duration-200 pb-[0.5313rem]",{"!border-neutral-400 ":!c,"!border-[#1B1B1B]":c}),contentClassName:"w-[34.5rem]",country:D,countries:null!==(i=null==M?void 0:null===(t=M.data)||void 0===t?void 0:t.countries)&&void 0!==i?i:[],onCountryChange:e=>{F(e)}}),(0,l.jsx)("input",{...A("phone"),autoFocus:d,placeholder:c?"":"Enter phone number",type:"text",className:o()["phone-input"],onFocus:()=>{v(!0)},onBlur:()=>{v(!1)}})]}),(null===(a=I.phone)||void 0===a?void 0:a.message)&&(0,l.jsx)("p",{className:o()["error-output"],children:null===(n=I.phone)||void 0===n?void 0:n.message})]}),(0,l.jsx)("p",{className:o().description,children:"Without a verified phone number, you won't be able to access the app."}),(0,l.jsxs)("button",{type:"submit",className:(0,b.Z)(o().btn,{"pointer-events-none":E}),disabled:!O("phone"),children:["VERIFY & CONTINUE"," ",E&&(0,l.jsx)(N.ww,{show:!0,className:"!relative ml-4"})]})]})},Features=e=>{let{setToggleModal:t}=e,a=s[s.length-1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"relative flex w-full max-w-full overflow-hidden border-b border-[#DFDFDF] pb-[35.62%]",children:(0,l.jsx)(i(),{width:713,height:254,className:"absolute left-0 top-0 h-full w-full object-cover",alt:"features banner",src:"/static/image/features-banner.gif"})}),(0,l.jsxs)("div",{className:o()["modal-features__description"],children:[(0,l.jsx)("p",{className:o().title,children:a.title}),(0,l.jsxs)("div",{className:o().details,children:[(0,l.jsx)("p",{children:a.details.header}),(0,l.jsx)("ul",{className:"pl-[24px]",children:a.details.list.map(e=>(0,l.jsxs)("li",{children:["⢠",e]}))}),(0,l.jsx)("p",{children:a.details.footer}),(0,l.jsx)("button",{className:o().btn,onClick:()=>t(void 0),children:"GET STARTED"})]})]})]})},DashboardSelector=e=>{let{setToggleModal:t,userQuery:a}=e,n=(0,c.useRouter)(),{data:s}=(0,y.JP)(),r=(0,u.bZt)(p.ZP),[d,m]=(0,x.useState)(!1),[h,v]=(0,x.useState)(!1),persistDismissal=async()=>{var e,t,l,n;if(!(null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.id))return;let i=null!==(n=null==a?void 0:null===(l=a.data)||void 0===l?void 0:null===(t=l.user)||void 0===t?void 0:t.userMetadata)&&void 0!==n?n:[],o=i.some(e=>e.key===E);o||(await r.mutateAsync({input:{userId:s.user.id}}),null==a||a.refetch())},handleAdminDashboard=async()=>{d&&(v(!0),await persistDismissal(),v(!1)),t(void 0),n.push("/admin")},handleMemberDashboard=async()=>{d&&(v(!0),await persistDismissal(),v(!1)),t(void 0),setTimeout(()=>{window.dispatchEvent(new CustomEvent(Z))},0)};return(0,l.jsxs)("div",{className:o()["modal-dashboardSelector"],children:[(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__header"],children:[(0,l.jsx)("h2",{className:o()["modal-dashboardSelector__title"],children:"Welcome to ACCESS.com!"}),(0,l.jsx)("p",{className:o()["modal-dashboardSelector__subtitle"],children:"Choose where you'd like to begin?"})]}),(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__cards"],children:[(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__card"],children:[(0,l.jsx)("div",{className:o()["modal-dashboardSelector__cardImage"],children:(0,l.jsx)(i(),{src:"/static/image/admin-dashboard-preview.png",alt:"Admin Dashboard Preview",width:320,height:219,className:"h-full w-full object-cover"})}),(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__cardBody"],children:[(0,l.jsx)("h3",{className:o()["modal-dashboardSelector__cardTitle"],children:"Admin Dashboard"}),(0,l.jsx)("p",{className:o()["modal-dashboardSelector__cardDescription"],children:"Best for managing members, websites, subscriptions, and organization activity."}),(0,l.jsx)("button",{className:o()["modal-dashboardSelector__cardLink"],disabled:h,onClick:handleAdminDashboard,children:"Open Admin Dashboard"})]})]}),(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__card"],children:[(0,l.jsx)("div",{className:o()["modal-dashboardSelector__cardImage"],children:(0,l.jsx)(i(),{src:"/static/image/member-dashboard-preview.png",alt:"Member Dashboard Preview",width:320,height:219,className:"h-full w-full object-cover"})}),(0,l.jsxs)("div",{className:o()["modal-dashboardSelector__cardBody"],children:[(0,l.jsx)("h3",{className:o()["modal-dashboardSelector__cardTitle"],children:"Member Dashboard"}),(0,l.jsx)("p",{className:o()["modal-dashboardSelector__cardDescription"],children:"Best for creating, managing, and publishing your own websites."}),(0,l.jsx)("button",{className:o()["modal-dashboardSelector__cardLink"],disabled:h,onClick:handleMemberDashboard,children:"Open Member Dashboard"})]})]})]}),(0,l.jsx)("div",{className:o()["modal-dashboardSelector__footer"],children:(0,l.jsxs)("label",{className:o()["modal-dashboardSelector__checkboxLabel"],children:[(0,l.jsx)("input",{type:"checkbox",checked:d,disabled:h,className:o()["modal-dashboardSelector__checkbox"],onChange:e=>m(e.target.checked)}),(0,l.jsx)("span",{children:"Don't show this again. You can switch between dashboards anytime from your profile menu."})]})})]})};var modals=e=>{let{setToggleModal:t,toggleModal:a,userQuery:n}=e;return(0,l.jsxs)(d.fC,{overrideContentClass:!0,open:!!a,overlayClass:"flex justify-center items-start overflow-auto !z-50 py-4",trigger:(0,l.jsx)(l.Fragment,{}),contentClass:(0,b.Z)(o()["modal-features__contentClass"],"dashboardSelector"===a&&"!max-w-[60.5rem]"),disableOutsideClickClose:"phonePrompt"===a,children:["featuresAnnouncement"===a&&(0,l.jsx)(Features,{setToggleModal:t}),"phonePrompt"===a&&(0,l.jsx)(PhonePrompt,{setToggleModal:(e,a)=>{a&&n&&n.refetch().then(()=>{t(e)}),t(e)}}),"dashboardSelector"===a&&(0,l.jsx)(DashboardSelector,{setToggleModal:t,userQuery:n})]})}},264805:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(905749),s=a(425675),r=a.n(s),o=a(386010),d=a(989780),c=a(638082);let ScrollableSelectItem=e=>{var t;let a=(0,n.useRef)(null);return n.useEffect(()=>{if(e.shouldScroll){var t;null===(t=a.current)||void 0===t||t.scrollIntoView(!0)}},[e,a]),(0,l.jsx)(d.Ql,{ref:a,id:e.id,className:"m-0 px-[1.5rem] py-[0.75rem] hover:bg-[#F5F5F5]",value:null!==(t=e.id)&&void 0!==t?t:"",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"flex !h-3 !min-w-4 !max-w-4",children:(0,l.jsx)(r(),{fill:!0,className:"!relative !h-auto !w-full",alt:"",src:"https://flagcdn.com/".concat(null==e?void 0:e.iso2.toLowerCase(),".svg")})}),(0,l.jsx)("div",{children:e.name}),(0,l.jsxs)("div",{children:["+",e.phoneCode]})]})},e.id)};t.Z=e=>{let{countries:t,country:a,wrapperClassName:s,contentClassName:m,onCountryChange:u,showDivider:p=!0,dividerClassName:h}=e,x=null==t?void 0:t.find(e=>
1e.iso2===(null==a?void 0:a.iso2)),[v,f]=(0,n.useState)(x);return(0,n.useEffect)(()=>{let e=null==t?void 0:t.find(e=>e.iso2===(null==a?void 0:a.iso2));e&&f(e)},[t,a]),(0,l.jsxs)(d.Ph,{value:null==v?void 0:v.id,onValueChange:e=>{let a=null==t?void 0:t.find(t=>t.id===e);a&&(u(a),f(a))},children:[(0,l.jsx)(d.i4,{className:(0,o.Z)("h-[1.4375rem] w-fit rounded-none !border-0 !border-b p-0 !outline-none !ring-0 focus:!outline-none focus:!ring-offset-0 focus-visible:!outline-none focus-visible:!ring-0",s),children:(0,l.jsxs)("div",{className:(0,o.Z)("relative flex h-[1.375rem] w-full items-center justify-between space-x-2 pl-2.5 pr-3"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"flex !h-3 !min-w-4 !max-w-4",children:v&&(0,l.jsx)(r(),{fill:!0,className:"!relative !h-full !w-full",alt:"",src:"https://flagcdn.com/".concat(null==v?void 0:v.iso2.toLowerCase(),".svg")})}),(0,l.jsx)("p",{className:"whitespace-pre font-openSans text-base leading-[1.375rem] text-optimumTemplate-emptyBg",children:v&&(0,l.jsxs)(l.Fragment,{children:["+",null==v?void 0:v.phoneCode]})})]}),(0,l.jsx)("div",{className:"flex size-5 items-center justify-center",children:(0,l.jsx)(i.Z,{className:"w-[0.7294rem] fill-access-neutrals-300"})}),p&&(0,l.jsx)("div",{className:(0,o.Z)("absolute bottom-0 right-0 h-[1.4375rem] w-[0.0625rem] bg-[#C1C1C1]",h)})]})}),(0,l.jsx)(c.h_,{children:(0,l.jsx)(d.Bw,{className:(0,o.Z)(m,"bg-white"),onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:(0,l.jsx)(d.DI,{children:t&&(null==t?void 0:t.map(e=>{var t;return(0,l.jsx)(ScrollableSelectItem,{...e,phoneCode:null!==(t=e.phoneCode)&&void 0!==t?t:"",shouldScroll:(null==v?void 0:v.id)===e.id},e.id)}))})})})]})}},811973:function(e,t,a){"use strict";a.d(t,{Z:function(){return BillingInfoForm_CardInput}});var l=a(785893),n=a(667294),i=a(886664),s=a(289948),r=a.n(s),BillingInfoForm_FieldWrapper=e=>{let{labelFor:t,label:a,error:n,children:i}=e;return(0,l.jsxs)("div",{className:r().field,children:[a&&(0,l.jsx)("label",{htmlFor:t,children:a}),i,n&&(0,l.jsx)("div",{className:r().error,children:n})]})};let o={hidePostalCode:!0,classes:{base:r()["card-input"],invalid:r()["card-input"]},style:{base:{fontFamily:"Open Sans, sans-serif",color:"#333333","::placeholder":{textTransform:"capitalize"}},invalid:{color:"#333333"}}},d={classes:{base:r()["card-input"],empty:"",invalid:"",complete:"",focus:r()["card-input--focus"]}},c={classes:{base:r()["card-input"]+" "+r()["card-input--error"],invalid:r()["card-input--error"],empty:r()["card-input--error"],complete:r()["card-input-error"],focus:r()["card-input--error"]}};var BillingInfoForm_CardInput=e=>{let{label:t,error:a,...s}=e,r=(0,i.useElements)(),[m,u]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),x=(0,n.useRef)(null),v=(0,n.useRef)(!0),f=(0,n.useRef)(""),b=(0,n.useRef)(),g=(0,n.useRef)();return(0,n.useEffect)(()=>{let e=x.current;a&&(u(a),null==e||e.update(c))},[a]),(0,n.useEffect)(()=>{s.onChange&&(b.current=s.onChange)},[s.onChange]),(0,n.useEffect)(()=>{s.onReady&&(g.current=s.onReady)},[s.onReady]),(0,n.useEffect)(()=>{r&&(x.current=r.getElement("card"))},[r]),(0,l.jsx)(BillingInfoForm_FieldWrapper,{label:t,error:m||p,children:(0,l.jsx)(i.CardElement,{options:o,onReady:e=>{x.current=e,g.current&&g.current()},...s,onBlur:()=>{if(!x.current)return;v.current?h("Please fill out this field."):h(f.current);let e=!!(v.current||f.current);(e||!f.current)&&u(""),x.current.update(e?c:d)},onChange:e=>{var t,a,l,n,i;v.current=e.empty,f.current=null!==(l=null===(t=e.error)||void 0===t?void 0:t.message)&&void 0!==l?l:"",e.complete||f.current||(f.current="Please fill out this field."),e.complete&&!f.current&&(null===(n=x.current)||void 0===n||n.update(d),h("")),m&&(null===(i=x.current)||void 0===i||i.update(d),u("")),null===(a=b.current)||void 0===a||a.call(b,e)}})})}},796013:function(e,t,a){"use strict";var l=a(785893),n=a(289948),i=a.n(n),s=a(667294);let r=(0,s.forwardRef)((e,t)=>{let{label:a,...n}=e;return(0,l.jsxs)("div",{className:i().checkbox,children:[(0,l.jsx)("input",{ref:t,...n,type:"checkbox",onChange:()=>null}),(0,l.jsx)("label",{children:a})]})});t.Z=r},77434:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(905918),s=a(241248),r=a.n(s),o=a(386010),d=a(677141);let DropdownList=e=>{let{items:t,dropdown:a,listContainerClass:s,classNameFor:d,setDropdown:c,onClick:m}=e,u=(0,i.O3)(()=>{c(!1)}),p=n.useRef(null);return(0,l.jsx)("div",{ref:u,children:(0,l.jsx)("div",{id:"dropdown-list",className:(0,o.Z)(s,r()["dropdown-list__content"],{[r()["dropdown-list__content--expand"]]:a}),children:(0,l.jsx)("ul",{ref:p,children:null==t?void 0:t.map((e,t)=>(0,l.jsx)("li",{id:"dropdown-item-".concat(t),className:(0,o.Z)(d?d(e,t):""),onClick:()=>{m(t),c(!1)},children:e},t))})})})};t.Z=e=>{let{label:t,activeIndex:a,labelClassName:i,wrapperClassName:s,listContainerClass:c,placeholder:m,items:u,disabled:p,classNameFor:h,onClick:x}=e,[v,f]=n.useState(!1);return(0,l.jsxs)("div",{className:(0,o.Z)(r()["dropdown-meta"],s),children:[(0,l.jsx)("p",{className:(0,o.Z)(r()["dropdown-meta__label"],i),children:t}),(0,l.jsx)("button",{type:"button",className:(0,o.Z)(r()["dropdown-meta__btn"],{[r()["dropdown-meta__btn--expand"]]:v}),disabled:p,onClick:()=>f(!v),onKeyDown:e=>{if(e.code.startsWith("Key")){let t=e.code[3],l=u.findIndex(e=>e.startsWith(t));
1if(0===a&&"U"===t){x(235);return}let n=document.getElementById("dropdown-list"),i=document.getElementById("dropdown-item-".concat(l));null==n||n.scrollTo({top:null==i?void 0:i.offsetTop}),x(l)}},children:(0,l.jsxs)(l.Fragment,{children:[a>-1&&(null==u?void 0:u[a])?u[a]:m,(0,l.jsx)(d.Z,{className:(0,o.Z)(r()["dropdown-meta__icon"],{[r()["dropdown-meta__icon--expand"]]:v,"opacity-50":p})})]})}),(0,l.jsx)(DropdownList,{dropdown:v,setDropdown:f,items:u,classNameFor:h,listContainerClass:c,onClick:x})]})}},31942:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(386010),s=a(919511),r=a.n(s);let o=n.forwardRef((e,t)=>{let{wrapperClassName:a,error:s,type:o,placeholder:d,...c}=e,m=n.useId();return(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)("input",{ref:t,...c,id:m,type:o,placeholder:null!=d?d:"",className:(0,i.Z)(r()["input--field"],c.className,s&&r().error),onBlur:e=>e.stopPropagation()}),(0,l.jsx)("p",{className:r()["error--label"],children:s})]})});t.Z=o},945210:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(690393),s=a(133209),r=a(425675),o=a.n(r),d=a(805952),c=a(621107),m=a(875472),u=a.n(m),p=a(386010);t.Z=e=>{n.useState(!1);let[t,a]=n.useState(""),[r,m]=n.useState(!1),[h,x]=n.useState(),[v,f]=n.useState(!0),[b,g]=n.useState(!0);n.useEffect(()=>{a(e.defaultPaymentMethodId),e.paymentList&&(x(u()(e.paymentList,e=>e.isDefault,["desc"])),0===e.paymentList.length&&m(!0)),checkStripeCustomerStatus()},[]);let checkStripeCustomerStatus=()=>{var t,a,l;if(null===(t=e.subscriptionInfo)||void 0===t?void 0:t.stripeSubscription){let t=(null===(l=e.subscriptionInfo)||void 0===l?void 0:null===(a=l.stripeSubscription[0])||void 0===a?void 0:a.StripeCustomer.status)==="ACTIVE";g(t),m(!t),t?f(e.hasFutureOpt):f(!1)}},handleUpdatePaymentMethod=a=>{a.paymentMethodId!==t||r?e.emitPaymentMethodObjFromList(a):e.close()};return(0,l.jsxs)("div",{className:"selectPaymentMethodWrapper pointer-events-auto absolute left-0 top-0 z-[9991] h-screen w-full bg-white font-openSans text-[#1F1F1F] ",children:[(0,l.jsxs)("div",{className:"mx-[29px] mt-8 flex items-center justify-between text-lg font-semibold text-[#707070] md:mx-[42px]",children:[(0,l.jsxs)("div",{className:"back flex cursor-pointer items-center",onClick:()=>e.close(),children:[(0,l.jsx)(i.Z,{className:"mr-2 h-4 w-4 fill-[#676767]"}),"BACK"]}),(0,l.jsx)("div",{className:"close cursor-pointer",onClick:()=>e.close(),children:(0,l.jsx)(s.Z,{className:"h-4 fill-[#ADADAD]"})})]}),(0,l.jsx)("div",{className:"h-[calc(100vh-70px)] overflow-auto ",children:(0,l.jsxs)("div",{className:"relative mx-auto mt-[25px] max-w-[572px] px-[15px] pb-10 md:mt-[85px]",children:[(0,l.jsx)("h1",{className:"mb-8 text-xl font-semibold md:mb-10 md:text-2xl",children:"Select a payment method"}),(0,l.jsxs)("div",{className:"px-6 text-[#2E2E2E] md:px-0",children:[b?(0,l.jsx)(l.Fragment,{children:null==h?void 0:h.map((e,n)=>(0,l.jsxs)("div",{className:(0,p.Z)("mb-6 flex items-center text-sm md:text-base"),children:[(0,l.jsx)(d.Z,{selected:e.paymentMethodId===t&&!r,setSelected:()=>{a(e.paymentMethodId),m(!1),handleUpdatePaymentMethod(e)}}),(0,l.jsx)("div",{className:"relative ml-4 mr-2 h-[24px] min-w-[38px]",children:(0,l.jsx)(o(),{fill:!0,src:e.brandLogo,alt:"icon"})}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsxs)("span",{className:"mr-2",children:[" ",e.brand]}),(0,l.jsx)("span",{className:"mr-2",children:"â¢â¢â¢â¢"}),(0,l.jsx)("span",{className:"mr-2",children:e.last4})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("span",{className:"mr-2",children:"Expires"}),(0,l.jsxs)("span",{className:"mr-2",children:["".concat(e.exp_month).padStart(2,"0"),"/",e.exp_year]}),e.isDefault&&(0,l.jsx)("div",{className:"flex items-center rounded-[3px] bg-[#E7EFFE] px-1 text-xs leading-5 text-[#707070]",children:"Default"})]})]})]},n))}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)("div",{className:"my-6 flex",children:[(0,l.jsx)(d.Z,{selected:r,setSelected:()=>m(!0)}),(0,l.jsx)("span",{className:"ml-4 text-sm md:text-base",children:"Add Payment Method"})]}),r&&(0,l.jsx)(c.Z,{isProcessing:e.isProcessing,formLabel:"Save",hasFutureOpt:v,hasDefaultOpt:!1,emitPaymentMethodObj:t=>e.emitPaymentMethodObj(t),emitSaveFuture:t=>e.emitSaveFuture(t)})]})]})})]})}},621107:function(e,t,a){"use strict";var l=a(785893),n=a(667294),i=a(31942),s=a(287536),r=a(77434),o=a(811973),d=a(396716),c=a(376299),m=a(886664),u=a(701604),p=a(719298),h=a(756312),x=a(626403),v=a(314976);let f=u.z.object({cardholderName:p.u2,postalCode:p.C1});t.Z=e=>{var t,a,u;let p=(0,m.useStripe)(),b=(0,m.useElements)(),[g,_]=n.useState("Please fill out this field."),[j,w]=n.useState(0),[y,N]=n.useState(!0),[S,P]=n.useState(!1),[C,E]=n.useState(),[Z,M]=n.useState(!1);n.useEffect(()=>{var t;(null===(t=e.error)||void 0===t?void 0:t.length)!==0&&_("".concat(e.error))},[e.error]);let A=(0,x.VW)(v.ZP),k=null===(t=A.data)||void 0===t?void 0:t.countries,{register:O,handleSubmit:I,formState:{errors:D,isSubmitted:F}}=(0,s.cI)({mode:"onSubmit",reValidateMode:"onChange",resolver:(0,h.F)(f)});n.useEffect(()=>{if(k){let e=[...k].map(e=>e.name).sort((e,t)=>
1"United States"===e?-1:"United States"===t?1:e.localeCompare(t));E(e)}else E([])},[k]);let handleSavePaymentMethod=async t=>{if(!p||!b)return;let a=null==b?void 0:b.getElement(m.CardElement);if(a){var l;M(!0);let n=await p.createPaymentMethod({type:"card",card:a,billing_details:{name:null==t?void 0:t.cardholderName,address:{country:(null==k?void 0:null===(l=k[j])||void 0===l?void 0:l.iso2)||"PH",postal_code:(null==t?void 0:t.postalCode)||"1111"}},metadata:{isSaveForFuture:(null==e?void 0:e.isSaveForFuture)||y?"SAVED FOR FUTURE":null}});if(n.error){let e=n.error.message||JSON.stringify(n.error);_(e),M(!1);return}n.paymentMethod.id&&e.emitPaymentMethodObj&&e.emitPaymentMethodObj(null==n?void 0:n.paymentMethod)}M(!1)};return(0,l.jsx)("div",{className:"stripecardform-wrapper flex flex-col font-openSans text-xs text-[#333333]",children:(0,l.jsxs)("form",{onSubmit:I(handleSavePaymentMethod),children:[(0,l.jsxs)("div",{className:"mb-4 w-full",children:[(0,l.jsx)("label",{htmlFor:"cardHolderName",className:"font-semibold",children:"Cardholder Name"}),(0,l.jsx)(i.Z,{className:"mt-1",type:"text",...O("cardholderName"),name:"cardholderName",error:(null==D?void 0:null===(a=D.cardholderName)||void 0===a?void 0:a.message)||"",placeholder:"Enter Cardholder Name"})]}),(0,l.jsx)("div",{className:"mb-4 flex w-full",children:(0,l.jsx)(o.Z,{label:"Credit Card",...F&&{error:g},onChange:()=>_("")})}),(0,l.jsxs)("div",{className:"flex w-full flex-col tablet-sm:flex-row",children:[(0,l.jsx)("div",{className:"w-full tablet-sm:mr-4",children:(0,l.jsx)(r.Z,{wrapperClassName:"mb-0",listContainerClass:"desktop:!max-h-[150px] 2xl:!max-h-[255px]",activeIndex:j,disabled:!1,label:"Country",placeholder:"Select Page",items:C||[],onClick:e=>{w(e)}},"dropdown-pages")}),(0,l.jsxs)("div",{className:"mt-1 w-full",children:[(0,l.jsx)("label",{htmlFor:"postalCode",className:"font-semibold",children:"Postal Code"}),(0,l.jsx)(i.Z,{className:"mt-2",type:"text",...O("postalCode"),error:(null==D?void 0:null===(u=D.postalCode)||void 0===u?void 0:u.message)||"",name:"postalCode",placeholder:"Enter Postal Code"})]})]}),e.hasFutureOpt?(0,l.jsxs)("div",{className:"mt-4 flex w-full items-center text-sm tablet-sm:flex-row",children:[(0,l.jsx)(d.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:y,onToggle:()=>{e.emitSaveFuture&&e.emitSaveFuture(!y),N(!y)}}),"Save for future transactions."]}):(0,l.jsx)(l.Fragment,{}),e.hasDefaultOpt?(0,l.jsxs)("div",{className:"mt-4 flex w-full items-center text-sm tablet-sm:flex-row md:mt-0",children:[(0,l.jsx)(d.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:S,onToggle:()=>{e.emitSetAsDefault&&e.emitSetAsDefault(!S),P(!S)}}),"Set as default card."]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(c.ZP,{disabled:e.isProcessing||Z,type:"submit",className:"mt-10 flex h-[39px] w-full justify-center rounded-[0.313rem] border border-access-primary-500 bg-access-primary-500 py-[0.625rem] font-semibold text-white transition-colors duration-300",children:(0,l.jsxs)("span",{className:"flex items-center",children:[e.formLabel,(0,l.jsx)(c.ww,{show:Z||(null==e?void 0:e.isProcessing),className:"!relative ml-2 !text-[1.25rem]"})]})})]})})}},511249:function(e,t,a){"use strict";a.d(t,{ZP:function(){return Modal_Payment},T4:function(){return formatPrice},mH:function(){return V}});var l,n=a(785893),i=a(667294),s=a(386010),r=a(287536),o=a(886664),d=a(365820),c=a(77434),m=a(31942),u=a(805952),p=a(376299),h=a(830044),x=a(140320),v=a(440176),f=a(626403),b=a(314976),g=a(415843),_=a.n(g);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_lock=function(e){return i.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=i.createElement("path",{d:"M25.143 10.667h-1.524V7.619C23.619 3.413 20.206 0 16 0S8.381 3.413 8.381 7.619v3.048H6.857a3.057 3.057 0 0 0-3.048 3.048v15.238a3.057 3.057 0 0 0 3.048 3.048h18.286a3.057 3.057 0 0 0 3.048-3.048V13.715a3.057 3.057 0 0 0-3.048-3.048zM11.429 7.619c0-2.529 2.042-4.571 4.571-4.571s4.571 2.042 4.571 4.571v3.048h-9.143V7.619zm13.714 21.333H6.857V13.714h18.286v15.238zM16 24.381c1.676 0 3.048-1.371 3.048-3.048S17.677 18.285 16 18.285s-3.048 1.371-3.048 3.048A3.057 3.057 0 0 0 16 24.381z"})))},j=a(91674),w=a(133209),y=a(690393),N=a(701604),S=a(719298),P=a(756312),C=a(875472),E=a.n(C),Z=a(811973),M=a(811163),A=a(727484),k=a.n(A),O=a(425675),I=a.n(O),D=a(903089),F=a(809473),T=a(752819),R=a(396716),B=a(945210),L=a(415073),H=a(825738),z=a(887799),U=a(83805);let V=N.z.object({cardholderName:S.u2,postalCode:S.C1}),formatPrice=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
1return(e/100).toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t?2:0,maximumFractionDigits:t?2:0})};var Modal_Payment=e=>{var t,a,l,g,N,S,C,A,O,G,W,q,Y,J,X,K,Q,$,ee,et,ea,el,en,ei,es,er,eo,ed,ec,em,eu,ep;let{plan:eh,template:ex,targetPrice:ev,defaultRecurrence:ef,callBack:eb,...eg}=e,e_=(0,F.I0)(),ej=(0,o.useStripe)(),ew=(0,o.useElements)(),ey=(0,f._xK)(b.ZP),{oneTime:eN,setOneTime:eS,ihfMaxUpgrade:eP,setIhfMaxUpgrade:eC}=(0,D.U)(),{paymentList:eE,isLoadingCardList:eZ,generateCardItem:eM,getDefaultCard:eA,toastr:ek,setToastr:eO,refechList:eI}=(0,L.Z)(),[eD,eF]=i.useState("Please fill out this field."),[eT,eR]=i.useState(!1),[eB,eL]=i.useState(!1),[eH,ez]=i.useState(),[eU,eV]=i.useState(!1),[eG,eW]=i.useState("0"),[eq,eY]=i.useState(!1),[eJ,eX]=i.useState(!0),[eK,eQ]=i.useState(!1),[e$,e0]=i.useState(!1),[e1,e2]=i.useState(),[e4,e3]=i.useState(!1);i.useEffect(()=>{var e;e2(eA()),(null==tT?void 0:null===(e=tT.data)||void 0===e?void 0:e.localCustomerStatus)===null?(e0(!1),e2(void 0)):e0(!!eA())},[eE]);let e5=eA()?void 0:(0,P.F)(V),{register:e7,handleSubmit:e6,formState:{errors:e8,isSubmitted:e9}}=(0,r.cI)({mode:"onSubmit",reValidateMode:"onChange",resolver:e5}),te=(0,M.useRouter)(),tt=te.query.id&&String(te.query.id)||(null===(t=eg.website)||void 0===t?void 0:t.id)||"",ta=(0,f._$8)(b.ZP,{input:{id:tt}},{enabled:!!tt,refetchOnWindowFocus:!1}),tl=null!==(er=null===(a=ta.data)||void 0===a?void 0:a.website)&&void 0!==er?er:eg.website,tn=!!(null==tl?void 0:null===(l=tl.template.meta)||void 0===l?void 0:l.singlePage)||(null==tl?void 0:tl.template.name)==="Mosaic"||(null==tl?void 0:tl.template.name)==="Prism",[ti,ts]=i.useState(!1),{data:tr}=(0,z.JP)(),to=(0,f.GRb)(b.ZP,{input:{email:null!==(eo=null==tr?void 0:tr.user.email)&&void 0!==eo?eo:""}}),td=(0,U.D6)(null!==(ed=null===(N=to.data)||void 0===N?void 0:null===(g=N.user)||void 0===g?void 0:g.phone)&&void 0!==ed?ed:"",null===(C=to.data)||void 0===C?void 0:null===(S=C.user)||void 0===S?void 0:S.phone),tc="object"==typeof td?null!==(ec=null==td?void 0:td.phone)&&void 0!==ec?ec:"":td,[tm,tu]=i.useState(""),[tp,th]=i.useState(null),[tx,tv]=i.useState(),[tf,tb]=i.useState(!1),[tg,t_]=i.useState(""),[tj,tw]=i.useState(""),[ty,tN]=i.useState(),[tS,tP]=i.useState(0),[tC,tE]=i.useState(null!=ef?ef:"month"),[tZ,tM]=i.useState(!1),[tA,tk]=i.useState(),[tO,tI]=i.useState(),tD=(0,f.sMl)(b.ZP,{customerId:(null==tO?void 0:tO.customerId)||"",subscriptionId:(null==tO?void 0:tO.subscriptionId)||"",targetPriceId:(null==eh?void 0:null===(O=eh.price)||void 0===O?void 0:null===(A=O.find(e=>e.recurring===tC))||void 0===A?void 0:A.priceId)||""},{enabled:!!(null==tO?void 0:tO.customerId)}),tF=null==tl?void 0:null===(G=tl.stripeSubscription)||void 0===G?void 0:G[0],tT=null===(W=(0,f.Obt)(b.ZP,{subscriptionId:(null==tF?void 0:tF.stripeSubscriptionId)||""},{enabled:!!(null==tF?void 0:tF.stripeSubscriptionId)}).data)||void 0===W?void 0:W.getSubscription;i.useEffect(()=>{var e;return(null==tT?void 0:null===(e=tT.data)||void 0===e?void 0:e.status)!=="active"||eU||setupProration(),()=>{eV(!1)}},[tC,tl,tZ,tD.status,null==tT?void 0:tT.data,eP]),i.useEffect(()=>{eg.hasIhfMax&&eC(!0)},[eg.hasIhfMax]),i.useEffect(()=>{tv(void 0),tu(""),t_("")},[tC]),i.useEffect(()=>{var e,t,a;let l=(null==eh?void 0:eh.plan)==="Platinum Plan"&&eP?"month"===tC?50:500:0,n=null!==(t=null==eh?void 0:null===(e=eh.price.find(e=>e.recurring===tC))||void 0===e?void 0:e.numPrice)&&void 0!==t?t:0,i=n+l,s=i;
1if(tp&&(null==tx?void 0:tx.coupon.duration)!=="once"&&!eq){let e=(null==tx?void 0:tx.appliesTo)&&tx.appliesTo.length>0,t=e&&tx.appliesTo.includes(null!==(a=null==eh?void 0:eh.productId)&&void 0!==a?a:""),r=e?t?n:l:i;(null==tx?void 0:tx.coupon.percent_off)?s=i-Math.ceil(r*tx.coupon.percent_off)/100:(null==tx?void 0:tx.coupon.amount_off)&&(s=i-Math.min(Number((tx.coupon.amount_off/100).toFixed(2)),r))}tw(s=null==s?void 0:s.toLocaleString("en-US",{style:"currency",currency:"USD",maximumFractionDigits:2,minimumFractionDigits:2}))},[tx,eh,tC,eN,eP]);let setupProration=()=>{var e,t,a,l,n,i,s,r,o,d,c,m;if(tF&&tF.stripeSubscriptionId&&(null==tT?void 0:null===(e=tT.data)||void 0===e?void 0:e.start)&&(null==tT?void 0:null===(t=tT.data)||void 0===t?void 0:t.end)&&(null==tT?void 0:null===(a=tT.data)||void 0===a?void 0:a.status)==="active"){if(eg.hasIhfMax){let e=k()(),t=k()(new Date(1e3*tT.data.end)),a=k()(new Date(1e3*tT.data.start)),d=t.diff(a,"day")||30,c=t.diff(e,"day"),m=null!==(r=null==eh?void 0:null===(n=eh.price)||void 0===n?void 0:null===(l=n.find(e=>"month"===e.recurring))||void 0===l?void 0:l.numPrice)&&void 0!==r?r:0,u=null!==(o=null==eh?void 0:null===(s=eh.price)||void 0===s?void 0:null===(i=s.find(e=>"year"===e.recurring))||void 0===i?void 0:i.numPrice)&&void 0!==o?o:0,p=-(m/d*c)+-(50/d*c),h=u+500+p;tk({dateStart:e.format("MMM DD, YYYY"),dateEnd:t.format("MMM DD, YYYY"),amountToBeBilledRaw:h,subtotal:h.toLocaleString("en-US",{style:"currency",currency:"USD"}),amountToBeBilled:h.toLocaleString("en-US",{style:"currency",currency:"USD"}),proratedAmount:p.toLocaleString("en-US",{style:"currency",currency:"USD"})}),tM(!0)}else tI({customerId:null==tF?void 0:null===(d=tF.stripeCustomer)||void 0===d?void 0:d.stripeCustomerId,subscriptionId:null==tF?void 0:tF.stripeSubscriptionId,targetPriceId:(null==eh?void 0:null===(m=eh.price)||void 0===m?void 0:null===(c=m.find(e=>e.recurring===tC))||void 0===c?void 0:c.priceId)||""})}};i.useEffect(()=>{var e,t,a,l,n,i,s;if(!(null===(e=tD.data)||void 0===e?void 0:e.retrieveUpcomingInvoice.data)||!(null==tT?void 0:null===(t=tT.data)||void 0===t?void 0:t.end))return;let r=(null==eh?void 0:eh.plan)==="Platinum Plan"&&eP&&!eg.hasIhfMax,o=r?"month"===tC?50:500:0,d=null!==(l=tD.data.retrieveUpcomingInvoice.data.amount)&&void 0!==l?l:0,c=null!==(n=tD.data.retrieveUpcomingInvoice.data.subtotal)&&void 0!==n?n:0,m=null!==(i=tD.data.retrieveUpcomingInvoice.data.unusedAmount)&&void 0!==i?i:0,u=0;if(r&&(null==tT?void 0:null===(a=tT.data)||void 0===a?void 0:a.productName)==="Platinum Plan"){let e=k()(),t=k()(new Date(1e3*tT.data.end)),a=k()(new Date((null!==(s=tT.data.start)&&void 0!==s?s:0)*1e3)),l=t.diff(a,"day")||30,n=t.diff(e,"day");u=-(o/l*n)}let p=(m>0?-m:m)+u,h=d+o+u;tk({dateStart:k()(new Date).format("MMM DD, YYYY"),dateEnd:k()(new Date(1e3*tT.data.end)).format("MMM DD, YYYY"),amountToBeBilledRaw:h,subtotal:(c+o).toLocaleString("en-US",{style:"currency",currency:"USD"}),amountToBeBilled:h.toLocaleString("en-US",{style:"currency",currency:"USD"}),proratedAmount:p.toLocaleString("en-US",{style:"currency",currency:"USD"})}),tM(!0)},[tD.data,eP,tC,null==tT?void 0:null===(q=tT.data)||void 0===q?void 0:q.end,null==tT?void 0:null===(Y=tT.data)||void 0===Y?void 0:Y.start]);let tR=(0,f.VW)(b.ZP),tB=null===(J=tR.data)||void 0===J?void 0:J.countries,tL=(0,f.Jo7)(b.ZP),tH=(0,f.hoF)(b.ZP);(0,i.useEffect)(()=>{if(tB){let e=[...tB].map(e=>e.name).sort((e,t)=>"United States"===e?-1:"United States"===t?1:e.localeCompare(t));tN(e)}else tN([])},[tB]);let tz=(0,f.hcd)(b.ZP,{onMutate:()=>{th(null),tv(void 0),t_(""),tb(!0)},onSuccess:async e=>{var t,a,l,n,i;(null==e?void 0:null===(t=e.validateCoupon)||void 0===t?void 0:t.statusCode)===400?(t_("Please enter a valid code."),th(!1),tv(void 0)):(tv({...null==e?void 0:null===(a=e.validateCoupon)||void 0===a?void 0:a.data,appliesTo:null!==(i=null==e?void 0:null===(l=e.validateCoupon)||void 0===l?void 0:l.appliesTo)&&void 0!==i?i:[]}),(null==e?void 0:null===(n=e.validateCoupon)||void 0===n?void 0:n.meta)!==""&&eY(!0),th(!0),t_("")),tb(!1)},onError:e=>{t_(e.message),th(!1),tb(!1),tv(void 0)}}),onSubmit=async e=>{var t,a,l,n,i,s,r,d,c,m;if(ts(!0),!eK||tg.trim().length||!ej||!ew){ts(!1);return}sessionStorage.removeItem("isRefetchSub");
1let u=null==ew?void 0:ew.getElement(o.CardElement),p="";if(u&&tr&&!(null==e1?void 0:e1.paymentMethodId)&&!e$){let t=await ej.createPaymentMethod({type:"card",card:u,billing_details:{name:null==e?void 0:e.cardholderName,address:{country:(null==tB?void 0:null===(i=tB[tS])||void 0===i?void 0:i.iso2)||"PH",postal_code:(null==e?void 0:e.postalCode)||"1111"}},metadata:{isSaveForFuture:eJ?"SAVED FOR FUTURE":null,agreedToTermsOfService:eK?"true":"false"}});if(t.error){let e=t.error.message||JSON.stringify(t.error);eF(e),eO({color:"red",message:e}),ts(!1);return}p=t.paymentMethod.id}(null==e1?void 0:e1.paymentMethodId)&&e$&&(p=null==e1?void 0:e1.paymentMethodId);let h=!eE.find(e=>e.paymentMethodId===p),x={input:{data:{websiteId:(null==tl?void 0:tl.id)||"",userEmail:(null==tr?void 0:null===(t=tr.user)||void 0===t?void 0:t.email)||"",userPhone:tc,customer:{name:null==e?void 0:e.cardholderName,country:(null==tB?void 0:null===(a=tB[tS])||void 0===a?void 0:a.iso2)||"PH",postal_code:(null==e?void 0:e.postalCode)||"1111"},isSingleProperty:tn,paymentMethodId:p,priceId:(null==eh?void 0:null===(n=eh.price)||void 0===n?void 0:null===(l=n.find(e=>e.recurring===tC))||void 0===l?void 0:l.priceId)||"",promotionalCodeId:null!==(s=null==tx?void 0:tx.id)&&void 0!==s?s:null,headerDetails:{websiteName:null!==(r=null==tl?void 0:tl.name)&&void 0!==r?r:"My Website",templateName:(null==ex?void 0:ex.name)?ex.name:null==tl?void 0:tl.template.name}},oneTimeSetup:eN,ihfMaxUpgrade:(null==eh?void 0:eh.plan)==="Platinum Plan"&&!eg.hasIhfMax&&eP,hasIhfMax:null!==(d=eg.hasIhfMax)&&void 0!==d&&d,saveForFuture:eJ,isNewPaymentMethodId:h}},v="";if(ex){let e=await ey.mutateAsync({input:{id:ex.id}});v=e.createWebsiteFromTemplate.website.id;let t=e.createWebsiteFromTemplate.website;ez(t),x.input.data.websiteId=t.id}else ez(tl);try{ts(!0),eF("");let e=await tH.mutateAsync(x);if(e.createSubscription){let{errorType:t,errorCode:a,status:l}=e.createSubscription;t||a?(eF(l),eO({color:"red",message:l}),0!==v.length&&await tL.mutateAsync({input:{id:v}})):(eR(!0),eV(!0),await eI()),ts(!1),localStorage.setItem("new_subscription","true"),null===(m=document.getElementById("payment_modal"))||void 0===m||null===(c=m.parentElement)||void 0===c||c.scrollTo({top:0,behavior:"smooth"})}}catch(e){eO({color:"red",message:JSON.stringify(e)}),ts(!1)}ts(!1)},validateCoupon=async()=>{if(0!==tm.trim().length){var e,t;let a=(null==eh?void 0:null===(t=eh.price)||void 0===t?void 0:null===(e=t.find(e=>e.recurring===tC))||void 0===e?void 0:e.priceId)||"";tz.mutate({coupon:tm,planID:null==eh?void 0:eh.productId,priceID:a,hasOneTimeSetup:eN,ihfMaxUpgrade:eP&&(null==eh?void 0:eh.plan)==="Platinum Plan"})}else t_("Please fill out this field.")},onClickBilling=()=>{eb()},tU=i.useMemo(()=>{if(tC&&tx){var e,t,a;let l;let n=(null==eh?void 0:eh.plan)==="Platinum Plan"&&eP?"month"===tC?50:500:0,i=null!==(t=null==eh?void 0:null===(e=eh.price.find(e=>e.recurring===tC))||void 0===e?void 0:e.numPrice)&&void 0!==t?t:0,s=eN?tn?200:499.99:0,r=tx.appliesTo&&tx.appliesTo.length>0,o=r&&tx.appliesTo.includes(null!==(a=null==eh?void 0:eh.productId)&&void 0!==a?a:"");if(l=eq&&eN?tn?200:499.99:r?o?i:n:i+n+s,tx.coupon.amount_off){let e=Number((tx.coupon.amount_off/100).toFixed(2)),t=Math.min(e,l);return eW("-".concat(t)),"-$".concat(t)}if(tx.coupon.percent_off){let e=l*(tx.coupon.percent_off/100),t=Math.ceil(100*e)/100;return eW("-".concat(t)),"-$".concat(t)}}},[tC,tx,eN,eP,tn,eq]);if(e4)return(0,n.jsx)(B.Z,{subscriptionInfo:tT,hasFutureOpt:!0,defaultPaymentMethodId:"".concat(null==e1?void 0:e1.paymentMethodId)||"".concat(null===(em=eA())||void 0===em?void 0:em.paymentMethodId),paymentList:eE,emitPaymentMethodObj:e=>{e3(!1),e2(eM(e)),eO({color:"green",message:"Payment Method updated successfully!"})},emitPaymentMethodObjFromList:e=>{e3(!1),e2(e),eO({color:"green",message:"Payment Method updated successfully!"})},close:()=>e3(!1),emitSaveFuture:e=>eX(e)});let tV=ev&&ef;return(0,n.jsxs)("div",{className:" ",children:[(0,n.jsxs)("div",{className:(0,s.Z)("px-0 pb-[1.6875rem] pt-8 font-openSans "),id:"payment_modal",children:[(0,n.jsx)(d.M,{children:eT&&(0,n.jsx)(h.Z,{isForGTM:eg.isForGTM,isForGA4:eg.isForGA4,isForSpp:eg.isForSpp,isRecurrenceChange:!!ef,plan:null==eh?void 0:eh.plan,onViewBilling:()=>{onClickBilling()},onContinue:()=>{if(eR(!1),eg.isForSpp)window.location.href="/builder/".concat(null==tl?void 0:tl.id);else{var e;eg.isForGTM||eg.isForGA4?null===(e=eg.successCallback)||void 0===e||e.call(eg):eL(!0)}}})}),(0,n.jsxs)("div",{className:"relative flex w-[calc(100%+20px)] flex-col items-center ",children:[(0,n.jsx)("div",{className:"-m -mt-[27px] w-full max-w-[1200px] font-semibold md:mt-0",children:(0,n.jsxs)("button",{type:"button",className:"flex items-center",onClick:()=>{var e;return null===(e=eg.backBtnFn)||void 0===e?void 0:e.call(eg)}
1,children:[(0,n.jsx)(y.Z,{className:"mr-2 h-4 w-4 fill-[#676767]"}),(0,n.jsx)("span",{className:"text-lg text-access-neutrals-400",children:"BACK"})]})}),(0,n.jsxs)("form",{className:(0,s.Z)("w-full max-w-[1200px] ",{"pointer-events-none":eT}),onSubmit:e6(onSubmit),children:[(0,n.jsx)("h1",{className:"mt-[26px] text-xl font-semibold leading-8 -tracking-[0.48px] text-neutral-800 md:mt-6 md:text-2xl",children:"".concat(tV?"Switch to":"Upgrade to"," ").concat(ev&&"year"===ef?"Annual ":"").concat(null==eh?void 0:eh.plan," - ").concat(null!==(eu=null==tl?void 0:tl.name)&&void 0!==eu?eu:"My Website")}),(0,n.jsx)("div",{className:"h-[calc(100vh-130px)] overflow-auto pb-[130px] pr-5 md:pr-0",children:(0,n.jsxs)("div",{className:_()["payment--wrapper"],children:[(0,n.jsxs)("div",{className:_()["payment-card"],children:[(0,n.jsxs)("div",{className:"mb-6 flex",children:[(0,n.jsx)("div",{className:"relative h-[4.25rem] w-[6.1875rem] overflow-hidden rounded border border-[rgba(204,204,204,0.8)]",children:(0,n.jsx)(I(),{src:null!==(ep=null==tl?void 0:tl.thumbnail)&&void 0!==ep?ep:(null==ex?void 0:ex.thumbnail)||"",alt:"Thumbnail",height:68,width:99})}),(0,n.jsxs)("div",{className:"ml-4 flex flex-col justify-center font-normal text-access-neutrals-400",children:[(0,n.jsx)("h3",{className:"text-[0.875rem] font-semibold leading-[1.1875rem] text-neutral-800 [word-break:break-word]",children:(null==tl?void 0:tl.name)||"My Website"}),(0,n.jsx)("h3",{className:"text-[0.875rem] leading-[1.1875rem]",children:"Theme: ".concat((null==tl?void 0:tl.template.name)||(null==ex?void 0:ex.name))}),(0,n.jsx)("h3",{className:"text-sm",children:null==eh?void 0:eh.plan})]})]}),(0,n.jsx)("h2",{className:_()["payment-card--title"],children:"Billing Details"}),eZ?(0,n.jsx)("p",{children:"Preparing..."}):(0,n.jsx)(n.Fragment,{children:e$?(0,n.jsxs)("div",{className:"paymentMethods-wrapper",children:[(0,n.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-neutral-800",children:"Payment Method"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(icon_lock,{className:"icon mr-1 text-xs text-access-neutrals-secondary"}),(0,n.jsx)("p",{className:"text-xs leading-5 text-secondary",children:"Secure payment"})]})]}),(0,n.jsxs)("div",{className:"center flex flex-col items-start justify-between gap-3 text-sm md:flex-row md:gap-0 md:text-base",children:[(0,n.jsxs)("div",{className:"flex items-center text-[#2E2E2E]",children:[(0,n.jsx)("div",{className:"relative mr-2 h-[24px] min-w-[38px]",children:(0,n.jsx)(I(),{fill:!0,src:(null==e1?void 0:e1.brandLogo)||"",alt:"icon"})}),(0,n.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsxs)("span",{className:"mr-2",children:[" ",null==e1?void 0:e1.brand]}),(0,n.jsx)("span",{className:"mr-2",children:"â¢â¢â¢â¢"}),(0,n.jsx)("span",{className:"mr-2",children:null==e1?void 0:e1.last4})]}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"mr-2",children:"Expires"}),(0,n.jsxs)("span",{className:"mr-2",children:["".concat(null==e1?void 0:e1.exp_month).padStart(2,"0"),"/",null==e1?void 0:e1.exp_year]})]})]})]}),(0,n.jsx)("button",{className:"text-sm font-semibold text-[#1771DC]",type:"button",onClick:()=>e3(!0),children:"Change"})]})]}):(0,n.jsxs)("div",{className:" flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-neutral-800",children:"Payment"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(icon_lock,{className:"icon mr-1 text-xs text-access-neutrals-secondary"}),(0,n.jsx)("p",{className:"text-xs leading-5 text-secondary",children:"Secure payment"})]})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:(0,s.Z)(_()["form-group"],"mb-4"),children:[(0,n.jsx)("label",{htmlFor:"cardHolderName",children:"Cardholder Name"}),(0,n.jsx)(m.Z,{type:"text",...e7("cardholderName"),name:"cardholderName",error:(null==e8?void 0:null===(X=e8.cardholderName)||void 0===X?void 0:X.message)||"",placeholder:"Enter Cardholder Name"})]}),(0,n.jsx)("div",{className:(0,s.Z)(_()["form-group"],"mb-4"),children:(0,n.jsx)(Z.Z,{label:"Credit Card",...e9&&{error:eD},onChange:()=>eF("")})}),(0,n.jsxs)("div",{className:"flex w-full flex-col tablet-sm:flex-row",children:[(0,n.jsx)("div",{className:"w-full tablet-sm:mr-4",children:(0,n.jsx)(c.Z,{wrapperClassName:"mb-0",listContainerClass:"desktop:!max-h-[150px] 2xl:!max-h-[255px]",activeIndex:tS,disabled:!1,label:"Country",placeholder:"Select Page",items:ty||[],onClick:e=>{tP(e)}},"dropdown-pages")}),(0,n.jsxs)("div",{className:_()["form-group"],children:[(0,n.jsx)("label",{htmlFor:"postalCode",children:"Postal Code"}),(0,n.jsx)(m.Z,{type:"text",...e7("postalCode"),error:(null==e8?void 0:null===(K=e8.postalCode)||void 0===K?void 0:K.message)||"",name:"postalCode",placeholder:"Enter Postal Code"})]})]}),e$||(null==tT?void 0:null===(Q=tT.data)||void 0===Q?void 0:Q.status)!=="active"?(0,n.jsxs)("div",{className:"mt-4 flex w-full items-center text-sm tablet-sm:flex-row md:mt-0",children:[(0,n.jsx)(R.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:eJ,onToggle:()=>eX(!eJ)}),"Save for future transactions."]}):(0,n.jsx)(n.Fragment,{})]})]})})]}),(0,n.jsxs)("div",{className:_()["payment-card"],children:[(0,n.jsx)("h2",{className:_()["payment-card--title"],children:"Summary"}),!ev&&(0,n.jsx)("div",{className:"mb-6 flex items-center",children:E()(null==eh?void 0:eh.price,e=>e.numPrice,["desc"]).map((e,t)=>{var a;return(0,n.jsx)("div",{className:"mr-6",children:(0,n.jsx)(u.Z,{label:null!==(a=e.nickname)&&void 0!==a?a:"month"===e.recurring?"Billed Monthly":"Billed Annually",selected:tC===e.recurring,setSelected:()=>tE(e.recurring)})},t)})}),(0,n.jsxs)("div",{className:"mb-6 flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-1 flex w-full justify-between",children:[(0,n.jsx)("p",{className:"font-semibold text-neutral-800",children:null==eh?void 0:eh.plan}),(0,n.jsx)("p",{className:"text-neutral-800",children:null==eh?void 0:null===(ee=eh.price)||void 0===ee?void 0:null===($=ee.find(e=>e.recurring===tC))||void 0===$?void 0:$.value})]}),(0,n.jsx)("p",{className:"text-sm leading-5 text-access-neutrals-darkGray",children:"Billed ".concat("month"===tC?"monthly":"annually")})]}),eP&&(null==eh?void 0:eh.plan)==="Platinum Plan"&&(0,n.jsxs)("div",{className:"-mt-4 mb-6 flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-1 flex w-full justify-between",children:[(0,n.jsx)("p",{className:"font-semibold text-neutral-800",children:"iHomefinder Max Plan"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("p",{className:"mr-2 text-neutral-800",children:"month"===tC?"$50.00":"$500.00"}
1),!tV&&(0,n.jsx)(j.Z,{className:"icon text-[0.8125rem] hover:cursor-pointer",onClick:()=>{eC(!1)}})]})]}),(0,n.jsx)("p",{className:"text-sm leading-5 text-access-neutrals-darkGray",children:"Billed ".concat("month"===tC?"monthly":"annually")})]}),eN&&(0,n.jsxs)("div",{className:"-mt-4 mb-6 flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-1 flex w-full justify-between",children:[(0,n.jsx)("p",{className:"font-semibold text-neutral-800",children:"We'll help you build your website"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("p",{className:"mr-2 text-neutral-800",children:tn?"$200":"$499.99"}),(0,n.jsx)(j.Z,{className:"icon text-[0.8125rem] hover:cursor-pointer",onClick:()=>{eS(!1),eq&&(eW("0"),eY(!1),th(!1),tv(void 0),tu(""))}})]})]}),(0,n.jsx)("p",{className:"text-sm leading-5 text-access-neutrals-darkGray",children:"Billed once"})]}),tZ&&tA?(0,n.jsxs)("div",{className:"mb-6 flex justify-between text-sm text-[#707070]",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:["Prorated Adjustment ",(0,n.jsx)("br",{}),"(",null==tA?void 0:tA.dateStart," -"," ",null==tA?void 0:tA.dateEnd,")"]}),(0,n.jsx)("div",{children:null==tA?void 0:tA.proratedAmount})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)("hr",{className:"mb-6 bg-[#DDDDDD]"}),(0,n.jsxs)("div",{className:"mb-6 flex flex-col ",children:[(0,n.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,n.jsx)("p",{className:"text-sm leading-5 text-access-neutrals-darkGray",children:"Subtotal"}),(0,n.jsx)("p",{className:"text-sm leading-5 text-neutral-800",children:(null==tA?void 0:tA.amountToBeBilled)?null==tA?void 0:tA.subtotal:(tn?(null==eh?void 0:null===(ea=eh.price)||void 0===ea?void 0:null===(et=ea.find(e=>e.recurring===tC))||void 0===et?void 0:et.numPrice)+(eN?tn?200:499.99:0):(null==eh?void 0:null===(en=eh.price)||void 0===en?void 0:null===(el=en.find(e=>e.recurring===tC))||void 0===el?void 0:el.numPrice)+(eN?tn?200:499.99:0)+(eP&&(null==eh?void 0:eh.plan)==="Platinum Plan"?"month"===tC?50:500:0)).toLocaleString("en-US",{style:"currency",currency:"USD"})})]}),tp&&(null==tx?void 0:tx.coupon.valid)&&!0===tx.active?(0,n.jsxs)("div",{className:"flex justify-between text-access-successLabel",children:[(0,n.jsx)("p",{className:"text-sm leading-5",children:"Promotional Code (".concat(null==tx?void 0:tx.code,")")}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("p",{className:"text-sm leading-5",children:tU}),(0,n.jsx)(j.Z,{className:"icon ml-2 cursor-pointer text-[13px] text-secondary",onClick:()=>{th(!1),tv(void 0),tu("")}})]})]}):(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("label",{htmlFor:"postalCode",className:"mb-1 text-xs font-semibold text-[#333333]",children:"Promotional Code"}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-4",children:[(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(m.Z,{type:"text",name:"promotional code",error:tg,placeholder:"Enter Promotional Code",onChange:e=>{t_(""),tu(e.target.value)}})}),(0,n.jsx)(p.ZP,{disabled:!tm.length,type:"button",loading:tf,className:(0,s.Z)(_()["btn--subscribe"],_().active),onClick:validateCoupon,children:"Apply"})]})]},tC)]}),(0,n.jsx)("hr",{className:"mb-6 bg-[#DDDDDD]"}),(0,n.jsxs)("div",{className:"mb-6 flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-1 flex justify-between",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold leading-8 -tracking-[0.4px] text-neutral-800",children:"Total due today"}),(0,n.jsx)("h2",{className:"text-xl font-semibold leading-8 -tracking-[0.4px] text-neutral-800",children:(e=>{let t=e;if(null==tA?void 0:tA.amountToBeBilled){if(t=(null==tA?void 0:tA.amountToBeBilledRaw)||0,!tx)return t.toLocaleString("en-US",{style:"currency",currency:"USD"});eN&&(t+=tn?200:499.99);let e=t,a=parseFloat(eG);return(null==tx?void 0:tx.coupon.amount_off)?e=t+a:(null==tx?void 0:tx.coupon.percent_off)&&(e=t+a),e.toLocaleString("en-US",{style:"currency",currency:"USD"})}let a=(null==eh?void 0:eh.plan)==="Platinum Plan"&&eP?"month"===tC?50:500:0;
1if(!tx)return(t+(eN?tn?200:499.99:0)+a).toLocaleString("en-US",{style:"currency",currency:"USD"});eN&&(t+=tn?200:499.99);let l=t+=a,n=parseFloat(eG);return(null==tx?void 0:tx.coupon.amount_off)?l=t+n:(null==tx?void 0:tx.coupon.percent_off)&&(l=t+n),l.toLocaleString("en-US",{style:"currency",currency:"USD"})})((null==eh?void 0:null===(es=eh.price)||void 0===es?void 0:null===(ei=es.find(e=>e.recurring===tC))||void 0===ei?void 0:ei.numPrice)||0)})]}),(0,n.jsx)("div",{className:"text-sm",children:(0,n.jsxs)("div",{children:["Next invoice: ",tj," ",(0,n.jsxs)("span",{className:"text-access-neutrals-darkGray",children:["Bills on"," ",(0,n.jsx)(n.Fragment,{children:"month"===tC?k()().add(1,"month").format("MMM DD, YYYY"):k()().add(1,"year").format("MMM DD, YYYY")})]})]})})]}),(0,n.jsx)("hr",{className:"mb-6 bg-[#DDDDDD]"}),(0,n.jsxs)("div",{className:(0,s.Z)("mb-6 flex w-full items-center text-sm text-[#707070] tablet-sm:flex-row",{"pointer-events-none":ti}),children:[(0,n.jsx)(R.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:eK,onToggle:()=>eQ(!eK)}),(0,n.jsxs)("div",{className:"flow",children:["I agree to the",(0,n.jsx)("a",{href:"https://access.com/terms-of-service/",target:"_blank",className:"mx-1 text-[#1771DC]",rel:"noreferrer",children:"Terms of Service"})," ","and",(0,n.jsx)("a",{href:"https://access.com/privacy-policy/",target:"_blank",className:"ml-1 text-[#1771DC]",rel:"noreferrer",children:"Privacy Policy."})]})]}),(0,n.jsx)(p.ZP,{disabled:ti||!eK,type:"submit",className:(0,s.Z)(_()["btn--subscribe"],"!w-full",{"!border-[#EBEBEB] !bg-[#EBEBEB] !text-[#ADADAD]":!eK}),children:(0,n.jsxs)("span",{className:"flex items-center",children:[tV?"Update Plan":"Subscribe",(0,n.jsx)(p.ww,{show:ti,className:"!relative ml-2 !text-[1.25rem]"})]})})]})]})})]})]}),eH&&eB&&(0,n.jsx)(v.E.div,{className:"absolute left-0 top-0 z-[99] flex h-screen w-full justify-center bg-backdrop pt-[4.5rem]",initial:{opacity:1},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:1},exit:{opacity:0},children:(0,n.jsxs)("div",{className:"relative rounded",children:[(0,n.jsxs)("button",{className:"absolute right-7 top-[3.75rem] flex h-6 w-6 items-center justify-center rounded-sm","aria-label":"Close",onClick:()=>{te.pathname.includes("/themes")?(e_((0,T.yg)(eH)),te.push("/builder/".concat(null==eH?void 0:eH.id))):te.reload()},children:[(0,n.jsx)(w.Z,{className:"icon text-[0.5rem] text-darkGray-400"})," "]}),(0,n.jsx)(x.Z,{modalWrapper:"!py-10 !rounded-sm xl:!w-[67rem] desktop:!w-[35rem]",website:eH,title:"IDX Property Search Setup",hasIHF:(null==eh?void 0:eh.plan)==="Diamond Plan",onDone:()=>{te.pathname.includes("/builder")?(sessionStorage.setItem("isRefetchSub","yes"),te.reload()):(e_((0,T.yg)(eH)),te.push("/builder/".concat(null==eH?void 0:eH.id)))}})]})})]}),0!==ek.message.length&&(0,n.jsx)(H.Z,{message:ek.message,color:ek.color})]})}},830044:function(e,t,a){"use strict";var l=a(785893),n=a(978865),i=a.n(n),s=a(386010),r=a(440176),o=a(472895),d=a(376299);t.Z=e=>(0,l.jsx)(r.E.div,{className:(0,s.Z)("",i()["preparing-modal-wrapper"]),initial:{opacity:1},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:1},exit:{opacity:0},children:(0,l.jsx)("div",{className:i()["modal--content"],children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)(o.Z,{className:"icon mb-[22px] text-[56px] text-notifSuccess"}),(0,l.jsx)("div",{className:i().title,children:"Your purchase is complete!"}),(0,l.jsx)("div",{className:i().desc,children:"A receipt for your order will be sent to your email."}),(e.isForGTM||e.isForGA4)&&(0,l.jsxs)(d.ZP,{type:"button",className:(0,s.Z)("!min-w-[371px]",i()["btn--billing"]),onClick:e.onContinue,children:["Continue to"," ",e.isForGTM?"GTM Integration":"Google Analytics Integration"]}),"Diamond Plan"===e.plan&&!e.isRecurrenceChange&&!(e.isForGTM||e.isForGA4)&&(0,l.jsx)(d.ZP,{type:"button",className:(0,s.Z)("!w-[371px]",i()["btn--billing"]),onClick:e.onContinue,children:"Continue to IDX Search Setup"}),e.isForSpp&&!("Diamond Plan"===e.plan&&!e.isRecurrenceChange&&!(e.isForGTM||e.isForGA4))&&(0,l.jsx)(d.ZP,{type:"button",className:(0,s.Z)("!w-[164px]",i()["btn--billing"]),onClick:e.onContinue,children:"Go to Editor"}),(0,l.jsx)(d.ZP,{type:"button",className:(0,s.Z)(i()["btn--billing"],{"!bg-transparent !text-access-primary-500":"Diamond Plan"===e.plan&&!e.isRecurrenceChange||e.isForGTM||e.isForSpp||e.isForGA4}),onClick:e.onViewBilling,children:"View Billing"})]})})})},825738:function(e,t,a){"use strict";a.d(t,{Z:function(){return payment_toastr}});var l,n,i=a(785893),s=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_checkmark=function(e){return s.createElement("svg",_extends({width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=s.createElement("circle",{cx:7,cy:7,r:6.35,stroke:"#fff",strokeWidth:1.3})),n||(n=s.createElement("path",{d:"M9.824 5.154a.562.562 0 0 1 .022.795L6.651 9.324a.564.564 0 0 1-.808.011L4.15 7.648a.562.562 0 0 1 .403-.946.565.565 0 0 1 .394.15L6.23 8.132l2.797-2.955a.564.564 0 0 1 .797-.022Z",fill:"#fff"})))},r=a(973935),o=a(386010),payment_toastr=e=>(0,r.createPortal)((0,i.jsx)("div",{className:(0,o.Z)("toastr-portal fixed bottom-6 right-6 z-[9999] w-fit roun
1ded-[10px] p-4 text-sm text-white",{"bg-[#CE301E]":"red"===e.color,"bg-[#35AF2F]":"green"===e.color,"bg-[#707070]":"gray"===e.color}),children:(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(icon_checkmark,{}),(0,i.jsx)("p",{className:"ml-2",children:e.message})]})}),document.body)},903089:function(e,t,a){"use strict";a.d(t,{U:function(){return C}});var l=a(785893),n=a(163106),i=a(667294),s=a(425675),r=a.n(s),o=a(386010),d=a(230255),c=a.n(d),m=a(43465),u=a(796013),p=a(951397),h=a(314976),x=a(626403),v=a(15643),f=a(376299),b=a(854465),g=a(886664),_=a(945076),j=a(511249),w=a(811163),y=a(864529),N=a(194829),S=a(132243),P=a(385590);let C=(0,y.ZP)()(e=>({plan:void 0,oneTime:!1,ihfMaxUpgrade:!1,setPlan:t=>e({plan:t}),setOneTime:t=>e({oneTime:t}),setIhfMaxUpgrade:t=>e({ihfMaxUpgrade:t})})),E=(0,b.J)("pk_live_51NFWlaKXdtVbbNXciT8yjs0Bo7Chv637nLJRzoCLX2Pqymq4ZGbThFomvMneRV6oYLQZIur8q5XtVzngmmanbE6900oAeMgt18");t.Z=e=>{var t,a,s;let{website:d,template:b,open:y,subtitle:Z,isForSpp:M,onOpenChange:A,revalidate:k,paymentSuccessCallback:O,isForGTM:I=!1,isForGA4:D=!1}=e,F=(0,w.useRouter)(),T=(0,N.Z)("screen and (max-width: 639px)",!1),R=(0,x.wH)(h.ZP,{},{staleTime:3e4}),{plan:B,oneTime:L,setPlan:H,setOneTime:z}=C(),[U,V]=i.useState(!1),[G,W]=i.useState(!1),q=!!(null==d?void 0:null===(t=d.template.meta)||void 0===t?void 0:t.singlePage)||(null==d?void 0:d.template.name)==="Mosaic"||(null==d?void 0:d.template.name)==="Prism",Y=(0,S.ZP)(),J=[...P.BROKERAGES_SLUG,{slug:"corcoran"}].some(e=>(null!=Y?Y:"").includes(e.slug));return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(n.fC,{overrideContentClass:!0,trigger:(0,l.jsx)(l.Fragment,{}),disableOutsideClickClose:!0,open:y,closeable:!0,overlayClass:"grid h-full place-items-center overflow-y-auto !z-[60]",contentClass:(0,o.Z)("w-[63rem] bg-white rounded-[0.375rem] px-5 mx-4 my-6 pb-6 sm:mx-0 sm:my-0 relative inset-0 transform-none",{"max-w-[31.3125rem] w-full":q}),closeBtnClass:"absolute !top-7 !right-6",closeIconClass:"!text-base text-access-neutrals-300",onClose:()=>{H(void 0),z(!1),A(!1)},children:(0,l.jsxs)("div",{className:(0,o.Z)(c()["subscription-modal-wrapper"],c().unsuscribed),children:[(0,l.jsxs)("div",{className:(0,o.Z)("flex max-w-[36.875rem] flex-col items-center justify-center lg:max-w-[51.9375rem]",{"min-w-[13.375rem] lg:max-w-full":!q,"w-full":q}),children:[(0,l.jsxs)("div",{className:"flex w-full flex-col font-openSans",children:[(0,l.jsx)("div",{className:c().title,children:"Subscription"}),(0,l.jsxs)("div",{className:(0,o.Z)("flex flex-col-reverse sm:flex-row",{"items-center":d},q?"mb-4 tablet-sm:w-full":"mb-2"),children:[(0,l.jsx)("div",{className:"mr-4 flex-shrink-0",children:(0,l.jsx)(r(),{src:(null==d?void 0:d.thumbnail)||(null==b?void 0:b.thumbnail)||"",alt:"Website Thumbnail",width:100,height:68,className:"h-[68px] rounded-md border border-[rgba(204,204,204,0.80)] object-cover object-top"})}),(0,l.jsxs)("div",{className:"flex flex-col justify-center pb-4 text-neutral-700 sm:pb-0",children:[(0,l.jsx)("div",{className:"text-[1.25rem] leading-[1.6] [word-break:break-word]",children:(null==d?void 0:d.name)||"My Website"}),(0,l.jsx)("div",{className:"text-[0.875rem] leading-[1.1875rem]",children:"Theme: ".concat((null==d?void 0:d.template.name)||(null==b?void 0:b.name))})]})]})]}),!q&&(0,l.jsx)("div",{className:(0,o.Z)("mb-4 px-8 font-openSans text-xl font-bold text-access-neutrals-400 sm:px-0",{"mb-[0.1875rem]":Z}),children:Z?"Subscribe to a Plan":"Select a Plan"}),!q&&Z&&(0,l.jsx)("div",{className:"mb-4 px-8 text-center font-openSans text-base font-normal text-neutral-400 sm:px-0",children:Z}),(0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)(l.Fragment,{}),children:(0,l.jsx)("div",{className:(0,o.Z)("!w-full gap-6",q?"mb-2.5 grid grid-cols-1 justify-items-center gap-6":"mb-4 flex min-w-[40rem] justify-center sm:grid-cols-2 desktop:gap-4"),children:(0,l.jsx)(m.Z,{website:d,template:b,products:R.data,subscriptionInfo:null==d?void 0:d.subscriptionInfo,closeSubscriptionModal:()=>A(!1),revalidate:k,togglePayment:()=>{V(!0)}},null==d?void 0:d.id)})})]}),!J&&(null==d?void 0:null===(s=d.stripeSubscription)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.status)!=="active"&&(0,l.jsxs)("div",{className:"mb-4 flex w-full cursor-pointer items-start rounded-md bg-lightGray-300 px-4 py-3 font-openSans",onClick:()=>
1z(!L),children:[(0,l.jsx)(u.Z,{className:"mr-2 mt-1 cursor-pointer",checked:L}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"font-semibold text-optimumTemplate-emptyBg",children:[(0,l.jsx)("span",{className:"mr-2",children:"Weâll help you build your website"}),(0,l.jsx)("span",{className:"text-access-primary-500",children:q?"$200":"$499.99"})]}),(0,l.jsxs)("div",{className:"font-sm text-access-neutrals-400",children:[(0,l.jsx)("span",{className:"mr-1.5",children:"One-time setup fee"}),(0,l.jsx)(v.zt,{children:(0,l.jsxs)(v.fC,{open:G,onOpenChange:W,children:[(0,l.jsx)(v.xz,{onClick:e=>{e.stopPropagation(),W(e=>!e)},children:(0,l.jsx)(p.Z,{className:"icon text-base"})}),(0,l.jsx)(v.h_,{children:(0,l.jsxs)(v.VY,{className:"right-0 z-[100]",align:T?"center":"start",side:"top",children:[(0,l.jsx)("div",{className:c().tooltipContent,children:"Your setup plan comes with three (3) hoursâ worth of customization that you can use to have our team assist you with loading content (photos and copy) to your website."}),(0,l.jsx)(v.Eh,{className:"TooltipArrow"})]})})]})})]})]})]}),(0,l.jsx)("div",{className:"w-full px-4 sm:px-0",children:(0,l.jsx)(n.fC,{disableOutsideClickClose:!0,open:U,closeable:!0,closeIconClass:"!text-base",trigger:(0,l.jsx)(f.ZP,{className:c()["btn-submit"],onClick:()=>V(!0),children:"Subscribe"}),overlayClass:"!z-[60]",contentClass:"w-full h-full",onClose:()=>{V(!1)},children:(0,l.jsx)(g.Elements,{stripe:E,children:(0,l.jsx)(j.ZP,{isForGTM:I,isForGA4:D,isForSpp:M,backBtnFn:()=>V(!1),website:d,template:b,plan:B,successCallback:()=>{(I||D)&&(null==O||O(),V(!1),A(!1)),M&&(window.location.href="/builder/".concat(null==d?void 0:d.id))},callBack:()=>{if(F.asPath.includes("subscription"))return null==k||k(),(0,_.u)("billing-history--section"),V(!1),A(!1);F.replace({pathname:"/subscription",query:{billing:!0}},"/subscription")}})})})})]})})})}},805952:function(e,t,a){"use strict";var l=a(785893);a(667294);var n=a(386010),i=a(85089),s=a.n(i);t.Z=e=>(0,l.jsxs)("button",{type:"button",className:(0,n.Z)("relative flex w-max flex-row"),disabled:e.disabled,onClick:()=>e.setSelected(!0),children:[(0,l.jsx)("div",{className:(0,n.Z)(s().radio,{[s().selected]:e.selected,"bg-[#F5F5F5]":e.disabled})}),e.label&&(0,l.jsx)("label",{htmlFor:"billedLabel",className:s()["radio--label"],children:e.label})]})},69318:function(e,t,a){"use strict";a.d(t,{Z:function(){return layouts_AppWrapper}});var l,n,i,s,r,o,d,c,m,u,p=a(785893),h=a(667294),x=a(386010),v=a(811163),f=a(433299),b=a(194829),g=a(635631),_=a(687693),j=a(741664),w=a.n(j),y=a(951068),components_ActiveLink=e=>{let{children:t,start:a=!0,end:l=!0,path:n,...i}=e,{asPath:s,isReady:r}=(0,v.useRouter)();if(!r)return null;let{pathname:o}=new URL(i.as||i.href,window.location.origin),d=(0,y.Bo)(n||o,[],{sensitive:!0,start:a,end:l}).test(s);return(0,p.jsx)(w(),{...i,"data-active":d,children:t})};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function icon_content_block_extends(){return(icon_content_block_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function icon_analytics_extends(){return(icon_analytics_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function icon_sidebar_presentation_extends(){return(icon_sidebar_presentation_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_sidebar_presentation=function(e){return h.createElement("svg",icon_sidebar_presentation_extends({viewBox:"0 0 32 32",width:"1em",height:"1em"},e),h.createElement("path",{fill:"none",stroke:"#fff",style:{stroke:"var(--color1, #fff)"},strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:2,d:"M1.333 1.333h29.333v5.333H1.333V1.333zM4 6.667h24V24H4V6.667z"}),h.createElement("path",{fill:"none",stroke:"#fff",style:{stroke:"var(--color1, #fff)"},strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:2,d:"m10 17.333 3.333-2.667 4 3.333L22 13.332M16 24l4.667 6.667M15.333 24l-4.667 6.667"}))};function icon_leads_extends(){return(icon_leads_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var N=a(364647);function icon_maxa2_extends(){return(icon_maxa2_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_maxa2=function(e){return h.createElement("svg",icon_maxa2_extends({width:"1em",height:"1em",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=h.createElement("path",{d:"M.5 18.5 17.5 0h4L5 18.5H.5ZM15.5 10.5l8 8H19l-5.5-6 2-2Z",fill:"#fff"})),o||(o=h.createElement("path",{d:"M13.525 8.5 5 0H1l10.5 10.5 2.025-2Z",fill:"#fff"})))};function access_logo_white_extends(){return(access_logo_white_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var access_logo_white=function(e){return h.createElement("svg",access_logo_white_extends({width:"1em",height:"1em",viewBox:"0 0 187 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
1,e),d||(d=h.createElement("g",{clipPath:"url(#access-logo-white_svg__a)",fill:"#fff"},h.createElement("path",{d:"M29.576 19.463h-.608a6.605 6.605 0 0 1-4.476-1.758c-1.103-1.022-3.07-2.588-6.22-4.33l-.766-.416.832-.256c.176-.047 4.252-1.262 6.827-.463l.128.031.064.112c.016.032 2.015 2.876 3.917 6.535l.303.543v.003ZM.718 19.91l.816-1.661c3.454-7.015 10.329-15.643 11.72-17.066 1.359-1.406 2.062-1.47 3.229-.32 2.526 2.445 6.794 8.102 6.986 8.342l.464.606-.767-.016c-10.648-.255-20.96 8.82-21.072 8.9L.72 19.91ZM133.673 5.801c-1.135-1.199-2.974-2.093-5.724-2.093-3.117 0-4.605.927-4.605 2.125 0 1.39 2.287 1.774 4.956 1.998 4.652.416 8.969 1.278 8.969 5.082 0 3.547-4.396 5.081-9.353 5.081-4.541 0-7.818-1.278-9.705-3.914l2.974-1.598c1.52 2.077 4.076 2.829 6.795 2.829 2.718 0 5.116-.656 5.116-2.397 0-1.502-2.19-2.125-5.148-2.349-4.541-.383-8.746-1.247-8.746-4.826 0-3.276 4.525-4.618 8.619-4.65 2.477 0 5.02.367 6.89 1.47a6.152 6.152 0 0 1 1.871 1.694l-2.91 1.55.001-.002ZM47.978 13.359l-.047-.032-.08.064c-1.375.975-3.485 1.582-5.516 1.582-5.5 0-7.497-2.716-7.53-5.257-.016-1.215.48-2.397 1.39-3.308.944-.943 2.766-2.078 6.14-2.078 1.967 0 4.062.607 5.468 1.598l.096.064.064-.048c.319-1.07.782-2.093 1.375-3.068-2.047-1.102-4.429-1.694-7.003-1.694-5.324 0-8.234 1.805-9.736 3.308-1.439 1.454-2.239 3.308-2.223 5.24.016 2.254 1.04 4.3 2.862 5.769 2.11 1.693 5.244 2.588 9.08 2.588 2.687 0 5.1-.527 7.1-1.55a13.485 13.485 0 0 1-1.44-3.18v.002ZM64.142 18.073c-3.837 0-6.97-.895-9.08-2.589-1.823-1.47-2.846-3.515-2.862-5.768-.016-1.917.767-3.788 2.223-5.241 1.503-1.502 4.396-3.308 9.736-3.308 3.118 0 5.98.847 8.25 2.46l.176.112-3.054 2.109-.08-.064c-1.359-.959-3.245-1.47-5.292-1.47-3.372 0-5.195 1.134-6.138 2.077-.912.91-1.407 2.093-1.391 3.308.032 2.54 2.014 5.257 7.53 5.257 2.03 0 4.14-.607 5.515-1.582l.08-.064 3.118 2.254-.16.11c-2.255 1.583-5.196 2.398-8.57 2.398ZM111.834 5.801c-1.135-1.199-2.974-2.093-5.724-2.093-3.118 0-4.604.927-4.604 2.125 0 1.39 2.286 1.774 4.955 1.998 4.653.416 8.97 1.278 8.97 5.082 0 3.547-4.397 5.081-9.354 5.081-4.541 0-7.818-1.278-9.704-3.914l2.974-1.598c1.519 2.077 4.076 2.829 6.778 2.829s5.116-.656 5.116-2.397c0-1.502-2.191-2.125-5.148-2.349-4.541-.383-8.745-1.247-8.745-4.826 0-3.276 4.508-4.618 8.617-4.65 2.477 0 5.02.367 6.891 1.47.751.448 1.375 1.007 1.854 1.694l-2.877 1.55.001-.002ZM81.313 4.554h9.593a2.91 2.91 0 0 0 2.91-2.908H77.141v15.931h16.675a2.96 2.96 0 0 0-2.958-2.956h-9.544V4.554h-.001Z"}),h.createElement("path",{d:"M81.313 10.707h5.164c1.551 0 3.085-.815 3.085-2.365h-5.627l-2.621 2.365h-.001ZM169.187 8.804c-.794-.928-2.255-2.025-4.839-2.224a8.476 8.476 0 0 0-.723-.032h-.123a8.44 8.44 0 0 0-.723.032c-2.584.199-4.044 1.296-4.839 2.224a5.44 5.44 0 0 0-1.298 3.575c.009 1.536.607 2.931 1.672 3.935.934.875 2.211 1.437 3.748 1.658.465.071.949.106 1.449.106h.105c.5 0 .984-.036 1.449-.106 1.538-.222 2.816-.783 3.749-1.658 1.064-1.002 1.661-2.398 1.671-3.935a5.44 5.44 0 0 0-1.298-3.575Zm-4.946 7.208a8.546 8.546 0 0 1-.677.029 8.53 8.53 0 0 1-.678-.03c-1.059-.102-2.099-.46-2.845-.99-.898-.71-1.274-1.7-1.285-2.653a3.335 3.335 0 0 1 .901-2.311c.604-.652 1.768-1.434 3.908-1.45 2.139.017 3.303.799 3.908 1.45.589.636.911 1.462.901 2.311-.012.954-.388 1.942-1.285 2.654-.748.53-1.787.888-2.846.99h-.002ZM173.724 6.874h.637a.72.72 0 0 1 .57.282l4.705 6.176 4.722-6.177a.713.713 0 0 1 .568-.281h.639c.395 0 .716.32.716.716V17.74a2.624 2.624 0 0 1-2.624-2.624v-2.825l-2.769 3.617a1.584 1.584 0 0 1-2.519-.005l-2.738-3.612v2.825a2.624 2.624 0 0 1-2.624 2.624V7.59c0-.396.32-.716.716-.716h.001ZM153.895 14.863l-.033-.022-.054.043c-.938.665-2.377 1.08-3.763 1.08-3.751 0-5.114-1.854-5.136-3.587-.011-.828.327-1.635.949-2.255.643-.644 1.886-1.417 4.187-1.417 1.341 0 2.771.413 3.73 1.09l.066.042.043-.032c.218-.731.534-1.428.938-2.094-1.396-.752-3.021-1.155-4.777-1.155-3.631 0-5.615 1.231-6.64 2.255-.982.992-1.528 2.256-1.516 3.575.011 1.537.709 2.932 1.952 3.936 1.44 1.155 3.577 1.765 6.194 1.765 1.832 0 3.479-.359 4.842-1.056a9.267 9.267 0 0 1-.982-2.17v.002ZM139.716 17.74a1.104 1.104 0 1 0 0-2.207 1.104 1.104 0 0 0 0 2.208Z"}))),c||(c=h.createElement("defs",null,h.createElement("clipPath",{id:"access-logo-white_svg__a"},h.createElement("path",{fill:"#fff",transform:"translate(.66)",d:"M0 0h185.682v20H0z"})))))};function access_logo_white_sm_extends(){return(access_logo_white_sm_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var access_logo_white_sm=function(e){return h.createElement("svg",access_logo_white_sm_extends({width:"1em",height:"1em",viewBox:"0 0 43 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m||(m=h.createElement("path",{d:"M29.173 28.518c-.23-.242-.6-.423-1.156-.423-.63 0-.93.187-.93.43 0 .28.462.357 1 .402.94.084 1.812.259 1.812 1.027 0 .716-.888 1.026-1.889 1.026-.917 0-1.579-.258-1.96-.79l.6-.324c.308.42.824.572 1.373.572s1.034-.133 1.034-.484c0-.304-.443-.43-1.04-.475-.918-.077-1.767-.252-1.767-.974 0-.662.914-.933 1.74-.94.501 0 1.015.075 1.393.297.151.09.277.204.377.342l-.588.313h.001ZM11.864 30.044l-.01-.006-.016.013c-.278.197-.704.32-1.114.32-1.11 0-1.514-.55-1.52-1.063a.928.928 0 0 1 .28-.668c.19-.19.559-.42 1.24-.42.397 0 .82.123 1.104.324l.02.012.013-.01c.064-.215.158-.422.277-.619a2.967 2.967 0 0 0-1.414-.342c-1.075 0-1.663.365-1.967.668-.29.294-.452.668-.448 1.059.003.455.21.868.578 1.165.426.342 1.059.523 1.834.523.542
10 1.03-.107 1.434-.313a2.725 2.725 0 0 1-.29-.643h-.001ZM15.129 30.996c-.775 0-1.408-.18-1.834-.523a1.494 1.494 0 0 1-.579-1.165 1.48 1.48 0 0 1 .45-1.058c.303-.304.887-.669 1.966-.669.63 0 1.208.172 1.667.497l.035.023-.617.426-.016-.013c-.274-.194-.655-.297-1.069-.297-.681 0-1.05.23-1.24.42a.928.928 0 0 0-.28.668c.006.513.406 1.061 1.52 1.061.41 0 .837-.122 1.115-.319l.016-.013.63.455-.033.023c-.455.32-1.05.484-1.73.484h-.001ZM24.762 28.518c-.23-.242-.601-.423-1.156-.423-.63 0-.93.187-.93.43 0 .28.462.357 1 .402.94.084 1.812.259 1.812 1.027 0 .716-.888 1.026-1.889 1.026-.917 0-1.58-.258-1.96-.79l.6-.324c.307.42.824.572 1.37.572.546 0 1.033-.133 1.033-.484 0-.304-.442-.43-1.04-.475-.917-.077-1.766-.252-1.766-.974 0-.662.91-.933 1.74-.94.5 0 1.014.075 1.392.297.152.09.278.204.375.342l-.581.313ZM18.597 28.266h1.938a.588.588 0 0 0 .587-.588h-3.368v3.218h3.368a.598.598 0 0 0-.597-.597h-1.928v-2.033Z",fill:"#fff"})),u||(u=h.createElement("path",{d:"M18.597 29.509h1.043c.313 0 .623-.165.623-.478h-1.136l-.53.478ZM36.346 29.124c-.16-.188-.455-.41-.977-.45a1.676 1.676 0 0 0-.146-.006h-.025c-.05 0-.098.003-.146.007-.522.04-.817.262-.978.449-.171.2-.264.458-.262.722.002.31.123.592.338.795.188.177.446.29.757.335.094.014.192.021.293.021H35.22c.101 0 .199-.007.293-.021.31-.045.568-.159.757-.335.215-.203.336-.485.338-.795a1.097 1.097 0 0 0-.263-.722Zm-.998 1.456a1.705 1.705 0 0 1-.274 0 1.222 1.222 0 0 1-.575-.2.682.682 0 0 1-.26-.536.676.676 0 0 1 .182-.467c.123-.132.358-.29.79-.293.432.003.667.161.789.293.12.129.184.296.182.467a.68.68 0 0 1-.26.536c-.15.107-.36.18-.575.2ZM37.263 28.734h.129c.045 0 .087.021.115.057l.95 1.248.954-1.248a.144.144 0 0 1 .115-.057h.128c.08 0 .145.065.145.145v2.05a.53.53 0 0 1-.53-.53v-.57l-.56.73a.32.32 0 0 1-.508 0l-.553-.73v.57a.53.53 0 0 1-.53.53v-2.05c0-.08.065-.145.145-.145ZM33.258 30.348l-.007-.005-.011.01c-.19.134-.48.217-.76.217-.758 0-1.033-.374-1.037-.724a.633.633 0 0 1 .191-.456c.13-.13.382-.286.846-.286.271 0 .56.084.754.22l.013.01.009-.007a1.81 1.81 0 0 1 .19-.423 2.023 2.023 0 0 0-.966-.233c-.733 0-1.134.249-1.341.455-.198.2-.309.456-.306.722.002.31.143.593.394.795.29.233.722.357 1.251.357.37 0 .703-.073.978-.214a1.865 1.865 0 0 1-.198-.438ZM30.394 30.929a.223.223 0 1 0 0-.446.223.223 0 0 0 0 .446ZM6.32 29.726l-.836-1.369-.837 1.369h.594c.398 0 .761.218.943.566H4.306l-.093.147a.983.983 0 0 1-.832.459h-.38l1.89-3.013a.435.435 0 0 1 .372-.205h.447c.146 0 .284.076.363.2l1.895 3.018h-.194c-.452 0-.731-.045-.97-.424l-.483-.748ZM39.8 25.743h-.775c-2.1 0-4.14-.795-5.709-2.241-1.407-1.304-3.914-3.301-7.93-5.522l-.98-.53 1.061-.326c.224-.061 5.423-1.61 8.705-.59l.163.04.082.143c.02.04 2.569 3.667 4.995 8.334l.387.692ZM3 26.314l1.04-2.12C8.444 15.25 17.21 4.248 18.984 2.434c1.733-1.794 2.63-1.875 4.118-.408 3.221 3.117 8.665 10.33 8.91 10.636l.59.774-.978-.02c-13.578-.326-26.728 11.247-26.87 11.35L3 26.313Z",fill:"#fff"})))},S=a(542046),P=a.n(S),C=a(887799),E=a(425675),Z=a.n(E),M=a(220329),A=a(385590),k=a(314976),O=a(626403),I=a(332417);let D=[{name:"Dashboard",href:"/",path:["/","/themes/:path*"],icon:(0,p.jsx)(function(e){return h.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=h.createElement("path",{d:"M15.324.031a4.087 4.087 0 0 0-1.183.384l.023-.011C13.359.793 2.929 6.587 2.62 6.822c-.555.414-1.004.985-1.23 1.561-.34.869-.323.472-.323 7.584 0 7.298-.03 6.754.393 7.636.314.66.775 1.19 1.395 1.61.132.09 2.738 1.542 5.795 3.227 4.537 2.503 5.641 3.091 6.034 3.214.263.083.551.175.641.207a1.699 1.699 0 0 0 1.345-.004l-.011.004c.088-.032.376-.124.641-.207.393-.124 1.491-.709 6.034-3.214 3.054-1.687 5.66-3.14 5.792-3.227a3.964 3.964 0 0 0 1.395-1.61c.421-.882.391-.325.408-7.369.013-4.404 0-6.438-.041-6.754a4.745 4.745 0 0 0-.435-1.423l.012.028c-.164-.35-.703-.965-1.113-1.271-.35-.265-11.07-6.209-11.683-6.48a4.621 4.621 0 0 0-.607-.217l-.036-.009a5.727 5.727 0 0 0-1.728-.077l.025-.002zm1.689 2.36c.805.395 10.521 5.78 10.53 5.835.006.041-11.472 6.487-11.553 6.487-.079 0-11.549-6.442-11.546-6.484 0-.03 1.931-1.117 4.291-2.42 7.401-4.086 6.653-3.71 7.343-3.682.391.017.487.045.936.265zM9.361 13.459l5.557 3.097.002 6.446c0 3.548-.006 6.448-.015 6.448-.011 0-2.456-1.343-5.434-2.984-3.291-1.815-5.511-3.069
1-5.66-3.2a2.577 2.577 0 0 1-.421-.541l-.007-.012-.182-.337-.015-6.185-.015-6.183.314.177 5.874 3.274zm19.432 4.139-.013 4.727-.177.357c-.11.225-.253.416-.426.576l-.001.001c-.156.137-2.296 1.348-5.664 3.206 3.777-1.869 1.999-.877.219.11l-5.652 2.876c-.011 0-.017-2.901-.017-6.448l.002-6.446 11.717-6.529.013 1.422c.009.782.009 3.548 0 6.149z"})))},{className:(0,x.Z)("icon",P()["item-icon"])})},{name:"Content Block",href:"/content-block",icon:(0,p.jsx)(function(e){return h.createElement("svg",icon_content_block_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),n||(n=h.createElement("path",{d:"M.001 1.307C.001.587.586.002 1.306.002h11.428c.722 0 1.307.585 1.307 1.305V12.737c0 .721-.584 1.305-1.305 1.305H1.306a1.305 1.305 0 0 1-1.305-1.305V1.304zm2.613 1.308v8.815h8.815V2.615H2.614zm15.345-1.31c0-.72.585-1.305 1.307-1.305h11.428c.72 0 1.305.585 1.305 1.305V12.735c0 .721-.584 1.305-1.305 1.305H19.264a1.305 1.305 0 0 1-1.305-1.305V1.305zm2.612 1.31v8.815h8.815V2.615h-8.815zM.001 19.267c0-.722.585-1.307 1.305-1.307h11.428c.722 0 1.307.585 1.307 1.307v11.428c0 .721-.584 1.305-1.305 1.305H1.303A1.305 1.305 0 0 1 0 30.695V19.267zm2.613 1.305v8.815h8.815v-8.815H2.614zm15.345-1.305c0-.722.585-1.307 1.307-1.307h11.428c.72 0 1.305.585 1.305 1.307v11.428c0 .721-.584 1.305-1.305 1.305H19.264a1.305 1.305 0 0 1-1.305-1.305V19.267zm2.612 1.305v8.815h8.815v-8.815h-8.815z"})))},{className:(0,x.Z)("icon",P()["item-icon"])})},{name:"Analytics",href:"/analytics",icon:(0,p.jsx)(function(e){return h.createElement("svg",icon_analytics_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),i||(i=h.createElement("path",{d:"M16 0c.679 0 1.23.512 1.23 1.143v29.714c0 .631-.549 1.143-1.23 1.143-.679 0-1.23-.512-1.23-1.143V1.143C14.77.512 15.319 0 16 0zm14.768 11.143c.681 0 1.232.512 1.232 1.143v18.571c0 .631-.551 1.143-1.232 1.143-.679 0-1.23-.512-1.23-1.143V12.286c0-.631.551-1.143 1.23-1.143zM1.23 18.571c.681 0 1.232.512 1.232 1.143v11.143c0 .631-.551 1.143-1.232 1.143C.551 32 0 31.488 0 30.857V19.714c0-.631.551-1.143 1.23-1.143z"})))},{className:(0,x.Z)("icon",P()["item-icon"])})},{name:"Lead Management",href:"/lead-management",icon:(0,p.jsx)(function(e){return h.createElement("svg",icon_leads_extends({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 21",fill:"none"},e),s||(s=h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 .852h1.25v18.75H20v1.25H0v-20Zm12.5 4.375a.625.625 0 0 1 .625-.625h5a.625.625 0 0 1 .625.625v5a.625.625 0 1 1-1.25 0v-3.25l-4.516 5.52a.624.624 0 0 1-.925.047L8.825 9.31l-4.57 6.284a.625.625 0 0 1-1.01-.735l5-6.875a.625.625 0 0 1 .948-.075l3.26 3.263 4.353-5.32h-3.681a.625.625 0 0 1-.625-.625Z",fill:"#fff"})))},{className:(0,x.Z)("icon",P()["item-icon"])})}];var layouts_Sidebar=e=>{var t,a,l,n,i,s;let{fullSize:r}=e,{data:o,source:d}=(0,C.JP)(),{data:c}=(0,M.Z)({suspense:!0}),m=(0,v.useRouter)(),{data:u}=(0,O.GRb)(k.ZP,{input:{email:null!==(n=null==o?void 0:o.user.email)&&void 0!==n?n:""}},{staleTime:6e4,enabled:!!(o&&o.user.email)}),f=null==u?void 0:u.user,b=null!==(i=null==f?void 0:null===(a=f.userMetadata)||void 0===a?void 0:null===(t=a.find(e=>e.key===I.ic))||void 0===t?void 0:t.value)&&void 0!==i?i:[],g=null!==(s=null==b?void 0:null===(l=b.find(e=>e.key===I.iM))||void 0===l?void 0:l.value)&&void 0!==s&&s,_="sessionCookie"!==d&&null!=o&&!!o.user,j=["http://localhost:3000"].includes("https://builder.access.com"),y=j?["Dashboard","Extras","Lead Management"]:["Dashboard","Lead Management"],S=[...c?[...A.BROKERAGES_SLUG,{slug:"corcoran"}].some(e=>null==c?void 0:c.slug.includes(e.slug))?[]:[{name:(0,p.jsx)(p.Fragment,{}),items:[{name:(0,p.jsxs)("div",{className:P()["subheading2-container"],children:[(0,p.jsxs)("span",{className:P()["subheading2--icon"],children:[(0,p.jsx)(N.Z,{className:(0,x.Z)("icon pt-[0.1875rem]",P()["icon-maxa"],P()["item-icon"])}),(0,p.jsx)("div",{className:(0,x.Z)(P()["icon-maxa2"],"relative"),children:(0,p.jsx)(icon_maxa2,{className:(0,x.Z)("icon",P()["item-icon"])})})]}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"MAXA Design Studio"})]}),url:"/-/maxa"}]}]:[{name:(0,p.jsxs)("div",{className:P().heading2,children:[(0,p.jsx)(icon_sidebar_presentation,{className:(0,x.Z)("icon",P()["item-icon"],"!mr-[0.6875rem] !h-[1.375rem] !w-[1.375rem]")}),(0,p.jsx)("span",{className:P().name,children:"Presentation Builder"})]}),url:"/-/dashboard",itemsWrapperClassname:P()["subheading-wrapper"],itemsContainerClassname:P()["subheading-container"],items:[{name:(0,p.jsx)("div",{className:P().subheading,children:"Listing Presentation Themes"}),url:"/-/dlp"},{name:(0,p.jsx)("div",{className:P().subheading,children:"Open House Themes"}),url:"/-/doh"}]},{name:(0,p.jsx)("span",{className:(0,x.Z)(P().heading,"flex !h-8 items-center px-[1.375rem] !pb-0"),children:"Preferred Partners"}),items:[{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/realscout"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-5"),children:(0,p.jsx)(Z(),{width:20,height:28.57,src:"/static/image/rs-icon-logo.png",quality:100,alt:"rs-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"RealScout"})]}),url:"/realscout"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/follow-up-boss"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-5"),children:(0,p.jsx)(Z(),{width:20,height:27.43,src:"/static/image/fub-icon-logo.png",alt:"fub-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"Follow Up Boss"})]}),url:"/follow-up-boss"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/ihomefinder"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-[1.25rem]"),children:(0,p.jsx)(Z(),{width:20,height:33.24,src:"/static/image/ihf-icon-logo.png",alt:"ihf-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"iHomeFinder"})]}),url:"/ihomefinder"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/boldtrail"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-[1.25rem]"),children:(0,p.jsx)(Z(),{width:20,height:27,src:"/static/image/bt-icon-logo.png",alt:"bt-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"BoldTrail"})]}),url:"/boldtrail"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/liveby"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-[1.25rem]"),children:(0,p.jsx)(Z(),{width:20,height:27,src:"/static/image/liveby-logo.png",alt:"bt-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"LiveBy"})]}),url:"/liveby"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/rechat"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-[1.25rem]"),children:(0,p.jsx)(Z(),{width:20,height:27,src:"/static/image/rechat-icon.svg",alt:"bt-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"Rechat"})]}),url:"/rechat"},{name:(0,p.jsxs)("div",{className:(0,x.Z)(P()["subheading2-container"],{"!bg-access-primary-600":"/zapier"===m.pathname}),children:[(0,p.jsx)("span",{className:P()["subheading2--icon"],children:(0,p.jsx)("div",{className:(0,x.Z)("relative w-[1.25rem]"),children:(0,p.jsx)(Z(),{width:20,height:27,src:"/static/image/zapier-icon.svg",alt:"bt-icon"})})}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"Webhooks by Zapier"})]}),url:"/zapier"},{name:(0,p.jsxs)("div",{className:P()["subheading2-container"],children:[(0,p.jsxs)("span",{className:P()["subheading2--icon"],children:[(0,p.jsx)(N.Z,{className:(0,x.Z)("icon pt-[0.1875rem]",P()["icon-maxa"],P()["item-icon"])}),(0,p.jsx)("div",{className:(0,x.Z)(P()["icon-maxa2"],"relative"),children:(0,p.jsx)(icon_maxa2,{className:(0,x.Z)("icon",P()["item-icon"])})})]}),(0,p.jsx)("div",{className:(0,x.Z)(P().subheading2),children:"MAXA Design Studio"})]}),url:"/-/maxa"}]}]];return(0,p.jsxs)("div",{className:(0,x.Z)(P().wrapper,{[P()["wrapper--full"]]:r,"!top-8 !h-[calc(100%-2rem)]":_}),children:[(0,p.jsx)("div",{className:(0,x.Z)(P().brand),children:(0,p.jsx)(w(),{className:P().logo,href:"/",children:(0,p.jsx)(h.Suspense,{fallback:(0,p.jsx)(p.Fragment,{children:"Loading..."}),children:(0,p.jsx)(BrandLogo,{})})})}),(0,p.jsxs)("nav",{className:P()["nav-wrapper"],children:[(0,p.jsx)("ul",{className:P().list,children:D.filter(e=>y.includes(e.name)).map(e=>{let{icon:t,name:a,...l}=e;return g||"Lead Management"!==a?(0,p.jsx)("li",{children:(0,p.jsxs)(components_ActiveLink,{...l,className:P().item,children:[t,(0,p.jsx)("h4",{className:P()["item-label"],children:a}),"Lead Management"===a&&(0,p.jsx)("span",{className:"!ml-2 roun
1ded-[3.125rem] bg-white bg-opacity-20 px-2 py-1 text-xxs font-semibold leading-[1.125rem] text-white",children:"BETA"})]})},l.href):(0,p.jsx)(p.Fragment,{})})}),(0,p.jsx)("ul",{className:P().external,children:S.map((e,t)=>(0,p.jsxs)("li",{className:"w-full",children:[(0,p.jsx)("a",{href:e.url,children:e.name}),(0,p.jsx)("div",{className:e.itemsWrapperClassname,children:(0,p.jsx)("div",{className:e.itemsContainerClassname,children:e.items.map((e,t)=>["/realscout","/follow-up-boss","/ihomefinder","/boldtrail"].includes(e.url)?(0,p.jsx)(components_ActiveLink,{href:e.url,children:e.name},t):(0,p.jsx)("a",{className:"mt-4",href:e.url,rel:"noreferrer",children:e.name},t))})})]},t))})]})]})};function BrandLogo(){let{data:e}=(0,M.Z)({suspense:!0});return e?(0,p.jsx)("div",{className:"font-graphie text-[1.75rem] font-semibold leading-[1] text-white",children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:(0,x.Z)("h-full w-full opacity-0 transition-all delay-300",P()["long-logo"]),children:null==e?void 0:e.name}),(0,p.jsx)("div",{className:(0,x.Z)("absolute left-0 right-0 top-0 flex justify-center pt-[1.5625rem] opacity-100 transition-all delay-300",P()["stacked-logo"]),children:null==e?void 0:e.name.charAt(0)})]})}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(access_logo_white,{className:(0,x.Z)("h-full w-full opacity-0 transition-all delay-200 duration-500",P()["long-logo"])}),(0,p.jsx)("div",{className:(0,x.Z)("absolute left-0 right-0 top-0 flex justify-center pt-[1.5625rem] opacity-100 transition-all delay-200 duration-500",P()["stacked-logo"]),children:(0,p.jsx)(access_logo_white_sm,{className:"h-[2.34875rem] w-[2.25rem]"})})]})}var F=a(810083),T=a(435117),R=a.n(T),B=a(402307),L=a(83805),H=a(122933);let z=["/lead-management","/lead-management/website/[...websiteId]"],U=["/","/content-block","/get-inspired","/realscout","/follow-up-boss","/ihomefinder","/boldtrail","/liveby","/honely","/rechat","/zapier",...z],V=[...z],G=["/subscription/[id]"];var layouts_AppWrapper=e=>{var t,a,l,n,i,s,r,o,d;let{children:c,className:m,contentClassName:u}=e,j=(0,v.useRouter)(),{status:w}=(0,f.useSession)(),{data:y,source:N}=(0,C.JP)(),{status:S}=(0,B.qp)(),P=(0,O.Ljn)(k.ZP,{input:{email:null!==(s=null==y?void 0:y.user.email)&&void 0!==s?s:""}},{staleTime:6e4,refetchOnWindowFocus:!1,enabled:!!(y&&y.user.email)}),E=(0,O.GRb)(k.ZP,{input:{email:null!==(r=null==y?void 0:y.user.email)&&void 0!==r?r:""}},{staleTime:6e4,enabled:!!(y&&y.user.email)}),[Z,M]=h.useState(),A=h.useRef(!1);h.useEffect(()=>{var e,t,a,l,n,i,s,r,o,d,c,m,u,p;let h;if("sessionCookie"!==N||!E.data||!P.data)return;let x=(0,L.D6)(null!==(m=null===(t=E.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.phone)&&void 0!==m?m:"",null===(l=E.data)||void 0===l?void 0:null===(a=l.user)||void 0===a?void 0:a.phone),v="object"==typeof x?null!==(u=null==x?void 0:x.phone)&&void 0!==u?u:"":x,f=null==E?void 0:null===(i=E.data)||void 0===i?void 0:null===(n=i.user)||void 0===n?void 0:n.userMetadata,b=null!==(p=null==f?void 0:f.some(e=>e.key===F.I6&&("true"===e.value||!0===e.value)))&&void 0!==p&&p,_=window.location.href.toLowerCase().includes("homesmart");if(!b&&_&&"authorized"===S){if(A.current)return;return A.current=!0,h=setTimeout(()=>{M("dashboardSelector")},3e3),()=>clearTimeout(h)}if(A.current)return;if(A.current=!0,f&&!(null==f?void 0:null===(s=f.find(e=>"ai_feature_request"===e.key))||void 0===s?void 0:s.value)){M("AIFeaturesRequest");return}let j=null===(d=E.data)||void 0===d?void 0:null===(o=d.user)||void 0===o?void 0:null===(r=o.roles)||void 0===r?void 0:r.some(e=>e.id===g.K$.admin||e.id===g.K$.superadmin);return v||j||(null===(c=P.data)||void 0===c?void 0:c.whitelisted.data)||(h=setTimeout(()=>{M("phonePrompt")},2e3)),()=>{clearTimeout(h)}},[E,P,S]);let D=(0,b.Z)("screen and (min-width: 1280px)",!0),T=D?U:U.filter(e=>!V.includes(e)),W=T.includes(j.pathname),q=G.includes(j.pathname),Y="sessionCookie"!==N&&(null==y?void 0:y.user),J=null!==(o=null==E?void 0:null===(n=E.data)||void 0===n?void 0:null===(l=n.user)||void 0===l?void 0:null===(a=l.userMetadata)||void 0===a?void 0:null===(t=a.find(e=>e.key===I.ic))||void 0===t?void 0:t.value)&&void 0!==o?o:[],X=null!==(d=null==J?void 0:null===(i=J.find(e=>e.key===I.iM))||void 0===i?void 0:i.value)&&void 0!==d&&d;return(!E.isLoading&&z.includes(j.pathname)&&!X&&j.replace("/"),"loading"===w)?null:"unauthenticated"===w?((0,f.signIn)(),null):(0,p.jsxs)("div",{className:(0,x.Z)(R().root,m,{[R()["root--admin-mode"]]:Y}),children:[(0,p.jsx)(H.Z,{}),"AIFeaturesRequest"!==Z&&(0,p.jsx)(F.ZP,{userQuery:E,toggleModal:Z,setToggleModal:M}),(0,p.jsx)(I.fB,{}),(0,p.jsx)(_.Z,{fullSize:W,fullPage:q}),!q&&(0,p.jsx)(layouts_Sidebar,{fullSize:W}),(0,p.jsx)("div",{className:(0,x.Z)(R().content,u,{[R()["content--full"]]:W,[R()["content--fullPage"]]:q,[R()["content--admin-mode"]]:Y}),children:c})]})}},427226:function(e,t,a){"use strict";a.d(t,{Z:function(){return Header_WorkWithDesigner}});var l,n,i,s=a(785893),r=a(667294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_paint=function(e){return r.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=r.createElement("path",{d:"M16.007 0c-8.817 0-16 7.183-16 16s7.183 16 16 16a3.43 3.43 0 0 0 3.424-3.424c0-.824-.307-1.635-.88-2.292-.279-.349-.419-.699-.419-1.062a1.59 1.59 0 0 1 1.607-1.607h2.962c5.128 0 9.293-4.164 9.293-9.293.014-7.895-7.169-14.323-15.986-14.323zm6.707 22.149h-2.963a3.083 3.083 0 0 0-3.074 3.074c0 .741.279 1.467.769 2.026.335.391.517.852.517 1.327a1.927 1.927 0 0 1-1.956 1.956C8 30.532 1.474 24.006 1.474 15.999S8 1.466 16.007 1.466 30.54 7.237 30.54 14.322a7.83 7.83 0 0 1-7.825 7.825z"})),n||(n=r.createElement("path",{d:"M6.784 13.177c-1.104 0-1.984.894-1.984 1.984s.894 1.998 1.984 1.998 1.998-.894 1.998-1.998a1.985 1.985 0 0 0-1.998-1.984zM11.815 6.456c-1.104 0-1.984.894-1.984 1.998s.894 1.984 1.984 1.984c1.09 0 1.984-.894 1.984-1.984s-.894-1.998-1.984-1.998zM20.199 6.456c-1.104 0-1.984.894-1.984 1.998s.894 1.984 1.984 1.984c1.09 0 1.984-.894 1.984-1.984s-.894-1.998-1.984-1.998zM25.23 13.177c-1.104 0-1.984.894-1.984 1.984s.894 1.998 1.984 1.998c1.09 0 1.998-.894 1.998-1.998s-.894-1.984-1.998-1.984z"})))}
1,o=a(163106),d={src:"https://builder-cdn.access.com/_next/static/media/designer-devices.3bf7017b.png",height:245,width:490,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAQlBMVEUaRHPAvLZMUFEXN1UfISRZbXc9XXlLRy6trqkAJEgjKjNTWlIjJimChIJMSTdER0l2jJSwsas0RVGin5gzYY91eHXM2bnEAAAAEHRSTlP559hgv/2u/uUD6NXH3LCVqVhw7wAAAAlwSFlzAAAQnAAAEJwBJs06NAAAACpJREFUeJwFwYUBACAMA7ACM3zY/6+SQC6AlDPEmXeJFUNVn6+D2Yi6BfsTKAEmqDHjmwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},c=a(242896),m=a.n(c),u=a(425675),p=a.n(u),h=a(376299),x=a(386010),v=a(626403),f=a(314976),b=a(727484),g=a.n(b),_=a(131955),j=a(811163),w=a(973935),y=a(133209),N=a(690393);function icon_lock_extends(){return(icon_lock_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_lock=function(e){return r.createElement("svg",icon_lock_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),i||(i=r.createElement("path",{d:"M22 12.667h-1v-1.905C21 8.133 18.76 6 16 6s-5 2.133-5 4.762v1.905h-1c-1.1 0-2 .857-2 1.905v9.524c0 1.048.9 1.905 2 1.905h12c1.1 0 2-.857 2-1.905v-9.524c0-1.048-.9-1.905-2-1.905zm-6 8.571c-1.1 0 1.604 1.048 1.604 0s-1.371 1.905-.271 1.905.667-4.857.667-3.809-.9 1.905-2 1.905zm-3-8.571v-1.905c0-1.581 1.34-2.857 3-2.857s3 1.276 3 2.857v1.905h-6z"})))},S=a(415843),P=a.n(S),C=a(287536),E=a(886664),Z=a(701604),M=a(756312),A=a(719298),k=a(77434),O=a(31942),I=a(811973),D=a(830044),F=a(396716),T=a(511249),R=a(945076),B=a(365820),L=a(752819),H=a(809473),z=a(415073),U=a(945210),V=a(825738),G=a(887799),W=a(83805);Z.z.object({cardholderName:A.u2,postalCode:A.C1});var workWithDesignerPaywall=e=>{var t,a,l,n,i,o,d,c,m,u,b,g,_,S;let Z=(0,E.useStripe)(),A=(0,E.useElements)(),q=(0,j.useRouter)(),{data:Y}=(0,G.JP)(),J=(0,H.I0)(),X=(0,v.wH)(f.ZP,{},{staleTime:36e5}),{paymentList:K,isLoadingCardList:Q,generateCardItem:$,getDefaultCard:ee,toastr:et,setToastr:ea,refechList:el,handleGetPaymentMethod:en}=(0,z.Z)(),ei=(0,v.CWe)(f.ZP),[es,er]=r.useState(),[eo,ed]=r.useState(!1),[ec,em]=r.useState(!1),[eu,ep]=r.useState(!0),[eh,ex]=r.useState();r.useEffect(()=>{er(ee())},[K]);let ev=ee()?void 0:(0,M.F)(T.mH),ef=null===(l=X.data)||void 0===l?void 0:null===(a=l.getStripeProducts)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.find(e=>"One-Time Setup Fee"===e.name),eb=((null==ef?void 0:ef.prices[0].unit_amount)/100).toFixed(2),eg=(0,v.VW)(f.ZP),e_=null===(n=eg.data)||void 0===n?void 0:n.countries,[ej,ew]=r.useState(""),[ey,eN]=r.useState(""),[eS,eP]=r.useState(null),[eC,eE]=r.useState(!1),[eZ,eM]=r.useState(),[eA,ek]=r.useState(!1),[eO,eI]=r.useState(!1),eD=(0,v.Xt$)(f.ZP,{onMutate:()=>{ek(!0)}}),eF=(0,v.GRb)(f.ZP,{input:{email:null!==(b=null==Y?void 0:Y.user.email)&&void 0!==b?b:""}}),eT=(0,W.D6)(null!==(g=null===(o=eF.data)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.phone)&&void 0!==g?g:"",null===(c=eF.data)||void 0===c?void 0:null===(d=c.user)||void 0===d?void 0:d.phone),eR="object"==typeof eT?null!==(_=null==eT?void 0:eT.phone)&&void 0!==_?_:"":eT,onSubmit=async e=>{var t,a,l;if(!ec||ey.trim().length||!Z||!A)return;ek(!0);let n=null==A?void 0:A.getElement(E.CardElement),i="";if(n&&!(null==es?void 0:es.paymentMethodId)){let a=await Z.createPaymentMethod({type:"card",card:n,billing_details:{name:null==e?void 0:e.cardholderName,address:{country:(null==e_?void 0:null===(t=e_[eH])||void 0===t?void 0:t.iso2)||"PH",postal_code:(null==e?void 0:e.postalCode)||"1111"}},metadata:{isSaveForFuture:eu?"SAVED FOR FUTURE":null,agreedToTermsOfService:ec?"true":"false"}});if(a.error){let e=a.error.message||JSON.stringify(a.error);eV(e),ea({color:"red",message:e}),ek(!1);return}i=a.paymentMethod.id}if((null==es?void 0:es.paymentMethodId)&&(i=null==es?void 0:es.paymentMethodId),0!==i.length){try{let e=await ei.mutateAsync({paymentMethodId:i,promotionalCodeId:null==eZ?void 0:null===(a=eZ.coupon)||void 0===a?void 0:a.id,saveForFuture:eu});402===e.hireAnAccessExpert.statusCode&&ea({color:"red",message:e.hireAnAccessExpert.status}),e.hireAnAccessExpert.invoiceNo?(eD.mutate({input:{phone:eR,referenceNo:e.hireAnAccessExpert.invoiceNo.replace("-",""),source:"https://builder.access.com"}}),en(i).then(async e=>{let t=e.billing_details.name,a=e.billing_details.address.postal_code,l=e.billing_details.address.country,n=null!=ej?ej:"N/A";await fetch("/api/formstack/hire-an-expert?cardHolderName=".concat(encodeURIComponent(t),"&cardPostalCode=").concat(encodeURIComponent(a),"&cardCountry=").concat(encodeURIComponent(l),"&cardCoupon=").concat(encodeURIComponent(n)),{method:"POST"})}),eI(!0),ek(!1),await el()):eV(e.hireAnAccessExpert.status)}catch(e){ek(!1),ea({color:"red",message:"Server Error. Something went wrong. "}),eV((null==e?void 0:null===(l=e.response)||void 0===l?void 0:l.errors[0].extensions.originalError.message)||"Card Error")}ek(!1)}},eB=r.useMemo(()=>
1{if(eZ){if(null==eZ?void 0:eZ.coupon.amount_off){let e=Number(((null==eZ?void 0:eZ.coupon.amount_off)/100).toFixed(2));return"-$".concat(e)}if(null==eZ?void 0:eZ.coupon.percent_off){let e=Number(eb)*((null==eZ?void 0:eZ.coupon.percent_off)/100);return"-$".concat((Math.round(100*e)/100).toFixed(2))}}},[eZ]);r.useEffect(()=>{if(e_){let e=[...e_].map(e=>e.name).sort((e,t)=>"United States"===e?-1:"United States"===t?1:e.localeCompare(t));ex(e)}else ex([])},[e_]),r.useEffect(()=>{J((0,L.nT)(!1))},[]);let eL=(0,v.hcd)(f.ZP,{onMutate:()=>{eP(null),eM(void 0),eN(""),eE(!0)},onSuccess:async e=>{var t,a;(null==e?void 0:null===(t=e.validateCoupon)||void 0===t?void 0:t.statusCode)===400?(eN("Please enter a valid code."),eP(!1),eM(void 0)):(eM(null==e?void 0:null===(a=e.validateCoupon)||void 0===a?void 0:a.data),eP(!0),eN("")),eE(!1)},onError:e=>{eN(e.message),eP(!1),eE(!1),eM(void 0)}}),validateCoupon=async()=>{0!==ej.trim().length?eL.mutate({coupon:ej,planID:ef.id,priceID:null==ef?void 0:ef.prices[0].id}):eN("Please fill out this field.")},[eH,ez]=r.useState(0),[eU,eV]=r.useState("Please fill out this field."),{register:eG,handleSubmit:eW,formState:{errors:eq,isSubmitted:eY}}=(0,C.cI)({mode:"onSubmit",reValidateMode:"onChange",resolver:ev});return eo?(0,w.createPortal)((0,s.jsx)(U.Z,{hasFutureOpt:!0,defaultPaymentMethodId:"".concat(null==es?void 0:es.paymentMethodId)||"".concat(null===(S=ee())||void 0===S?void 0:S.paymentMethodId),paymentList:K,emitPaymentMethodObj:e=>{ed(!1),er($(e)),ea({color:"green",message:"Payment Method updated successfully!"})},emitPaymentMethodObjFromList:e=>{ed(!1),er(e),ea({color:"green",message:"Payment Method updated successfully!"})},close:()=>ed(!1),emitSaveFuture:e=>ep(e)}),document.body):(0,w.createPortal)((0,s.jsxs)("div",{className:"absolute top-0 z-[999] h-screen w-screen overflow-hidden bg-white pt-16 font-openSans",children:[(0,s.jsx)("div",{className:"absolute right-8 top-8 cursor-pointer",onClick:e.onClose,children:(0,s.jsx)(y.Z,{className:"fill-[#ADADAD] hover:fill-black"})}),(0,s.jsx)(B.M,{children:eO&&(0,s.jsx)(D.Z,{plan:null==ef?void 0:ef.plan,onViewBilling:()=>{"/subscription"===q.pathname?(e.onClose(),J((0,L.nT)(!0)),(0,R.u)("billing-history--section")):q.replace({pathname:"/subscription",query:{billing:!0}},"/subscription")}})}),(0,s.jsx)("div",{className:"h-[calc(100vh-80px)] overflow-auto pb-[80px]",children:(0,s.jsxs)("div",{className:"content m-auto w-full px-5 xl:w-[1120px] xl:px-0",children:[(0,s.jsxs)("div",{className:"absolute -mt-[62px] inline-flex cursor-pointer items-center text-lg font-semibold text-neutral-400",onClick:e.onClose,children:[(0,s.jsx)(N.Z,{className:"mr-2 h-4 w-4 fill-[#676767]"}),"BACK"]}),(0,s.jsx)("h1",{className:"mb-6 mt-6 text-xl font-semibold text-neutral-800 md:text-2xl",children:"Hire an ACCESS.com Expert"}),(0,s.jsx)("form",{onSubmit:eW(onSubmit),children:(0,s.jsxs)("div",{className:"gap-[20px] xl:flex",children:[(0,s.jsxs)("div",{className:"mb-10 h-fit w-full flex-shrink-0 rounded-lg border px-10 pb-10 pt-10 xl:mb-0 xl:w-[620px] ",children:[(0,s.jsx)("p",{className:"mb-6 text-base font-semibold",children:"Billing Details"}),Q?(0,s.jsx)("p",{className:"mb-6",children:"Preparing..."}):(0,s.jsx)(s.Fragment,{children:ee()?(0,s.jsxs)("div",{className:"paymentMethods-wrapper",children:[(0,s.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-neutral-800",children:"Payment Method"}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(icon_lock,{className:"icon mr-1 text-xs text-access-neutrals-secondary"}),(0,s.jsx)("p",{className:"text-xs leading-5 text-secondary",children:"Secure payment"})]})]}),(0,s.jsxs)("div",{className:"center flex flex-col items-start justify-between gap-3 text-sm md:flex-row md:gap-0 md:text-base",children:[(0,s.jsxs)("div",{className:"flex items-center text-[#2E2E2E]",children:[(0,s.jsx)("div",{className:"relative mr-2 h-[24px] min-w-[38px]",children:(0,s.jsx)(p(),{fill:!0,src:(null==es?void 0:es.brandLogo)||"",alt:"icon"})}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsxs)("span",{className:"mr-2",children:[" ",null==es?void 0:es.brand]}),(0,s.jsx)("span",{className:"mr-2",children:"â¢â¢â¢â¢"}),(0,s.jsx)("span",{className:"mr-2",children:null==es?void 0:es.last4})]}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("span",{className:"mr-2",children:"Expires"}),(0,s.jsxs)("span",{className:"mr-2",children:["".concat(null==es?void 0:es.exp_month).padStart(2,"0"),"/",null==es?void 0:es.exp_year]})]})]})]}),(0,s.jsx)("button",{className:"text-sm font-semibold text-[#1771DC]",type:"button",onClick:()=>ed(!0),children:"Change"})]})]}):(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-neutral-800",children:"Payment"}),(0,s.jsxs)("p",{className:"flex items-center text-xs text-access-neutrals-secondary",children:[(0,s.jsx)(icon_lock,{className:"mr-1 h-4 w-4 fill-access-neutrals-secondary "}),"Secure payment"]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:P()["form-group"],children:[(0,s.jsx)("label",{htmlFor:"cardHolderName",children:"Cardholder Name"}),(0,s.jsx)(O.Z,{type:"text",...eG("cardholderName"),name:"cardholderName",error:(null==eq?void 0:null===(m=eq.cardholderName)||void 0===m?void 0:m.message)||"",placeholder:"Enter Cardholder Name"})]}),(0,s.jsx)("div",{className:P()["form-group"],children:(0,s.jsx)(I.Z,{label:"Credit Card",...eY&&{error:eU},onChange:()=>eV("")})}),(0,s.jsxs)("div",{className:"flex w-full flex-col md:flex-row md:gap-4",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(k.Z,{wrapperClassName:"!mb-0",listContainerClass:"desktop:!max-h-[150px] 2xl:!max-h-[255px]",activeIndex:eH,disabled:!1,label:"Country",placeholder:"Select Page",items:eh||[],onClick:e=>{ez(e)}},"dropdown-pages")}),(0,s.jsxs)("div",{className:P()["form-group"],children:[(0,s.jsx)("label",{htmlFor:"postalCode",children:"Postal Code"}),(0,s.jsx)(O.Z,{type:"text",...eG("postalCode"),error:(null==eq?void 0:null===(u=eq.postalCode)||void 0===u?void 0:u.message)||"",name:"postalCode",placeholder:"Enter Postal Code"})]})]}),(0,s.jsxs)("div",{className:"flex w-full items-center text-sm tablet-sm:flex-row",children:[(0,s.jsx)(F.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:eu,onToggle:()=>ep(!eu)}
1),"Save for future transactions."]})]})]})})]}),(0,s.jsxs)("div",{className:"w-full rounded-lg border p-10",children:[(0,s.jsx)("p",{className:"mb-6 text-base font-semibold",children:"Summary"}),(0,s.jsxs)("div",{className:"mb-6 flex justify-between text-sm",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"font-semibold text-neutral-800",children:"Weâll help you build your website"}),(0,s.jsx)("span",{className:" text-access-neutrals-darkGray",children:"Billed once"})]}),(0,s.jsxs)("div",{className:"text-neutrals-800 flex items-center",children:["$",eb]})]}),(0,s.jsx)("div",{className:"divider h-[1px] w-full bg-[#DDD]"}),(0,s.jsxs)("div",{className:"mb-4 mt-6 flex items-center justify-between",children:[(0,s.jsx)("p",{className:"text-sm text-access-neutrals-darkGray",children:"Subtotal"}),(0,s.jsxs)("p",{className:"text-sm text-neutral-800",children:["$",eb]})]}),eS&&(null==eZ?void 0:eZ.coupon.valid)?(0,s.jsxs)("div",{className:"mb-6 flex justify-between text-access-successLabel",children:[(0,s.jsx)("p",{className:"text-sm leading-5",children:"Promotional Code (".concat(null==eZ?void 0:eZ.code,")")}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("p",{className:"text-sm leading-5",children:eB}),(0,s.jsx)(y.Z,{className:"icon ml-2 cursor-pointer text-[13px] text-secondary",onClick:()=>{eP(!1),eM(void 0),ew("")}})]})]}):(0,s.jsxs)("div",{className:"mb-6 mt-4 flex flex-col",children:[(0,s.jsx)("p",{className:"text-access-neutral-500 mb-1 text-xs font-semibold",children:"Promotional Code"}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-4",children:[(0,s.jsx)(O.Z,{type:"text",name:"promotional code",error:ey,placeholder:"Enter Promotional Code",onChange:e=>{eN(""),ew(e.target.value)}}),(0,s.jsx)(h.ZP,{disabled:!ej.length,type:"button",loading:eC,className:(0,x.Z)(P()["btn--subscribe"],P().active),onClick:validateCoupon,children:"Apply"})]})]}),(0,s.jsx)("div",{className:"divider h-[1px] w-full bg-[#DDD]"}),(0,s.jsxs)("div",{className:"mb-6 mt-6 flex justify-between",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold -tracking-[0.4px]",children:"Total due today"}),(0,s.jsx)("h1",{className:"text-xl font-semibold -tracking-[0.4px]",children:(e=>{if(!eZ)return e.toLocaleString("en-US",{style:"currency",currency:"USD"});let t=e;if(null==eZ?void 0:eZ.coupon.amount_off){let a=Number(((null==eZ?void 0:eZ.coupon.amount_off)/100).toFixed(2));t=e-a}else if(null==eZ?void 0:eZ.coupon.percent_off){let a=e*((null==eZ?void 0:eZ.coupon.percent_off)/100);t=e-a}return t.toLocaleString("en-US",{style:"currency",currency:"USD"})})(Number(eb)||0)})]}),(0,s.jsx)("div",{className:"divider h-[1px] w-full bg-[#DDD]"}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsxs)("div",{className:"mb-6 flex w-full items-center text-sm text-[#707070] tablet-sm:flex-row",children:[(0,s.jsx)(F.Z,{boxClassname:"!w-[18px] !h-[18px]",isChecked:ec,onToggle:()=>em(!ec)}),(0,s.jsxs)("div",{className:"flow",children:["I agree to the",(0,s.jsx)("a",{href:"https://access.com/terms-of-service/",target:"_blank",className:"mx-1 text-[#1771DC]",rel:"noreferrer",children:"Terms of Service"})," ","and",(0,s.jsx)("a",{href:"https://access.com/privacy-policy/",target:"_blank",className:"ml-1 text-[#1771DC]",rel:"noreferrer",children:"Privacy Policy."})]})]}),(0,s.jsx)(h.ZP,{disabled:eA||!ec,type:"submit",className:(0,x.Z)(P()["btn--subscribe"],"!h-[40px] !w-full",{"!border-[#EBEBEB] !bg-[#EBEBEB] !text-[#ADADAD]":!ec}),children:(0,s.jsxs)("span",{className:"flex items-center",children:["Pay",(0,s.jsx)(h.ww,{show:eA,className:"!relative ml-2 !text-[1.25rem]"})]})})]})]})]})})]})}),0!==et.message.length&&(0,s.jsx)(V.Z,{message:et.message,color:et.color})]}),document.body)},q=a(854465),Y=a(132243),J=a(385590),X=a(836655),K=a(15643);let Q=(0,q.J)("pk_live_51NFWlaKXdtVbbNXciT8yjs0Bo7Chv637nLJRzoCLX2Pqymq4ZGbThFomvMneRV6oYLQZIur8q5XtVzngmmanbE6900oAeMgt18");var Header_WorkWithDesigner=e=>{var t,a,l,n,i,c,u,b,w,y,N,S;let{timered:P}=e,[C,Z]=r.useState(!1),[M,A]=r.useState(!1),{data:k}=(0,G.JP)(),O=(0,j.useRouter)(),I=(0,v.vsr)(f.ZP,{},{refetchOnWindowFocus:!1}),D=null===(t=I.data)||void 0===t?void 0:t.fetchWebsiteWithSubscription,F=(null!==(b=null==D?void 0:D.websitesCount)&&void 0!==b?b:0)===(null!==(w=null==D?void 0:D.count)&&void 0!==w?w:0)+(null!==(y=null==D?void 0:D.cancelledSubscriptionCount)&&void 0!==y?y:0),T=(0,v.GRb)(f.ZP,{input:{email:null!==(N=null==k?void 0:k.user.email)&&void 0!==N?N:""}},{staleTime:6e4}),[R,B]=r.useState(!1),L=null!==(S=null===(l=T.data)||void 0===l?void 0:null===(a=l.user)||void 0===a?void 0:a.logoutAt)&&void 0!==S?S:"",H=null===(i=T.data)||void 0===i?void 0:null===(n=i.user)||void 0===n?void 0:n.isFirstTime,z=g()().diff(g()(L),"day"),U=null===(u=T.data)||void 0===u?void 0:null===(c=u.user)||void 0===c?void 0:c.contactedDesigner;r.useEffect(()=>{if(!P||!H&&null===H||U&&!0===U||Number.isNaN(z)||z<2||"/"!==O.pathname||"true"!==_.Z.get("fromLoginPage"))return;let e=setTimeout(()=>{let e=document.getElementById("btn-trigger");null==e||e.click(),_.Z.remove("fromLoginPage")},2e3);return()=>clearTimeout(e)},[z,T]);let V=(0,Y.ZP)(),W=J.BROKERAGES_SLUG.some(e=>(null!=V?V:"").includes(e.slug));return W?null:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(o.fC,{open:C,closeable:!0,disableOutsideClickClose:!0,closeBtnClass:(0,x.Z)([m()["btn-close"]],"!top-[33.26px] sm:!right-[31.5px] !right-[1.3125rem]",{"!hidden":M}),overlayClass:"!z-[25]",contentClass:(0,x.Z)("desktop:max-w-[41rem] max-w-[35rem] md:w-full w-[calc(100%-4.5625rem)] flex flex-col justify-center !rounded-[0.375rem] items-center",{"sm:!pt-[3.5625rem] sm:!pb-11 !pt-[2.9375rem] !pb-[2.7887rem] sm:!px-5 !px-[1.4375rem]":C,"sm:!py-[3.5rem] !pt-[3.59rem] !pb-[3.5rem]":M}),trigger:(0,s.jsxs)("div",{id:"btn-trigger",role:"button",className:(0,x.Z)("btn-ref-navigate relative",m()["btn-trigger"]),onClick:()=>{F||(A(!1),Z(!0))},children:[(0,s.jsx)("div",{className:"flex h-full w-4 items-center justify-center default:mr-2 default:h-6 default:w-6 default:min-w-[1.5rem]",children:(0,s.jsx)(icon_paint,{className:(0,x.Z)("h-4 w-full desktop:h-full",{"!fill-access-neutrals-300":F})})}),(0,s.jsx)("span",{className:(0,x.Z)("hidden font-openSans default:flex",{"!text-access-neutrals-300":F}),children:"Hire an ACCESS.com Expert"}),F&&(0,s.jsx)(X.pn,{children:(0,s.jsxs)(K.u,{children:[(0,s.jsx)(X.aJ,{className:"absolute left-0 top-0 size-full"}),(0,s.jsxs)(X._v,{side:"bottom",className:"rounded-[0.1875rem] border-none bg-[#1F1F1F] px-4 py-[0.875rem]",children:[(0,s.jsx)(K.Eh,{className:"!h-[0.3125rem] !w-[0.625rem] !fill-[#1F1F1F]"}),(0,s.jsx)("p",{className:"font-openSans text-[0.625rem] leading-[1.125rem] text-white",children:"Activate a subscription to use the Hire an Expert feature."})]})]})})]}),onClose:()=>{Z(!1)},children:C&&!M&&(0,s.jsxs)("div",{className:"flex w-full max-w-[32.1875rem] flex-col items-center",children:[(0,s.jsx)("h3",{className:"mb-4 text-center font-openSans text-xl font-semibold leading-8 tracking-[-0.03rem] text-neutral-700 sm:text-2xl",children:"Hire an ACCESS.com Expert"}),(0,s.jsxs)("span",{className:"mb-8 w-[9.9375rem] bg-access-neutrals-100 px-5 py-2 font-graphie text-[0.9375rem] font-semibold leading-5 text-access-neutrals-500",children:["STARTS AT ",(0,s.jsx)("b",{className:"font-extrabold",children:"$499"})]}),(0,s.jsx)("p",{className:"mb-2 px-[0.8125rem] text-center font-openSans text-sm font-semibold text-access-neutrals-400 sm:px-0 sm:text-base",children:"Our in-house experts can help you create beautiful websites."}),(0,s.jsx)("span",{className:"mb-6 text-center font-openSans text-sm font-semibold text-access-neutrals-400",children:"⢠Three (3) hoursâ worth of customization."}),(0,s.jsx)("div",{className:"mb-5 flex items-center justify-between pt-[0.2188rem] sm:mb-[1.1875rem] sm:flex-row",children:(0,s.jsx)("div",{className:"mb-4 px-[0.3906rem] sm:mb-0 sm:px-0",children:(0,s.jsx)(p(),{src:d,alt:"devices",width:327,height:163})})}),(0,s.jsx)(h.ZP,{className:(0,x.Z)(m()["btn-submit"]),onClick:()=>{Z(!1),A(!0),B(!0)},children:(0,s.jsx)("span",{className:"whitespace-pre font-openSans text-lg font-semibold text-neutral-100",children:"Continue"})})]})}),R&&(0,s.jsx)(E.Elements,{stripe:Q,children:(0,s.jsx)(workWithDesignerPaywall,{onClose:()=>B(!1)})})]})}},687693:function(e,t,a){"use strict";a.d(t,{Z:function(){return layouts_Header}});var l,n,i,s,r,o,d,c=a(785893),m=a(667294),u=a(433299),p=a(811163),h=a(386010),x=a(809473),v=a(752819),f=a(425675),b=a.n(f),g=a(194829),_=a(376299),j=a(633969),w=a(78045),y=a(781228),N=a.n(y);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_success=function(e){return m.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),l||(l=m.createElement("path",{d:"m22.276 10.304-8.672 8.668-3.88-3.88c-.5-.5-1.316-.5-1.816 0s-.5 1.316 0 1.816l4.788 4.788c.252.252.58.376.908.376s.656-.124.908-.376l9.58-9.576c.5-.5.5-1.316 0-1.816a1.28 1.28 0 0 0-1.816 0h.001z"})),n||(n=m.createElement("path",{d:"M16 0C7.176 0 0 7.176 0 16s7.176 16 16 16 16-7.176 16-16S24.824 0 16 0zm0 29.432C8.596 29.432 2.568 23.408 2.568 16S8.596 2.568 16 2.568 29.432 8.592 29.432 16 23.404 29.432 16 29.432z"})))},S=a(930020),P=a(626403),C=a(314976),components_AlertBanner=()=>{var e;let t=(0,p.useRouter)(),a=(0,P.vsr)(C.ZP,{},{refetchOnWindowFocus:!1}),l=null===(e=a.data)||void 0===e?void 0:e.fetchWebsiteWithSubscription,n=(0,x.v9)(w.NZ);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:(0,h.Z)(N()["notif--alert"],N()["notif--alert__danger"],N()["notif--alert__clickable"],{[N()["notif--alert__visible"]]:"/"===t.pathname&&((null==l?void 0:l.count)>0||(null==l?void 0:l.invalidSubscriptionCount)>0)}),onClick:()=>t.push("/subscription"),children:(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)(S.Z,{className:(0,h.Z)("icon",N()["icon--alert"])}),(0,c.jsx)("h4",{className:"ml-5 text-base text-white",children:"Activate your subscription now."})]})}),(0,c.jsx)("div",{className:(0,h.Z)(N()["notif--alert"],{[N().subscription]:"/"===t.pathname&&((null==l?void 0:l.count)>0||(null==l?void 0:l.invalidSubscriptionCount)>0)},{[N()["notif--alert__danger"]]:(null==n?void 0:n.type)==="danger"},{[N()["notif--alert__visible"]]:null==n?void 0:n.visible}),children:(0,c.jsxs)("div",{className:"flex items-center",children:[(null==n?void 0:n.type)==="success"?(0,c.jsx)(icon_success,{className:(0,h.Z)("icon",N()["icon--alert"])}):(0,c.jsx)(S.Z,{className:(0,h.Z)("icon",N()["icon--alert"])}),(0,c.jsx)("h4",{className:"ml-5 text-base text-white",children:(null==n?void 0:n.value)||"Notification here"})]})})]})},E=a(690393),Z=a(972456);function light_bulb_extends(){return(light_bulb_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var light_bulb=function(e){return m.createElement("svg",light_bulb_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"1em",height:"1em"},e),i||(i=m.createElement("path",{fill:"#191919",d:"M12 0a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0V1a1 1 0 0 0-1-1ZM4.93 3.516A1 1 0 1 0 3.516 4.93l.707.707a1 1 0 0 0 1.414-1.414l-.707-.707Zm15.554 0a1 1 0 0 0-1.414 0l-.707.707a1 1 0 1 0 1.414 1.414l.707-.707a1 1 0 0 0 0-1.414ZM1 11a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2H1Zm21 0a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2h-1ZM5.637 18.363a1 1 0 0 0-1.414 0l-.707.707a1 1 0 1 0 1.414 1.414l.707-.707a1 1 0 0 0 0-1.414Zm14.14 0
1a1 1 0 1 0-1.414 1.414l.707.707a1 1 0 1 0 1.414-1.414l-.707-.707Z"})),s||(s=m.createElement("path",{stroke:"#191919",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.589 17.69a.75.75 0 0 0-.402.918c.04.122.063.254.063.392v2c0 .69-.56 1.25-1.25 1.25h-2c-.69 0-1.25-.56-1.25-1.25v-2c0-.138.022-.27.063-.392a.75.75 0 0 0-.402-.917A6.251 6.251 0 0 1 12 5.75a6.25 6.25 0 0 1 2.589 11.94Z"})))},M=a(245992);function icon_profile_extends(){return(icon_profile_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_profile=function(e){return m.createElement("svg",icon_profile_extends({width:"1em",height:"1em",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.366 4.985a2.885 2.885 0 1 1 5.77 0 2.885 2.885 0 0 1-5.77 0ZM8.25.9a4.085 4.085 0 1 0 0 8.17 4.085 4.085 0 0 0 0-8.17Zm0 9.7a8.498 8.498 0 0 0-7.532 4.562.6.6 0 0 0 1.064.556 7.297 7.297 0 0 1 12.936 0 .6.6 0 0 0 1.064-.556A8.498 8.498 0 0 0 8.25 10.6Z"})))},A=a(799877);function icon_shield_key_extends(){return(icon_shield_key_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_shield_key=function(e){return m.createElement("svg",icon_shield_key_extends({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),o||(o=m.createElement("path",{d:"M13.997 20.358h4.006l-.9-5.022a2.68 2.68 0 0 0 1.207-1.007c.287-.421.457-.941.457-1.501v-.025.001c0-.76-.271-1.412-.811-1.954a2.657 2.657 0 0 0-1.915-.812h-.043H16a2.67 2.67 0 0 0-1.956.809c-.5.485-.81 1.163-.81 1.913v.047-.002a2.7 2.7 0 0 0 .456 1.525c.305.456.706.791 1.205 1.005l-.898 5.022zM16 31.059c-3.439-.937-6.287-2.963-8.542-6.072a17.22 17.22 0 0 1-3.383-10.292l.001-.147v.008-9.148L16.001.943l11.925 4.465v9.148c0 3.844-1.128 7.322-3.383 10.432-2.257 3.11-5.103 5.135-8.542 6.072zm0-2.513c2.756-.875 5.035-2.624 6.837-5.248a14.976 14.976 0 0 0 2.704-8.623l-.001-.127v.007-7.514L16 3.48 6.46 7.043v7.511c0 3.208.902 6.123 2.703 8.745 1.801 2.624 4.081 4.373 6.837 5.248z"})))};function icon_popover_tip_rounded_extends(){return(icon_popover_tip_rounded_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_popover_tip_rounded=function(e){return m.createElement("svg",icon_popover_tip_rounded_extends({width:"1em",height:"1em",viewBox:"0 0 27 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=m.createElement("path",{d:"M10.764 1.26a3 3 0 0 1 4.887 0l10.203 14.328c1.414 1.986-.006 4.74-2.444 4.74H3.005c-2.438 0-3.858-2.754-2.444-4.74L10.764 1.26Z",fill:"#1566C6"})))},k=a(338044),O=a.n(k),I=a(741664),D=a.n(I),F=a(427226),T=a(552213),R=a(905918),B=a(365820),L=a(440176),H=a(572977),z=a(359413);let U=[{label:"FAQ",url:"https://access.com/faq-help-center/"},{label:"Contact Support",url:"https://access.com/contact-us/"},{label:"Feedback",url:"https://www.access.com/feedback"}];var Header_Help=()=>{let[e,t]=m.useState(!1),a=(0,R.O3)(()=>t(!1)),{width:l}=(0,H.Z)(),getX=()=>l>=1280?-35:l<=1280&&l>=1200?-125:l<=1200&&l>=640?-130:-154,n={visible:{opacity:1,x:getX(),y:0},hidden:{opacity:0,x:getX(),y:4}},handleLinkClick=e=>{window.open(e,"_blank","noopener noreferrer")};return(0,c.jsxs)(T.fC,{modal:!1,open:e,onOpenChange:t,children:[(0,c.jsx)(T.xz,{children:(0,c.jsxs)("div",{ref:a,className:(0,h.Z)("relative flex cursor-pointer items-center",O().help,{[O()["active-trigger"]]:e}),children:[(0,c.jsx)(z.Z,{className:(0,h.Z)(O()["help-icon"],{[O()["active-icon"]]:e})}),(0,c.jsx)("span",{className:"ml-2 hidden font-openSans text-sm default:flex default:text-base",children:"Help"})]})}),(0,c.jsx)(B.M,{children:e&&(0,c.jsx)(T.Uv,{forceMount:!0,children:(0,c.jsx)(T.VY,{sideOffset:4,children:(0,c.jsx)(L.E.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:n,transition:{type:"spring",bounce:0,duration:.25},children:(0,c.jsx)("div",{className:"absolute z-30 mt-2 w-[163px] curs
1or-default rounded-[5px] bg-white p-2 font-openSans",style:{boxShadow:" 0px 0px 4px 0px rgba(0, 0, 0, 0.30)"},children:U.map(e=>(0,c.jsx)("div",{className:" cursor-pointer rounded p-2 text-sm text-neutral-700 hover:bg-[#CCE2F8] hover:text-builder-inputAccent",onClick:()=>handleLinkClick(e.url),children:e.label},e.url))})})})})})]})},V=a(887799),G=a(402307),W=a(385590),q=a(132243),Y=a(810083),layouts_Header=e=>{var t,a,l,n,i;let{fullSize:s,fullPage:r,withLogo:o=!1,className:d}=e,{data:f,source:w,remove:y}=(0,V.JP)(),N=(0,p.useRouter)(),S=(0,x.I0)(),k=(0,q.ZP)(),I="sessionCookie"!==w&&null!=f&&!!f.user,{tenant:T,status:R}=(0,G.qp)(),B=(0,P.vsr)(C.ZP,{},{refetchOnWindowFocus:!1}),L=null===(t=B.data)||void 0===t?void 0:t.fetchWebsiteWithSubscription,H=(0,g.Z)("screen and (min-width: 800px)",!0),z=(0,P.GRb)(C.ZP,{input:{email:null==f?void 0:f.user.email}},{staleTime:6e4}),U=(0,P.kDo)(C.ZP,{onSuccess:()=>{(0,u.signOut)()}}),[J,X]=m.useState(!1);m.useEffect(()=>{let handleShowPopover=()=>X(!0);return window.addEventListener(Y.U_,handleShowPopover),()=>window.removeEventListener(Y.U_,handleShowPopover)},[]);let handleLogout=async()=>{var e;if(localStorage.removeItem("lastSignedInUserId"),"sessionStorage"===w&&y(),I){window.close();return}U.mutate({input:{id:null!==(e=null==f?void 0:f.user.id)&&void 0!==e?e:"",logoutAt:new Date}})},K=[null==f?void 0:null===(a=f.user.firstName)||void 0===a?void 0:a.slice(0,1),null==f?void 0:null===(l=f.user.lastName)||void 0===l?void 0:l.slice(0,1)].join("").toUpperCase();return m.useEffect(()=>{L&&S((0,v.Se)(L))},[S,L]),m.useEffect(()=>{B.refetch()},[N.pathname,B]),(0,c.jsxs)("div",{className:(0,h.Z)(O().wrapper,{[O()["wrapper--full"]]:s,[O()["wrapper--fullPage"]]:r,[O()["with-logo"]]:o},d),children:[(0,c.jsx)("div",{className:(0,h.Z)(O().brand,{"!flex":o}),children:(0,c.jsx)("button",{onClick:()=>{N.push("/")},children:"WB"})}),(0,c.jsxs)("div",{className:O().content,children:[(0,c.jsx)("div",{className:(0,h.Z)(O()["title-brand"],O()["title-brand--tablet"],{"!hidden":r}),children:(0,c.jsx)(D(),{href:"/",children:(0,c.jsx)(M.Z,{className:"h-[2.3125rem] w-[10.75rem]"})})}),(0,c.jsx)("div",{className:(0,h.Z)(O()["title-brand"],O()["title-brand--mobile"],{"!block":r}),children:(0,c.jsx)(D(),{href:"/",children:(0,c.jsx)(b(),{height:32,width:42.24,src:"/static/image/aawb-logo-black-stacked-2.png",alt:"Access"})})}),H&&(r||N.pathname.includes("/themes")||N.pathname.includes("/user/profile"))&&(0,c.jsxs)(_.ZP,{type:"button",variant:"secondary-txt",className:(0,h.Z)("flex flex-row gap-0 font-openSans text-xs leading-[0.938rem] hover:no-underline sm:ml-[50px]",{"ml-10":r},{"!ml-8":N.pathname.includes("/themes")||N.pathname.includes("/user/profile")}),onClick:()=>{S((0,v.JW)("pages")),N.push("/")},children:[(0,c.jsx)(E.Z,{className:"icon mr-2 p-0.5 text-base"})," Dashboard"]}),(0,c.jsxs)("div",{className:(0,h.Z)([O()["content--flex"]]),children:[[...W.BROKERAGES_SLUG,{slug:"corcoran"}].some(e=>null==T?void 0:T.includes(e.slug))?null:(0,c.jsxs)(D(),{href:"/get-inspired",className:(0,h.Z)("flex items-center text-access-neutrals-900",O()["get-inspired"]),children:[(0,c.jsx)(light_bulb,{className:O()["light-bulb-icon"]}),(0,c.jsx)("span",{className:"ml-2 hidden font-openSans text-sm default:flex default:text-base",children:"Get Inspired"})]}),"corcoran"!==k&&(0,c.jsx)("div",{className:"inline-block",children:(0,c.jsx)(F.Z,{timered:"/"===N.pathname})}),(0,c.jsx)("div",{className:"flex items-center justify-center text-access-neutrals-900 default:max-h-[1.5rem] default:w-[4.1875rem]",children:(0,c.jsx)(Header_Help,{})}),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsxs)(j.fC,{children:[(0,c.jsx)(j.xz,{src:null===(i=z.data)||void 0===i?void 0:null===(n=i.user)||void 0===n?void 0:n.image,alt:K,tooltipOptions:{align:"end",alignOffset:0}}),(0,c.jsxs)(j.VY,{align:"end",className:"mr-[.1563rem] mt-2 w-[12.0313rem] sm:mr-[1.3438rem]",children:[(0,c.jsxs)("div",{className:"border-b border-[#D9D9D9] p-2",children:[(0,c.jsxs)(j.ck,{className:"min-w-[9.375rem] text-sm",onSelect:()=>N.push("/user/profile"),children:[(0,c.jsx)(icon_profile,{className:"icon ml-1 mr-2 text-sm"}),"Profile"]}),(0,c.jsxs)(j.ck,{className:"min-w-[9.375rem] text-sm",onSelect:()=>N.push("/subscription"),children:[(0,c.jsx)(A.Z,{className:"icon ml-1 mr-2 text-sm"}),"Subscription"]}),"authorized"===R?(0,c.jsx)(j.ck,{asChild:!0,className:"min-w-[9.375rem] text-sm",children:(0,c.jsxs)(D(),{href:"/admin/websites",children:[(0,c.jsx)(icon_shield_key,{className:"icon ml-1 mr-2 text-base"}),"Admin"]})}):null]}),(0,c.jsx)("div",{className:"p-2",children:(0,c.jsxs)(j.ck,{className:"min-w-[9.375rem] text-sm",onSelect:handleLogout,children:[(0,c.jsx)(Z.Z,{className:"icon ml-1 mr-2 text-sm"}),"Logout"]})})]})]}),J&&(0,c.jsxs)("div",{className:O()["admin-popover"],children:[(0,c.jsx)(icon_popover_tip_rounded,{className:O()["admin-popover__arrow"]}),(0,c.jsx)("p",{className:O()["admin-popover__title"],children:"Switch to Admin Mode"}),(0,c.jsx)("p",{className:O()["admin-popover__description"],children:"Open your profile menu to access admin management tools."}),(0,c.jsx)("button",{className:O()["admin-popover__btn"],onClick:()=>X(!1),children:"GOT IT"})]})]})]})]}),(0,c.jsx)(components_AlertBanner,{})]})}},836655:function(e,t,a){"use strict";a.d(t,{_v:function(){return d},aJ:function(){return o},pn:function(){return r}});
1var l=a(785893),n=a(667294),i=a(15643),s=a(168990);let r=i.zt;i.fC;let o=i.xz,d=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...r}=e;return(0,l.jsx)(i.VY,{ref:t,sideOffset:n,className:(0,s.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})});d.displayName=i.VY.displayName},385590:function(e,t,a){"use strict";a.r(t),a.d(t,{BROKERAGES_SLUG:function(){return k},TEMPLATES:function(){return A},default:function(){return D},limitedEditionTemplates:function(){return O}});var l,n=a(785893),i=a(667294),s=a(425675),r=a.n(s),o=a(902962),d=a(811163),c=a(386010),m=a(314976),u=a(268337),p=a(69318),h=a(903089),x=a(376299);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}var icon_filter_2=function(e){return i.createElement("svg",_extends({viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),l||(l=i.createElement("path",{d:"M32 4.363v.002c0 .803-.651 1.454-1.454 1.454h-4.365a1.455 1.455 0 0 1 0-2.91h4.365c.803 0 1.454.651 1.454 1.454zM1.456 2.91H13.36c.617-1.709 2.225-2.909 4.114-2.909a4.363 4.363 0 1 1-4.104 5.848l-.01-.03H1.456a1.455 1.455 0 0 1 0-2.91zM16 4.363a1.454 1.454 0 0 0 2.908 0 1.454 1.454 0 0 0-2.908 0zM0 16c0-.803.651-1.454 1.454-1.454H7.54c.617-1.71 2.225-2.91 4.114-2.91a4.363 4.363 0 1 1-4.105 5.847l-.01-.03H1.453a1.454 1.454 0 0 1-1.454-1.454zm10.183 0-.001.05a1.456 1.456 0 0 0 2.912 0l-.001-.053V16a1.456 1.456 0 0 0-2.91-.002v.003zm20.361-1.454H20.363a1.454 1.454 0 0 0 0 2.908h10.181a1.454 1.454 0 0 0 0-2.908zm0 11.635h-7.271a1.455 1.455 0 0 0 0 2.91h7.271a1.455 1.455 0 0 0 0-2.91zM0 27.637v-.002c0-.803.651-1.454 1.454-1.454h8.996c.617-1.709 2.225-2.909 4.114-2.909a4.363 4.363 0 1 1-4.104 5.848l-.01-.03H1.454A1.454 1.454 0 0 1 0 27.636zm13.09 0a1.454 1.454 0 0 0 2.908 0 1.454 1.454 0 0 0-2.908 0z"})))},v=a(440176),f=a(365820),b=a(625783),g=a(841189),_=a(356234),j=a(799877),w=a(626403),y=a(752819),N=a(153566),S=a.n(N),P=a(887799),C=a(8024),E=a(194829),Z=a(945172),M=a(132243);let A=[{name:"Quantum",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Pinnacle",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Metropolis I",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Metropolis II",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Seneca",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Hamilton",isPaid:!1,type:"Multi-Page",filterable:["Multi-Page","Switchable"],isHidden:!1,opacity:100},{name:"Momentum",isPaid:!1,type:"Realty ONE Group",filterable:["Realty ONE Group"],isHidden:!1,opacity:100},{name:"Horizon",isPaid:!1,type:"Realty ONE Group",filterable:["Realty ONE Group"],isHidden:!1,opacity:100},{name:"Stellar",isPaid:!1,type:"Realty ONE Group",filterable:["Realty ONE Group"],isHidden:!1,opacity:100},{name:"Saunders",isPaid:!1,type:"Hamptons Real Estate",filterable:["Hamptons Real Estate"],isHidden:!1,opacity:100},{name:"Monarch",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Quasar",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Prestige",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Momentum",isPaid:!1,type:"Real Themes",filterable:["Real Themes"],isHidden:!1,opacity:100},{name:"Horizon",isPaid:!1,type:"Real Themes",filterable:["Real Themes"],isHidden:!1,opacity:100},{name:"Stellar",isPaid:!1,type:"Real Themes",filterable:["Real Themes"],isHidden:!1,opacity:100}
1,{name:"Momentum",isPaid:!1,type:"Ebby Themes",filterable:["Ebby Themes"],isHidden:!1,opacity:100},{name:"Horizon",isPaid:!1,type:"Ebby Themes",filterable:["Ebby Themes"],isHidden:!1,opacity:100},{name:"Stellar",isPaid:!1,type:"Ebby Themes",filterable:["Ebby Themes"],isHidden:!1,opacity:100},{name:"Momentum",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Horizon",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Stellar",isPaid:!1,type:"HomeSmart",filterable:["HomeSmart"],isHidden:!1,opacity:100},{name:"Aurora",isPaid:!0,type:"Limited Edition",filterable:["Limited Edition"],isHidden:!1,opacity:100},{name:"Royale",isPaid:!0,type:"Limited Edition",filterable:["Limited Edition"],isHidden:!1,opacity:100},{name:"Vantage",isPaid:!0,type:"Limited Edition",filterable:["Limited Edition"],isHidden:!1,opacity:100},{name:"Optimum",isPaid:!0,type:"Limited Edition",filterable:["Limited Edition"],isHidden:!1,opacity:100},{name:"Mosaic",isPaid:!1,type:"Single Property",filterable:["Single Property"],isHidden:!1,opacity:100},{name:"Prism",isPaid:!1,type:"Single Property",filterable:["Single Property"],isHidden:!1,opacity:100}],k=[{slug:"maxa",filterName:"Realty ONE Group"},{slug:"maxa2",filterName:"Realty ONE Group"},{slug:"maxa3",filterName:"Realty ONE Group"},{slug:"maxa-features",filterName:"Realty ONE Group"},{slug:"realtyone",filterName:"Realty ONE Group"},{slug:"homesmart",filterName:"HomeSmart"},{slug:"real",filterName:"Real Themes"},{slug:"ebby",filterName:"Ebby Themes"},{slug:"hamptonsrealestate",filterName:"Hamptons Real Estate"}],O=A.filter(e=>e.isPaid).map(e=>e.name),TemplateCard=e=>{let{template:t,isPaid:a,bypassSubscription:l,setSelectedTemplate:s,setPaywall:o}=e,[p,h]=i.useState(!1),v=(0,d.useRouter)(),f=(0,w._xK)(m.ZP),b=(0,u.I0)(),[N,P]=i.useState(!1),navToBuilder=async e=>{h(!0),P(!0);let t=await f.mutateAsync({input:{id:e.id}}),a=t.createWebsiteFromTemplate.website;b((0,y.yg)(a)),await v.replace("/builder/".concat(a.id)),h(!1),P(!1)};return(0,n.jsx)("div",{className:(0,c.Z)("template--item w-fit opacity-100 transition-opacity duration-500"),children:(0,n.jsxs)("div",{className:S().card__wrapper,children:[(0,n.jsxs)("div",{className:S()["device-desktop"],children:[(0,n.jsx)("div",{className:S()["btn-wrapper"],children:Array.from([,,,].keys()).map(()=>(0,n.jsx)("div",{}))})," ",(0,n.jsx)("div",{className:S()["image-wrapper"],onMouseOver:e=>{let t=e.currentTarget,a=(0,Z.createScroller)(t,12e3,30);a.toY(e.currentTarget.firstChild.clientHeight,12e3,()=>{setTimeout(()=>t.scrollTo({top:0}),1e3)}),e.currentTarget.onmouseout=()=>{a.stop(),t.scrollTo({top:0})}},children:(0,n.jsx)(r(),{fill:!0,unoptimized:!0,src:t.thumbnail,alt:null==t?void 0:t.name})})]}),(0,n.jsxs)("div",{className:S()["device-phone"],children:[(0,n.jsx)("div",{className:S()["dynamic-island"]}),(0,n.jsx)("div",{className:S()["image-wrapper"],children:(0,n.jsx)(r(),{fill:!0,unoptimized:!0,src:t.thumbnail.replace(".jpg","_mobile.png"),alt:null==t?void 0:t.name})})]}),(0,n.jsxs)("div",{className:"flex pl-12 pr-[3.5rem]",children:[(0,n.jsx)("p",{className:"text-[1.25rem] leading-8 tracking-[-.02em]",children:t.meta.title}),(0,n.jsxs)("div",{className:S()["btns-container"],children:[(0,n.jsxs)("button",{disabled:p,onClick:()=>{p||v.push("/themes/".concat(null==t?void 0:t.id))},children:[(0,n.jsx)(g.Z,{}),"Preview"]}),(0,n.jsxs)("button",{disabled:p||N,className:"min-w-[7.8963rem]",onClick:()=>{p||N||(a&&!l?(s(t),o(!0)):navToBuilder(t))},children:[!a||l?(0,n.jsx)(n.Fragment,{children:!p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{})," Start Editing"]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.Z,{})," Subscribe"]}),(0,n.jsx)(x.ww,{show:p,className:"!relative ml-1 !text-[1rem]"})]})]})]})]})},null==t?void 0:t.id)},I={"Hamptons Real Estate":"Hamptons"},filterLabel=e=>{var t;return null!==(t=I[e])&&void 0!==t?t:e},PickATemplate=()=>{let[e,t]=i.useState(!1),[a,l]=i.useState(null),[s,r]=(0,i.useState)("All Themes"),c=(0,M.ZP)(),m=[...A].filter(e=>!e.isHidden&&(!k.some(e=>c===e.slug)||"Limited Edition"!==e.type)),[u,p]=(0,i.useState)(m.sort((e,t)=>
1e.name.localeCompare(t.name))),x=(0,d.useRouter)(),v=i.useMemo(()=>{let e=["All Themes"],t=[...k].find(e=>c===e.slug);t&&e.push(t.filterName),e.push(t?"Multi-Page":"Switchable");let a=!t||"HomeSmart"===t.filterName||"Realty ONE Group"===t.filterName||"Hamptons Real Estate"===t.filterName;return a&&e.push("Single Property"),t||"corcoran"===c||e.push("Limited Edition"),e},[c]);i.useEffect(()=>{x.query.filter&&r(x.query.filter)},[x.query.filter]);let transitionTemplate=e=>{let t=u.map(t=>(t.opacity=0,t.type.includes(e)&&(t.opacity=100),t));p(t),setTimeout(()=>{let t=u.map(t=>(t.isHidden=!0,t.type.includes(e)&&(t.isHidden=!1),t));p(t)},350)};return i.useEffect(()=>{if("All Themes"===s){let e=u.filter(e=>e.filterable.find(e=>v.includes(e))).map(e=>(e.isHidden=!1,e.opacity=100,e));p(e)}else transitionTemplate("Switchable"===s?"Multi-Page":s)},[s]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.PB,{title:"ACCESS.com - Select a Theme"}),(0,n.jsx)("div",{className:S()["select-template__wrapper"],children:(0,n.jsxs)(i.Suspense,{fallback:(0,n.jsx)(SkeletonLoader,{}),children:[(0,n.jsxs)("div",{className:S()["select-template__header"],children:[(0,n.jsx)("h1",{children:"Select a Theme"}),(0,n.jsx)(TemplateFilter,{filters:v,activeFilter:s,setActiveFilter:r})]}),(0,n.jsx)("div",{className:S()["template-cards-wrapper"],children:(0,n.jsx)(TemplateCards,{setSelectedTemplate:l,setPaywall:t,filteredTemplates:u})})]})}),(0,n.jsx)(h.Z,{website:null,template:a,subtitle:"This theme is only available on a Platinum plan.",open:e,onOpenChange:t})]})},TemplateFilter=e=>{let{filters:t,activeFilter:a,setActiveFilter:l}=e,s=(0,E.Z)("screen and (min-width: 1024px)",!0),[r,o]=(0,i.useState)("inset(0px 9999px 0px 9999px round 999999px)"),m=(0,d.useRouter)(),u=(0,M.ZP)(),p=null!==u,handleFilterBtn=(e,t)=>{var n,i;let s=e.currentTarget.offsetLeft,r=(null!==(i=null===(n=e.currentTarget.parentElement)||void 0===n?void 0:n.clientWidth)&&void 0!==i?i:0)-(e.currentTarget.offsetLeft+e.currentTarget.clientWidth);o("inset(0px ".concat(r,"px 0px ").concat(s,"px round 999999px)")),t!==a&&l(e=>{let a=document.getElementById("template-cards__container"),{unwrapGrid:l}=(0,b.B)(a,{duration:"All Themes"===e||"All Themes"===t?500:0,easing:"easeOut"});return setTimeout(()=>{l()},500),m.push("/themes?filter=".concat(t)),t})};return(0,i.useEffect)(()=>{let e=a?document.getElementById("filter-".concat(t.findIndex(e=>e===a))):document.getElementById("filter-0");e&&setTimeout(()=>{var t,a;let l=e.offsetLeft,n=(null!==(a=null===(t=e.parentElement)||void 0===t?void 0:t.clientWidth)&&void 0!==a?a:0)-(e.offsetLeft+e.clientWidth);o("inset(0px ".concat(n,"px 0px ").concat(l,"px round 999999px)"))},300)},[s,a]),(0,n.jsx)("div",{className:S().filter__container,children:(0,n.jsxs)("div",{className:S().filter__wrapper,children:[(0,n.jsxs)("div",{className:S()["filter-label__wrapper"],children:[(0,n.jsx)(icon_filter_2,{}),(0,n.jsx)("p",{children:"Filter"})]}),(0,n.jsxs)("div",{className:"relative *:space-x-0 *:lg:space-x-6",children:[(0,n.jsx)("div",{children:t.map((e,t)=>(0,n.jsx)("button",{id:"filter-".concat(t),onClick:t=>handleFilterBtn(t,e),children:"Multi-Page"===e?p?"Multi-Page":"Switchable":filterLabel(e)},"filter-".concat(t)))}),(0,n.jsx)(v.E.div,{className:(0,c.Z)("pointer-events-none absolute right-0 top-0 !bg-access-primary-500 !text-white"),initial:{clipPath:r,opacity:0},animate:{clipPath:r,opacity:1},transition:{bounce:0,ease:"easeIn"},children:t.map(e=>(0,n.jsx)("button",{children:filterLabel(e)},e))})]})]})})};PickATemplate.getLayout=e=>(0,n.jsx)(p.Z,{children:e});var D=PickATemplate;function TemplateCards(e){var t,a,l,i,s;let{filteredTemplates:r,setSelectedTemplate:o,setPaywall:d}=e,{data:u}=(0,P.JP)(),p=(0,w.Jjy)(m.ZP,{input:{email:null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.email}},{enabled:!!(null==u?void 0:null===(a=u.user)||void 0===a?void 0:a.email),suspense:!0}),h=!!(null===(i=p.data)||void 0===i?void 0:null===(l=i.getStripeBypassSubscriptionByEmail)||void 0===l?void 0:l.length),x=(0,M.ZP)(),v=(0,w.w6n)(m.ZP,{tenantSlug:x},{staleTime:1/0}),b=null===(s=v.data)||void 0===s?void 0:s.tenantThemes;return(0,n.jsx)(f.M,{children:(0,n.jsx)("div",{id:"template-cards__container",className:(0,
1c.Z)(S()["template-cards__container"],{}),children:r.map((e,t)=>{let a=null==b?void 0:b.find(t=>e.name===(null==t?void 0:t.name));return a?(0,n.jsx)("div",{className:(0,c.Z)("transition-opacity duration-300",{hidden:e.isHidden,"opacity-0":0===e.opacity,"opacity-100":100===e.opacity}),children:(0,n.jsx)(TemplateCard,{template:a,isPaid:e.isPaid,bypassSubscription:h,setSelectedTemplate:o,setPaywall:d},a.id)},a.id+t):null})})})}function SkeletonLoader(){return(0,n.jsxs)("div",{className:"mr-6 h-full flex-1",children:[(0,n.jsx)(C.Z,{isLoading:!0,className:"m-[40px_76px_40px_56px] my-1 h-5 w-full max-w-[12rem] rounded-[.3125rem] bg-lightGray-800 lg:m-[40px_84px_40px_64px] "}),(0,n.jsx)("div",{className:"mx-auto grid w-full gap-6 p-[0_76px_40px_56px] sm:grid-cols-[repeat(auto-fill,minmax(17rem,0))] lg:p-[0_84px_40px_64px] xl:grid-cols-[repeat(auto-fill,minmax(25rem,0))]",children:[void 0,void 0,void 0].map((e,t)=>(0,n.jsxs)(C.Z,{isLoading:!0,className:"w-full rounded-[.3125rem] bg-lightGray-300",children:[(0,n.jsx)("div",{className:"h-[10.75rem] bg-lightGray-800 xl:h-[15.125rem]"}),(0,n.jsxs)("div",{className:"space-y-2 p-4 xl:flex xl:grid-flow-col xl:space-x-2 xl:space-y-0 xl:p-6",children:[(0,n.jsx)("div",{className:"my-1 h-5 w-4/6 rounded-[.3125rem] bg-lightGray-800 xl:w-2/6"}),(0,n.jsxs)("div",{className:"flex flex-1 space-x-2",children:[(0,n.jsx)("div",{className:"h-8 w-2/5 min-w-0 rounded-[.3125rem] border border-lightGray-800"}),(0,n.jsx)("div",{className:"h-8 w-3/5 min-w-0 rounded-[.3125rem] bg-lightGray-800"})]})]})]},t))})]})}},992893:function(e,t,a){"use strict";a.d(t,{T:function(){return formatPrice}});let formatPrice=e=>(e/100).toLocaleString("en-US",{style:"currency",currency:"USD"})},415073:function(e,t,a){"use strict";a.d(t,{Z:function(){return hooks_useStripeHelper}});var l=a(667294),n={visa:"Visa",mastercard:"MasterCard",amex:"American Express",discover:"Discover",diners:"Diners Club",jcb:"JCB",unionpay:"UnionPay"},i=a(314976),s=a(626403),r=a(875472),o=a.n(r),hooks_useStripeHelper=()=>{let[e,t]=l.useState([]),[a,r]=l.useState([]),[d,c]=l.useState(),m=(0,s._PF)(i.Lp),u=(0,s.so9)(i.Lp),p=(0,s.pr5)(i.Lp),h=(0,s.NAE)(i.Lp),x=(0,s.C2w)(i.Lp),v=(0,s.mqR)(i.Lp,{},{refetchOnWindowFocus:!1});l.useEffect(()=>{fetchPaymentList()},[v.isLoading,v.isRefetching]);let fetchPaymentList=()=>{var e,a,l,n,i,s,d;let m=[],u=[];if((null===(l=v.data)||void 0===l?void 0:null===(a=l.getSavedPaymentMethods)||void 0===a?void 0:null===(e=a.data)||void 0===e?void 0:e.length)!==0){let e=o()(null===(d=v.data)||void 0===d?void 0:null===(s=d.getSavedPaymentMethods)||void 0===s?void 0:s.data,e=>e.created,["desc"]);null==e||e.map(e=>{var t;let a=generateCardItem(e);return(null===(t=e.metadata)||void 0===t?void 0:t.isSaveForFuture)==="SAVED FOR FUTURE"&&m.push(a),u.push(a),e})}return t(m),r(u),c(null===(i=v.data)||void 0===i?void 0:null===(n=i.getSavedPaymentMethods)||void 0===n?void 0:n.stripeCustomerId),m},generateCardItem=e=>{var t,a,l;let i=null!==(l=n[null==e?void 0:null===(t=e.card)||void 0===t?void 0:t.brand])&&void 0!==l?l:null==e?void 0:null===(a=e.card)||void 0===a?void 0:a.display_brand,s={paymentMethodId:null==e?void 0:e.id,brandLogo:"/icons/subscription/card-logo/".concat(null==e?void 0:e.card.brand,".svg"),brand:i,last4:null==e?void 0:e.card.last4,exp_month:null==e?void 0:e.card.exp_month,exp_year:null==e?void 0:e.card.exp_year,isDefault:null==e?void 0:e.isDefault,created:e.created,subscriptions:null==e?void 0:e.subscriptions};return s},handleCardToDefault=async e=>{await p.mutateAsync({customerId:d||"",paymentMethodId:e}),await v.refetch()},handleAddCard=async(e,t)=>{let a=await u.mutateAsync({customerId:d||"",paymentMethodId:e,setDefault:t});if(a.addStripeCard.errorType)throw Error(a.addStripeCard.status);return await v.refetch(),a},handleDeleteCard=async e=>{await h.mutateAsync({paymentMethodId:e}),await v.refetch()},handleChangePaymentMethod=async(e,t)=>{let a=await x.mutateAsync({paymentMethodId:e,subscriptionId:t});return await v.refetch(),a},handleGetPaymentMethod=async e=>{let t=await m.mutateAsync({paymentMethodId:e});return t.retrievePaymentMethod.data},[f,b]=l.useState({color:"",message:""});return l.useEffect(()=>{0!==f.message.length&&setTimeout(()=>{b({color:"",message:""})},3e3)},[f]),{paymentList:e,getDefaultCard:()=>e.find(e=>e.isDefault),generateCardItem,stripeCustomerId:d,isLoadingCardList:v.isLoading,isRefetchingList:v.isRefetching,handleCardToDefault,handleAddCard,handleDeleteC
1ard,handleChangePaymentMethod,paymentMethodList:a,toastr:f,setToastr:b,handleGetPaymentMethod,refechList:async()=>await v.refetch()}}},945076:function(e,t,a){"use strict";a.d(t,{u:function(){return redirect}});let redirect=e=>{let t=document.getElementById(e);t.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}},719298:function(e,t,a){"use strict";a.d(t,{Do:function(){return n.D},BV:function(){return o},CV:function(){return d},u2:function(){return r},Bj:function(){return u.B},m7:function(){return c},nz:function(){return m},C1:function(){return p}});var l=a(701604),n=a(405376);let i=new RegExp(/^[^-\s][a-zA-Zñ\s-]+$/),s=new RegExp(/^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9])+$/),r=l.z.string().min(1,"Please fill out this field").regex(i,"Please enter a valid name"),o=l.z.string().min(1,"Please fill out this field").regex(i,"Please enter a valid first name"),d=l.z.string().min(1,"Please fill out this field").regex(i,"Please enter a valid last name"),c=l.z.string().min(1,"Please fill out this field").regex(s,"Please enter a valid phone number"),m=l.z.string().optional().refine(e=>void 0===e||0===e.length||s.test(e),{message:"Please provide a valid phone number"});var u=a(668531);let p=l.z.string().refine(e=>e.length,{message:"Please fill out this field"})},668531:function(e,t,a){"use strict";a.d(t,{B:function(){return n}});var l=a(701604);let n=l.z.string().refine(e=>e.length,{message:"Please fill out this field"}).refine(e=>e.length>=8,{message:"Password must be at least 8 characters"})},781228:function(e){e.exports={"notif--alert":"AlertBanner_notif--alert__ixCRR",subscription:"AlertBanner_subscription__HsA0l","notif--alert__danger":"AlertBanner_notif--alert__danger__dnQSz","notif--alert__clickable":"AlertBanner_notif--alert__clickable__C095l","notif--alert__visible":"AlertBanner_notif--alert__visible__gLXyt","icon--alert":"AlertBanner_icon--alert__kzYQG"}},603597:function(e){e.exports={"idx-request-btn":"idxRequest_idx-request-btn__Xp4fo","request-modal-wrapper":"idxRequest_request-modal-wrapper__8Nlfy","not-platinum":"idxRequest_not-platinum___6hu4",title:"idxRequest_title__5YdCs",subtitle:"idxRequest_subtitle__npIF1","sent-subtitle":"idxRequest_sent-subtitle__uCEGK","request-idx-content":"idxRequest_request-idx-content__i_Tw0","request-idx-form":"idxRequest_request-idx-form__4SM3z","input-wrapper":"idxRequest_input-wrapper__dMi8c","input-wrapper--label":"idxRequest_input-wrapper--label__a8BkE","input-wrapper--field":"idxRequest_input-wrapper--field__EkKlK",error:"idxRequest_error__GKO1l","input-wrapper--field--icon":"idxRequest_input-wrapper--field--icon__gyaik","btn-done":"idxRequest_btn-done__F_IUy","btn-send-request":"idxRequest_btn-send-request__ZfXHe","modal-content":"idxRequest_modal-content__kP4_g","thank-you":"idxRequest_thank-you__2APxB","subscription-modal-wrapper":"idxRequest_subscription-modal-wrapper__M_I6w",connected:"idxRequest_connected__XEg4E",unsuscribed:"idxRequest_unsuscribed__VHuYt",separator:"idxRequest_separator__FsU8P","btn-submit":"idxRequest_btn-submit__wTq4p",tooltipContent:"idxRequest_tooltipContent___5e07"}},264999:function(e){e.exports={"btn--subscribe":"SubscriptionModal_btn--subscribe__TYe97",active:"SubscriptionModal_active__9wL73","change-plan":"SubscriptionModal_change-plan__r7C7g","disabled-subscribed":"SubscriptionModal_disabled-subscribed__C7Nf0","plan-card--container":"SubscriptionModal_plan-card--container__hZ0yS",inclusions:"SubscriptionModal_inclusions__109H_",scrollable:"SubscriptionModal_scrollable__hC2gY","scroll-more":"SubscriptionModal_scroll-more__j4NOH","scroll-more--hidden":"SubscriptionModal_scroll-more--hidden__0MfxZ","plan-card--subscribed-container":"SubscriptionModal_plan-card--subscribed-container__PXY_T","plan-card--header":"SubscriptionModal_plan-card--header__0c06A","plan-card--subheader":"SubscriptionModal_plan-card--subheader__o4UFD","ihfMax--container":"SubscriptionModal_ihfMax--container__qTzxY","ihfMax--price":"SubscriptionModal_ihfMax--price__w5iso","ihfMax--description":"SubscriptionModal_ihfMax--description__8GUHN","ihfMax--checkbox":"SubscriptionModal_ihfMax--checkbox__dD20o",checked:"SubscriptionModal_checked__d9Olc"}}
1,11702:function(e){e.exports={"modal-features__contentClass":"Modals_modal-features__contentClass__rMUPa","modal-features__description":"Modals_modal-features__description__2HAwE",title:"Modals_title__N4LIa",details:"Modals_details__2MKbE",btn:"Modals_btn__EZ4o9","modal-phonePrompt__content":"Modals_modal-phonePrompt__content__TxrN7","inputs-container":"Modals_inputs-container__MqMiA",label:"Modals_label__F4PMy","phone-input":"Modals_phone-input__Tf9eu","error-output":"Modals_error-output__tRcO0",description:"Modals_description__24uli","modal-dashboardSelector":"Modals_modal-dashboardSelector__6kL0U","modal-dashboardSelector__header":"Modals_modal-dashboardSelector__header__d46TL","modal-dashboardSelector__title":"Modals_modal-dashboardSelector__title__7icp2","modal-dashboardSelector__subtitle":"Modals_modal-dashboardSelector__subtitle__VH5L2","modal-dashboardSelector__cards":"Modals_modal-dashboardSelector__cards___6PcN","modal-dashboardSelector__card":"Modals_modal-dashboardSelector__card__pHyIC","modal-dashboardSelector__cardLink":"Modals_modal-dashboardSelector__cardLink__wxN9b","modal-dashboardSelector__cardImage":"Modals_modal-dashboardSelector__cardImage__cuLqn","modal-dashboardSelector__cardBody":"Modals_modal-dashboardSelector__cardBody__SEwv0","modal-dashboardSelector__cardTitle":"Modals_modal-dashboardSelector__cardTitle__Bjc40","modal-dashboardSelector__cardDescription":"Modals_modal-dashboardSelector__cardDescription__K7INH","modal-dashboardSelector__checkboxLabel":"Modals_modal-dashboardSelector__checkboxLabel__wFlPZ","modal-dashboardSelector__checkbox":"Modals_modal-dashboardSelector__checkbox__YRFYE"}},289948:function(e){e.exports={"billing-info-form":"BillingInfoForm_billing-info-form__ryktR","groups-2":"BillingInfoForm_groups-2__Zi0HY","checkbox-container":"BillingInfoForm_checkbox-container__vVnsr",field:"BillingInfoForm_field__3Nafu",input:"BillingInfoForm_input__VMtHl","input--error":"BillingInfoForm_input--error__koXl4",error:"BillingInfoForm_error___Xz2Z","card-input":"BillingInfoForm_card-input__LVTns","card-input--error":"BillingInfoForm_card-input--error__T4kUt","card-input--focus":"BillingInfoForm_card-input--focus__KJ0fb",dropdown:"BillingInfoForm_dropdown__q__KW",trigger:"BillingInfoForm_trigger__E3oSw",menu:"BillingInfoForm_menu__WEGrx",hide:"BillingInfoForm_hide__8a_IM",highlighted:"BillingInfoForm_highlighted__yw7p8","dropdown--dropped":"BillingInfoForm_dropdown--dropped__dyqjL",checkbox:"BillingInfoForm_checkbox__e0kY3"}},241248:function(e){e.exports={"dropdown-meta":"Dropdown_dropdown-meta__jNB6V","dropdown-meta__label":"Dropdown_dropdown-meta__label__qI9vV","dropdown-meta__btn":"Dropdown_dropdown-meta__btn__vVEg0","dropdown-meta__btn--expand":"Dropdown_dropdown-meta__btn--expand__GuQDr","dropdown-meta__icon":"Dropdown_dropdown-meta__icon__Vo1Pv","dropdown-meta__icon--expand":"Dropdown_dropdown-meta__icon--expand__vSV7n","dropdown-meta__selected":"Dropdown_dropdown-meta__selected__CMk_z","dropdown-list__content":"Dropdown_dropdown-list__content__h6Q1P","dropdown-list__content--expand":"Dropdown_dropdown-list__content--expand__vX3fz"}},919511:function(e){e.exports={"input--field":"Input_input--field__oWjfo",error:"Input_error__9_ST1","error--label":"Input_error--label__ncgyo"}},415843:function(e){e.exports={"payment--wrapper":"Payment_payment--wrapper__9zt9i","payment-container":"Payment_payment-container__9CQmH","payment-card":"Payment_payment-card__Vwgeb","payment-card--title":"Payment_payment-card--title__9I5jH","form-group":"Payment_form-group___SuWI","btn--subscribe":"Payment_btn--subscribe__b59B3",active:"Payment_active__rDZy4",confirmation:"Payment_confirmation__63tK0","confirmation--links":"Payment_confirmation--links__R_Av9","card-input":"Payment_card-input__GH_4S","card-input--error":"Payment_card-input--error__hhu3R","card-input--focus":"Payment_card-input--focus__enRp9"}},978865:function(e){e.exports={"preparing-modal-wrapper":"SuccessModal_preparing-modal-wrapper__Rn8Y7",title:"SuccessModal_title__Gl_rU","modal--content":"SuccessModal_modal--content__S2sVw",desc:"SuccessModal_desc__eoOrs","btn--billing":"SuccessModal_btn--billing__Xw0Ou"}},230255:function(e){e.exports={"subscription-modal-wrapper":"OneTimeSetupPopup_subscription-modal-wrapper__Hn2EQ",connected:"OneTimeSetupPopup_connected__Xb2hH",unsu
1scribed:"OneTimeSetupPopup_unsuscribed__aoixK",title:"OneTimeSetupPopup_title__hEs_u",separator:"OneTimeSetupPopup_separator__Mp7_4",subtitle:"OneTimeSetupPopup_subtitle__CNxO3","btn-submit":"OneTimeSetupPopup_btn-submit__RThp3",tooltipContent:"OneTimeSetupPopup_tooltipContent__aPXgR"}},85089:function(e){e.exports={radio:"RadioButton_radio__suI9u",selected:"RadioButton_selected__fBsDK","radio--label":"RadioButton_radio--label__YpLRZ"}},435117:function(e){e.exports={root:"AppWrapper_root__pBqgt","root--admin-mode":"AppWrapper_root--admin-mode__1DVLj",content:"AppWrapper_content___CvlE","content--full":"AppWrapper_content--full__WioUQ","content--fullPage":"AppWrapper_content--fullPage__qPkOA","content--admin-mode":"AppWrapper_content--admin-mode__k_aAj","empty-welcome":"AppWrapper_empty-welcome__0nYHZ","empty-website":"AppWrapper_empty-website__AizKW","welcome--message":"AppWrapper_welcome--message__8s3Ms","inactive--subscription":"AppWrapper_inactive--subscription__Eq8Y9","is-delete":"AppWrapper_is-delete__JS72I","skeleton-with-banner":"AppWrapper_skeleton-with-banner__fdYPa","limit--message":"AppWrapper_limit--message___MfQZ","limit--message__image":"AppWrapper_limit--message__image__QRG4j","limit--message__image--content":"AppWrapper_limit--message__image--content__6nUAq","limit--message__title":"AppWrapper_limit--message__title__etbYG","limit--message__subtitle":"AppWrapper_limit--message__subtitle__Cs3Pz","create-website-btn":"AppWrapper_create-website-btn__YL0_3"}},242896:function(e){e.exports={"btn-trigger":"WorkWithDesign_btn-trigger__gzx4i","btn-submit":"WorkWithDesign_btn-submit__0tUJH","btn-close":"WorkWithDesign_btn-close__WAoYl"}},542046:function(e){e.exports={wrapper:"Sidebar_wrapper__mOtd1","wrapper--full":"Sidebar_wrapper--full__AumVA",list:"Sidebar_list__mJEl7",logo:"Sidebar_logo__Q0C32",item:"Sidebar_item__E_h8k","item-label":"Sidebar_item-label__QHPrN","long-logo":"Sidebar_long-logo__dcUGa","stacked-logo":"Sidebar_stacked-logo__jUN2e","access-presentation":"Sidebar_access-presentation__bz4oH","nav-wrapper":"Sidebar_nav-wrapper__qPlH4",external:"Sidebar_external__UjWho",heading:"Sidebar_heading__B1qVu",heading2:"Sidebar_heading2__Svy3t",name:"Sidebar_name___Jv1o",subheading:"Sidebar_subheading__mJQSu","subheading-wrapper":"Sidebar_subheading-wrapper__AxW5t","subheading--icon":"Sidebar_subheading--icon__lF7dL",subheading2:"Sidebar_subheading2__AOepP","subheading2-container":"Sidebar_subheading2-container__pFaNV","subheading2--icon":"Sidebar_subheading2--icon__8wofB","icon-maxa":"Sidebar_icon-maxa__nG5NU","icon-maxa2":"Sidebar_icon-maxa2__EMa54",brand:"Sidebar_brand__h9ha9","item-icon":"Sidebar_item-icon__26FOa",selected:"Sidebar_selected__N_UIw","access-floating-ipad":"Sidebar_access-floating-ipad__RqlJJ",float:"Sidebar_float__cTHor","subheading-container":"Sidebar_subheading-container__u3OXf"}}
1,153566:function(e){e.exports={"select-template__wrapper":"PickATemplate_select-template__wrapper___HBcC","select-template__header":"PickATemplate_select-template__header__UXe10",filter__container:"PickATemplate_filter__container__cndZb",filter__wrapper:"PickATemplate_filter__wrapper__k_Xol","filter-label__wrapper":"PickATemplate_filter-label__wrapper__2CJLs",card__container:"PickATemplate_card__container__XOEmF",card__wrapper:"PickATemplate_card__wrapper__a034r","btns-container":"PickATemplate_btns-container__imL6d","device-desktop":"PickATemplate_device-desktop__ohRHi","device-phone":"PickATemplate_device-phone__BLWO_","image-wrapper":"PickATemplate_image-wrapper__1gO_a","btn-wrapper":"PickATemplate_btn-wrapper__939W6","dynamic-island":"PickATemplate_dynamic-island__zw9_1","template-cards__container":"PickATemplate_template-cards__container__SL95e"}},508710:function(e){"use strict";e.exports=JSON.parse('[{"startDate":"05-16-2024","title":"We\'ve added a \'General\' page to all templates!","details":{"header":"This page layout includes the following sections:","list":["Text Block","Cover Photo with Text","Left Photo with Text","Headline with Cover Photo","Call to Action"],"footer":"These sections can be toggled on and off as well as rearranged to your liking!"}},{"startDate":"10-08-2024","title":"New \'Buyers\' and \'Sellers\' Pages Added!","details":{"header":"Great news! We\'ve added new Buyers and Sellers guides to enhance your website. All content is fully customizable, making it easy to tailor to your brand and engage your clients.","list":[],"footer":"Check them out and boost your real estate services today!"}}]')}}]);
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.