1import{L as P,g as p,h as F,o as r,d as i,a as l,k as b,b as s,e as f,t as x,l as G,m as k,H as S,n as B,f as q,r as z,I}from"./app-784012d2.js";import{t as w}from"./toast-a46acb27.js";import{_ as N}from"./Icons-6ca55a51.js";import{_ as A}from"./TextArea-eb050b4c.js";import{_ as u}from"./TextInput-b9692cb2.js";import{_ as m}from"./InputLabel-9c2a725b.js";import{_ as t}from"./InputError-bf76cfa5.js";const E={class:"request-ad-step-3"},$={key:0,class:"upload"},L={key:1,class:"upload-image-video"},T={key:1,class:"row"},j={class:"col-md-6 col-12 mb-md-3 mb-2"},H={class:"col-md-6 col-12 mb-md-3 mb-2"},J={class:"col-12 mb-3"},R={key:2,class:"row"},O={class:"col-md-6 col-12 mb-md-3 mb-2"},Y=["value","textContent"],K={class:"col-md-6 col-12 mb-md-3 mb-2"},Q={class:"col-12 mb-2"},W={class:"form-check"},ae={__name:"RequestAdStepFive",props:{form:{required:!0}},emits:["update:modelValue"],setup(o,{emit:y}){const d=o,V=y;P(()=>{V("update:modelValue",d.form)});const c=p(null),n=p(null),g=F(()=>d.form.type==="Meta"),h=["Search campaigns","Display campaigns","Video campaigns","Shopping campaigns","Performance Max campaigns","App campaigns","Local campaigns","Discovery campaigns","Demand Gen campaigns"],M=()=>{n.value||c.value.click()},C=v=>{const e=v.target.files[0];if(!e)return;const a=["image/jpeg","image/png","video/mp4"],D=30;if(!a.includes(e.type)){w.error("Only JPG, PNG images and MP4 videos are allowed.");return}if(e.size/(1024*1024)>D){w.error("File size exceeds 30MB limit.");return}n.value=e,d.form.ad_creative_file=e},U=()=>{n.value=null,c.value.value="",d.form.ad_creative_file=null};return(v,e)=>(r(),i("div",E,[e[14]||(e[14]=l("div",{class:"border-bottom_0f1728 pb-md-4 pb-2 mb-md-4 mb-3"},[l("p",{class:"subtitle"},[l("span",{class:"text-darkblue pe-1"},"3/3"),b("Creatives and compliance")])],-1)),s(t,{message:o.form.errors.ad_creative_file},null,8,["message"]),g.value?(r(),i("div",{key:0,class:"upload-file mb-md-4 mb-3",onClick:M},[n.value?f("",!0):(r(),i("div",$,[s(N,{name:"upload"}),e[7]||(e[7]=l("p",{class:"font-14 fw-500 text-center"},[b(" Upload an image or a video. "),l("span",{class:"font-12 fw-500 d-block"},"or click to browse")],-1)),e[8]||(e[8]=l("p",{class:"font-10 fw-500"},"(Accepted formats: JPG, PNG, MP4 · Max size: 30MB)",-1))])),l("input",{ref_key:"fileInput",ref:c,type:"file",class:"d-none",accept:"image/jpeg,image/png,video/mp4",onChange:C},null,544),n.value?(r(),i("div",L,[l("p",null,x(n.value.name),1),l("i",{class:"bx bx-x",onClick:G(U,["stop"])})])):f("",!0)])):f("",!0),g.value?(r(),i("div",T,[l("div",j,[s(m,{value:"Headline"}),s(u,{type:"text",modelValue:o.form.headline,"onUpdate:modelValue":e[0]||(e[0]=a=>o.form.headline=a),class:"form-control rounded-3",error:o.form.errors.headline,placeholder:"Enter your headline"},null,8,["modelValue","error"]),e[9]||(e[9]=l("p",{class:"text-darkblue font-12 fw-600 mt-1"},"Max 40 characters",-1)),s(t,{message:o.form.errors.headline},null,8,["message"])]),l("div",H,[s(m,{value:"Destination URL"}),s(u,{type:"text",placeholder:"https://",modelValue:o.form.website,"onUpdate:modelValue":e[1]||(e[1]=a=>o.form.website=a),class:"form-control rounded-3",error:o.form.errors.website},null,8,["modelValue","error"]),s(t,{message:o.form.errors.website},null,8,["message"])]),l("div",J,[s(m,{value:"Primary text"}),s(A,{type:"text",modelValue:o.form.description,"onUpdate:modelValue":e[2]||(e[2]=a=>o.form.description=a),class:"new-textarea-control",placeholder:"Enter your text",error:o.form.errors.description},null,8,["modelValue","error"]),e[10]||(e[10]=l("p",{class:"text-darkblue font-12 fw-600"},"125 characters recommended (Max 500)",-1)),s(t,{message:o.form.errors.description},null,8,["message"])])])):(r(),i("div",R,[l("div",O,[s(m,{value:"Type of campaign"}),k(l("select",{id:"types_of_campaign","onUpdate:modelValue":e[3]||(e[3]=a=>o.form.headline=a),class:B(["form-control form-select rounded-3",{inputError:o.form.errors.headline}])},[e[11]||(e[11]=l("option",{value:"",disabled:""},"Select a campaign",-1)),(r(),i(q,null,z(h,a=>l("option",{key:a,value:a,textContent:x(a)},null,8,Y)),64))],2),[[S,o.form.headline]]),s(t,{message:o.form.errors.headline},null,8,["message"])]),l("div",K,[s(m,{value:"Domain"}),s(u,{type:"text",placeholder:"https://",modelValue:o.form.website,"onUpdate:modelValue":e[4]||(e[4]=a=>
1o.form.website=a),error:o.form.errors.website,class:"form-control rounded-3"},null,8,["modelValue","error"]),s(t,{message:o.form.errors.website},null,8,["message"])]),l("div",Q,[s(m,{value:"Google drive link - Assets and Creatives"}),s(u,{type:"text",modelValue:o.form.google_drive_link,"onUpdate:modelValue":e[5]||(e[5]=a=>o.form.google_drive_link=a),class:"form-control rounded-3",error:o.form.errors.google_drive_link,placeholder:"https://drive.google.com/"},null,8,["modelValue","error"]),s(t,{message:o.form.errors.google_drive_link},null,8,["message"])]),e[12]||(e[12]=l("div",{class:"mb-4"},[l("p",{class:"font-14 fw-600"}," Please provide a Google Drive link with all your campaign assets and creatives. You can download a sample file below to help you organize your submission "),l("a",{download:"",href:"/files/GoogleAdsSample.xlsx",class:"fon-14 fw-600 d-flex align-items-center gap-1 text-red mt-1"},[l("i",{class:"bx bxs-file-blank"}),l("span",null,"Download sample file")])],-1))])),l("div",W,[k(l("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>o.form.is_confirmed=a),id:"submit-request"},null,512),[[I,o.form.is_confirmed]]),e[13]||(e[13]=l("label",{class:"form-check-label font-12 fw-500",for:"submit-request"}," By submitting this request, I confirm that the information provided is accurate and I accept the supplierâs terms and conditions. ",-1)),s(t,{message:o.form.errors.is_confirmed},null,8,["message"])])]))}};export{ae 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.