1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1356],{1356:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var n=t(95155),s=t(12115),r=t(61362),i=t(24033),l=t(89715),o=t(30814),c=t(91169),d=t(75882),m=t(4788),u=t(6172),x=t(36900);function p(e){let{label:a,value:t,className:s=""}=e;return null==t||""===t||Array.isArray(t)&&0===t.length?null:(0,n.jsxs)("div",{className:"min-w-0 self-start grid gap-1.5 ".concat(s),children:[(0,n.jsx)("span",{className:"text-xs font-normal text-foreground",children:a}),(0,n.jsx)("div",{className:"min-w-0 break-words text-sm font-normal leading-6 text-muted-foreground [overflow-wrap:anywhere]",children:t})]})}function g(e){let{children:a}=e,t=(0,s.useRef)(null),[r,i]=(0,s.useState)(!1),[l,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{i(!1)},[a]),(0,s.useEffect)(()=>{let e=t.current;if(!e||r)return;let a=()=>{o(e.scrollHeight>e.clientHeight+1)};if(a(),"undefined"==typeof ResizeObserver)return;let n=new ResizeObserver(a);return n.observe(e),()=>n.disconnect()},[a,r]),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("div",{ref:t,className:r?"max-h-64 overflow-y-auto whitespace-pre-wrap break-words pr-2 custom-scrollbar [overflow-wrap:anywhere]":"line-clamp-3 overflow-hidden whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:a}),l&&(0,n.jsx)("button",{type:"button",className:"mt-2 rounded-sm text-xs font-normal text-primary transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",onClick:()=>i(e=>!e),"aria-expanded":r,children:r?"Show less":"Show more"})]})}function f(e){let{title:a,summary:t,icon:l,children:o,defaultOpen:c=!1}=e,[d,m]=(0,s.useState)(c),u=s.useId();return(0,n.jsxs)("section",{className:"min-w-0 bg-card",children:[(0,n.jsxs)("button",{type:"button",className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 px-4 py-4 text-left transition-colors hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary/40 sm:px-5",onClick:()=>m(e=>!e),"aria-expanded":d,"aria-controls":u,children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:l}),(0,n.jsxs)("span",{className:"min-w-0 sm:flex sm:items-baseline sm:gap-6",children:[(0,n.jsx)("span",{className:"block text-sm font-normal text-foreground sm:w-[190px] sm:shrink-0",children:a}),(0,n.jsx)("span",{className:"mt-1 block min-w-0 line-clamp-2 break-words text-xs font-normal leading-5 text-muted-foreground sm:mt-0 sm:truncate",children:t})]}),(0,n.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,n.jsx)(r.A,{className:"h-4 w-4 text-success","aria-hidden":"true"}),(0,n.jsx)(i.A,{className:"h-4 w-4 text-muted-foreground transition-transform duration-200 ".concat(d?"rotate-180":""),"aria-hidden":"true"})]})]}),d&&(0,n.jsx)("div",{id:u,className:"min-w-0 border-t border-border px-4 py-5 sm:px-5 sm:py-6",children:o})]})}function h(e){var a;let{campaignData:t,title:s="Campaign brief",description:r="Review the full campaign summary before deploying. You will fund the vault and invite creators from the campaign page after deployment."}=e,i=Number.parseFloat(t.total_vault_amount),h=null!=(a=t.deliverables)?a:[],v=t.vault_name||"Untitled campaign",b=t.target_audience_location?"".concat(t.target_audience_type||"Audience"," in ").concat(t.target_audience_location,"."):t.target_audience_type||"Audience details are not set.",j=Number.isFinite(i)?"".concat((0,x.ne)(i,"USDC")," budget with ").concat(t.num_creators||"no"," creator slots."):"Budget and creator details are not set.",w=h.length?"".concat(h.length," ").concat(1===h.length?"deliverable":"deliverables"," configured."):"No deliverables added.",N=function(e){var a,t;let n=null!=(t=null==(a=e.payment)?void 0:a.model)?t:"custom_budget_allocation";return"cpm"===n?"Cost-per-thousand payouts with release rules configured.":"affiliate_shopify"===n?"Shopify affiliate payouts with release rules configured.":"Custom creator budget allocations with release rules configured."}(t),y=t.references.length?"".concat(t.references.length," ").concat(1===t.references.length?"reference":"references"," added."):"No reference content added.";return(0,n.jsxs)("div",{className:"grid min-w-0 gap-5",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("h2",{className:"m-0 text-[clamp(20px,3vw,24px)] font-medium text-foreground",children:s}),(0,n.jsx)("p",{className:"mt-2 max-w-[860px] text-sm font-normal leading-6 text-muted-foreground",children:r})]}),(0,n.jsxs)("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border bg-card divide-y divide-border",children:[(0,n.jsx)(f,{title:"Campaign overview",summary:v,icon:(0,n.jsx)(l.A,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),defaultOpen:!0,children:(0,n.jsxs)("div",{className:"grid min-w-0 gap-x-10 gap-y-5 md:grid-cols-2",children:[(0,n.jsx)(p,{label:"Campaign name",value:v}),(0,n.jsx)(p,{label:"Campaign niche",value:t.campaign_category.length?t.campaign_category.join(", "):"Not set"}),(0,n.jsx)(p,{label:"Description",value:(0,n.jsx)(g,{children:t.campaign_description||"No description added."})}),(0,n.jsx)(p,{label:"Campaign timeline",value:t.campaign_start_date&&t.campaign_end_date?"".concat(t.campaign_start_date," to ").concat(t.campaign_end_date):"Not set"})]})}),(0,n.jsx)(f,{title:"Audience and goals",summary:b,icon:(0,n.jsx)(o.A,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),children:(0,n.jsxs)("div",{className:"grid min-w-0 gap-x-10 gap-y-5 sm:grid-cols-2",children:[(0,n.jsx)(p,{label:"Audience type",value:t.target_audience_type||"Not set"}),(0,n.jsx)(p,{label:"Audience location",value:t.target_audience_location||"Not set"}),(0,n.jsx)(p,{label:"Audience ages",value:t.target_audience_ages.length?t.target_audience_ages.join(", "):"Not set"}),(0,n.jsx)(p,{label:"Negotiation",value:null===t.allow_negotiation?"Not set":t.allow_negotiation?"Allowed":"Not allowed"})]})}),(0,n.jsx)(f,{title:"Budget and creators",summary:j,icon:(0,n.jsx)(c.A,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),children:(0,n.jsxs)("div",{className:"grid min-w-0 gap-x-8 gap-y-5 sm:grid-cols-2 lg:grid-cols-4",children:[(0,n.jsx)(p,{label:"Campaign budget",value:Number.isFinite(i)?(0,x.ne)(i,"USDC"):"Not set"}),(0,n.jsx)(p,{label:"Number of creators",value:t.num_creators||"Not set"}),(0,n.jsx)(p,{label:"Minimum followers",value:t.min_followers||"Not set"}),(0,n.jsx)(p,{label:"Visibility",value:"public"===t.visibility?"Public":"Private"})]})}),(0,n.jsx)(f,{title:"Deliverables",summary:w,icon:(0,n.jsx)(u.d9,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),children:h.length?(0,n.jsx)("div",{className:"min-w-0 divide-y divide-border",children:h.map((e,a)=>(0,n.jsxs)("article",{className:"min-w-0 py-5 first:pt-0 last:pb-0",children:[(0,n.jsxs)("div",{className:"mb-4 flex min-w-0 flex-wrap items-center justify-between gap-2",children:[(0,n.jsxs)("h4",{className:"m-0 text-sm font-medium text-foreground",children:["Brief ",a+1]}),(0,n.jsx)("span",{className:"max-w-full truncate rounded-full bg-secondary px-2.5 py-1 text-xs font-normal text-muted-foreground",children:e.platform||t.post_type||"Platform not set"})]}),(0,n.jsxs)("div",{className:"grid min-w-0 gap-x-8 gap-y-4 sm:grid-cols-2 lg:grid-cols-3",children:[(0,n.jsx)(p,{label:"Content type",value:e.contentType||"Not set"}),(0,n.jsx)(p,{label:"Content format",value:e.contentFormat||t.content_format||"Not set"}),(0,n.jsx)(p,{label:"Timeline",value:function(e){let a=[e.startDate,e.startTime].filter(
1Boolean).join(" "),t=[e.endDate,e.endTime].filter(Boolean).join(" ");return a||t?t?a?"".concat(a," to ").concat(t):t:a:"Not set"}(e)}),(0,n.jsx)(p,{label:"Metric",value:e.metric||"Not set"}),(0,n.jsx)(p,{label:"Metric target",value:e.metricTarget||"Not set"})]}),(0,n.jsxs)("div",{className:"mt-5 grid min-w-0 gap-x-8 gap-y-5 md:grid-cols-2",children:[(0,n.jsx)(p,{label:"Brief",value:(0,n.jsx)(g,{children:e.description||"Not set"})}),(0,n.jsx)(p,{label:"Caption",value:(0,n.jsx)(g,{children:e.caption||"Not set"})}),(0,n.jsx)(p,{label:"Hashtags",value:e.hashtags.length?e.hashtags.join(", "):"Not set"}),(0,n.jsx)(p,{label:"Mentions",value:e.mentions.length?e.mentions.join(", "):"Not set"})]})]},"".concat(e.platform||"deliverable","-").concat(a)))}):(0,n.jsx)("p",{className:"m-0 text-sm font-normal text-muted-foreground",children:"No deliverables added."})}),(0,n.jsx)(f,{title:"Payment and release rules",summary:N,icon:(0,n.jsx)(d.A,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),children:(0,n.jsx)(p,{label:"Payment model",value:N})}),(0,n.jsx)(f,{title:"Reference content",summary:y,icon:(0,n.jsx)(m.A,{className:"h-[18px] w-[18px]","aria-hidden":"true"}),children:t.references.length?(0,n.jsx)("div",{className:"min-w-0 divide-y divide-border",children:t.references.map((e,a)=>{var t;return(0,n.jsxs)("div",{className:"min-w-0 py-3 first:pt-0 last:pb-0",children:[(0,n.jsx)("div",{className:"text-xs font-normal text-foreground",children:(t=e.type,"pdf"===t?"Document ".concat(a+1):"Link ".concat(a+1))}),(0,n.jsx)("div",{className:"mt-1 min-w-0 break-all text-sm font-normal leading-6 text-muted-foreground",children:e.value})]},"".concat(e.type,"-").concat(e.value,"-").concat(a))})}):(0,n.jsx)("p",{className:"m-0 text-sm font-normal text-muted-foreground",children:"No reference content added."})})]})]})}}}]);
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.