PageSourceSearch

https://lecollectif.tv/assets/client.briefs._id-BX798-sZ.js

js lecollectif.tv collected 2026-09-30 06:38:54 UTC 16,522 bytes, 1 lines download raw bytes

1import{d as T,V as O,P as q,r as c,u as F,j as e,L as I,c as B,t as g}from"./index-r9cUOzRa.js";import{A as U}from"./AppShell-DvW6AB7o.js";import{i as $}from"./shot-images-CcbTMOFr.js";import{u as G,a as h,s as f,P as V}from"./demo-store-ZrvIcuC2.js";import{A as X}from"./arrow-left-D5RLes6A.js";import{C as j}from"./check-BbU_BBHd.js";import{P as J}from"./pencil-2U5yyGsy.js";import{L as K}from"./loader-circle-BJSgGe5S.js";import{M as Q}from"./map-pin-BUZTJy6U.js";import{C as W}from"./calendar-xNq9XYWT.js";import{U as R}from"./users-CeYsQWva.js";import{X as Y}from"./x-jYWOFlDa.js";import{S as Z}from"./sparkles-DzGU4A5O.js";import{S as ee}from"./shield-alert-ClIPRcLQ.js";import{D as se}from"./download-B3I43hau.js";import"./Footer-CByVw6dE.js";import"./logo-lc.svg.asset-CBSHmlfa.js";import"./chevron-down-C5hlrNDr.js";import"./hoian-lanterns.jpg.asset-Bg-hik4t.js";const te=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],ae=T("radar",te);const re=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ie=T("send",re),L=[{tag:"#alpineliving",growth:"+31%"},{tag:"#nordicwinter",growth:"+19%"},{tag:"#luxuryskihotel",growth:"+24%"},{tag:"#winterwellness",growth:"+17%"},{tag:"#boutiqueskihotel",growth:"+12%"},{tag:"#skiresort",growth:"+28%"},{tag:"#mountainluxury",growth:"+22%"},{tag:"#snowhotel",growth:"+15%"},{tag:"#apresski",growth:"+33%"},{tag:"#wintertravel",growth:"+21%"},{tag:"#luxurytravel",growth:"+18%"},{tag:"#vietnamresort",growth:"+26%"},{tag:"#ecolodge",growth:"+14%"},{tag:"#foodietravel",growth:"+29%"},{tag:"#gastronomy",growth:"+23%"},{tag:"#finedining",growth:"+20%"},{tag:"#cheftable",growth:"+16%"},{tag:"#winterfood",growth:"+11%"},{tag:"#suitestay",growth:"+25%"},{tag:"#resortlife",growth:"+13%"}];function ne(t,s){return t.length===s.length&&t.every((r,n)=>r===s[n])}function le(t){let s=L.slice(0,5),r=s.map(i=>i.tag),n=0;do s=[...L].sort(()=>Math.random()-.5).slice(0,5),r=s.map(o=>o.tag),n++;while(t.length>0&&ne(r,t)&&n<50);return{selected:s,selectedTags:r}}function Me(){G();const{id:t}=O.useParams(),s=h(d=>d.briefs.find(x=>x.id===t)),r=h(d=>d.submissions.filter(x=>x.briefId===t));if(!s)throw q();const i=r.flatMap(d=>d.clips).length,[o,p]=c.useState("brief"),m=s.status==="draft",[a,l]=c.useState(!1),[b,N]=c.useState(!1),P=F(),v=c.useRef([]),[k,w]=c.useState(s.title),[y,S]=c.useState(s.objective),[z,C]=c.useState(s.audience),[D,A]=c.useState(s.specificShots??"");function _(){f.updateBrief(s.id,{title:k.trim()||s.title,objective:y.trim()||s.objective,audience:z.trim()||s.audience,specificShots:D.trim()||void 0}),l(!1),g.success("Draft updated")}async function E(){N(!0),await new Promise(u=>setTimeout(u,400));const{selected:d,selectedTags:x}=le(v.current);v.current=x,f.updateBrief(s.id,{trendingTopics:d.map(u=>({tag:u.tag,volume:"",growth:u.growth})),hashtags:x}),g.success("Social listening refreshed"),N(!1)}function H(){f.updateBrief(s.id,{status:"live"}),g.success("Brief published"),P({to:"/client/briefs"})}return e.jsxs(U,{children:[e.jsxs(I,{to:"/client/briefs",className:"mb-4 inline-flex items-center gap-1.5 text-xs font-semibold text-ink-soft hover:text-ink",children:[e.jsx(X,{className:"size-3.5"})," All briefs"]}),m?e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-dashed border-border bg-card p-3",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-ink-soft",children:"Draft mode — not yet visible to creators."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a?e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>{l(!1),w(s.title),S(s.objective),C(s.audience),A(s.specificShots??"")},className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background px-3 py-1.5 text-xs font-semibold text-ink-soft hover:text-ink",children:"Cancel"}),e.jsxs("button",{onClick:_,className:"inline-flex items-center gap-1.5 rounded-full bg-ink px-3 py-1.5 text-xs font-semibold text-paper",children:[e.jsx(j,{className:"size-3.5"})," Save changes"]})]}):e.jsxs("button",{onClick:()=>l(!0),className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background px-3 py-1.5 text-xs font-semibold text-ink hover:bg-secondary",children:[e.jsx(J,{className:"size-3.5"})," Edit"]}),e.jsxs("button",{onClick:E,disabled:b,className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background px-3 py-1.5 text-xs font-semibold text-ink hover:bg-secondary disabled:opacity-60",children:[b?e.jsx(K,{className:"size-3.5 animate-spin"}):e.jsx(ae,{className:"size-3.5"}),b?"Recalling…":"Recall social listening"]}),e.jsxs("button",{onClick:H,className:"inline-flex items-center gap-1.5 rounded-full bg-brand-gradient px-4 py-1.5 text-xs font-semibold text-white shadow-pop",children:[e.jsx(ie,{className:"size-3.5"})," Submit brief"]})]})]}):null,e.jsxs("div",{className:"overflow-hidden rounded-3xl border border-border bg-card shadow-card",children:[e.jsxs("div",{className:"relative aspect-[21/8]",children:[e.jsx("img",{src:s.cover,alt:s.title,className:"size-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-ink/80 via-ink/30 to-transparent"}),e.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-6 text-white sm:p-8",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"rounded-full bg-white/15 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider backdrop-blur",children:s.code}),e.jsx("span",{className:B("rounded-full px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider backdrop-blur",s.status==="live"?"bg-success/90 text-white":"bg-white/15 text-white"),children:s.status}),e.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider opacity-80",children:s.brand})]}),m&&a?e.jsx("input",{value:k,onChange:d=>w(d.target.value),className:"mt-2 w-full rounded-lg bg-white/10 px-3 py-2 font-display text-3xl font-extrabold text-white placeholder-white/60 outline-none ring-1 ring-white/30 backdrop-blur focus:ring-white sm:text-4xl"}):e.jsx("h1",{className:"mt-2 font-display text-3xl font-extrabold sm:text-4xl",children:s.title}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-4 text-xs opacity-80",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(Q,{className:"size-3.5"})," ",s.location]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(W,{className:"size-3.5"})," Due ",new Date(s.deadline).toLocaleDateString()]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(R,{className:"size-3.5"}
1)," Budget $",s.budget.toLocaleString()]})]})]})]}),e.jsxs("div",{className:"flex gap-2 border-b border-border p-2",children:[e.jsx(M,{active:o==="brief",onClick:()=>p("brief"),children:"The brief"}),e.jsxs(M,{active:o==="submissions",onClick:()=>p("submissions"),children:["Submissions",e.jsx("span",{className:"ml-2 rounded-full bg-brand-gradient px-2 py-0.5 text-[10px] font-bold text-white",children:i})]})]}),e.jsx("div",{className:"p-6 sm:p-8",children:o==="brief"?e.jsx(oe,{brief:s,editing:m&&a,draftObjective:y,setDraftObjective:S,draftAudience:z,setDraftAudience:C,draftSpecificShots:D,setDraftSpecificShots:A}):e.jsx(de,{briefId:s.id})})]})]})}function M({active:t,onClick:s,children:r}){return e.jsx("button",{onClick:s,className:B("rounded-xl px-4 py-2 text-sm font-semibold transition-colors",t?"bg-ink text-paper":"text-ink-soft hover:bg-secondary"),children:r})}function oe({brief:t,editing:s,draftObjective:r,setDraftObjective:n,draftAudience:i,setDraftAudience:o,draftSpecificShots:p,setDraftSpecificShots:m}){return e.jsxs("div",{className:"grid gap-8 lg:grid-cols-[1fr_320px]",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("section",{children:[e.jsx("h3",{className:"font-display text-lg font-bold",children:"Objective"}),s?e.jsx("textarea",{value:r,onChange:a=>n?.(a.target.value),rows:4,className:"mt-2 w-full rounded-lg border border-border bg-background p-3 text-sm text-ink outline-none focus:ring-2 focus:ring-ink/20"}):e.jsx("p",{className:"mt-1 text-sm text-ink-soft",children:t.objective})]}),e.jsxs("section",{children:[e.jsx("h3",{className:"font-display text-lg font-bold",children:"Audience"}),s?e.jsx("textarea",{value:i,onChange:a=>o?.(a.target.value),rows:2,className:"mt-2 w-full rounded-lg border border-border bg-background p-3 text-sm text-ink outline-none focus:ring-2 focus:ring-ink/20"}):e.jsx("p",{className:"mt-1 text-sm text-ink-soft",children:t.audience})]}),(t.specificShots&&t.specificShots.trim().length>0||s)&&e.jsxs("section",{children:[e.jsx("h3",{className:"font-display text-lg font-bold",children:"Specific shot requests"}),s?e.jsx("textarea",{value:p,onChange:a=>m?.(a.target.value),rows:4,className:"mt-2 w-full rounded-lg border border-border bg-background p-3 text-sm text-ink outline-none focus:ring-2 focus:ring-ink/20"}):e.jsx("p",{className:"mt-1 text-sm text-ink-soft",children:t.specificShots})]}),e.jsxs("section",{children:[e.jsx("h3",{className:"font-display text-lg font-bold",children:"Shot list"}),e.jsx("ol",{className:"mt-3 space-y-2",children:t.shotList.map((a,l)=>e.jsxs("li",{className:"flex gap-3 rounded-xl border border-border bg-background p-3",children:[e.jsx("span",{className:"grid size-7 shrink-0 place-items-center rounded-full bg-ink text-xs font-bold text-paper",children:l+1}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"font-semibold text-ink",children:a.title}),e.jsxs("span",{className:"text-xs text-ink-soft",children:[a.duration,"s"]})]}),e.jsx("div",{className:"mt-0.5 text-xs text-ink-soft",children:a.description})]})]},a.id))})]}),e.jsxs("div",{className:"rounded-xl border border-border/60 bg-secondary/40 p-4 text-xs text-ink-soft",children:[e.jsx("span",{className:"font-semibold text-ink",children:"Disclaimer:"})," These shots are suggested based on trending content and may not be suitable for every property or location. Adapt as needed for your specific venue."]}),e.jsxs("section",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[e.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Do"}),e.jsx("ul",{className:"space-y-1.5 text-sm",children:t.doDont.do.map((a,l)=>e.jsxs("li",{className:"flex gap-2",children:[e.jsx(j,{className:"mt-0.5 size-4 shrink-0 text-success"})," ",a]},l))})]}),e.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[e.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Don't"}),e.jsx("ul",{className:"space-y-1.5 text-sm",children:t.doDont.dont.map((a,l)=>e.jsxs("li",{className:"flex gap-2",children:[e.jsx(Y,{className:"mt-0.5 size-4 shrink-0 text-destructive"})," ",a]},l))})]})]})]}),e.jsxs("aside",{className:"space-y-5",children:[e.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Trending now"}),e.jsx("div",{className:"mt-2 space-y-2",children:t.trendingTopics.map(a=>e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{className:"font-semibold",children:a.tag}),e.jsx("span",{className:"text-xs text-success",children:a.growth})]},a.tag))})]}),e.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Hashtags"}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:t.hashtags.map(a=>e.jsx("span",{className:"rounded-full bg-brand-soft px-2.5 py-1 text-xs font-medium text-ink",children:a},a))})]}),e.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Deliverables"}),e.jsx("div",{className:"mt-2 space-y-1.5 text-sm",children:t.deliverables.map((a,l)=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{children:V[a.platform]}),e.jsxs("span",{className:"text-xs text-ink-soft",children:[a.duration,"s · ",a.aspect]})]},l))})]})]})]})}function de({briefId:t}){const s=h(r=>r.submissions.filter(n=>n.briefId===t));return s.length===0?e.jsxs("div",{className:"rounded-xl border border-dashed border-border p-10 text-center text-sm text-ink-soft",children:[e.jsx(Z,{className:"mx-auto mb-2 size-5 text-brand-magenta"}),"Assets will appear here once your brief is approved and shoot is complete."]}):e.jsx("div",{className:"space-y-8",children:s.map(r=>e.jsxs("div",{children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-display text-base font-bold",children:r.creatorName}),e.jsxs("div",{className:"text-xs text-ink-soft",children:[r.rawFileName," · ",r.rawSizeMb," MB · ",new Date(r.uploadedAt).toLocaleStr
1ing()]})]}),e.jsxs("span",{className:"rounded-full bg-secondary px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider text-ink-soft",children:[r.clips.length," clips"]})]}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:(()=>{const n=[];return r.clips.map(i=>{const o=$({title:i.title,description:i.description,tags:i.tags,excludeUrls:[...n]});return n.push(o.url),e.jsx(ce,{clip:i,submissionId:r.id,image:o},i.id)})})()})]},r.id))})}function ce({clip:t,submissionId:s,image:r}){const n=i=>{f.updateClip(s,t.id,{status:i}),g.success("Status updated")};return e.jsxs("div",{className:"overflow-hidden rounded-xl border border-border bg-background shadow-card",children:[e.jsxs("div",{className:"relative aspect-video overflow-hidden bg-secondary text-white",children:[e.jsx("img",{src:r.url,alt:r.alt,loading:"lazy",className:"size-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 via-black/10 to-black/30"}),e.jsxs("span",{className:"absolute bottom-2 right-2 rounded bg-black/60 px-1.5 py-0.5 font-display text-xs font-bold",children:[t.duration,"s"]}),e.jsxs("span",{className:"absolute left-2 top-2 rounded-full bg-black/50 px-2 py-0.5 text-[10px] font-semibold backdrop-blur",children:[t.start,"s – ",t.end,"s"]}),t.facesDetected>0?e.jsxs("span",{className:"absolute right-2 top-2 inline-flex items-center gap-1 rounded-full bg-black/50 px-2 py-0.5 text-[10px] font-semibold backdrop-blur",children:[e.jsx(R,{className:"size-3"})," ",t.facesDetected]}):null]}),e.jsxs("div",{className:"space-y-2 p-3",children:[e.jsx("div",{className:"font-semibold leading-tight text-ink",children:t.title}),e.jsx("p",{className:"text-xs text-ink-soft line-clamp-2",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-1",children:t.tags.slice(0,4).map(i=>e.jsx("span",{className:"rounded-full bg-secondary px-2 py-0.5 text-[10px] text-ink-soft",children:i},i))}),e.jsx(xe,{clip:t,setStatus:n})]})]})}function xe({clip:t}){return t.status==="needs_release"?e.jsxs("div",{className:"flex items-center gap-1.5 rounded-lg bg-warning/15 px-2 py-1.5 text-[11px] font-medium text-warning-foreground",children:[e.jsx(ee,{className:"size-3.5 text-warning"}),"Awaiting talent release (",t.releasesSigned,"/",t.facesDetected,")"]}):e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-semibold text-success",children:[e.jsx(j,{className:"size-3.5"})," Published"]}),e.jsxs("button",{className:"inline-flex items-center gap-1 rounded-full bg-ink px-3 py-1 text-[11px] font-semibold text-paper",children:[e.jsx(se,{className:"size-3"})," Download"]})]})}export{Me as component};

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.