1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{65497:function(e,t,s){s.d(t,{Z:function(){return j}});var a=s(85893),l=s(56784),r=e=>{let{currCat:t}=e;return t?(0,a.jsx)("nav",{"aria-label":"breadcrumb",children:(0,a.jsxs)("ol",{className:"breadcrumb",children:[(0,a.jsxs)("li",{className:"breadcrumb-item text-black",children:[" ",(0,a.jsx)(l.u,{href:"/apps/cc/all",children:"All"})]}),(0,a.jsx)("li",{className:"breadcrumb-item text-black",children:t.heading})]})}):(0,a.jsx)("nav",{"aria-label":"breadcrumb",children:(0,a.jsxs)("ol",{className:"breadcrumb",children:[(0,a.jsx)("li",{className:"breadcrumb-item text-black",children:"Topics"}),(0,a.jsx)("li",{className:"breadcrumb-item text-black",children:"All"})]})})},c=s(84377),i=s(67294),n=e=>{let{lstMVs:t,mvCats:s}=e,[a,l]=(0,i.useState)(""),[r,n]=(0,i.useMemo)(()=>{if(a.length<2)return[(0,c.Cy)(t,"usage"),Object.values(s)];let e=a.toLowerCase(),l=[],r={};t.map((t,a)=>{let c=t.heading+" "+t.description+" "+t.prompt+" "+t.tags+" "+t.slug;c=c.toLocaleLowerCase();let i=s[t.cat_slug];return c.includes(e)&&i&&(l.push(t),r[t.cat_slug]=i),!1});let i=(0,c.Cy)(l,"usage");return r?[i,Object.values(r)]:[i,[]]},[t,a]);return{sTxt:a,setSTxt:l,fMVs:r,fCats:n}},o=s(43116),d=s(28086);let m={"chat-gpt-pro-business":["#2C3E50","#1A2533","linear-gradient(to bottom right, #2C3E50, #1A2533)"],"chat-gpt-pro-education":["#34495E","#1F2C3D","linear-gradient(to bottom right, #34495E, #1F2C3D)"],"chat-gpt-pro-formal-writing":["#1D3C4C","#11262C","linear-gradient(to bottom right, #1D3C4C, #11262C)"],"chat-gpt-pro-general":["#2C3335","#171C1E","linear-gradient(to bottom right, #2C3335, #171C1E)"],"chat-gpt-pro-hr-management":["#512E5F","#331E38","linear-gradient(to bottom right, #512E5F, #331E38)"],"chat-gpt-pro-legal":["#6A1B9A","#3E1454","linear-gradient(to bottom right, #6A1B9A, #3E1454)"],"chat-gpt-pro-marketing":["#7B241C","#4E1A16","linear-gradient(to bottom right, #7B241C, #4E1A16)"],"chat-gpt-pro-product-management":["#8E44AD","#5B327A","linear-gradient(to bottom right, #8E44AD, #5B327A)"],"chat-gpt-pro-sales":["#943126","#582019","linear-gradient(to bottom right, #943126, #582019)"],"chat-gpt-pro-social-media":["#B03A2E","#682A1C","linear-gradient(to bottom right, #B03A2E, #682A1C)"],"chat-gpt-pro-support":["#C0392B","#6E1E18","linear-gradient(to bottom right, #C0392B, #6E1E18)"],"hat-gpt-pro-travel":["#BA4A00","#723D00","linear-gradient(to bottom right, #BA4A00, #723D00)"],"chat-gpt-pro-writing-assistant":["#D35400","#814D00","linear-gradient(to bottom right, #D35400, #814D00)"]};var h=s(54320),g=s(49047),b=s(46517),x=e=>{let{mv:t,setShowCnt:s,setBusy:l}=e,{setCurrCC:r,asDisplay:c}=e,i=e.authCtx,n=m[t.cat_slug],o=t.heading.split(" "),d=i&&i.isLoggedIn;return c?(0,a.jsxs)("div",{className:"card h-100 shadow-hover",children:[(0,a.jsx)("div",{className:"card-img-top d-flex align-items-center",style:{minHeight:"7rem",backgroundColor:n[0],font:n[1],background:n[2]},children:(0,a.jsx)("h5",{className:"card-title px-3 p-2",style:{height:"5rem",color:"#FFFFFF"},children:(0,a.jsxs)("p",{children:[o[0],(0,a.jsx)("br",{}),o.slice(1).join(" ")," "]})})}),(0,a.jsx)("div",{className:"card-body",children:(0,a.jsx)("p",{className:"card-text",children:t.description})}),(0,a.jsx)("div",{className:"card-footer small text-primary mt-3 bg-white",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col",children:[!d&&(0,a.jsx)(h.Z,{btnTxt:"Login",btnCls:"btn btn-sm btn-dark"}),d&&(0,a.jsx)(b.C,{href:"/apps/cc/my-contents?slug=".concat(t.slug),btnIcon:"bi bi-stars",btnTxt:"Activate",btnCls:"btn btn-sm btn-dark"}),(0,a.jsx)(b.C,{href:"/apps/cc/".concat(t.cat_slug+"/"+t.slug),btnIcon:"bi bi-arrow-up-right",btnTxt:"Details",btnCls:"btn btn-sm"})]})})})]}):(0,a.jsxs)("div",{className:"card h-100 shadow-hover",children:[(0,a.jsx)("div",{className:"card-img-top d-flex align-items-center",style:{minHeight:"7rem",backgroundColor:n[0],font:n[1],background:n[2]},children:(0,a.jsx)("h5",{className:"card-title px-3 p-2 ",style:{height:"5rem",color:"#FFFFFF"},children:(0,a.jsxs)("p",{children:[o[0],(0,a.jsx)("br",{}),o.slice(1).join(" ")]})})}),(0,a.jsx)("div",{className:"card-body",children:(0,a.jsx)("p",{className:"card-text",children:t.description})}),(0,a.jsx)("div",{className:"card-footer small text-primary mt-3 bg-white",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col",children:[(0,a.jsxs)("button",{className:"btn btn-sm btn-dark",onClick:()=>{l(!0),setTimeout(()=>{r({slug:t.slug}),s(1),l(!1)},g.dl.cLoad)},children:[(0,a.jsx)("i",{className:"bi bi-stars",children:" "}),"Activate"]}),(0,a.jsx)(b.C,{href:"/apps/cc/".concat(t.catSlug+"/"+t.slug),btnIcon:"bi bi-arrow-up-right",btnTxt:"Details",btnCls:"btn btn-sm"})]})})})]})},p=e=>{let{fMVs:t,category:s,authCtx:l}=e,r=t.filter(e=>e.cat_slug===s.slug);return(0,a.jsx)("div",{className:"row mb-5",children:(0,a.jsxs)("div",{className:"col",children:[(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col",children:[(0,a.jsxs)("h1",{className:"fw-bold mt-3 ",children:[(0,a.jsx)("i",{className:"".concat(s.icon),children:" "}),s.heading," ",(0,a.jsxs)("span",{style:{fontSize:"1.5rem"},children:[" ","(",r.length," ",r.length>1?"Topics":"Topic",")"]})]}),(0,a.jsxs)("p",{className:"mb-5",children:[" ",s.description]})]})}),(0,a.jsx)("div",{className:"d-none d-lg-block",children:(0,a.jsx)("div",{className:"row row-cols-1 row-cols-lg-3 g-4",children:r.map((t,s)=>(0,a.jsx)("div",{className:"col ",children:(0,a.jsx)(x,{mv:t,authCtx:l,...e})},"templates_".concat(s)))})}),(0,a.jsx)("div",{className:"d-lg-none row d-flex flex-nowrap overflow-auto",children:r.map((t,s)=>(0,a.jsx)("div",{className:"col-10 ",children:(0,a.jsx)(x,{mv:t,authCtx:l,...e})},"templates_".concat(s)))})]})})},u=e=>{let{fMVs:t,fCats:s,authCtx:l}=e,{activeCat:r,currCat:c}=e;return!t||t.length<=0?(0,a.jsx)(d.Sh,{}):(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col",children:s.map((s,i)=>r>-1?c&&s.slug===c.slug?(0,a.jsx)(p,{category:s,fMVs:t,activeCat:r,authCtx:l,...e},"mv_".concat(i)):void 0:(0,a.jsx)(p,{category:s,fMVs:t,activeCat:r,authCtx:l,...e},"mv_".concat(i)))})})},j=e=>{let{lstCats:t,mvCats:s,currCat:l,setCurrCat:c,busy:d}=e,m=e.lstMVs,[h,g]=(0,i.useState)(-1),{sTxt:b,setSTxt:x,fMVs:p,fCats:j}=n({lstMVs:m,mvCats:s});return(0,i.useEffect)(()=>{e.activeCat>-1&&g(e.activeCat)},[e.activeCat]),(0,i.useEffect)(()=>{h>-1?c(t[h]):c(null)},[h]),(0,a.jsx)("div",{className:d?"d-none":"container mb-5 mt-3",children:(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col-3 d-none d-lg-block",children:[" ",(0,a.jsx)("div",{className:"position-sticky",style:{to
1p:"5rem",paddingTop:"1rem"},children:(0,a.jsx)(o.Z,{fCats:j,activeCat:h,setActiveCat:g,asDisplay:e.asDisplay})})]}),(0,a.jsxs)("div",{className:"col-md-8 mx-auto",children:[(0,a.jsxs)("div",{className:"row mb-3",children:[(0,a.jsx)("div",{className:"col-md-5",children:(0,a.jsx)(r,{currCat:l})}),(0,a.jsx)("div",{className:"col",children:(0,a.jsxs)("div",{className:"input-group position-relative",children:[(0,a.jsx)("input",{type:"search",className:"form-control",placeholder:"/search",value:b,onChange:e=>{g(-1),x(e.target.value)}})," ",(0,a.jsx)("p",{className:p.length>0?"small fw-bold position-absolute bottom-1 end-0 me-5 mt-2 text-success":"small fw-bold position-absolute bottom-1 end-0 me-5 mt-2 text-danger",style:{zIndex:100},children:p.length})]})})]}),(0,a.jsx)(u,{...e,fMVs:p,fCats:j,activeCat:h})]})]})})}}}]);
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.