(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7586],{3135:function(e,t,n){Promise.resolve().then(n.bind(n,3706)),Promise.resolve().then(n.t.bind(n,6627,23)),Promise.resolve().then(n.t.bind(n,3783,23)),Promise.resolve().then(n.t.bind(n,4339,23)),Promise.resolve().then(n.t.bind(n,4592,23)),Promise.resolve().then(n.t.bind(n,3899,23)),Promise.resolve().then(n.bind(n,5505)),Promise.resolve().then(n.t.bind(n,6457,23)),Promise.resolve().then(n.t.bind(n,8655,23)),Promise.resolve().then(n.t.bind(n,9885,23)),Promise.resolve().then(n.t.bind(n,316,23)),Promise.resolve().then(n.t.bind(n,3571,23)),Promise.resolve().then(n.t.bind(n,1162,23)),Promise.resolve().then(n.bind(n,3906)),Promise.resolve().then(n.bind(n,7637)),Promise.resolve().then(n.bind(n,7907)),Promise.resolve().then(n.bind(n,9819)),Promise.resolve().then(n.bind(n,748)),Promise.resolve().then(n.bind(n,6085)),Promise.resolve().then(n.bind(n,3898))},3706:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var r=n(7573),o=n(7653),i=n(1581),s=n(569),a=n(3391),_=n(7256),u=n.n(_);function l(){let{pushNotification:e}=(0,s.lm)(),t=(0,o.useRef)(null),[n,_]=(0,o.useState)(!1),l=async n=>{var r,o;let i;if(!t.current)return;n.preventDefault();let s=new FormData(n.target).get("domain");try{({hostname:i}=new URL(s.startsWith("http://")||s.startsWith("https://")?s:"https://".concat(s)))}catch(n){e("Please enter a valid domain.","error"),null===(r=t.current)||void 0===r||r.focus();return}_(!0),t.current.value=i;let{error:u,data:l}=await (0,a.t)(i);if(!l){e((0,a.X)(u),"error"),null===(o=t.current)||void 0===o||o.focus(),_(!1);return}let c=new URLSearchParams("domain=".concat(l)),d=new URLSearchParams(window.location.search).get("r");d&&c.append("r",d),window.location.href="https://seona.usestyle.ai/new?".concat(c)};return(0,r.jsx)("form",{className:u().root,onSubmit:l,children:(0,r.jsxs)("div",{className:u().inputWrapper,children:[(0,r.jsx)("span",{children:"https://"}),(0,r.jsx)("input",{ref:t,autoFocus:!0,name:"domain",placeholder:"Enter your website to get started..."}),(0,r.jsxs)(s.zx,{variant:"outline",type:"submit",disabled:n,className:u().button,children:["Go",(0,r.jsx)(s.TF,{loading:n,children:(0,r.jsx)(i.Z,{size:16})})]})]})})}},3391:function(e,t,n){"use strict";n.d(t,{X:function(){return o},t:function(){return i}});var r=n(1519);function o(e){switch(e){case 20001:return"We were unable to parse your website. This can be caused by insufficient content or your website blocking us.";case 20002:return"Your domain does not support HTTPS. Please try another domain.";case 20004:return"The request timed out. Please try again later.";default:return"Unfortunately, an error occurred. Please try again."}}let i=async e=>await (0,r.WY)("".concat(r.VV,"/v1/final-domain?domain=").concat(encodeURIComponent(e)))},1519:function(e,t,n){"use strict";n.d(t,{Sg:function(){return r},VV:function(){return o},WY:function(){return s}});let r="https://api.usestyle.ai/api",o="https://businessapi.usestyle.ai/api",i=e=>{var t;return(null==e?void 0:e.body)&&!(null===(t=e.headers)||void 0===t?void 0:t["Content-Type"])&&(e.body=JSON.stringify(e.body),e.headers={...e.headers,"Content-Type":"application/json"}),e},s=async(e,t)=>{let n=i(t);(null==n?void 0:n.credentials)||(n={...n,credentials:"include",headers:{...null==n?void 0:n.headers,"X-CSRF-Token":"1"}});try{let t=await fetch(e,n);return await t.json()}catch(e){return console.error(e),{success:!1,data:null,error:1}}}},3899:function(e){e.exports={root:"Features_root__9Tx7y",card:"Features_card__SvGGY",content:"Features_content__jsouL",left:"Features_left__kO5ij",imgContainer:"Features_imgContainer__GQqoy",right:"Features_right__5ZW1d",description:"Features_description__IIdZp",itemsContainer:"Features_itemsContainer__KLFH5",itemsRow:"Features_itemsRow__bOzvY",item:"Features_item__lJAun",iconWrapper:"Features_iconWrapper__u2_jM"}},8655:function(e){e.exports={root:"FooterCta_root___W2tR",content:"FooterCta_content__ETjkF",textContent:"FooterCta_textContent__M3O73",imgContainer:"FooterCta_imgContainer__KK1LL"}},9885:function(e){e.exports={root:"Hero_root__zRWGY",content:"Hero_content__y_mS7",labelContainerWrapper:"Hero_labelContainerWrapper__eaSeU",labelContainer:"Hero_labelContainer__Z2Uic",linkForm:"Hero_linkForm__ehja0",imgContainerWrapper:"Hero_imgContainerWrapper__SeVeJ",imgContainer:"Hero_imgContainer__ek6hx","input-animation":"Hero_input-animation__CbxvJ"}},7256:function(e){e.exports={root:"InputForm_root__Kw5fB",inputWrapper:"InputForm_inputWrapper__3S2mf","input-animation":"InputForm_input-animation__sDL1D",button:"InputForm_button__xThTy"}},316:function(e){e.exports={root:"Testimonial_root__w8ajQ",quote:"Testimonial_quote__XsND2",text:"Testimonial_text__Qgobr",name:"Testimonial_name__IpB5S",business:"Testimonial_business__b6ioR",ratingsContainer:"Testimonial_ratingsContainer__GH2YB",starContainer:"Testimonial_starContainer__vnASh",rating:"Testimonial_rating__SCdjW",separator:"Testimonial_separator__6u7Ij",trustpilot:"Testimonial_trustpilot__U8sV4",g2:"Testimonial_g2__S6SBK",card:"Testimonial_card__H_gLW"}},3571:function(e){e.exports={root:"TrialCta_root__Oowb3",content:"TrialCta_content__Vznuy",textContent:"TrialCta_textContent__eqqKk",imgContainer:"TrialCta_imgContainer__nkMTR"}},1162:function(e){e.exports={root:"page_root__uuTZm",content:"page_content__CvbKX",gradient:"page_gradient__dT9Hq"}},6627:function(e){e.exports={row:"BusinessHub_row__U7QI2"}},3783:function(e){e.exports={root:"BusinessProfile_root__gL6ty",content:"BusinessProfile_content__0vEKU",imgContainer:"BusinessProfile_imgContainer__qfeMa"}},4339:function(e){e.exports={root:"Integrations_root__xJNyK",gridContainer:"Integrations_gridContainer__LXZOu",grid:"Integrations_grid__ECrAr",gridItem:"Integrations_gridItem__zT6GU",wix:"Integrations_wix__X09Bk"}},4592:function(e){e.exports={root:"Models_root__RTY3M",imgContainer:"Models_imgContainer__2TkT4"}},6457:function(e){e.exports={root:"Resources_root__0SscD",description:"Resources_description__eQdgW",row:"Resources_row__tR8TR",card:"Resources_card__elcZ3",img:"Resources_img__iiuqq"}}},function(e){e.O(0,[190,4394,6288,3002,9327,6964,6140,5469,8903,1909,5505,1293,286,1744],function(){return e(e.s=3135)}),_N_E=e.O()}]);