1"use strict";(self.webpackChunksimplified_web=self.webpackChunksimplified_web||[]).push([[895],{310895:(e,o,t)=>{t.r(o),t.d(o,{default:()=>oe});var n=t(683017),s=t(480050),a=t.n(s),i=t(499228),r=t(429466),l=t(764293),d=t(692877),u=t(587383),c=t(351839),b=t(270858),p=t(553218),h=t(878818),m=t(349798),k=t(904728),_=t(250090),g=t(778145),f=t(408499),x=t(903337),y=t(379274),w=t(976166),v=t(231705),C=t(90583),S=t(501271),j=t(104399),B=t(569416),A=t(162210),T=t(295903),P=t(228993);const R=()=>(0,P.jsx)(A.M,{columns:[2,2,4],spacing:[2,2,4],children:Array.from({length:8}).map((e,o)=>(0,P.jsx)(T.O,{borderRadius:"lg",h:"200px"},o))});var F=t(943658),E=t(208105),I=t(419627),N=t(704449),D=t(308520),U=t(393190),$=t(747676),L=t(783786),O=t(751872),G=t(293538),M=t(606524),H=t(282542),K=t(370336),W=t(193691),z=t(298249),V=t(90678),X=t(741065);const Y=JSON.parse('{"landing":{"title":"Your company brain. Built for everything you create.","description":"Your story, your customers, your products, and the details that make your brand yours\u2014all in one Brand Book. Give Riley and your team a shared foundation for content that sounds like you and supports your business.","action":"Build my Brand Book with Riley","subtext":"Tell Riley about your business. Review and refine your Brand Book as it takes shape.","how_title":"The context behind better content","how_description":"A logo tells people who you are. A Brand Book captures how you look, what you stand for, who you help, and what you want to say.","closing_title":"Give Riley the full picture of your business","closing_description":"Bring your brand knowledge together once, then keep it growing as your business evolves.","visuals":{"title":"Make every piece feel like your brand","tag":"Identity & voice","description":"Keep your logos, colors, typography, imagery, and writing rules together. Give everyone a clear reference for how your brand should look and sound.","feature_1":"Keep visual identity and writing guidance in one place","feature_2":"Define the rules that protect your brand\u2019s character","preview_title":"How your brand shows up","row_1":"Logos, colors & typography","detail_1":"The visual details people recognize","row_2":"Voice & writing rules","detail_2":"Your tone, preferred language, and what to avoid","row_3":"Imagery & brand assets","detail_3":"References for the look and feel of your content"},"business":{"title":"Give Riley the business behind the brief","tag":"Business context","description":"Capture your ideal customers, their needs, your products, and what sets you apart. Add content pillars and supporting documents so your next campaign starts with useful context.","feature_1":"Connect your messaging to real customer needs","feature_2":"Keep product knowledge and source material close to the work","preview_title":"What your company knows","row_1":"Customers & their needs","detail_1":"Who you serve and the problems you solve","row_2":"Products & positioning","detail_2":"What you offer and why people choose you","row_3":"Strategy & reference documents","detail_3":"Content themes, briefs, and knowledge worth keeping"},"team":{"title":"Spend less time explaining your brand again","tag":"A shared foundation","description":"Bring your team back to the same Brand Book when plans change or new work begins. Review the details, update what has changed, and give Riley a clearer starting point for the next idea.","feature_1":"Keep brand guidance accessible to your team","feature_2":"Refine the context as your business grows","preview_title":"From knowledge to creative work","row_1":"Build with Riley","detail_1":"Start with a conversation about your business","row_2":"Review your Brand Book","detail_2":"Check the details and fill in what matters","row_3":"Create with context","detail_3":"Use your brand knowledge to guide the next brief"}}}');function Z(e){let{onCreate:o,showVideo:t=!0}=e;const{t:s,i18n:a}=(0,f.$)("brandbooks",{bindI18nStore:"added"});(0,n.useEffect)(()=>{a.addResourceBundle("en","brandbooks",Y,!0,!1)},[a]);const i=e=>s(`landing.${e}`),r=[{key:"visuals",icon:W.wnj},{key:"business",icon:W.vFV},{key:"team",icon:W.zlQ}];return(0,P.jsx)(C.xWP,{hero:{title:i("title"),subtitle:i("description"),buttonSubtext:i("subtext"),heroYoutubeUrl:t?"https://www.youtube.com/embed/QwX-AHe3tfQ":void 0},aiPartners:[],shouldAnimatePartners:!1,hasPaidPlan:!0,compactSpacing:!0,buttonText:i("action"),buttonIcon:W.rro,onButtonClick:o,commonSection:{title:i("how_title"),subtitle:i("how_description")},allSections:r.map(e=>{let{key:o,icon:t}=e;return{tag:i(`${o}.tag`),title:i(`${o}.title`),description:i(`${o}.description`),features:[i(`${o}.feature_1`),i(`${o}.feature_2`)],visual:(0,P.jsxs)(b.x,{w:"full",p:{base:4,md:6},bg:"base_level_3",border:"1px solid",borderColor:"content_alpha_200",borderRadius:"xl",children:[(0,P.jsxs)(c.k,{align:"center",gap:3,mb:4,children:[(0,P.jsx)(z.J,{as:t,boxSize:5,color:"content_active"}),(0,P.jsx)(V.X,{as:"h3",fontSize:"lg",children:i(`${o}.preview_title`)})]}),[1,2,3].map(e=>(0,P.jsxs)(c.k,{gap:3,py:4,borderTop:"1px solid",borderColor:"content_alpha_200",children:[(0,P.jsx)(z.J,{as:W.Nhk,boxSize:4,mt:1,color:"content_details",flexShrink:0}),(0,P.jsxs)(b.x,{children:[(0,P.jsx)(X.x,{fontSize:"sm",fontWeight:"semibold",color:"content_active",children:i(`${o}.row_${e}`)}),(0,P.jsx)(X.x,{fontSize:"sm",color:"content_details",mt:1,children:i(`${o}.detail_${e}`)})]})]},e))]})}}),closingCta:{title:i("closing_title"),description:i("closing_description"),buttonText:i("action"),onButtonClick:o}})}var Q=t(659840),J=t(919941),q=t(699983);const ee=e=>{var o,t;const s=(0,d.S)({base:!0,md:!1}),{isDelegateFlowApp:A}
1=(0,j.useGetCurrentSite)(),[T,z]=(0,n.useState)(!1),[V,X]=(0,u.k)(),[Y,ee]=(0,u.k)(),[oe,te]=(0,u.k)(),[ne,se]=(0,u.k)(),ae=(0,j.useWorkspaceId)(),[ie,re]=(0,n.useState)(""),[le,de]=(0,u.k)(),ue=(0,l.I0)(),ce=(0,Q.k6)(),{t:be}=(0,f.$)(["brandbooks","ai","common","accounts","billing","addons"]),pe=(0,K.Z)(),he=(0,l.v9)(e=>e.brandbooksStore),{brandkitPayload:me,loaded:ke,brandkitsCount:_e}=he,ge=(0,l.v9)(e=>{var o;return null===(o=e.auth.payload)||void 0===o?void 0:o.user}),fe=(0,l.v9)(e=>e.permissions.spacePermissionChecks),{canCreateBrandKit:xe}=fe,ye=(0,l.v9)(e=>{var o;return null===(o=e.apps.common)||void 0===o?void 0:o.features}),we=(0,n.useMemo)(()=>(0,J.zZ)(ye,j.FeatureCodes.BRANDKIT),[ye]),ve=(0,n.useMemo)(()=>(null===we||void 0===we?void 0:we.usage_limit)&&_e>=we.usage_limit,[we,_e]),[Ce,Se]=(0,n.useState)(!1),[je,Be]=(0,u.k)(),[Ae,Te]=(0,n.useState)({state:!1,brandbook:null}),{checkFeatureAvailability:Pe}=(0,F.Z)(),Re=(0,n.useMemo)(()=>Pe(j.FeatureCodes.BRANDKIT),[Pe]),{canChangeSubscription:Fe}=(0,l.v9)(e=>e.permissions.workspacePermissionChecks),[Ee]=(0,j.useLocalStorage)(j.LAST_SELECTED_SECTION_KEY),Ie=(0,y.UO)(),Ne=(null===ge||void 0===ge||null===(o=ge.context)||void 0===o||null===(t=o.ui_state)||void 0===t?void 0:t.selected_product)||Ee,De=(null===Ie||void 0===Ie?void 0:Ie.env)||Ne,Ue=(0,l.v9)(e=>e.apps[De]||e.apps[j.PRODUCTS.ALL]),$e=null===Ue||void 0===Ue?void 0:Ue.is_free_plan;function Le(){ue((0,r.QX)())}(0,n.useEffect)(()=>{Le(),function(){let e=Ue;if(!e)return;(null===e||void 0===e?void 0:e.trial_remaining_days)<0?z(!0):null==(null===e||void 0===e?void 0:e.trial_remaining_days)&&e.hasOwnProperty("status")&&e.status===j.BILLING_SUBSCRIBED_PLAN_STATUS_PAUSED?((0,j.analyticsTrackEvent)("resumeSubscriptionModalOpened"),Se(!0)):z(!1)}()},[]);const Oe=(0,n.useCallback)(e=>{ce.push({pathname:(0,w.Gn)(j.DYNAMIC_BRANDBOOK_PATH,{brandbookId:e.id})})},[ce]),Ge=(0,n.useCallback)(()=>{ue((0,H.HJ)({addonCategory:j.AddonCategories.BRANDBOOK,addonType:j.SUBSCRIPTION_BASED_ADDON,product:De,hideToggleSwitch:!0}))},[ue,De]),Me=(0,n.useCallback)(()=>{Re&&!ve?xe?(te.on(),ue((0,r.ox)(_e,{...e})).then(e=>{Oe(e),ue((0,L.kb)(ae,O.R2))}).catch(e=>{var o;(null===(o=e.response)||void 0===o?void 0:o.status)===j.HTTP_STATUS_QUOTA_EXHAUSTED_429&&($e?se.on():Ge()),ue((0,S.iM)(e))}).finally(()=>{te.off()})):(0,C.CFj)({description:be("no_brandbook_create_access",{ns:"brandbooks"}),title:be("missing_permissions",{ns:"common"}),status:"error"}):se.on()},[_e,ve,Re,xe,se,ue,Oe,Ge,e,ae,be,$e,te]),He=(0,q.vW)(e=>e.resetChat),Ke=(0,q.vW)(e=>e.setProvisioning),We=(0,q.vW)(e=>e.setPendingAutoSubmit),ze=(0,n.useCallback)(()=>{Re&&!ve?xe?(He(),Ke({brandBook:{ready:!0,id:null,title:null}}),We(q.OF),ce.push(`${j.NEXUS_PATH}/${j.DEFAULT_NEXUS_AGENT_SLUG}`)):(0,C.CFj)({description:be("no_brandbook_create_access",{ns:"brandbooks"}),title:be("missing_permissions",{ns:"common"}),status:"error"}):se.on()},[ce,He,Ke,We,Re,ve,xe,se,be]),Ve=(0,n.useCallback)((e,o)=>{ue((0,r.hZ)(e,o))},[ue]),Xe=(0,n.useCallback)(e=>ue((0,N.yg)(e,re,de)),[]),Ye=(0,n.useCallback)(()=>{re(""),ue((0,N.tl)())},[]),Ze=(0,n.useCallback)(()=>{Be.on(),ue((0,r.CC)(Ae.brandbook)).then(e=>{}).catch(e=>{ue((0,S.iM)(e))}).finally(()=>{Be.off(),Te({state:!1,brandbook:null})})},[Ae,Be,Te,ue]),Qe=s?(0,P.jsx)(P.Fragment,{}):null;return(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(B.A,{pageId:"brandbooks",sectionPath:j.BRANDKITS,containerProps:{pt:[j.DEFAULT_NAVBAR_HEIGHT,null,null,2,null],pb:s?2:4,px:s?2:4},customNavbar:Qe,bgColor:"base_level_2",children:[(0,P.jsxs)(C.jLG,{children:[(0,P.jsxs)(c.k,{direction:"row",align:"center",justify:"space-between",mb:s?0:5,children:[(0,P.jsx)(G.q,{children:(0,P.jsx)("title",{children:`${be("my_brandbooks",{ns:"brandbooks"})}${be("tab_titles.brand",{ns:"common"})}`})}),(0,P.jsxs)(b.x,{display:["none","none","none","flex"],alignItems:"center",justifyContent:"space-between",w:"full",children:[(0,P.jsx)(E.Z,{title:be("all_brandbooks",{ns:"brandbooks"}),subTitle:be("subtitle",{ns:"brandbooks"})}),(0,P.jsxs)(p.U,{align:"center",children:[(0,P.jsx)(I.Z,{handleSearch:Xe,handleEnterKeyEvent:Xe,onClear:Ye,searchPlaceholder:be("search_placeholder",{ns:"brandbooks"}
1),showNewFolderButton:!1,showFilterOptions:!1}),(0,P.jsx)(h.u,{hasArrow:!0,label:xe?"":be("no_brandbook_create_access",{ns:"brandbooks"}),children:(0,P.jsx)(m.z,{leftIcon:(0,P.jsx)(g.FaPlus,{}),onClick:ze,loadingText:be("add_loading"),variant:"solid",isLoading:oe,children:be("add")})})]})]}),(0,P.jsx)(b.x,{display:["flex","flex","flex","none"],w:"full",children:(0,P.jsx)(C.kcw,{withSearch:!0,searchPlaceholder:be("search_placeholder",{ns:"brandbooks"}),onSearch:Xe,onClearSearch:Ye,onGoBack:()=>(0,j.onClickBackButton)({history:ce})})})]}),ke?ke&&_e>0?(0,P.jsx)(k.r,{templateColumns:["repeat(auto-fill, minmax(150px, 1fr))","repeat(auto-fill, minmax(150px, 1fr))","repeat(auto-fill, minmax(150px, 1fr))","repeat(auto-fill, minmax(274px, 1fr))","repeat(auto-fill, minmax(274px, 1fr))"],autoRows:["minmax(150px, 1fr)","minmax(150px, 1fr)","minmax(150px, 1fr)",null,null],gap:["10px","10px","10px","24px","24px"],children:me.map(e=>(0,P.jsx)(_.P,{children:(0,P.jsx)(C.PVF,{brandbook:e,spacePermissionChecks:fe,onClick:()=>Oe(e),onTitleSubmit:o=>Ve(e.id,o),onDelete:e=>Te({state:!0,brandbook:e})})},e.id))}):ie.trim()?(0,P.jsx)(U.GW,{icon:W.CNP,title:be("no_results_found",{ns:"common"}),description:be("try_different_search",{ns:"common"})}):(0,P.jsx)(Z,{onCreate:ze,showVideo:!A}):(0,P.jsx)(R,{})]}),T&&(0,P.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,P.jsx)(C.XLS,{t:be,imageTextPrimary:be("modal.multiple",{ns:"common"}),imageTextSecondary:be("modal.brandbooks",{ns:"common"}),title:be("create_brandbooks_modal.title",{ns:"brandbooks"}),subtitle:be("create_brandbooks_modal.subtitle",{ns:"brandbooks"}),featureList:null===j.createBrandbooksFeatures||void 0===j.createBrandbooksFeatures?void 0:j.createBrandbooksFeatures.map(e=>({...e,title:be(e.title,{ns:e.translation}),info:be(e.info,{ns:e.translation})})),show:T,onHide:()=>z(!1),image:j.BRANDKIT_IMAGE_URL,onViewPlansHandler:()=>{pe({from:ce.location.pathname})}})}),V&&(0,P.jsx)(M.Z,{isOpen:!ne,onClose:()=>{X.off(),Le()},onManualGenerate:Me,setShowUpgradePlanModals:se}),Ce&&(0,P.jsx)(x.MM,{onResumeSubscription:async()=>{ee.on();try{await a().post(v.$ic),await ue((0,$.k)(String(null===ge||void 0===ge?void 0:ge.pk))),(0,j.analyticsTrackEvent)("subscriptionResumed"),(0,C.CFj)({description:be("resume.success.description",{ns:"billing"}),title:be("resume.success.title",{ns:"billing"}),status:"success"}),ee.off(),Se(!1)}catch(e){ee.off(),(0,S.iM)(e),(0,C.CFj)({description:be("resume.error.description",{ns:"billing"}),title:be("resume.error.title",{ns:"billing"}),status:"error"})}},isLoading:Y,onHide:()=>Se(!1),t:be,canChangeSubscription:Fe}),ne&&(0,P.jsx)(D.F,{isFeatureAvailable:Re&&!$e&&!ve,onClose:se.off}),Ae.state&&(0,P.jsx)(i.v$,{modalFor:be("header",{ns:"brandbooks"}),inProgress:je,show:Ae,onHide:()=>Te({state:!1,brandbook:null}),onYes:Ze})]})})},oe=(0,n.memo)(ee)}}]); 2//# sourceMappingURL=895.bb0283a1.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.