1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{75242:function(e,t,r){"use strict";var a=r(57437),s=r(2265),n=r(27648),l=r(14879),o=r(32909),i=r(61273);let c=[{section:"Product",links:[{label:"URL Shortener",href:l.Z.products.urlShortener},{label:"QR Code",href:l.Z.products.qrCodes},{label:"Pricing",href:l.Z.pricing}]},{section:"Free Tools",links:[{label:"Free QR Code Generator",href:l.Z.freeQrCodeGenerator},{label:"Free QR Code Scanner",href:l.Z.qrCodeScannerOnline},{label:"Free UTM Builder",href:l.Z.freeUtmBuilder},{label:"Free Business Card Maker",href:l.Z.businessCardMaker},{label:"Free Instagram Bio Generator",href:l.Z.instagramBioGenerator},{label:"Free Whatsapp Link Generator",href:l.Z.whatsappLinkGenerator}]},{section:"Resources",links:[{label:"Blog",href:l.Z.blog},{label:"QR Codes on",href:l.Z.qrCodesOn},{label:"QR Codes For Business",href:l.Z.qrForBusiness}]},{section:"Quick Links",links:[{label:"About Us",href:l.Z.about},{label:"Privacy Policy",href:l.Z.privacyPolicy},{label:"Legal",href:l.Z.termsAndConditions}]}],d=[{icon:(0,a.jsx)(o.Pno,{className:"h-6 w-6"}),href:l.Z.social.instagram,name:"Instagram"},{icon:(0,a.jsx)(o.xMv,{className:"h-6 w-6"}),href:l.Z.social.x,name:"Twitter"},{icon:(0,a.jsx)(i.BUd,{className:"h-6 w-6"}),href:l.Z.social.linkedin,name:"LinkedIn"},{icon:(0,a.jsx)(o.tvq,{className:"h-6 w-6"}),href:l.Z.social.pinterest,name:"Pinterest"}];t.default=()=>(0,a.jsx)("footer",{className:"bg-primary-dark-custom text-white pt-[50px] pb-4",children:(0,a.jsxs)("div",{className:"max-w-container mx-auto",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-8 text-left",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)(n.default,{href:l.Z.home,children:(0,a.jsx)("img",{src:"/logo.png",alt:"Weely Logo",width:120,height:40,className:"mb-4"})}),(0,a.jsx)("p",{className:"text-white text-opacity-70 text-sm mb-4",children:"The complete platform for creating meaningful engagement with your audience."}),(0,a.jsx)("div",{className:"flex space-x-4 mt-2 gap-6",children:d.map((e,t)=>(0,a.jsx)(n.default,{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-white text-opacity-70 hover:text-white transition","aria-label":e.name,children:(0,a.jsx)("div",{className:"h-6 w-6 flex items-center justify-center",children:s.cloneElement(e.icon,{"aria-hidden":!0,focusable:!1})})},t))})]}),c.map(e=>(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)("div",{className:"font-semibold text-gray-900 text-[clamp(1.25rem,2.5vw,1.3125rem)] leading-[1.4] capitalize font-urbanist text-accent-custom mb-4",children:e.section}),(0,a.jsx)("ul",{className:"flex flex-col items-start list-none p-0 m-0 space-y-3",children:e.links.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n.default,{href:e.href,className:"text-white text-opacity-70 hover:text-white transition no-underline","aria-label":e.label,children:e.label})},e.label))})]},e.section))]}),(0,a.jsxs)("div",{className:"mt-14 pt-4 border-t border-white border-opacity-10 flex flex-col items-start space-y-4 md:flex-row md:justify-between md:space-y-0",children:[(0,a.jsxs)("p",{className:"text-white text-opacity-50 text-sm",children:["\xa9 ",new Date().getFullYear()," Weely. All rights reserved."]}),(0,a.jsx)("p",{className:"text-white text-opacity-40 !text-[14px] mt-1",children:'"QR Code" is a trademark of DENSO WAVE INCORPORATED.'}),(0,a.jsx)("div",{className:"flex flex-col items-start md:flex-row md:space-x-6",children:(0,a.jsx)(n.default,{href:"".concat(l.Z.privacyPolicy,"#cookies-policy"),className:"text-white text-opacity-50 hover:text-white text-sm",children:"Cookie Policy"})})]})]})})},62772:function(e,t,r){"use strict";var a=r(57437),s=r(2265),n=r(27648),l=r(40875),o=r(92369),i=r(25466),c=r(98728),d=r(47692),u=r(32489),m=r(58293),p=r(14879);r(51268);var h=r(33145);r(5794),r(11206);var f=r(99376),x=r(68575),b=r(18697),g=r(30721),v=r(83266),y=r(18206);let w=[{label:"Home",href:p.Z.home},{label:"About",href:p.Z.about},{label:"Platform",submenu:[{label:"URL Shortener",href:p.Z.products.urlShortener},{label:"QR Codes",href:p.Z.products.qrCodes},{label:"Link-in-bio",href:p.Z.products.smartPages}]},{label:"Pricing",href:p.Z.pricing},{label:"Blog",href:p.Z.blog}];t.default=e=>{let{textColor:t="text-white",logo:r="/logo.png",border:j="white",borderColor:N="white",bgColor:k=null,className:U="",textMenu:C="white",containerShadow:S=!0,innerShadow:Z=!0,variant:_="rounded"}
1=e,[q,B]=(0,s.useState)(!1),[E,L]=(0,s.useState)(!0),[P,A]=(0,s.useState)(!1),[D,M]=(0,s.useState)(0),[F,R]=(0,s.useState)(null),[T,I]=(0,s.useState)(null),[z,H]=(0,s.useState)(null),[O,G]=(0,s.useState)(!1),[Q,W]=(0,s.useState)(!1),[X,V]=(0,s.useState)(!1),[Y,J]=(0,s.useState)(null),K=(0,s.useRef)(null),$=(0,s.useRef)(null),ee=(0,x.v9)(e=>e.UserDetails),et=null==ee?void 0:ee.UserData;null==et||et._id;let er=null==et?void 0:et.email,ea=(null==et?void 0:et.name)||"",es=null==et?void 0:et.avatarUrl,en=(null==et?void 0:et.primaryGroupId)||"dashboard",el=(()=>{if(null==ea?void 0:ea.trim()){let e=ea.trim().split(/\s+/);return e.length>=2&&e[0][0]&&e[1][0]?"".concat(e[0][0]).concat(e[1][0]).toUpperCase():e[0].slice(0,2).toUpperCase()}return(null==er?void 0:er.trim())?er.trim().slice(0,2).toUpperCase():null})(),eo=(0,x.I0)(),ei=(0,f.useRouter)();(0,s.useEffect)(()=>{W(!1)},[es]),(0,s.useEffect)(()=>{let e=e=>{$.current&&!$.current.contains(e.target)&&G(!1)},t=e=>{"Escape"===e.key&&G(!1)};return O&&(document.addEventListener("mousedown",e),document.addEventListener("keydown",t)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[O]),(0,s.useEffect)(()=>{J(sessionStorage.getItem("auth_token"))},[]);let ec=e=>{I(t=>t===e?null:e)},ed=()=>B(e=>!e),eu=()=>B(!1),em=e=>{clearTimeout(K.current),R(e)},ep=()=>{K.current=setTimeout(()=>{R(null)},200)},eh=async e=>{e.preventDefault(),V(!0);try{Y&&await b.Z.post("".concat("https://app.weely.ai","/api/v1/auth/logout"),{},{headers:{Authorization:"Bearer ".concat(Y),"Content-Type":"application/json"}}),sessionStorage.removeItem("auth_token"),eo((0,g.M)(null)),eo((0,v.d3)(null)),localStorage.getItem("nextauth.message")&&localStorage.removeItem("nextauth.message"),y.Am.success("Logged out successfully",{closeOnClick:!0,theme:"colored"}),ei.push("/login")}catch(e){var t,r;console.error("Logout error:",e),y.Am.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.msg)||"Logout failed. Please try again",{closeOnClick:!0,theme:"colored"}),sessionStorage.removeItem("auth_token"),eo((0,g.M)(null)),eo((0,v.d3)(null))}finally{V(!1)}};(0,s.useEffect)(()=>{er&&H(er)},[er]),(0,s.useEffect)(()=>{q?document.body.style.overflow="hidden":document.body.style.overflow=""},[q]),(0,s.useEffect)(()=>{let e=()=>{if(q)return;let e=window.scrollY;e>D&&e>100?L(!1):L(!0),A(e>10),M(e)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[D,q]);let ef="text-[#041B2E]";return(0,a.jsxs)("header",{className:"fixed top-0 w-full z-50 transition-all duration-500 ease-in-out ".concat(E?"translate-y-0":"-translate-y-full"," ").concat(P?"mt-0":"mt-6"," ").concat(P?"bg-white shadow-md":"bg-transparent"," ").concat(""," ").concat(U),children:[(0,a.jsx)("div",{className:"transition-all duration-500 ease-in-out ".concat(P?"max-w-container mx-auto px-4 md:px-8":"max-w-container px-4 md:px-6 mx-auto"),children:(0,a.jsxs)("div",{className:"transition-all duration-500 ease-in-out ".concat(P?"px-4":"bg-[#EDF7FF] rounded-full px-4 shadow-[0_4px_24px_rgba(0,0,0,0.08)]"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between h-[60px] md:h-[78px] ".concat(""),children:[(0,a.jsx)(n.default,{href:p.Z.home,className:"flex items-center",children:(0,a.jsx)("img",{src:"/logo-black.png",alt:"Weely Logo",width:120,height:32,className:"h-10 md:h-12 w-auto"})}),(0,a.jsx)("nav",{className:"hidden lg:flex items-center gap-[2.92553vw] ml-[8.51062vw]",children:w.map(e=>(0,a.jsx)("div",{className:"relative group ",onMouseEnter:()=>em(e.label),onMouseLeave:ep,children:e.submenu?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{className:"group text-[16px] xl:text-[18px] font-medium ".concat(ef," hover:primary-custom transition no-underline flex items-center mt-[2px]"),onMouseEnter:()=>R(e.label),children:[e.label,(0,a.jsx)(l.Z,{size:16,className:"ml-1 transition-transform ".concat(F===e.label?"text-primary-custom rotate-180":ef)})]}),(0,a.jsx)("div",{className:"absolute left-1/2 transform -translate-x-1/2 mt-2 w-48 rounded-md shadow-lg bg-white z-50 ".concat(F===e.label?"block":"hidden"," group-hover:block"),onMouseEnter:()=>R(e.label),onMouseLeave:()=>R(null),children:(0,a.jsx)("div",{className:"py-1",children:e.submenu.map(e=>(0,a.jsx)(n.default,{href:e.href,className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 no-underline transition-colors",onClick:()=>R(null),children:e.label},e.label))})})]}):(0,a.jsx)(n.default,{href:e.href,className:"text-[16px] xl:text-[18px] font-medium ".concat(ef," hover:primary-custom transition no-underline"),children:e.label})},e.label))}),(0,a.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3",ref:$,children:[Y?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{G(e=>!e),B(!1)},className:"relative flex h-10 w-10 items-center justify-center rounded-full border border-slate-200/90 bg-white p-[2px] shadow-sm transition-all duration-200 hover:border-slate-300 hover:shadow-md hover:ring-2 hover:ring-[#58ebc2]/50 active:scale-95 focus:outline-none","aria-label":"User account menu","aria-expanded":O,children:[(0,a.jsx)("div",{className:"h-full w-full overflow-hidden rounded-full",children:es&&!Q?(0,a.jsx)(h.default,{src:es,alt:ea||"User avatar",width:40,height:40,onError:()=>W(!0),className:"h-full w-full rounded-full object-cover"}):el?(0,a.jsx)("span",{className:"flex h-full w-full items-center justify-center rounded-full bg-gradient-to-br from-[#041B2E] to-[#0A3D62] text-[12px] font-bold tracking-wider text-[#58ebc2] select-none",children:el}):(0,a.jsx)("span",{className:"flex h-full w-full items-center justify-center rounded-full bg-slate-100 text-slate-600",children:(0,a.jsx)(o.Z,{size:18,strokeWidth:2.2})})}),(0,a.jsx)("span",{className:"absolute bottom-0 right-0 block h-2.5 w-2.5 rounded-full bg-[#11B386] ring-2 ring-white"})]}),E&&O&&(0,a.jsxs)("div",{className:"absolute right-0 top-12 mt-2 md:top-14 z-50 w-64 origin-top-right rounded-2xl border border-slate-200/80 bg-white p-2 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute right-[60px] lg:right-[11px]",style:{to
1p:"-10px",width:0,height:0,borderLeft:"9px solid transparent",borderRight:"9px solid transparent",borderBottom:"10px solid rgba(203,213,225,0.8)"}}),(0,a.jsx)("div",{className:"pointer-events-none absolute right-[61px] lg:right-[12px]",style:{top:"-8px",width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderBottom:"9px solid white"}}),(0,a.jsxs)("div",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-xl bg-slate-50/90 border border-slate-100 mb-1",children:[(0,a.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full overflow-hidden bg-gradient-to-br from-[#041B2E] to-[#0A3D62] text-[#58ebc2] text-xs font-bold shadow-sm",children:es&&!Q?(0,a.jsx)(h.default,{src:es,alt:ea||"User",width:36,height:36,className:"h-full w-full rounded-full object-cover"}):el||(0,a.jsx)(o.Z,{size:16})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-xs font-semibold text-slate-900 leading-tight",children:ea||"My Account"}),(0,a.jsx)("p",{className:"truncate text-[11px] text-slate-500 mt-0.5",title:er||z||"",children:er||z||"Signed in"})]})]}),(0,a.jsx)("div",{className:"h-px bg-slate-100 my-1"}),(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsxs)(n.default,{href:p.Z.dashboardHome,onClick:()=>G(!1),className:"flex items-center gap-2.5 px-3 py-2 text-xs font-medium text-slate-700 hover:text-[#06b470] hover:bg-[#eefffa] rounded-xl transition-colors",children:[(0,a.jsx)(i.Z,{size:15,className:"text-slate-400"}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)(n.default,{href:"/".concat(en,"/settings/profile"),onClick:()=>G(!1),className:"flex items-center gap-2.5 px-3 py-2 text-xs font-medium text-slate-700 hover:text-[#06b470] hover:bg-[#eefffa] rounded-xl transition-colors",children:[(0,a.jsx)(c.Z,{size:15,className:"text-slate-400"}),(0,a.jsx)("span",{children:"Profile Settings"})]})]}),(0,a.jsx)("div",{className:"h-px bg-slate-100 my-1"}),(0,a.jsxs)("button",{type:"button",onClick:eh,disabled:X,className:"flex w-full items-center gap-2.5 px-3 py-2 text-xs font-medium text-rose-600 hover:bg-rose-50 rounded-xl transition-colors disabled:opacity-50",children:[(0,a.jsx)(d.Z,{size:15}),(0,a.jsx)("span",{children:X?"Signing out...":"Sign out"})]})]})]}):(0,a.jsxs)("div",{className:"hidden lg:flex items-center gap-3",children:[(0,a.jsx)(n.default,{href:p.Z.login,className:"custom-outline-btn",children:"Login"}),(0,a.jsx)(n.default,{href:p.Z.signup,className:"custom-btn",children:"Sign Up Free"})]}),(0,a.jsx)("button",{onClick:()=>{ed(),G(!1)},className:"lg:hidden ".concat("text-[#041B2E]"," p-2 rounded-md hover:bg-black/5 transition"),"aria-label":"Toggle Menu",children:q?(0,a.jsx)(u.Z,{size:24}):(0,a.jsx)(m.Z,{size:24})})]})]}),q&&(0,a.jsx)("nav",{className:"lg:hidden fixed top-16 left-0 w-full h-[calc(100vh-4rem)] z-40 bg-primary-dark-custom overflow-y-auto border-t border-secondary-custom",children:(0,a.jsxs)("div",{className:"px-4 pt-3 pb-4 space-y-2",children:[w.map(e=>(0,a.jsx)("div",{children:e.submenu?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("button",{className:"flex justify-center items-center w-full text-base hover:primary-custom font-medium text-white px-4 py-2 rounded-md text-left",onClick:()=>ec(e.label),children:[e.label,(0,a.jsx)(l.Z,{size:16,className:"ml-2 transition-transform ".concat(T===e.label?"rotate-180 text-primary-custom":"")})]}),T===e.label&&(0,a.jsx)("div",{className:"pl-4 space-y-2",children:e.submenu.map(e=>(0,a.jsx)(n.default,{href:e.href,onClick:eu,className:"flex flex-col align-center items-center text-base font-medium text-gray-300 hover:primary-custom px-4 py-2 rounded-md transition no-underline",children:e.label},e.label))})]}):(0,a.jsx)(n.default,{href:e.href,onClick:eu,className:"block text-base font-medium text-white hover:primary-custom px-4 py-2 rounded-md text-center transition no-underline",children:e.label})},e.label)),Y?(0,a.jsx)("div",{className:"pt-4 border-t border-secondary-custom space-y-3",children:(0,a.jsx)(n.default,{href:p.Z.dashboardHome,onClick:eu,className:"block text-base font-medium text-black hover:secondary-custom-nb bg-primary-custom px-4 py-2 rounded-md text-center transition no-underline",children:"Back to Home"})}):(0,a.jsxs)("div",{className:"pt-4 border-t border-secondary-custom space-y-3",children:[(0,a.jsx)(n.default,{href:p.Z.login,onClick:eu,className:"block text-base font-medium text-white hover:secondary-custom border border-secondary-custom px-4 py-2 rounded-md text-center transition no-underline",children:"Login"}),(0,a.jsx)(n.default,{href:p.Z.signup,onClick:eu,className:"block text-base font-medium text-black hover:secondary-custom-nb bg-primary-custom px-4 py-2 rounded-md text-center transition no-underline",children:"Sign Up Free"})]})]})})]})})," "]})}},14879:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});let a="/admin",s="/dashboard",n="/products";function l(e){return{dashboardHome:"/".concat(e),mySignature:"/".concat(e,"/my-signatures"),shortUrl:"/".concat(e,"/short-url"),shortUrlCreate:"/".concat(e,"/short-url/create"),shortUrlEdit:"/".concat(e,"/short-url/edit"),shortUrlBulkUpload:"/".concat(e,"/short-url/bulk-upload"),shortUrlNewCreate:"/".concat(e,"/short-url"),shortUrlDetail:"/".concat(e,"/short-url/detail"),settingurl:"/".concat(e,"/settings/profile"),qrcodeUrl:"/".concat(e,"/qr-code"),qrcodeCreate:"/".concat(e,"/qr-code/create"),qrcodeBulkUpload:"/".concat(e,"/qr-code/bulk-upload"),qrcodeTemplates:"/".concat(e,"/qr-code/templates"),qrcodeTemplateCreate:"/".concat(e,"/qr-code/templates/new"),qrcodeDetail
1:"/".concat(e,"/qr-code/detail"),BioPage:"/".concat(e,"/bio-page"),bioPageSubmissions:"/".concat(e,"/bio-page/submissions"),bioPageBuild:t=>"/".concat(e,"/bio-page/").concat(t,"/build"),formsUrl:"/".concat(e,"/forms"),formsCreate:"/".concat(e,"/forms/create"),formsEdit:t=>"/".concat(e,"/forms/create?id=").concat(t),formsSubmissions:"/".concat(e,"/forms/submissions"),formsFormSubmissions:t=>"/".concat(e,"/forms/").concat(t,"/submissions"),createTemplate:"/".concat(e,"/create/templates"),shareTemplate:"/".concat(e,"/create/templates/share"),billingSetting:"/".concat(e,"/settings/billing"),customDomain:"/".concat(e,"/settings/custom-domain"),usage:"/".concat(e,"/settings/usage"),userManagement:"/".concat(e,"/settings/groups"),CampaignsPage:"/".concat(e,"/campaigns"),integrations:"/".concat(e,"/integrations")}}t.Z={home:"/",about:"/about",platform:"/platform",products:{urlShortener:"".concat(n,"/url-shortener"),qrCodes:"".concat(n,"/qr-codes"),smartPages:"".concat(n,"/link-in-bio")},pricing:"/pricing",blog:"/blog",login:"/login",signup:"/signup",editor:"/dashboard",pricing:"/pricing",resetPassword:"/reset-password",mfaReset:"/mfa-reset",verifyEmail:"/verify-email",forgotPassword:"/forgot-password",privacyPolicy:"/privacy-policy",termsAndConditions:"/terms-and-conditions",qrCodeScannerOnline:"/qr-code-scanner-online",freeQrCodeGenerator:"/free-qr-code-generator",qrForBusiness:"/qr-codes-for",qrCodesOn:"/qr-codes-on",freeUtmBuilder:"/free-utm-generator",businessCardMaker:"/business-card-maker",instagramBioGenerator:"/instagram-bio-generator",whatsappLinkGenerator:"/whatsapp-link-generator",dashboardHome:"".concat(s),mySignature:"".concat(s,"/my-signatures"),shortUrl:"".concat(s,"/short-url"),shortUrlCreate:"".concat(s,"/short-url/create"),shortUrlEdit:"".concat(s,"/short-url/edit"),shortUrlBulkUpload:"".concat(s,"/short-url/bulk-upload"),shortUrlNewCreate:"".concat(s,"/short-url"),shortUrlDetail:"".concat(s,"/short-url/detail"),settingurl:"".concat(s,"/settings/profile"),qrcodeUrl:"".concat(s,"/qr-code"),qrcodeCreate:"".concat(s,"/qr-code/create"),qrcodeBulkUpload:"".concat(s,"/qr-code/bulk-upload"),qrcodeTemplates:"".concat(s,"/qr-code/templates"),qrcodeTemplateCreate:"".concat(s,"/qr-code/templates/new"),qrcodeDetail:"".concat(s,"/qr-code/detail"),BioPage:"".concat(s,"/bio-page"),bioPageSubmissions:"".concat(s,"/bio-page/submissions"),formsUrl:"".concat(s,"/forms"),formsCreate:"".concat(s,"/forms/create"),formsEdit:"".concat(s,"/forms/create"),formsSubmissions:"".concat(s,"/forms/submissions"),createTemplate:"".concat(s,"/create/templates"),shareTemplate:"".concat(s,"/create/templates/share"),profileSetup:"/profile-setup",billingSetting:"/dashboard/settings/billing",customDomain:"/dashboard/settings/custom-domain",usage:"".concat(s,"/settings/usage"),userManagement:"".concat(s,"/settings/groups"),CampaignsPage:"".concat(s,"/campaigns"),integrations:"".concat(s,"/integrations"),NoAuthshortUrl:"/url_shortener",NoAuthqrcodeUrl:"/qrcode_generator",admin:{dashboard:"".concat(a,"/dashboard"),profile:"".concat(a,"/profile"),users:{manage:"".concat(a,"/users"),addUser:"".concat(a,"/users/add-user"),editUser:"".concat(a,"/users/edit")},blogs:{list:"".concat(a,"/blog"),create:"".concat(a,"/blog/create"),edit:"".concat(a,"/blog/edit")},mfa:"".concat(a,"/mfa"),plan:{list:"".concat(a,"/plans"),mange:"".concat(a,"/users")},subscribers:{list:"".concat(a,"/subscribers"),add:"".concat(a,"/subscribers/add"),edit:"".concat(a,"/subscribers/edit")},webhooksLogs:{list:"".concat(a,"/webhookslogs")}},social:{x:"https://x.com/weely_ai",instagram:"https://www.instagram.com/weely_ai",linkedin:"https://www.linkedin.com/company/weely-ai",pinterest:"https://www.pinterest.com/weely_ai"}}},30721:function(e,t,r){"use strict";r.d(t,{M:function(){return s},Td:function(){return n}});let a=(0,r(39129).oM)({name:"UserDetails",initialState:{UserData:null},reducers:{setUserData:(e,t)=>{e.UserData=t.payload},patchUserData:(e,t)=>{if(t.payload&&"object"==typeof t.payload){if(!e.UserData){e.UserData={...t.payload};return}e.UserData={...e.UserData,...t.payload}}}}}),{setUserData:s,patchUserData:n}=a.actions;t.ZP=a.reducer},83266:function(e,t,r){"use strict";r.d(t,{BU:function(){return y},Gs:function(){return w},N9:function(){return u},Oe:function(){return N},P7:function(){return d},T0:function(){return k},UF:function(){return m},Wy:function(){return f},Z9:function(){return p},cJ:function(){return g},d3:function(){return n},f5:function(){return i},iv:function(){return h},jn:function(){return c},kF:function(){return v},rN:function(){return b},u7:function(){return x},xn:function(){return j}});var a=r(39129),s=r(18697);let n=(0,a.hg)("planSubscription/fetchPlanSubscriptionUsage",async(e,t)=>{var r,a,n,l;let{rejectWithValue:o}=t;
1try{let e=sessionStorage.getItem("auth_token"),t=await s.Z.get("".concat("https://app.weely.ai","/api/v1/subscriptions/billingdetails"),{headers:{Authorization:"Bearer ".concat(e)}}),l=(null===(r=t.data)||void 0===r?void 0:r.currentSubscription)||null,o=(null===(a=t.data)||void 0===a?void 0:a.plans)||{},i=(null==l?void 0:l.planId)?o[l.planId]:null,c=l?{_id:l.id,status:l.status,startedAt:l.startedAt,expiresAt:l.expiresAt,activeTill:l.activeTill,canceledAt:l.canceledAt,period:l.period,currency:l.currency,plan:i||null}:null,d=null;if(e)try{let t=await s.Z.get("".concat("https://app.weely.ai","/api/users/get-user-data"),{headers:{Authorization:"Bearer ".concat(e)}}),r=(null===(n=t.data)||void 0===n?void 0:n.subscription)||null;d=(null==r?void 0:r.usage)||null,!(null==c?void 0:c.plan)&&(null==r?void 0:r.plan)&&(c=c?{...c,plan:r.plan}:{...r,plan:r.plan}),!c&&r&&(c=r)}catch(e){}return{subscription:c,plan:(null==c?void 0:c.plan)||null,usage:d}}catch(e){try{let e=(await s.Z.get("".concat("https://app.weely.ai","/api/users/get-user-data"),{headers:{Authorization:"Bearer ".concat(token)}})).data.subscription||null;return{subscription:e,plan:(null==e?void 0:e.plan)||null,usage:(null==e?void 0:e.usage)||null}}catch(e){return o((null===(l=e.response)||void 0===l?void 0:l.data)||"Failed to fetch subscription data")}}}),l=(0,a.oM)({name:"planSubscription",initialState:{subscription:null,plan:null,usage:null,status:"idle",error:null},reducers:{clearPlanSubscription:e=>{e.subscription=null,e.plan=null,e.usage=null,e.status="idle",e.error=null},incrementRedirectUsage:e=>{e.usage?e.usage.redirectUsed=(e.usage.redirectUsed||0)+1:e.usage={redirectUsed:1}},incrementShortUrlBulkUpload:(e,t)=>{e.usage.bulkUploadUsed=t.payload}},extraReducers:e=>{e.addCase(n.pending,e=>{e.status="loading",e.error=null}).addCase(n.fulfilled,(e,t)=>{e.status="succeeded",e.subscription=t.payload.subscription,e.plan=t.payload.plan,e.usage=t.payload.usage,e.error=null}).addCase(n.rejected,(e,t)=>{e.status="failed",e.error=t.payload||"Failed to fetch subscription data"})}}),{clearPlanSubscription:o,incrementRedirectUsage:i,incrementShortUrlBulkUpload:c}=l.actions;t.ZP=l.reducer;let d=e=>e.planSubscription.subscription,u=e=>e.planSubscription.plan,m=e=>e.planSubscription.usage,p=e=>e.planSubscription.status,h=e=>t=>{let r=t.planSubscription.plan;if(!r||!Array.isArray(r.features))return;let a=String(e||"").trim().toLowerCase();return r.features.find(e=>String((null==e?void 0:e.key)||"").trim().toLowerCase()===a)},f=e=>{let t=h("shortLinks")(e);return t&&Number(t.value)||0},x=e=>{let t=h("qrCodes")(e);if(!t)return 0;let r=Number(t.value);return isNaN(r)||0===r?"unlimited":r},b=e=>{let t=h("bulkUpload")(e);if(!t||!t.value)return 0;let r=String(t.value).match(/^\d+/),a=r?Number(r[0]):0;return 0===a?"unlimited":a},g=e=>{let t=h("utmBuilder")(e);return(null==t?void 0:t.value)===!0||(null==t?void 0:t.value)==="true"},v=e=>{let t=h("customDomain")(e);return(null==t?void 0:t.value)===!0||(null==t?void 0:t.value)==="true"},y=e=>{let t=h("redirects")(e);return t&&Number(t.value)||0},w=e=>{let t=h("bioPages")(e);return t&&Number(t.value)||0},j=e=>{let t=h("qrStyleTemplates")(e);if(!t)return 0;let r=Number(t.value);return isNaN(r)||0===r?"unlimited":r},N=e=>{let t=h("groupsAccess")(e)||h("groupAccess")(e)||h("groups")(e);return(null==t?void 0:t.value)===!0||(null==t?void 0:t.value)==="true"||k(e)>0},k=e=>{let t=h("groupMembers")(e)||h("groupsMembers")(e)||h("groupMember")(e);return t&&Number(t.value)||0}},11206:function(){},5794:function(e){e.exports={headerWrapper:"Header_headerWrapper__qXHXM",headerItems:"Header_headerItems__IrE9G",headerLeft:"Header_headerLeft__1dXQU",headerImg:"Header_headerImg__I6DMe",headerCenter:"Header_headerCenter__9OO5O",headerRight:"Header_headerRight__zXV9n",bgBlue:"Header_bgBlue__sMtZr",dropdown:"Header_dropdown__bA5rj","dropdown-menu":"Header_dropdown-menu__Tymdg",dropdownItem:"Header_dropdownItem__8q97q",Offcanvas:"Header_Offcanvas__fgLRo"}}}]);
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.