PageSourceSearch

https://my.nestwork.bg/build/assets/Create-CtdnyQLN.js

js nestwork.bg collected 2026-10-04 22:10:40 UTC 24,760 bytes, 1 lines download raw bytes

1import{d as I,r as b,y as z,c as $,w as P,a as G,b as t,e as k,h as W,l as d,i,j as r,v as u,o as a,t as n,F as w,p as C,q as H,P as J,k as F,n as L,s as Y,g as U,x as M}from"./app-DzGoEZyg.js";import{_ as K}from"./MemberLayout.vue_vue_type_script_setup_true_lang-J8fsJN9K.js";import{a as A}from"./models-Cz3impAe.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Q={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},X={class:"grid grid-cols-1 lg:grid-cols-12 gap-6"},Z={class:"lg:col-span-8 space-y-6"},ee={class:"bg-white rounded-xl border border-gray-200 p-5"},te={class:"space-y-4"},se={key:0,class:"mt-1 text-xs text-red-600"},le={class:"flex justify-between mt-1"},oe={key:0,class:"text-xs text-red-600"},ae={class:"text-xs text-gray-400"},ie=["value"],ne={key:0,class:"mt-1 text-xs text-red-600"},re={class:"bg-white rounded-xl border border-gray-200 p-5"},de={class:"grid grid-cols-2 sm:grid-cols-3 gap-4"},ue={key:0,class:"mt-1 text-xs text-red-600"},me={key:0,class:"mt-1 text-xs text-red-600"},ge={key:0,class:"mt-1 text-xs text-red-600"},pe={key:0,class:"mt-1 text-xs text-red-600"},ce={key:0,class:"mt-1 text-xs text-red-600"},ve={class:"flex items-center"},be={class:"flex items-center gap-2 cursor-pointer mt-5"},xe={class:"bg-white rounded-xl border border-gray-200 p-5"},ye={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},fe={class:"relative"},_e={key:0,class:"mt-1 text-xs text-red-600"},he={class:"relative"},ke={key:0,class:"mt-1 text-xs text-red-600"},we={class:"relative"},Ce={key:0,class:"mt-1 text-xs text-red-600"},Ue={class:"bg-white rounded-xl border border-gray-200 p-5"},Ve={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},Se={key:0,class:"mt-1 text-xs text-red-600"},Be={key:0,class:"mt-1 text-xs text-red-600"},Pe={key:0,class:"mt-1 text-xs text-red-600"},Fe={key:0,class:"mt-1 text-xs text-red-600"},Le={class:"bg-white rounded-xl border border-gray-200 p-5"},Me={class:"grid grid-cols-2 sm:grid-cols-3 gap-3"},Ae=["checked","onChange"],De={class:"text-sm text-gray-700"},Re={class:"bg-white rounded-xl border border-gray-200 p-5"},Ee={class:"space-y-4"},Oe={key:0,class:"mt-1 text-xs text-red-600"},Te={class:"grid grid-cols-2 gap-4"},qe={key:0,class:"mt-1 text-xs text-red-600"},Ne={key:0,class:"mt-1 text-xs text-red-600"},je={class:"grid grid-cols-2 gap-4"},Ie={key:0,class:"mt-1 text-xs text-red-600"},ze={key:1,class:"text-xs text-gray-400 mt-1"},$e={key:0,class:"mt-1 text-xs text-red-600"},Ge={class:"bg-white rounded-xl border border-gray-200 p-5"},We={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},He={key:0,class:"mt-1 text-xs text-red-600"},Je={key:0,class:"mt-1 text-xs text-red-600"},Ye={key:0,class:"mt-1 text-xs text-red-600"},Ke={class:"lg:col-span-4"},Qe={class:"lg:sticky lg:top-4 space-y-6"},Xe={class:"bg-white rounded-xl border border-gray-200 p-5"},Ze=["disabled"],et=["disabled"],tt=["href"],st={class:"bg-white rounded-xl border border-gray-200 p-5"},lt={class:"space-y-3"},ot={class:"flex items-start gap-2"},at={class:"text-xs text-gray-500"},it={class:"text-xs text-gray-400 mt-0.5"},nt={key:1,class:"rounded-lg bg-amber-50 border border-amber-200 p-3 text-xs text-amber-700"},rt={class:"bg-white rounded-xl border border-gray-200 p-5"},dt={class:"text-base font-semibold text-gray-900 mb-4"},ut={class:"text-sm font-normal text-gray-400"},mt={key:0,class:"grid grid-cols-2 gap-3 mb-4"},gt=["src"],pt=["onClick"],ct={key:0,class:"absolute top-1.5 left-1.5 inline-flex items-center gap-1 rounded bg-indigo-600 px-1.5 py-0.5 text-[10px] font-medium text-white"},vt=["onClick"],bt={key:1,class:"flex cursor-pointer items-center justify-center rounded-lg border-2 border-dashed border-gray-300 p-6 hover:border-indigo-400 transition-colors"},xt={key:2,class:"mt-1 text-xs text-red-600"},kt=I({__name:"Create",props:{paymentOptions:{},settings:{},amenitiesList:{},user:{}},setup(c){const x=c,s=b({title:"",description:"",property_type:"apartment",nightly_price:"",weekly_price:"",monthly_price:"",bedrooms:1,bathrooms:1,max_guests:2,area_sqm:"",available_from:"",available_to:"",check_in_time:"14:00",check_out_time:"11:00",amenities:[],furnished:!1,minimum_stay_nights:1,location_address:"",location_city:"",location_country:"",latitude:"",longitude:"",contact_name:x.user.name,contact_email:x.user.email,contact_phone:x.user.phone??""}),h=b([]),y=b([]),p=b(0),v=b(!1),o=b({}),f=b(""),D=[{value:"apartment",label:"Apartment"},{value:"house",label:"House"},{value:"studio",label:"Studio"},{value:"room",label:"Room"}],V=F(()=>f.value!==""),R=F(()=>x.paymentOptions.can_use_credits);z(()=>{x.paymentOptions.can_use_credits&&(f.value="credits")});function E(m){const e=m.target;if(!e.files)return;const l=x.settings.max_images_per_listing-h.value.length,g=Array.from(e.files).slice(0,l);for(const _ of g){h.value.push(_);const B=new FileReader;B.onload=j=>{y.value.push(j.target?.result)},B.readAsDataURL(_)}e.value=""}function O(m){h.value.splice(m,1),y.value.splice(m,1),p.value===m?p.value=0:p.value>m&&p.value--}function T(m){const e=s.value.amenities.indexOf(m);e===-1?s.value.amenities.push(m):s.value.amenities.splice(e,1)}function S(m){const e=new FormData;e.append("title",s.value.title),e.append("description",s.value.description),e.append("property_type",s.value.property_type),e.append("nightly_price",s.value.nightly_price),s.value.weekly_price&&e.append("weekly_price",s.value.weekly_price),s.value.monthly_price&&e.append("monthly_price",s.value.monthly_price),e.append("bedrooms",String(s.value.bedrooms)),e.append("bathrooms",String(s.value.bathrooms)),e.append("max_guests",String(s.value.max_guests)),s.value.area_sqm&&e.append("area_sqm",
1String(s.value.area_sqm)),s.value.available_from&&e.append("available_from",s.value.available_from),s.value.available_to&&e.append("available_to",s.value.available_to),e.append("check_in_time",s.value.check_in_time),e.append("check_out_time",s.value.check_out_time),e.append("furnished",s.value.furnished?"1":"0"),e.append("minimum_stay_nights",String(s.value.minimum_stay_nights));for(const l of s.value.amenities)e.append("amenities[]",l);s.value.location_address&&e.append("location_address",s.value.location_address),s.value.location_city&&e.append("location_city",s.value.location_city),s.value.location_country&&e.append("location_country",s.value.location_country),s.value.latitude&&e.append("latitude",String(s.value.latitude)),s.value.longitude&&e.append("longitude",String(s.value.longitude)),s.value.contact_name&&e.append("contact_name",s.value.contact_name),s.value.contact_email&&e.append("contact_email",s.value.contact_email),s.value.contact_phone&&e.append("contact_phone",s.value.contact_phone);for(const l of h.value)e.append("images[]",l);return e.append("cover_index",String(p.value)),m&&(e.append("submit_for_review","1"),e.append("payment_type",f.value)),e}function q(){v.value=!0,o.value={},M.post(route("members.listings.store"),S(!1),{forceFormData:!0,onError:m=>{o.value=m},onFinish:()=>{v.value=!1}})}function N(){V.value&&(v.value=!0,o.value={},M.post(route("members.listings.store"),S(!0),{forceFormData:!0,onError:m=>{o.value=m},onFinish:()=>{v.value=!1}}))}return(m,e)=>(a(),$(K,null,{header:P(()=>[...e[25]||(e[25]=[t("h1",{class:"text-2xl font-bold text-gray-900"},"Create Listing",-1),t("p",{class:"mt-1 text-sm text-gray-500"},"List your accommodation on the Nestwork marketplace.",-1)])]),default:P(()=>[G(k(W),{title:"Create Listing"}),t("div",Q,[t("div",X,[t("div",Z,[t("section",ee,[e[29]||(e[29]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Basic Information",-1)),t("div",te,[t("div",null,[e[26]||(e[26]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Title *",-1)),d(t("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.value.title=l),type:"text",maxlength:"200",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"e.g. Cozy Studio in Bansko Old Town"},null,512),[[u,s.value.title]]),o.value.title?(a(),i("p",se,n(o.value.title),1)):r("",!0)]),t("div",null,[e[27]||(e[27]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Description *",-1)),d(t("textarea",{"onUpdate:modelValue":e[1]||(e[1]=l=>s.value.description=l),rows:"4",maxlength:"5000",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"Describe your property..."},null,512),[[u,s.value.description]]),t("div",le,[o.value.description?(a(),i("p",oe,n(o.value.description),1)):r("",!0),t("span",ae,n(s.value.description.length)+"/5000",1)])]),t("div",null,[e[28]||(e[28]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Property Type *",-1)),d(t("select",{"onUpdate:modelValue":e[2]||(e[2]=l=>s.value.property_type=l),class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},[(a(),i(w,null,C(D,l=>t("option",{key:l.value,value:l.value},n(l.label),9,ie)),64))],512),[[H,s.value.property_type]]),o.value.property_type?(a(),i("p",ne,n(o.value.property_type),1)):r("",!0)])])]),t("section",re,[e[36]||(e[36]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Property Details",-1)),t("div",de,[t("div",null,[e[30]||(e[30]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Bedrooms *",-1)),d(t("input",{"onUpdate:modelValue":e[3]||(e[3]=l=>s.value.bedrooms=l),type:"number",min:"0",max:"20",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.bedrooms,void 0,{number:!0}]]),o.value.bedrooms?(a(),i("p",ue,n(o.value.bedrooms),1)):r("",!0)]),t("div",null,[e[31]||(e[31]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Bathrooms *",-1)),d(t("input",{"onUpdate:modelValue":e[4]||(e[4]=l=>s.value.bathrooms=l),type:"number",min:"0",max:"20",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.bathrooms,void 0,{number:!0}]]),o.value.bathrooms?(a(),i("p",me,n(o.value.bathrooms),1)):r("",!0)]),t("div",null,[e[32]||(e[32]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Max Guests *",-1)),d(t("input",{"onUpdate:modelValue":e[5]||(e[5]=l=>s.value.max_guests=l),type:"number",min:"1",max:"50",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.max_guests,void 0,{number:!0}]]),o.value.max_guests?(a(),i("p",ge,n(o.value.max_guests),1)):r("",!0)]),t("div",null,[e[33]||(e[33]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Area (sqm)",-1)),d(t("input",{"onUpdate:modelValue":e[6]||(e[6]=l=>s.value.area_sqm=l),type:"number",min:"1",max:"10000",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.area_sqm,void 0,{number:!0}]]),o.value.area_sqm?(a(),i("p",pe,n(o.value.area_sqm),1)):r("",!0)]),t("div",null,[e[34]||(e[34]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Min Stay (nights) *",-1)),d(t("input",{"onUpdate:modelValue":e[7]||
1(e[7]=l=>s.value.minimum_stay_nights=l),type:"number",min:"1",max:"365",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.minimum_stay_nights,void 0,{number:!0}]]),o.value.minimum_stay_nights?(a(),i("p",ce,n(o.value.minimum_stay_nights),1)):r("",!0)]),t("div",ve,[t("label",be,[d(t("input",{"onUpdate:modelValue":e[8]||(e[8]=l=>s.value.furnished=l),type:"checkbox",class:"rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"},null,512),[[J,s.value.furnished]]),e[35]||(e[35]=t("span",{class:"text-sm font-medium text-gray-700"},"Furnished",-1))])])])]),t("section",xe,[e[43]||(e[43]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Pricing",-1)),t("div",ye,[t("div",null,[e[38]||(e[38]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Nightly Price (EUR) *",-1)),t("div",fe,[e[37]||(e[37]=t("span",{class:"absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 text-sm"},"EUR",-1)),d(t("input",{"onUpdate:modelValue":e[9]||(e[9]=l=>s.value.nightly_price=l),type:"number",step:"0.01",min:"0.01",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm pl-12",placeholder:"25.00"},null,512),[[u,s.value.nightly_price]])]),o.value.nightly_price?(a(),i("p",_e,n(o.value.nightly_price),1)):r("",!0)]),t("div",null,[e[40]||(e[40]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Weekly Price (EUR)",-1)),t("div",he,[e[39]||(e[39]=t("span",{class:"absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 text-sm"},"EUR",-1)),d(t("input",{"onUpdate:modelValue":e[10]||(e[10]=l=>s.value.weekly_price=l),type:"number",step:"0.01",min:"0.01",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm pl-12",placeholder:"150.00"},null,512),[[u,s.value.weekly_price]])]),o.value.weekly_price?(a(),i("p",ke,n(o.value.weekly_price),1)):r("",!0)]),t("div",null,[e[42]||(e[42]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Monthly Price (EUR)",-1)),t("div",we,[e[41]||(e[41]=t("span",{class:"absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400 text-sm"},"EUR",-1)),d(t("input",{"onUpdate:modelValue":e[11]||(e[11]=l=>s.value.monthly_price=l),type:"number",step:"0.01",min:"0.01",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm pl-12",placeholder:"500.00"},null,512),[[u,s.value.monthly_price]])]),o.value.monthly_price?(a(),i("p",Ce,n(o.value.monthly_price),1)):r("",!0)])])]),t("section",Ue,[e[48]||(e[48]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Availability",-1)),t("div",Ve,[t("div",null,[e[44]||(e[44]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Available From",-1)),d(t("input",{"onUpdate:modelValue":e[12]||(e[12]=l=>s.value.available_from=l),type:"date",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.available_from]]),o.value.available_from?(a(),i("p",Se,n(o.value.available_from),1)):r("",!0)]),t("div",null,[e[45]||(e[45]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Available To",-1)),d(t("input",{"onUpdate:modelValue":e[13]||(e[13]=l=>s.value.available_to=l),type:"date",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.available_to]]),o.value.available_to?(a(),i("p",Be,n(o.value.available_to),1)):r("",!0)]),t("div",null,[e[46]||(e[46]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Check-in Time *",-1)),d(t("input",{"onUpdate:modelValue":e[14]||(e[14]=l=>s.value.check_in_time=l),type:"time",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.check_in_time]]),o.value.check_in_time?(a(),i("p",Pe,n(o.value.check_in_time),1)):r("",!0)]),t("div",null,[e[47]||(e[47]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Check-out Time *",-1)),d(t("input",{"onUpdate:modelValue":e[15]||(e[15]=l=>s.value.check_out_time=l),type:"time",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.check_out_time]]),o.value.check_out_time?(a(),i("p",Fe,n(o.value.check_out_time),1)):r("",!0)])])]),t("section",Le,[e[49]||(e[49]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Amenities",-1)),t("div",Me,[(a(!0),i(w,null,C(c.amenitiesList,(l,g)=>(a(),i("label",{key:g,class:"flex items-center gap-2 cursor-pointer"},[t("input",{type:"checkbox",checked:s.value.amenities.includes(g),onChange:_=>T(g),class:"rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"},null,40,Ae),t("span",De,n(l),1)]))),128))])]),t("section",Re,[e[55]||(e[55]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Location",-1)),t("div",Ee,[t("div",null,[e[50]||(e[50]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Address",-1)),d(t("input",{"onUpdate:modelValue":e[16]||(e[16]=l=>s.value.location_address=l),type:"text",maxlength:"300",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"Street address"},null,512),[[u,s.value.location_address]]),o.value.location_address?(a(),i("p",Oe,n(o.value.location_address),1)):r("",!0)]),t("div",Te,[t("div",null,[e[51]||(e[51]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"City",-1)),d(t("input",{"onUpdate:modelValue":e[17]||(e[17]=l=>s.value.location_city=l),type:"text",maxlength:"100",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"e.g. Bansko"},null,512),[[u,s.value.location_city]]),o.value.location_city?(a(),i("p",qe,n(o.value.location_city),1)):r("",!0)]),t("div",null,[e[52]||(e[52]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Country",-1)),d(t("input",{"onUpdate:modelValue":e[18]||(e[18]=l=>s.value.location_country=l),type:"text",maxlength:"100",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"e.g. Bulgaria"},null,512),[[u,s.value.location_country]]),o.value.location_country?(a(),i("p",Ne,n(o.value.location_country),1)):r("",!0)])]),t("div",je,[t("div",null,[e[53]||(e[53]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Latitude",-1)),d(t("input",{"onUpdate:modelValue":e[19]||(e[19]=l=>s.value.latitude=l),type:"number",step:"0.0000001",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"e.g. 41.8380"},null,512),[[u,s.value.latitude]]),o.value.latitude?(a(),i("p",Ie,n(o.value.latitude),1)):(a(),i("p",ze,"Optional -- enables map on your listing"))]),t("div",null,[e[54]||(e[54]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Longitude",-1)),d(t("input",{"onUpdate:modelValue":e[20]||(e[20]=l=>s.value.longitude=l),type:"number",step:"0.0000001",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm",placeholder:"e.g. 23.4880"},null,512),[[u,s.value.longitude]]),o.value.longitude?(a(),i("p",$e,n(o.value.longitude),1)):r("",!0)])])])]),t("section",Ge,[e[59]||(e[59]=t("h2",{class:"text-base font-semibold text-gray-900 mb-4"},"Contact Information",-1)),t("div",We,[t("div",null,[e[56]||(e[56]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Name",-1)),d(t("input",{"onUpdate:modelValue":e[21]||(e[21]=l=>s.value.contact_name=l),type:"text",maxlength:"100",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.contact_name]]),o.value.contact_name?(a(),i("p",He,n(o.value.contact_name),1)):r("",!0)]),t("div",null,[e[57]||(e[57]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Email",-1)),d(t("input",{"onUpdate:modelValue":e[22]||(e[22]=l=>s.value.contact_email=l),type:"email",maxlength:"150",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.contact_email]]),o.value.contact_email?(a(),i("p",Je,n(o.value.contact_email),1)):r("",!0)]),t("div",null,[e[58]||(e[58]=t("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Phone",-1)),d(t("input",{"onUpdate:modelValue":e[23]||(e[23]=l=>s.value.contact_phone=l),type:"text",maxlength:"30",class:"w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm"},null,512),[[u,s.value.contact_phone]]),o.value.contact_phone?(a(),i("p",Ye,n(o.value.contact_phone),1)):r("",!0)])])]),e[60]||(e[60]=t("div",{class:"pb-8"},null,-1))]),t("div",Ke,[t("div",Qe,[t("section",Xe,[e[61]||(e[61]=t("h2",{class:"text-base font-semibold text-gray-900 mb-3"},"Actions",-1)),t("button",{onClick:N,disabled:v.value||!V.value,class:"w-full rounded-lg bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500 disabled:opacity-50 transition-colors mb-2"},n(v.value?"Submitting...":"Submit for Review"),9,Ze),t("button",{onClick:q,disabled:v.value,class:"w-full rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-gray-50 disabled:opacity-50 transition-colors mb-2"}," Save as Draft ",8,et),t("a",{href:m.route("members.listings.index"),class:"block text-center text-sm font-medium text-gray-500 hover:text-gray-700"}
1," Cancel ",8,tt)]),t("section",st,[e[63]||(e[63]=t("h2",{class:"text-base font-semibold text-gray-900 mb-3"},"Listing Cost",-1)),t("div",lt,[c.paymentOptions.can_use_credits?(a(),i("label",{key:0,class:L(["block cursor-pointer rounded-lg border p-3 transition-colors text-sm",f.value==="credits"?"border-indigo-500 bg-indigo-50":"border-gray-200 hover:border-gray-300"])},[t("div",ot,[d(t("input",{type:"radio","onUpdate:modelValue":e[24]||(e[24]=l=>f.value=l),value:"credits",class:"mt-0.5"},null,512),[[Y,f.value]]),t("div",null,[e[62]||(e[62]=t("div",{class:"font-medium text-gray-900"},"Pay with Credits",-1)),t("div",at,n(k(A)(c.paymentOptions.credit_cost_cents))+" (no VAT) — valid "+n(c.paymentOptions.credit_listing_valid_days)+" days",1),t("div",it,"Balance: "+n(k(A)(c.paymentOptions.available_credits_cents)),1)])])],2)):r("",!0),R.value?r("",!0):(a(),i("div",nt," No payment options available. You need credits and an active membership to publish. "))]),e[64]||(e[64]=t("p",{class:"mt-3 text-xs text-gray-400 italic"},"Payment is charged when you submit for review. Drafts are free.",-1))]),t("section",rt,[t("h2",dt,[e[65]||(e[65]=U(" Images ",-1)),t("span",ut,"("+n(y.value.length)+"/"+n(c.settings.max_images_per_listing)+")",1)]),y.value.length>0?(a(),i("div",mt,[(a(!0),i(w,null,C(y.value,(l,g)=>(a(),i("div",{key:g,class:"relative group"},[t("img",{src:l,class:L(["h-28 w-full rounded-lg object-cover",{"ring-2 ring-indigo-500 ring-offset-1":g===p.value}])},null,10,gt),t("button",{onClick:_=>O(g),class:"absolute top-1.5 right-1.5 rounded-full bg-red-500 p-0.5 text-white opacity-0 group-hover:opacity-100 transition-opacity"},[...e[66]||(e[66]=[t("svg",{class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])],8,pt),g===p.value?(a(),i("span",ct,[...e[67]||(e[67]=[t("svg",{class:"w-3 h-3",fill:"currentColor",viewBox:"0 0 24 24"},[t("path",{d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})],-1),U(" Cover ",-1)])])):r("",!0),g!==p.value?(a(),i("button",{key:1,onClick:_=>p.value=g,class:"absolute top-1.5 left-1.5 inline-flex items-center gap-1 rounded bg-black/60 px-1.5 py-0.5 text-[10px] text-white opacity-0 group-hover:opacity-100 transition-opacity"},[...e[68]||(e[68]=[t("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})],-1),U(" Set Cover ",-1)])],8,vt)):r("",!0)]))),128))])):r("",!0),y.value.length<c.settings.max_images_per_listing?(a(),i("label",bt,[e[69]||(e[69]=t("div",{class:"text-center"},[t("svg",{class:"mx-auto h-8 w-8 text-gray-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5M3.75 3h16.5m-16.5 0v18m16.5-18v18"})]),t("span",{class:"mt-2 block text-sm text-gray-500"},"Click to upload images"),t("span",{class:"text-xs text-gray-400"},"JPG, PNG, WebP up to 2MB each")],-1)),t("input",{type:"file",accept:"image/jpeg,image/png,image/webp",multiple:"",class:"hidden",onChange:E},null,32)])):r("",!0),o.value.images?(a(),i("p",xt,n(o.value.images),1)):r("",!0)])])])])])]),_:1}))}});export{kt 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.