PageSourceSearch

https://cfemag.com/build/assets/SubscriptionPage-Cr7IBBT9.js

js cfemag.com collected 2026-10-04 21:09:17 UTC 12,550 bytes, 1 lines download raw bytes

1import{c as g,o as l,a as e,r as R,Q as q,x as C,k as u,e as r,d as t,u as s,g as E,b as n,h as N,F as B,i as d,f as z,S as v,n as V,t as w}from"./app-BB9JRyaD.js";import{_ as m,a as _,d as p,c as U,b as M}from"./AppLayout-d3lxycnJ.js";import{_ as A}from"./BreadCrumbs-fqvIniE1.js";import{_ as f}from"./InputBadge-ta-eznlp.js";import{y as I,g as P}from"./radio-group-HZ9YzFSI.js";import"./ResponsiveNavLink-CYoEWmCh.js";import"./index-Drlkxqm2.js";import"./dom-9sy0YdJv.js";import"./hidden-WPsqlN3Z.js";import"./description-BWmDRYNc.js";import"./use-tree-walker-tUCJLe9A.js";import"./use-controllable-BvqkHU--.js";function D(x,h){return l(),g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"})])}const O=e("title",null,"Subscribe",-1),Y={class:"flex justify-between items-center"},Q={class:""},T={class:""},Z={"aria-labelledby":"products-heading",class:"pt-6 pb-24 max-w-6xl mx-auto"},G=e("h2",{id:"products-heading",class:"sr-only"},"Subscribe page",-1),H={class:"grid grid-cols-1 gap-x-8 gap-y-10 lg:grid-cols-4"},J={class:"lg:col-span-4 bg-white rounded-sm p-5"},K={class:"relative px-4 sm:px-8 lg:px-12 mx-auto"},W={class:"flex justify-center items-center p-8 rounded-sm bg-[url('/storage/images/main-sponsors/login-photo.jpeg')] bg-cover my-4"},X=e("h3",{class:"py-4 text-3xl font-bold my-auto bg-blue-800/40 p-3 rounded-sm"},"Subscribe to Our Magazine",-1),L=["src"],ee=["src"],se=["src"],te={class:"mx-auto max-w-2xl lg:max-w-5xl py-4 space-y-16"},oe=e("legend",{class:"text-md/6 font-semibold text-gray-900"},"Select a subscription plan",-1),ie={class:"flex flex-1"},ae={class:"flex flex-col"},re={class:"block text-sm font-medium text-gray-900"},le={class:"mt-1 flex items-center text-sm text-gray-500"},ne={class:"mt-6 text-md font-bold text-gray-900"},de={key:0},ce={class:"mt-5 space-y-6"},ue=e("div",null,[e("h5",{class:"text-md/6 font-semibold text-gray-900"},"Free Magazine Subscription information"),e("p",{class:"text-xs/6 text-gray-400"},"Enter email and name below.")],-1),me={class:"grid grid-cols-2 gap-3"},_e={class:"space-y-1"},pe={class:"flex gap-2 items-center"},fe=d(" First Name "),ge={class:"space-y-1"},ye={class:"flex gap-2 items-center"},xe=d(" Last Name "),he={class:"grid grid-cols-2 gap-3"},be={class:"space-y-1"},ve={class:"flex gap-2 items-center"},Ve=d(" Email "),we={class:"w-full flex justify-end"},ke=d(" Subscribe "),Se={key:1},Ce={key:0,class:"mt-5 space-y-6"},ze={class:"flex-col items-center justify-center justify-items-center"},Ue=e("h5",{class:"text-md/6 font-semibold text-gray-900"}," Create an account, and verify your email, or Sign in to subscribe today! ",-1),$e={class:"space-x-4 mt-4"},je=d(" Sign in "),Fe=e("span",{class:""},"or",-1),Re=d(" Create an Account "),qe={key:1,class:"mt-5 space-y-6"},Ee={class:"flex-col items-center justify-center justify-items-center"},Ne=e("h5",{class:"text-md/6 font-semibold text-gray-900"}," Verify your email to subscribe today! ",-1),Be={class:"space-x-4 mt-4 text-center"},Me=d(" Verify email here "),Ae=e("p",{class:"text-sm/7 text-gray-400 mt-2"},'Click the link above and the click the link that says "Click here to re-send the verification email."',-1),Ie={key:2,class:"mt-5 space-y-6"},Pe=e("div",null,[e("h5",{class:"text-md/6 font-semibold text-gray-900"},"Subscriber information"),e("p",{class:"text-xs/6 text-gray-400"},"Enter mailing information below.")],-1),De={class:"space-y-1"},Oe={class:"flex gap-2 items-center"},Ye=d(" Name "),Qe={class:"space-y-1"},Te={class:"flex gap-2 items-center"},Ze=d(" Company Name "),Ge={class:"grid grid-cols-2 gap-3"},He={class:"space-y-1"},Je={class:"flex gap-2 items-center"},Ke=d(" Email "),We={class:"space-y-1"},Xe={class:"flex gap-2 items-center"},Le=d(" Phone Number "),es={class:"space-y-1"},ss={class:"flex gap-2 items-center"},ts=d(" Mailing Address "),os={class:"grid grid-cols-3 gap-3"},is={class:"space-y-1"},as=e("div",{class:"flex gap-2 items-center"},[d(" City "),e("span",{class:"inline-flex items-center rounded-md bg-gray-50 px-1.5 py-0.5 text-xs font-medium text-gray-600 ring-1 ring-gray-500/10 ring-inset"},"Required")],-1),rs={class:"space-y-1"},ls=e("div",{class:"flex gap-2 items-center"},[d(" State "),e("span",{class:"inline-flex items-center rounded-md bg-gray-50 px-1.5 py-0.5 text-xs font-medium text-gray-600 ring-1 ring-gray-500/10 ring-inset"},"Required")],-1),ns={class:"space-y-1"},ds=e("div",{class:"flex gap-2 items-center"},[d(" Zip Code "),e("span",{class:"inline-flex items-center rounded-md bg-gray-50 px-1.5 py-0.5 text-xs font-medium text-gray-600 ring-1 ring-gray-500/10 ring-inset"},"Required")],-1),cs={class:"w-full flex justify-end"},us=d(" Continue to payment "),ks={__name:"SubscriptionPage",props:{current_issue:String,latest:String,latest2:String},setup(x){const h=[{id:0,title:"Free digital magazine",description:"Includes a free digital copy of the newest magazine send to your email",users:"$0",subcode:"free"},{id:1,title:"1 Year Subscription",description:"Includes 12 FREE Deluxe Classified Ads with one photo",users:"$18 per year",subcode:"1yr"},{id:2,title:"3 Year Subscription",description:"Includes 36 FREE Premier Classified Ads with up to five photos",users:"$36 for 3 years",subcode:"3yr"}];R(h[0]);const $=[{name:"Subscribe",href:"/subscribe",current:!0}],y=q().props.auth.user,o=C({selectedSub:"",name:"",company_name:"",mailing_address:"",city:"",state:"",zipcode:"",phone_number:"",email:""}),c=C({first_name:"",last_name:"",email:""});function j(){c.post("/newsletter-signup",{})}function F(){o.post(route("subscribe.store"))}return(b,a)=>(l(),u(M,null,{header:r(()=>[e("div",Y,[e("div",null,[t(A,{pages:$})])])]),default:r(()=>[t(s(E),null,{default:r(()=>[O]),_:1}),e("div",Q,[e("div",null,[e("main",T,[e("section",Z,[G,e("div",H,[e("div",J,[e("div",K,[e("div",W,[X,e("img",{class:"-rotate-45 z-0 w-32 h-auto translate-x-12",src:x.latest.do_cover_url,alt:""},null,8,L),e("img",{class:"z-10 w-48 h-auto",src:x.current_issue.do_cover_url,alt:""},null,8,ee),e("img",{class:"rotate-45 z-0 w-32 h-auto -translate-x-12",src:x.latest2.do_cover_url,alt:""},null,8,se)]),e("div",te,[e("fieldset",null,[oe,t(s(I),{modelValue:s(o).selectedSub,"onUpdate:modelValue":a[0]||(a[0]=i=>s(o).selectedSub=i),class:"mt-6 grid grid-cols-1 gap-y-6 sm:grid-cols-3 sm:gap-x-4"},{default:r(()=>[(l(),g(B,null,N(h,i=>t(s(P),{as:"template",key:i.id,value:i,"aria-label":i.title,"aria-description":`${i.description} to ${i.users}`},{default:r(({active:k,checked:S})=>[e("div",{class:V([k?"border-blue-600 ring-2 ring-blue-600":"border-gray-300","relative flex cursor-pointer rounded-lg border bg-white p-4 shadow-xs focus:outline-hidden"])},[e("span",ie,[e("span",ae,[e("span",re,w(i.title),1),e("span",le,w(i.description),1),e("span",ne,w(i.users),1)])]),t(s(D),{class:V([S?"":"invisible","w-5 h-5 text-blue-600"]),"aria-hidden":"true"},null,8,["class"]),e("span",{class:V([k?"border":"border-2",S?"border-blue-600":"border-transparent","pointer-events-none absolute -inset-px rounded-lg"]),"aria-hidden":"true"},null,2)],2)]),_:2},1032,["value","aria-label","aria-description"])),64))]),_:1},8,["modelValue"])]),s(o).selectedSub.subcode==="free"?(l(),g("div",de,[e("div",ce,[ue,e
1("div",me,[e("div",_e,[t(m,{for:"first_name"},{default:r(()=>[e("div",pe,[fe,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(c).first_name,"onUpdate:modelValue":a[1]||(a[1]=i=>s(c).first_name=i),type:"text",id:"first_name"},null,8,["modelValue"]),s(c).errors.first_name?(l(),u(p,{key:0,message:s(c).errors.first_name},null,8,["message"])):n("",!0)]),e("div",ge,[t(m,{for:"last_name"},{default:r(()=>[e("div",ye,[xe,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(c).last_name,"onUpdate:modelValue":a[2]||(a[2]=i=>s(c).last_name=i),type:"text",id:"last_name"},null,8,["modelValue"]),s(c).errors.last_name?(l(),u(p,{key:0,message:s(c).errors.last_name},null,8,["message"])):n("",!0)])]),e("div",he,[e("div",be,[t(m,{for:"email"},{default:r(()=>[e("div",ve,[Ve,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(c).email,"onUpdate:modelValue":a[3]||(a[3]=i=>s(c).email=i),type:"text",id:"email"},null,8,["modelValue"]),s(c).errors.email?(l(),u(p,{key:0,message:s(c).errors.email},null,8,["message"])):n("",!0)])]),e("div",we,[t(U,{onClick:z(j,["prevent"])},{default:r(()=>[ke]),_:1},8,["onClick"])])])])):n("",!0),s(o).selectedSub.subcode==="1yr"||s(o).selectedSub.subcode==="3yr"?(l(),g("div",Se,[s(y)?n("",!0):(l(),g("div",Ce,[e("div",ze,[Ue,e("div",$e,[t(s(v),{href:b.route("login"),class:"relative inline-flex justify-center items-center transition rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"},{default:r(()=>[je]),_:1},8,["href"]),Fe,t(s(v),{href:b.route("register"),class:"relative inline-flex justify-center items-center transition rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"},{default:r(()=>[Re]),_:1},8,["href"])])])])),s(y)&&s(y).email_verified_at===null?(l(),g("div",qe,[e("div",Ee,[Ne,e("div",Be,[t(s(v),{href:b.route("profile.index"),class:"relative inline-flex justify-center items-center transition rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"},{default:r(()=>[Me]),_:1},8,["href"]),Ae])])])):n("",!0),s(y)&&s(y).email_verified_at!==null?(l(),g("div",Ie,[Pe,e("div",De,[t(m,{for:"full_name"},{default:r(()=>[e("div",Oe,[Ye,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(o).name,"onUpdate:modelValue":a[4]||(a[4]=i=>s(o).name=i),type:"text",id:"full_name"},null,8,["modelValue"]),s(o).errors.name?(l(),u(p,{key:0,message:s(o).errors.name},null,8,["message"])):n("",!0)]),e("div",Qe,[t(m,{for:"company_name"},{default:r(()=>[e("div",Te,[Ze,t(f,{text:"Optional"})])]),_:1}),t(_,{modelValue:s(o).company_name,"onUpdate:modelValue":a[5]||(a[5]=i=>s(o).company_name=i),type:"text",id:"company_name"},null,8,["modelValue"]),s(o).errors.company_name?(l(),u(p,{key:0,message:s(o).errors.company_name},null,8,["message"])):n("",!0)]),e("div",Ge,[e("div",He,[t(m,{for:"email"},{default:r(()=>[e("div",Je,[Ke,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(o).email,"onUpdate:modelValue":a[6]||(a[6]=i=>s(o).email=i),type:"text",id:"email"},null,8,["modelValue"]),s(o).errors.email?(l(),u(p,{key:0,message:s(o).errors.email},null,8,["message"])):n("",!0)]),e("div",We,[t(m,{for:"phone_number"},{default:r(()=>[e("div",Xe,[Le,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(o).phone_number,"onUpdate:modelValue":a[7]||(a[7]=i=>s(o).phone_number=i),type:"text",id:"phone_number"},null,8,["modelValue"]),s(o).errors.phone_number?(l(),u(p,{key:0,message:s(o).errors.phone_number},null,8,["message"])):n("",!0)])]),e("div",es,[t(m,{for:"street"},{default:r(()=>[e("div",ss,[ts,t(f,{text:"Required"})])]),_:1}),t(_,{modelValue:s(o).mailing_address,"onUpdate:modelValue":a[8]||(a[8]=i=>s(o).mailing_address=i),type:"text",id:"street"},null,8,["modelValue"]),s(o).errors.mailing_address?(l(),u(p,{key:0,message:s(o).errors.mailing_address},null,8,["message"])):n("",!0)]),e("div",os,[e("div",is,[t(m,{for:"city"},{default:r(()=>[as]),_:1}),t(_,{modelValue:s(o).city,"onUpdate:modelValue":a[9]||(a[9]=i=>s(o).city=i),type:"text",id:"city"},null,8,["modelValue"]),s(o).errors.city?(l(),u(p,{key:0,message:s(o).errors.city},null,8,["message"])):n("",!0)]),e("div",rs,[t(m,{for:"state"},{default:r(()=>[ls]),_:1}),t(_,{modelValue:s(o).state,"onUpdate:modelValue":a[10]||(a[10]=i=>s(o).state=i),type:"text",id:"state"},null,8,["modelValue"]),s(o).errors.state?(l(),u(p,{key:0,message:s(o).errors.state},null,8,["message"])):n("",!0)]),e("div",ns,[t(m,{for:"zip"},{default:r(()=>[ds]),_:1}),t(_,{modelValue:s(o).zipcode,"onUpdate:modelValue":a[11]||(a[11]=i=>s(o).zipcode=i),type:"text",id:"zip"},null,8,["modelValue"]),s(o).errors.zipcode?(l(),u(p,{key:0,message:s(o).errors.zipcode},null,8,["message"])):n("",!0)])]),e("div",cs,[t(U,{onClick:z(F,["prevent"])},{default:r(()=>[us]),_:1},8,["onClick"])])])):n("",!0)])):n("",!0)])])])])])])])])]),_:1}))}};export{ks 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.