1import{j as e,dK as Te,dl as ye,dQ as Ue,dP as Ge,r as f,x as we,A as Se,ac as Qe,I as ee,B as Q}from"./index-DyeooiXA.js";import{u as ne,b as M,d as ae,h as Me,aw as Fe,ax as Pe,ay as O,az as We,e as te,aA as Ye,O as He,a as Ve,C as Je,f as Xe,g as Ze,aB as B,aC as ea,aD as aa,aE as ta,aF as be,aG as na,B as Ae,aH as Ce}from"./AdCookerMount-CRN0RM6T.js";import{G as sa}from"./Loading-wQ4fFqG6.js";import{s as la}from"./studioLinks-D84x7wyW.js";import"./index-DImJ-TDO.js";import"./images-BwIWplKN.js";function ia({wsId:s,acctId:n,value:i,onChange:t,placeholder:m="Select or enter Ad Set ID...",className:c,disabled:p=!1,showRefreshButton:g=!0,compact:x=!1}){const I=ne(),{data:j,isLoading:v}=M({queryKey:["adsets",s,n],queryFn:async()=>await ae(n),staleTime:10*60*1e3,retry:1,enabled:!!(s&&n)}),N=Me({mutationFn:async()=>(await We(s,n),await ae(n)),onSuccess:r=>{I.setQueryData(["adsets",s,n],r)}}),_=((j==null?void 0:j.items)||[]).filter(r=>{var A;return!!((A=r.id)!=null&&A.trim())}).map(r=>({id:r.id,name:r.name||r.id,detail:r.id,searchTerms:[r.status,r.effective_status]}));return e.jsxs("div",{className:O("flex items-center gap-1",c),children:[e.jsx(Fe,{items:_,value:i,onChange:t,placeholder:m,searchPlaceholder:"Search ad sets by name or ID...",emptyMessage:n?"No matching ad sets.":"Select an ad account first.",manualLabel:"Use this ad set ID",loading:v,disabled:p||!n,compact:x,className:"flex-1"}),g&&e.jsxs(Pe,{type:"button",variant:x?"ghost":"outline",size:x?"sm":"default",className:O("shrink-0",x?"h-8 w-8 p-0":"h-14 px-3"),onClick:()=>N.mutate(),disabled:N.isPending||p||!n,title:"Sync ad sets from Meta",children:[e.jsx(Te,{className:O("h-4 w-4",N.isPending&&"animate-spin")}),!x&&e.jsx("span",{className:"ml-2",children:N.isPending?"Syncing...":"Refresh"})]})]})}function ra({wsId:s,acctId:n,value:i,onChange:t,placeholder:m="Select or enter Page ID...",className:c,disabled:p=!1,showRefreshButton:g=!0,compact:x=!1}){const I=ne(),{data:j,isLoading:v}=M({queryKey:["pages",s,n],queryFn:async()=>await te(n),staleTime:10*60*1e3,retry:1,enabled:!!(s&&n)}),[N,_]=ye.useState(null);ye.useEffect(()=>_(null),[n]);const r=Me({mutationFn:async()=>{const d=await Ye(s,n);return{fresh:await te(n),reason:(d==null?void 0:d.reason)??null}},onSuccess:({fresh:d,reason:C})=>{I.setQueryData(["pages",s,n],d),_(C)}}),A=((j==null?void 0:j.items)||[]).filter(d=>{var C;return!!((C=d.id)!=null&&C.trim())}).map(d=>({id:d.id,name:d.name||d.id,detail:d.instagram_username?`@${d.instagram_username} | ${d.id}`:d.id,imageUrl:d.profile_picture_url,searchTerms:[d.instagram_id,d.instagram_username]}));return e.jsxs("div",{className:O("flex items-center gap-1",c),children:[e.jsx(Fe,{items:A,value:i,onChange:t,placeholder:m,searchPlaceholder:"Search pages by name, ID, or Instagram...",emptyMessage:n?A.length===0?N||Ge:"No matching pages.":"Select an ad account first.",manualLabel:"Use this page ID",typedNote:Ue,loading:v,disabled:p||!n,compact:x,className:"flex-1"}),g&&e.jsxs(Pe,{type:"button",variant:x?"ghost":"outline",size:x?"sm":"default",className:O("shrink-0",x?"h-8 w-8 p-0":"h-14 px-3"),onClick:()=>r.mutate(),disabled:r.isPending||p||!n,title:"Sync pages from Meta",children:[e.jsx(Te,{className:O("h-4 w-4",r.isPending&&"animate-spin")}),!x&&e.jsx("span",{className:"ml-2",children:r.isPending?"Syncing...":"Refresh"})]})]})}const da="SEASONALITY | FORMAT | [CREATOR] | AD THEME | DESTINATION | CREATIVE LABEL";function ca(s){const n=s.split(" | ");return(n.length===5||n.length===6)&&n.every(i=>i.trim()!=="")}function oa(s,n){const i=String(s||"").trim();if(!i)return!1;const t=String(n||"").trim();if(!t)return ca(i);const m=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{(?:product|hook|ratio)\\\}/g,".+?");try{return new RegExp(`^${m}$`,"i").test(i)}catch{return!1}}const ua=24*60*60*1e3;function Re(s){const n=Date.parse(String(s.last_fired_time||"").replace(/([+-]\d{2})(\d{2})$/,"$1:$2"));return Number.isFinite(n)?n:null}function ma(s,n=Date.now()){if(s.unavailable)return"Meta reports it unavailable";const i=Re(s);if(i===null)return"No events yet";const t=Math.max(0,Math.round((n-i)/6e4));if(t<1)return"Last event just now";if(t<60)return`Last event ${t} min ago`;const m=Math.round(t/60);if(m<24)return`Last event ${m} h ago`;const c=Math.round(m/24);return`Last event ${c} ${c===1?"day":"days"} ago`}
1function fa(s,n=Date.now()){if(s.unavailable)return"needs";const i=Re(s);return i===null?"idle":n-i<=ua?"healthy":"needs"}const ha={"{{campaign.name}}":"Campaign name","{{campaign.id}}":"Campaign id","{{adset.name}}":"Ad set name","{{adset.id}}":"Ad set id","{{ad.name}}":"Ad name","{{ad.id}}":"Ad id","{{placement}}":"Placement","{{site_source_name}}":"Site source"};function ga(s){return ha[String(s||"").trim()]||""}const _a={product:"Product",hook:"Hook",ratio:"Ratio"},pa=["Seasonality","Format","Creator","Ad theme","Destination","Creative label"];function xa(s){const n=String(s||"").trim();if(!n)return pa.flatMap((c,p)=>[...p?[{text:"|",token:!1}]:[],{text:c,token:!0}]);const i=[],t=/\{(product|hook|ratio)\}/gi;let m=0;for(const c of n.matchAll(t)){const p=c.index??0;p>m&&i.push({text:n.slice(m,p),token:!1}),i.push({text:_a[c[1].toLowerCase()],token:!0}),m=p+c[0].length}return m<n.length&&i.push({text:n.slice(m),token:!1}),i}function ke(){const s=new URLSearchParams(window.location.search);return{accountId:s.get("acct")||"",workspaceId:s.get("ws")||""}}const ja=s=>s?new Date(s).toLocaleDateString(void 0,{month:"short",day:"numeric"}):"";function y({label:s,children:n,field:i,editing:t,onEdit:m,editor:c}){return i&&t===i?e.jsxs("div",{className:"ac-default-row ac-default-row--open","data-field":i,children:[e.jsx("span",{className:"ac-default-row__label",children:s}),e.jsx("div",{className:"ac-default-row__editor",children:c})]}):e.jsxs("div",{className:"ac-default-row","data-field":i,children:[e.jsx("span",{className:"ac-default-row__label",children:s}),e.jsx("span",{className:"ac-default-row__value",children:n}),i&&m?e.jsx(Q,{variant:"quiet",iconAfter:"pencil",disabled:!!t,onClick:()=>m(i),children:"Change"}):null]})}function G({title:s,children:n}){return e.jsxs("section",{className:"ac-default-group","aria-label":s,children:[e.jsx("span",{className:"ac-section-label",children:s}),e.jsx("div",{className:"ac-defaults-card",children:n})]})}function Ee({children:s}){return e.jsx("span",{className:"ac-token",children:s})}function T({saving:s,onCancel:n,onSave:i,note:t}){return e.jsxs("div",{className:"ac-default-row__foot",children:[t?e.jsx("small",{children:t}):e.jsx("span",{}),e.jsxs("span",{children:[e.jsx(Q,{variant:"quiet",onClick:n,disabled:s,children:"Cancel"}),e.jsx(Q,{variant:"primary",pending:s,pendingLabel:"Saving",onClick:i,children:"Save"})]})]})}function Aa(){var me,fe,he,ge,_e,pe,xe,je;const s=ke(),n=He(),i=ne(),[t,m]=f.useState(s.accountId),[c,p]=f.useState(s.workspaceId),[g,x]=f.useState([]),[I,j]=f.useState(!0),[v,N]=f.useState(!1),[_,r]=f.useState(null),[A,d]=f.useState(""),[C,F]=f.useState(!0),[o,se]=f.useState({default_instagram_id:"",default_page_id:"",default_adset_id:"",default_destination_url:"",default_cta:"",naming_pattern:""}),[u,W]=f.useState({default_instagram_id:"",default_page_id:"",default_adset_id:"",default_destination_url:"",default_cta:"",naming_pattern:""}),le=Ve(Je,u.default_cta),ie=()=>Object.fromEntries(B.map(([a])=>[a,""])),[P,re]=f.useState(ie),[$,Y]=f.useState(ie),[q,De]=f.useState(!1);f.useEffect(()=>{const a=()=>{const h=ke();m(h.accountId),p(h.workspaceId)},l=window.setInterval(a,500);return window.addEventListener("popstate",a),()=>{window.clearInterval(l),window.removeEventListener("popstate",a)}},[]),f.useEffect(()=>{if(!t||!c){j(!1);return}j(!0),d(""),F(!0),r(null),Promise.all([Xe(t),Ze(c,t)]).then(([a,l])=>{const h={default_instagram_id:a.default_instagram_id||"",default_page_id:a.default_page_id||"",default_adset_id:a.default_adset_id||"",default_destination_url:a.default_destination_url||"",default_cta:a.default_cta||"",naming_pattern:a.naming_pattern||""};W(h),se(h);const ve=Object.fromEntries(B.map(([Ne])=>[Ne,a[Ne]||""]));Y(ve),re(ve),x(l||[])}).catch(()=>{d("Account defaults could not be loaded."),F(!1)}).finally(()=>j(!1))},[t,c]);const Le=M({queryKey:["pages",c,t],queryFn:()=>te(t),enabled:!!(t&&c),staleTime:10*60*1e3}),Be=M({queryKey:["adsets",t],queryFn:()=>ae(t),enabled:!!t}),H=M({queryKey:["account-pixels",t],queryFn:()=>ea(t),enabled:!!t,retry:!1,staleTime:6e4}),z=M({queryKey:["account-changes",t,q],queryFn:()=>aa(t,q?20:3),enabled:!!t}),[V,Oe]=f.useState({});f.useEffect(()=>{const a=window.setTimeout(()=>Oe(_==="utm"?$:P),_==="utm"?300:0);return()=>window.clearTimeout(a)},[_,P,$]);const K=M({queryKey:["account-tracking-preview",t,V],queryFn:()=>ta(t,V),enabled:!!t&&Object.keys(V).length>0,retry:!1}),k=f.useMemo(()=>
1({page:u.default_page_id?g.filter(a=>String(a.actor_id||"")===u.default_page_id).length:0,instagram:u.default_instagram_id?g.filter(a=>String(a.ig_id||"")===u.default_instagram_id).length:0,adset:u.default_adset_id?g.filter(a=>String(a.target_adset_id||"")===u.default_adset_id).length:0,destination:u.default_destination_url?g.filter(a=>String(a.destination_url||"")===u.default_destination_url).length:0,cta:u.default_cta?g.filter(a=>String(a.cta||"")===u.default_cta).length:0,naming:g.filter(a=>oa(String(a.name||""),u.naming_pattern)).length}),[g,u]),R=(a,l)=>W(h=>({...h,[a]:l})),Ie=(a,l)=>Y(h=>({...h,[a]:l})),E=()=>{W(o),Y(P),r(null)},de=()=>{i.invalidateQueries({queryKey:["account-changes",t]}),window.dispatchEvent(new Event("adAccountsUpdated"))},D=async a=>{if(t){N(!0),d(""),F(!0);try{await Ce(t,Object.fromEntries(a.map(l=>[l,u[l]||null]))),se(l=>({...l,...Object.fromEntries(a.map(h=>[h,u[h]]))})),r(null),d("Account defaults saved."),de()}catch(l){d(l instanceof Error&&l.message?l.message:"Account defaults could not be saved."),F(!1)}finally{N(!1)}}},$e=async()=>{if(t){N(!0),d(""),F(!0);try{await Ce(t,Object.fromEntries(B.map(([a])=>[a,$[a]||""]))),re($),r(null),d("UTM defaults saved."),de()}catch(a){d(a instanceof Error&&a.message?a.message:"UTM defaults could not be saved."),F(!1)}finally{N(!1)}}},L=a=>e.jsxs("span",{className:`ac-default-usage${a?" has-usage":""}`,children:[a," of ",g.length," loaded drafts follow this"]});if(!t)return e.jsx("main",{className:"ac-settings-page ac-defaults-page",children:e.jsx(we,{state:"attention",title:"Pick an ad account first",children:"Choose an account from the Ad Studio navigation."})});if(I)return e.jsx("main",{className:"ac-settings-page ac-defaults-page",children:e.jsx(sa,{items:8})});const ce=((me=Le.data)==null?void 0:me.items)||[],w=ce.find(a=>String(a.id)===o.default_page_id),S=ce.find(a=>{var l;return String(a.instagram_id||((l=a.instagram_business_account)==null?void 0:l.id)||"")===o.default_instagram_id}),J=S?String(S.instagram_username||((fe=S.instagram_business_account)==null?void 0:fe.username)||""):"",X=(((he=Be.data)==null?void 0:he.items)||[]).find(a=>String(a.id)===o.default_adset_id),qe=o.default_cta?le.label(o.default_cta)||o.default_cta:"",Z=H.data||[],U=Z[0],ze=g.filter(a=>{var l;return(((l=a.tracking_v1)==null?void 0:l.mode)||"inherit")==="inherit"}).length,oe=B.some(([a])=>P[a]),ue=oe?B.filter(([a])=>P[a]).map(([a])=>P[a]):String(((ge=K.data)==null?void 0:ge.url_tags)||"").split("&").filter(Boolean).map(a=>decodeURIComponent(a.split("=").slice(1).join("=").replace(/\+/g," "))),Ke=((xe=(pe=(_e=K.data)==null?void 0:_e.preview)==null?void 0:pe[0])==null?void 0:xe.url)||"",b=a=>e.jsx("span",{className:"ac-default-row__none",children:a});return e.jsxs("main",{className:"ac-settings-page ac-defaults-page",children:[e.jsx("header",{className:"ac-page-head",children:e.jsxs("div",{children:[e.jsx("div",{className:"ac-page-head__title",children:e.jsx("h1",{children:"Account defaults"})}),e.jsx("p",{children:"Theo and your team start every new draft here. A draft can change any of it."})]})}),A?e.jsx(we,{status:C?"ready":"failed",title:A}):null,e.jsx("div",{className:"ac-defaults-scroll",children:e.jsxs("div",{className:"ac-defaults-grid",children:[e.jsxs("div",{className:"ac-defaults-main",children:[e.jsxs(G,{title:"Identity",children:[e.jsx(y,{label:e.jsx(be,{platform:"meta",children:"Facebook Page"}),field:"page",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx(ra,{wsId:c,acctId:t,value:u.default_page_id,onChange:a=>R("default_page_id",a),placeholder:"Choose a Page",disabled:!c,showRefreshButton:!0}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["default_page_id"]),note:L(k.page)})]}),children:o.default_page_id?e.jsxs(e.Fragment,{children:[e.jsx(Se,{name:(w==null?void 0:w.name)||o.default_page_id,seed:o.default_page_id,src:w==null?void 0:w.profile_picture_url,size:22}),(w==null?void 0:w.name)||o.default_page_id]}):b("No default Page")}),e.jsx(y,{label:e.jsx(be,{platform:"instagram",children:"Instagram"}),field:"instagram",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx(na,{wsId:c,acctId:t,value:u.default_instagram_id,onChange:a=>R("default_instagram_id",a),placeholder:"Choose an Instagram account",disabled:!c,showRefreshButton:!0}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["default_instagram_id"]),note:L(k.instagram)})]}),children:o.default_instagram_id?e.jsxs(e.Fragment,{children:[e.jsx(Se,{name:J||(S==null?void 0:S.name)||o.default_instagram_id,seed:o.default_instagram_id,src:S==null?void 0:S.profile_picture_url,size:22}),J?`@${J.replace(/^@/,"")}`:`Instagram ${o.default_instagram_id}`]}):b("No default Instagram account")}
1)]}),e.jsxs(G,{title:"Tracking",children:[e.jsx(y,{label:"Pixel",children:H.isLoading?b("Reading the pixel from Meta"):H.isError?b("Meta did not return this account's pixel"):U?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ac-default-row__strong",children:U.name||`Pixel ${U.id}`}),e.jsxs("span",{className:"ac-default-row__aside",children:[e.jsx(Qe,{kind:fa(U),size:14}),ma(U)]}),Z.length>1?e.jsxs("span",{className:"ac-default-row__aside",children:["and ",Z.length-1," more"]}):null]}):b("No pixel on this ad account")}),e.jsx(y,{label:"UTM template",field:"utm",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"ac-utm-fields",children:B.map(([a,l])=>e.jsxs("label",{children:[e.jsx("span",{className:"ac-mono",children:a}),e.jsx("input",{value:$[a]||"",onChange:h=>Ie(a,h.target.value),placeholder:l,"aria-label":l})]},a))}),e.jsxs("small",{className:"ac-default-row__help",children:["Meta macros such as ","{{campaign.id}}"," are allowed. Leave all five empty to send the standard tags; fill any one and only the filled fields are sent."]}),e.jsxs("div",{className:"ac-utm-example",children:[e.jsx("span",{children:"Example"}),e.jsx("code",{children:K.isError?"The example could not be built. Check the values.":Ke||(K.data?"Set a default destination to see the full link.":"Building the example")})]}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void $e(),note:e.jsxs(e.Fragment,{children:[ze," of ",g.length," loaded drafts inherit these"]})})]}),children:ue.length?e.jsxs("span",{className:"ac-token-line",children:[ue.map((a,l)=>{const h=ga(a);return e.jsxs("span",{className:"ac-token-line__part",children:[l?e.jsx("span",{className:"ac-dot",children:"·"}):null,h?e.jsx(Ee,{children:h}):a]},`${a}-${l}`)}),oe?null:e.jsx("span",{className:"ac-default-row__aside",children:"Standard tags"})]}):b(((je=K.data)==null?void 0:je.source)==="feature_disabled"?"Tracking is not enabled":"No UTM tags")})]}),e.jsxs(G,{title:"Creative",children:[e.jsx(y,{label:"Naming",field:"naming",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx("input",{className:"ac-default-input",value:u.naming_pattern,onChange:a=>R("naming_pattern",a.target.value),placeholder:da,"aria-label":"Naming pattern"}),e.jsxs("small",{className:"ac-default-row__help",children:["Leave it empty to name ads by the agency convention shown. Use ","{product}",", ","{hook}"," and ","{ratio}"," for the parts that change."]}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["naming_pattern"]),note:L(k.naming)})]}),children:e.jsxs("span",{className:"ac-naming",children:[e.jsx("span",{className:"ac-naming__parts",children:xa(o.naming_pattern).map((a,l)=>a.token?e.jsx(Ee,{children:a.text},l):e.jsx("span",{className:"ac-naming__glue",children:a.text},l))}),e.jsxs("small",{children:[o.naming_pattern?"Account pattern":"Agency convention"," · ",k.naming," of ",g.length," drafts follow it"]})]})}),e.jsx(y,{label:"Call to action",field:"cta",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsxs("select",{className:"ac-default-input",value:u.default_cta,onChange:a=>R("default_cta",a.target.value),"aria-label":"Call to action",children:[e.jsx("option",{value:"",children:"No default CTA"}),le.enumChoices.map(a=>e.jsx("option",{value:a.value,children:a.label},a.value))]}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["default_cta"]),note:L(k.cta)})]}),children:qe||b("No default")})]}),e.jsxs(G,{title:"Delivery",children:[e.jsx(y,{label:"Ad set",field:"adset",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx(ia,{wsId:c,acctId:t,value:u.default_adset_id,onChange:a=>R("default_adset_id",a),placeholder:"Choose an ad set",disabled:!c,showRefreshButton:!0}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["default_adset_id"]),note:L(k.adset)})]}),children:o.default_adset_id?(X==null?void 0:X.name)||o.default_adset_id:b("No default ad set")}),e.jsx(y,{label:"Destination",field:"destination",editing:_,onEdit:r,editor:e.jsxs(e.Fragment,{children:[e.jsx("input",{className:"ac-default-input",value:u.default_destination_url,onChange:a=>R("default_destination_url",a.target.value),placeholder:"https://example.com/collection","aria-label":"Destination"}),e.jsx(T,{saving:v,onCancel:E,onSave:()=>void D(["default_destination_url"]),note:L(k.destination)})]}),children:o.default_destination_url?o.default_destination_url.replace(/^https?:\/\//,""):b("No default destination")}),e.jsxs(y,{label:"Placements",children:[e.jsx("span",{className:"ac-default-row__strong",children:"Follow each ad set"}),e.jsxs("span",{className:"ac-default-row__aside",children:[e.jsx(Ae,{platform:"meta",size:14}),o.default_instagram_id?e.jsx(Ae,{platform:"instagram",size:14}):null,o.default_instagram_id?"Facebook and Instagram":"Facebook"]})]}),e.jsxs(y,{label:"Launch state",children:[e.jsx("span",{className:"ac-default-row__strong",children:"Ads are always created paused"}),e.jsxs("span",{className:"ac-default-row__aside",children:[e.jsx(ee,{name:"lock",size:13}),"Nothing can make a new Meta ad live automatically"]})]})]})]}),e.jsxs("aside",{className:"ac-defaults-side",children:[e.jsxs("section",{className:"ac-default-group","aria-label":"Meta changes",children:[e.jsx("span",{className:"ac-section-label",children:"Meta changes"}),e.jsxs("button",{type:"button",className:"ac-default-link-card",onClick:()=>n(la("/AdvantagePlus")),children:[e.jsx("span",{className:"ac-default-link-card__icon",children:e.jsx(ee,{name:"shield",size:16})}),e.jsxs("span",{children:[e.jsx("strong",{children:"What Meta may change"}),e.jsx("small",{children:"Set per format on Enhancements"})]}),e.jsxs("span",{className:"ac-default-link-card__go",children:["Edit",e.jsx(ee,{name:"chevron-right",size:12})]})]})]}),e.jsxs("section",{className:"ac-default-group","aria-label":"Changed lately",children:[e.jsx("span",{className:"ac-section-label",children:"Changed lately"}),e.jsx("div",{className:"ac-defaults-card ac-default-changes",children:z.isLoading?e.jsx("p",{children:"Reading recent changes"}):z.isError?e.jsx("p",{children:"Recent changes could not be read."}):(z.data||[]).length?(z.data||[]).map((a,l)=>e.jsxs("div",{children:[e.jsx("strong",{children:a.fields.join(", ")}
1),e.jsx("small",{children:[a.by,ja(a.at)].filter(Boolean).join(" · ")})]},`${a.at}-${l}`)):e.jsx("p",{children:"No changes in the last 180 days."})}),(z.data||[]).length>=3||q?e.jsx(Q,{variant:"quiet",size:"sm",iconAfter:q?"chevron-down":"chevron-right",className:"ac-default-more",onClick:()=>De(a=>!a),children:q?"Fewer changes":"All changes"}):null]})]})]})})]})}export{Aa as default};
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.