1import{j as c,Q as m,i as _,o,d as n,a as r,u as e,Z as h,w as a,b as i,t as y,e as u,f as l,k as p,n as k,F as v}from"./app-2803dbd2.js";import{_ as g}from"./AuthenticatedLayout-7dbcc881.js";import x from"./StepMenu-834cccb4.js";/* empty css */import"./Header-4ad53e0b.js";const w={class:"container max-w-7xl p-1"},B={class:"p-2 sm:p-4 bg-white shadow sm:rounded-lg mb-4"},P={class:"edit_business p-3"},C={class:"card"},V={class:"card-body"},N={key:0,class:"mb-4 font-medium text-sm text-green-600"},Y={key:1,class:"text-danger my-4"},S={class:""},T={key:0},j={key:1},D={class:""},E={key:0},F={key:1},G={class:""},I={key:0},L={key:1},$={key:2,class:"my-4 block"},z={key:0,class:""},M={key:3,class:"block"},O={key:0,class:"flex flex-col lg:flex-row gap-2"},Q={key:4,class:"my-4 block"},K={__name:"Publish",props:{app_name:{type:String},business:{type:Object},status:{}},setup(b){const f=c.useToast(),t=m();return _(()=>{t.props.flash.success&&f.success(t.props.flash.success)}),(d,s)=>(o(),n(v,null,[r(e(h),{title:"Business Publish - "+b.business.business_id},null,8,["title"]),r(g,null,{default:a(()=>[i("div",w,[i("div",B,[i("div",P,[r(x),i("div",C,[i("div",V,[s[17]||(s[17]=i("div",{class:"card-title"},[i("h3",null,"Publish"),i("p",{class:"form-text"},"You will be able to publish business listing when your business information is complete."),i("hr")],-1)),b.status?(o(),n("div",N,y(b.status),1)):u("",!0),e(t).props.business.data.profile_complete==0?(o(),n("h6",Y," Your profile is incomplete. Pease complete your profile to publish this business.")):u("",!0),i("div",S,[e(t).props.business.basic_info_saved==1?(o(),n("p",T,s[0]||(s[0]=[i("i",{class:"fa fa-check check-icon text-green-600 mx-2"},null,-1),l(" Basic Info")]))):(o(),n("p",j,[s[2]||(s[2]=i("i",{class:"fa fa-circle text-danger mx-2"},null,-1)),r(e(p),{class:"no-underline hover:underline link",href:d.route("business.step.basic",e(t).props.business.business_id)},{default:a(()=>s[1]||(s[1]=[l("Click here")])),_:1},8,["href"]),s[3]||(s[3]=l(" to complete Basic Info. "))]))]),i("div",D,[e(t).props.business.price_saved==1?(o(),n("p",E,s[4]||(s[4]=[i("i",{class:"fa fa-check check-icon text-green-600 mx-2"},null,-1),l(" Price")]))):(o(),n("p",F,[s[6]||(s[6]=i("i",{class:"fa fa-circle text-danger mx-2"},null,-1)),r(e(p),{class:"no-underline hover:underline link",href:d.route("business.step.price",e(t).props.business.business_id)},{default:a(()=>s[5]||(s[5]=[l("Click here")])),_:1},8,["href"]),s[7]||(s[7]=l(" to complete Price. "))]))]),i("div",G,[e(t).props.business.gallery_saved==1?(o(),n("p",I,s[8]||(s[8]=[i("i",{class:"fa fa-check check-icon text-green-600 mx-2"},null,-1),l(" Gallery")]))):(o(),n("p",L,[s[10]||(s[10]=i("i",{class:"fa fa-circle text-danger mx-2"},null,-1)),r(e(p),{class:"no-underline hover:underline link",href:d.route("business.step.gallery",e(t).props.business.business_id)},{default:a(()=>s[9]||(s[9]=[l("Click here")])),_:1},8,["href"]),s[11]||(s[11]=l(" to complete Gallery. "))]))]),e(t).props.business.is_approved=="approved"?(o(),n("div",$,[e(t).props.business.is_published==1?(o(),n("div",z,[s[13]||(s[13]=i("h6",{class:"text-green-600"},"Your business is already published.",-1)),r(e(p),{href:d.route("business.records"),class:"btn btn-large btn-primary"},{default:a(()=>s[12]||(s[12]=[i("i",{class:"fa fa-arrow-left"},null,-1),l(" View Business Listings ")])),_:1},8,["href"])])):u("",!0)])):u("",!0),e(t).props.business.submitted_for_approval?u("",!0):(o(),n("div",M,[e(t).props.business.is_published==0?(o(),n("div",O,[r(e(p),{href:e(t).props.publish_url,class:k(["btn inline-block btn-large btn-primary",{disabled:e(t).props.business.data.profile_complete==0,"bg-secondary":e(t).props.business.data.profile_complete==0}])},{default:a(()=>s[14]||(s[14]=[l(" Publish your Business Listing")])),_:1},8,["href","class"]),r(e(p),{href:d.route("business.records"),class:"btn inline-block btn-large btn-white"},{default:a(()=>s[15]||(s[15]=[l("Save as Draft ")])),_:1},8,["href"])])):u("",!0)])),e(t).props.business.submitted_for_approval==1&&e(t).props.business.is_approved=="pending"&&e(t).props.business.is_published==0?(o(),n("div",Q,s[16]||(s[16]=[i("span",{class:"alert alert-info"},"Thank you! Your business has been successfully submitted and is now under review. ",-1)]))):u("",!0)])])])])])]),_:1})],64))}};export{K 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.