"use strict";(self["webpackChunkcigar_finder_frontend"]=self["webpackChunkcigar_finder_frontend"]||[]).push([[114],{3337:function(e,s,t){t.d(s,{A:function(){return g}});var i=t(641),a=t(33);const o={class:"biz-nav-bar"},l={class:"biz-nav-inner"},n={class:"biz-nav-header"},r={key:0,class:"biz-nav-user"},d={class:"biz-nav-tabs"};function u(e,s,t,u,c,p){const h=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",o,[(0,i.Lk)("div",l,[(0,i.Lk)("div",n,[s[1]||(s[1]=(0,i.Lk)("h1",{class:"biz-nav-title"},"Business Dashboard",-1)),p.userName?((0,i.uX)(),(0,i.CE)("div",r,[(0,i.Lk)("span",null,(0,a.v_)(p.userName),1),(0,i.Lk)("button",{class:"biz-nav-logout",onClick:s[0]||(s[0]=(...e)=>p.logout&&p.logout(...e))},"Logout")])):(0,i.Q3)("",!0)]),(0,i.Lk)("nav",d,[(0,i.bF)(h,{to:"/business/dashboard",class:"biz-tab","active-class":"active",exact:""},{default:(0,i.k6)((()=>s[2]||(s[2]=[(0,i.eW)("Dashboard")]))),_:1}),(0,i.bF)(h,{to:"/business/subscription",class:"biz-tab","active-class":"active"},{default:(0,i.k6)((()=>s[3]||(s[3]=[(0,i.eW)("Plans & Billing")]))),_:1}),(0,i.bF)(h,{to:"/business/support",class:"biz-tab","active-class":"active"},{default:(0,i.k6)((()=>s[4]||(s[4]=[(0,i.eW)("Support")]))),_:1}),(0,i.bF)(h,{to:"/business/profile",class:"biz-tab","active-class":"active"},{default:(0,i.k6)((()=>s[5]||(s[5]=[(0,i.eW)("My Profile")]))),_:1})])])])}t(4114);var c={name:"BusinessNav",computed:{userName(){try{var e=JSON.parse(localStorage.getItem("business_user")||"{}");return e.full_name||""}catch(s){return""}}},methods:{logout(){localStorage.removeItem("business_session_token"),localStorage.removeItem("business_user"),this.$router.push("/business/login")}}},p=t(6262);const h=(0,p.A)(c,[["render",u]]);var g=h},4205:function(e,s,t){t.r(s),t.d(s,{default:function(){return ce}});var i=t(641),a=t(33),o=t(3751);const l={class:"claim-page"},n={key:0,class:"claim-login-gate"},r={class:"gate-card"},d={class:"gate-actions"},u={key:1,class:"breadcrumb"},c={key:2,class:"claim-container"},p={class:"claim-header"},h={key:0,class:"already-claimed-card"},g={key:1,class:"claim-login-prompt"},k={class:"gate-actions",style:{"max-width":"360px",margin:"16px auto"}},b={key:2},m={key:0,class:"step-section"},v={class:"methods-grid"},L={class:"method-info"},y={key:0},f={key:1,class:"method-unavailable"},C={key:0,class:"method-check"},w={class:"method-info"},_={key:0},F={key:1},E={key:0,class:"method-check"},S={key:0,class:"method-check"},X=["disabled"],W={key:1,class:"step-section"},U={key:0,class:"verify-card"},P={class:"code-input-group"},x=["disabled"],z={key:1,class:"verify-card"},T={key:0,class:"no-website-notice"},I={key:1},M={class:"meta-code-block"},D=["disabled"],V={key:2,class:"verify-card"},B={key:0,class:"upload-placeholder"},j={key:1,class:"upload-preview"},Q=["disabled"],O={key:2,class:"step-section success-section"},N={key:0},A={key:1},q={class:"success-actions"},R={key:3,class:"error-msg"},J={key:3,class:"benefits-card"},$={key:4,class:"faq-section"},H={class:"faq-item"},Y={class:"faq-toggle"},G={class:"faq-answer"},K={class:"faq-item"},Z={class:"faq-toggle"},ee={class:"faq-answer"},se={class:"faq-item"},te={class:"faq-toggle"},ie={class:"faq-answer"},ae={key:3,class:"loading-state"},oe={key:4,class:"not-found-state"};function le(e,s,t,le,ne,re){const de=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",l,[re.isLoggedIn?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",n,[(0,i.Lk)("div",r,[s[23]||(s[23]=(0,i.Lk)("h2",null,"Claim Your Business on CigarFinder",-1)),(0,i.Lk)("p",null,[s[19]||(s[19]=(0,i.eW)("To claim ")),(0,i.Lk)("strong",null,(0,a.v_)(ne.lounge?ne.lounge.name:"this business"),1),s[20]||(s[20]=(0,i.eW)(", you need a free CigarFinder Business account."))]),(0,i.Lk)("div",d,[(0,i.bF)(de,{to:"/business/register",class:"gate-btn gate-btn-primary"},{default:(0,i.k6)((()=>s[21]||(s[21]=[(0,i.eW)("Create Free Business Account")]))),_:1}),(0,i.bF)(de,{to:"/business/login",class:"gate-btn gate-btn-outline"},{default:(0,i.k6)((()=>s[22]||(s[22]=[(0,i.eW)("Already have an account? Log in")]))),_:1})]),s[24]||(s[24]=(0,i.Lk)("p",{class:"gate-note"},"Already logged in as a customer? Business accounts are separate — it takes 30 seconds to create one.",-1))])])),ne.lounge?((0,i.uX)(),(0,i.CE)("nav",u,[(0,i.bF)(de,{to:"/"},{default:(0,i.k6)((()=>s[25]||(s[25]=[(0,i.eW)("Home")]))),_:1}),s[27]||(s[27]=(0,i.Lk)("span",{class:"sep"},"/",-1)),(0,i.bF)(de,{to:"/store-locator"},{default:(0,i.k6)((()=>s[26]||(s[26]=[(0,i.eW)("Store Locator")]))),_:1}),s[28]||(s[28]=(0,i.Lk)("span",{class:"sep"},"/",-1)),(0,i.bF)(de,{to:re.cityLink},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(ne.lounge.city)+", "+(0,a.v_)(ne.lounge.state),1)])),_:1},8,["to"]),s[29]||(s[29]=(0,i.Lk)("span",{class:"sep"},"/",-1)),(0,i.bF)(de,{to:re.loungeLink},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(ne.lounge.name),1)])),_:1},8,["to"]),s[30]||(s[30]=(0,i.Lk)("span",{class:"sep"},"/",-1)),s[31]||(s[31]=(0,i.Lk)("span",{class:"current"},"Claim",-1))])):(0,i.Q3)("",!0),ne.lounge?((0,i.uX)(),(0,i.CE)("div",c,[(0,i.Lk)("div",p,[(0,i.Lk)("h1",null,"Claim "+(0,a.v_)(ne.lounge.name),1),s[32]||(s[32]=(0,i.Lk)("p",{class:"claim-subtitle"}," Verify ownership to manage your business listing on CigarFinder. ",-1))]),ne.lounge.claimed?((0,i.uX)(),(0,i.CE)("div",h,[s[36]||(s[36]=(0,i.Lk)("div",{class:"claimed-icon"},"✓",-1)),s[37]||(s[37]=(0,i.Lk)("h2",null,"This business has already been claimed",-1)),(0,i.Lk)("p",null,[s[34]||(s[34]=(0,i.eW)("If you believe this is an error, please ")),(0,i.bF)(de,{to:"/business/support"},{default:(0,i.k6)((()=>s[33]||(s[33]=[(0,i.eW)("contact us")]))),_:1}),s[35]||(s[35]=(0,i.eW)("."))])])):re.isLoggedIn?((0,i.uX)(),(0,i.CE)("div",b,["choose"===ne.step?((0,i.uX)(),(0,i.CE)("div",m,[s[51]||(s[51]=(0,i.Lk)("h2",{class:"step-title"},"Choose a verification method",-1)),(0,i.Lk)("div",v,[(0,i.Lk)("div",{class:(0,a.C4)(["method-card",{selected:"phone_sms"===ne.selectedMethod}]),onClick:s[0]||(s[0]=e=>re.selectMethod("phone_sms"))},[s[44]||(s[44]=(0,i.Lk)("div",{class:"method-icon"},"☎",-1)),(0,i.Lk)("div",L,[s[43]||(s[43]=(0,i.Lk)("h3",null,"Phone Call",-1)),ne.lounge.phone?((0,i.uX)(),(0,i.CE)("p",y,[s[41]||(s[41]=(0,i.eW)(" We'll call ")),(0,i.Lk)("strong",null,(0,a.v_)(re.maskPhone(ne.lounge.phone)),1),s[42]||(s[42]=(0,i.eW)(" with a verification code. "))])):((0,i.uX)(),(0,i.CE)("p",f,"No phone number on file for this listing."))]),"phone_sms"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",C,"✓")):(0,i.Q3)("",!0)],2),(0,i.Lk)("div",{class:(0,a.C4)(["method-card",{selected:"website_meta"===ne.selectedMethod}]),onClick:s[1]||(s[1]=e=>re.selectMethod("website_meta"))},[s[48]||(s[48]=(0,i.Lk)("div",{class:"method-icon"},"</>",-1)),(0,i.Lk)("div",w,[s[47]||(s[47]=(0,i.Lk)("h3",null,"Website Meta Tag",-1)),ne.lounge.website?((0,i.uX)(),(0,i.CE)("p",_,[s[45]||(s[45]=(0,i.eW)(" Add a meta tag to ")),(0,i.Lk)("strong",null,(0,a.v_)(re.extractDomain(ne.lounge.website)),1),s[46]||(s[46]=(0,i.eW)(" to verify ownership. "))])):((0,i.uX)(),(0,i.CE)("p",F," Add your website first, then place a meta tag to verify ownership. "))]),"website_meta"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",E,"✓")):(0,i.Q3)("",!0)],2),(0,i.Lk)("div",{class:(0,a.C4)(["method-card",{selected:"manual_review"===ne.selectedMethod}]),onClick:s[2]||(s[2]=e=>re.selectMethod("manual_review"))},[s[49]||(s[49]=(0,i.Lk)("div",{class:"method-icon"},"📄",-1)),s[50]||(s[50]=(0,i.Lk)("div",{class:"method-info"},[(0,i.Lk)("h3",null,"Manual Review"),(0,i.Lk)("p",null,"Upload a document (utility bill, business license) proving ownership. Reviewed in 24-48 hours.")],-1)),"manual_review"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",S,"✓")):(0,i.Q3)("",!0)],2)]),(0,i.Lk)("button",{class:"btn-primary",disabled:!ne.selectedMethod,onClick:s[3]||(s[3]=(...e)=>re.submitClaim&&re.submitClaim(...e))}," Continue with "+(0,a.v_)(re.methodLabel),9,X)])):(0,i.Q3)("",!0),"verify"===ne.step?((0,i.uX)(),(0,i.CE)("div",W,["phone_sms"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",U,[s[54]||(s[54]=(0,i.Lk)("h2",null,"Enter your verification code",-1)),(0,i.Lk)("p",null,[s[52]||(s[52]=(0,i.eW)("We're calling ")),(0,i.Lk)("strong",null,(0,a.v_)(re.maskPhone(ne.lounge.phone)),1),s[53]||(s[53]=(0,i.eW)(" now. Enter the 6-digit code you hear."))]),(0,i.Lk)("div",P,[(0,i.bo)((0,i.Lk)("input",{"onUpdate:modelValue":s[4]||(s[4]=e=>ne.verificationCode=e),type:"text",maxlength:"6",placeholder:"000000",class:"code-input",onKeyup:s[5]||(s[5]=(0,o.jR)(((...e)=>re.verifyClaim&&re.verifyClaim(...e)),["enter"]))},null,544),[[o.Jo,ne.verificationCode]])]),(0,i.Lk)("button",{class:"btn-primary",disabled:ne.verificationCode.length<6||ne.verifying,onClick:s[6]||(s[6]=(...e)=>re.verifyClaim&&re.verifyClaim(...e))},(0,a.v_)(ne.verifying?"Verifying...":"Verify"),9,x)])):(0,i.Q3)("",!0),"website_meta"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",z,[s[63]||(s[63]=(0,i.Lk)("h2",null,"Add this meta tag to your website",-1)),ne.lounge.website?((0,i.uX)(),(0,i.CE)("div",I,[(0,i.Lk)("p",null,[s[58]||(s[58]=(0,i.eW)("Place this tag in the ")),s[59]||(s[59]=(0,i.Lk)("code",null,"<head>",-1)),s[60]||(s[60]=(0,i.eW)(" section of ")),(0,i.Lk)("strong",null,(0,a.v_)(ne.lounge.website),1),s[61]||(s[61]=(0,i.eW)(":"))]),(0,i.Lk)("div",M,[(0,i.Lk)("code",null,(0,a.v_)(ne.metaTag),1),(0,i.Lk)("button",{class:"btn-copy",onClick:s[7]||(s[7]=(...e)=>re.copyMeta&&re.copyMeta(...e))},(0,a.v_)(ne.copied?"Copied!":"Copy"),1)]),s[62]||(s[62]=(0,i.Lk)("p",{class:"meta-hint"},"Once the tag is live, click the button below and we'll check instantly.",-1)),(0,i.Lk)("button",{class:"btn-primary",disabled:ne.verifying,onClick:s[8]||(s[8]=(...e)=>re.verifyClaim&&re.verifyClaim(...e))},(0,a.v_)(ne.verifying?"Checking...":"Verify Meta Tag"),9,D)])):((0,i.uX)(),(0,i.CE)("div",T,[(0,i.Lk)("p",null,[s[56]||(s[56]=(0,i.eW)(" No website is currently listed for this business. Please ")),(0,i.bF)(de,{to:re.loungeLink},{default:(0,i.k6)((()=>s[55]||(s[55]=[(0,i.eW)("update your listing")]))),_:1},8,["to"]),s[57]||(s[57]=(0,i.eW)(" to add a website first, then return here to verify via meta tag. "))])]))])):(0,i.Q3)("",!0),"manual_review"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("div",V,[s[66]||(s[66]=(0,i.Lk)("h2",null,"Upload verification document",-1)),s[67]||(s[67]=(0,i.Lk)("p",null,"Upload a business license, utility bill, or official document showing the business name and address.",-1)),(0,i.Lk)("div",{class:"upload-area",onClick:s[11]||(s[11]=s=>e.$refs.fileInput.click()),onDragover:s[12]||(s[12]=(0,o.D$)((()=>{}),["prevent"])),onDrop:s[13]||(s[13]=(0,o.D$)(((...e)=>re.handleDrop&&re.handleDrop(...e)),["prevent"]))},[(0,i.Lk)("input",{ref:"fileInput",type:"file",accept:".pdf,.jpg,.jpeg,.png",onChange:s[9]||(s[9]=(...e)=>re.handleFile&&re.handleFile(...e)),hidden:""},null,544),ne.uploadedFile?((0,i.uX)(),(0,i.CE)("div",j,[s[65]||(s[65]=(0,i.Lk)("span",null,"📄",-1)),(0,i.Lk)("span",null,(0,a.v_)(ne.uploadedFile.name),1),(0,i.Lk)("button",{class:"btn-remove",onClick:s[10]||(s[10]=(0,o.D$)((e=>ne.uploadedFile=null),["stop"]))},"✕")])):((0,i.uX)(),(0,i.CE)("div",B,s[64]||(s[64]=[(0,i.Lk)("span",{class:"upload-icon"},"📎",-1),(0,i.Lk)("p",null,"Click or drag a file here",-1),(0,i.Lk)("p",{class:"upload-hint"},"PDF, JPG, or PNG — max 10 MB",-1)])))],32),(0,i.Lk)("button",{class:"btn-primary",disabled:!ne.uploadedFile||ne.verifying,onClick:s[14]||(s[14]=(...e)=>re.verifyClaim&&re.verifyClaim(...e))},(0,a.v_)(ne.verifying?"Submitting...":"Submit for Review"),9,Q)])):(0,i.Q3)("",!0),(0,i.Lk)("button",{class:"btn-back",onClick:s[15]||(s[15]=e=>{ne.step="choose",ne.verificationCode="",ne.errorMsg=""})}," ↠Back to methods ")])):(0,i.Q3)("",!0),"success"===ne.step?((0,i.uX)(),(0,i.CE)("div",O,[s[72]||(s[72]=(0,i.Lk)("div",{class:"success-icon"},"✓",-1)),(0,i.Lk)("h2",null,(0,a.v_)("manual_review"===ne.selectedMethod?"Submission Received":"Verification Successful"),1),"manual_review"===ne.selectedMethod?((0,i.uX)(),(0,i.CE)("p",N," Your documents have been submitted for review. You'll receive an email within 24-48 hours. ")):((0,i.uX)(),(0,i.CE)("p",A,[s[68]||(s[68]=(0,i.eW)(" You now have full control of the ")),(0,i.Lk)("strong",null,(0,a.v_)(ne.lounge.name),1),s[69]||(s[69]=(0,i.eW)(" listing. "))])),(0,i.Lk)("div",q,[(0,i.bF)(de,{to:"/business/lounges/"+ne.lounge.id+"/edit",class:"btn-primary"},{default:(0,i.k6)((()=>s[70]||(s[70]=[(0,i.eW)("Edit Your Listing")]))),_:1},8,["to"]),(0,i.bF)(de,{to:"/business/dashboard",class:"btn-secondary"},{default:(0,i.k6)((()=>s[71]||(s[71]=[(0,i.eW)("Go to Dashboard")]))),_:1})])])):(0,i.Q3)("",!0),ne.errorMsg?((0,i.uX)(),(0,i.CE)("div",R,(0,a.v_)(ne.errorMsg),1)):(0,i.Q3)("",!0)])):((0,i.uX)(),(0,i.CE)("div",g,[s[40]||(s[40]=(0,i.Lk)("p",null,"To continue claiming this business, please create or log in to a Business account.",-1)),(0,i.Lk)("div",k,[(0,i.bF)(de,{to:"/business/register",class:"gate-btn gate-btn-primary"},{default:(0,i.k6)((()=>s[38]||(s[38]=[(0,i.eW)("Create Free Business Account")]))),_:1}),(0,i.bF)(de,{to:"/business/login",class:"gate-btn gate-btn-outline"},{default:(0,i.k6)((()=>s[39]||(s[39]=[(0,i.eW)("Log In to Business Account")]))),_:1})])])),ne.lounge.claimed?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",J,s[73]||(s[73]=[(0,i.Fv)('<h3 class="benefits-title" data-v-ac1b473c>What you get when you verify</h3><ul class="benefits-list" data-v-ac1b473c><li data-v-ac1b473c><span class="check-icon" data-v-ac1b473c>✓</span> Update your hours, photos, and description </li><li data-v-ac1b473c><span class="check-icon" data-v-ac1b473c>✓</span> Respond to customer reviews </li><li data-v-ac1b473c><span class="check-icon" data-v-ac1b473c>✓</span> Get a verified badge on your listing </li><li data-v-ac1b473c><span class="check-icon" data-v-ac1b473c>✓</span> Add a free backlink to get premium features </li><li data-v-ac1b473c><span class="check-icon" data-v-ac1b473c>✓</span> Promote events and specials </li></ul>',2)]))),ne.lounge.claimed?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",$,[s[77]||(s[77]=(0,i.Lk)("h3",{class:"faq-title"},"Frequently Asked Questions",-1)),(0,i.Lk)("div",H,[(0,i.Lk)("button",{class:"faq-question",onClick:s[16]||(s[16]=e=>re.toggleFaq(0))},[s[74]||(s[74]=(0,i.eW)(" How long does verification take? ")),(0,i.Lk)("span",Y,(0,a.v_)(ne.faqOpen[0]?"−":"+"),1)]),(0,i.bo)((0,i.Lk)("div",G," Phone and email verification is instant. Website meta tag verification is instant once the tag is detected on your site. Manual review takes 24–48 hours. ",512),[[o.aG,ne.faqOpen[0]]])]),(0,i.Lk)("div",K,[(0,i.Lk)("button",{class:"faq-question",onClick:s[17]||(s[17]=e=>re.toggleFaq(1))},[s[75]||(s[75]=(0,i.eW)(" What if I don't have access to the business phone? ")),(0,i.Lk)("span",Z,(0,a.v_)(ne.faqOpen[1]?"−":"+"),1)]),(0,i.bo)((0,i.Lk)("div",ee," Try email or website verification instead. If none of those work, submit a manual review with a business license or utility bill and we'll verify you within 24–48 hours. ",512),[[o.aG,ne.faqOpen[1]]])]),(0,i.Lk)("div",se,[(0,i.Lk)("button",{class:"faq-question",onClick:s[18]||(s[18]=e=>re.toggleFaq(2))},[s[76]||(s[76]=(0,i.eW)(" Can multiple people manage one listing? ")),(0,i.Lk)("span",te,(0,a.v_)(ne.faqOpen[2]?"−":"+"),1)]),(0,i.bo)((0,i.Lk)("div",ie," Currently each listing supports one verified owner. Team management features are coming soon. Contact us if you need to transfer ownership. ",512),[[o.aG,ne.faqOpen[2]]])])]))])):ne.loading?((0,i.uX)(),(0,i.CE)("div",ae,s[78]||(s[78]=[(0,i.Lk)("p",null,"Loading business details...",-1)]))):((0,i.uX)(),(0,i.CE)("div",oe,[s[80]||(s[80]=(0,i.Lk)("h2",null,"Business not found",-1)),s[81]||(s[81]=(0,i.Lk)("p",null,"We couldn't find this listing. It may have been removed.",-1)),(0,i.bF)(de,{to:"/store-locator",class:"btn-primary"},{default:(0,i.k6)((()=>s[79]||(s[79]=[(0,i.eW)("Back to Store Locator")]))),_:1})]))])}var ne=t(7465),re={name:"BusinessClaim",data(){return{lounge:null,loading:!0,step:"choose",selectedMethod:null,verificationCode:"",verifying:!1,errorMsg:"",copied:!1,uploadedFile:null,businessEmail:"",emailCodeSent:!1,metaTag:"",faqOpen:[!1,!1,!1],codeSent:!1,claimId:null,submitting:!1}},computed:{isLoggedIn(){return!!localStorage.getItem("business_session_token")},token(){return localStorage.getItem("business_session_token")},methodLabel(){const e={phone_sms:"Phone Verification",domain_email:"Business Email",website_meta:"Website Meta Tag",manual_review:"Manual Review"};return e[this.selectedMethod]||"Selected Method"},loungeLink(){return this.lounge?"/lounges/"+(this.lounge.slug||this.lounge.id):"/lounges"},cityLink(){if(!this.lounge)return"/lounges";const e=(this.lounge.city||"").toLowerCase().replace(/\s+/g,"-"),s=(this.lounge.state||"").toLowerCase();return"/lounges/"+e+"-"+s}},mounted(){document.title="Claim Your Business - CigarFinder",this.loadLounge()},methods:{async loadLounge(){this.loading=!0;try{const e=this.$route.params.id,s=await(0,ne.fetchData)(ne.baseUrl+"api/v1/lounges/"+e);this.lounge=s.lounge||null,this.lounge&&(this.metaTag='<meta name="cigarfinder-verify" content="'+this.lounge.id+'" />'),this.lounge||(this.errorMsg="Lounge not found")}catch(e){this.errorMsg="Failed to load lounge"}this.loading=!1},selectMethod(e){this.selectedMethod=e,this.errorMsg="",this.codeSent=!1,this.verificationCode=""},async submitClaim(){this.errorMsg="",this.submitting=!0;try{const e={verification_method:this.selectedMethod};"domain_email"===this.selectedMethod&&(e.email=this.businessEmail+"@"+this.extractDomain(this.lounge.website)),"manual_review"===this.selectedMethod&&(e.evidence_url=this.uploadedFile?"uploaded":"");const s=await fetch(ne.baseUrl+"api/v1/business/claim/"+this.lounge.id,{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(e)}),t=await s.json();if(!s.ok)return this.errorMsg=t.errors?t.errors.join(", "):"Claim failed",void(this.submitting=!1);this.claimId=t.claim?t.claim.id:null,"website_meta"===this.selectedMethod&&t.claim&&(this.metaTag='<meta name="cigarfinder-verify" content="'+(t.claim.verification_code||this.lounge.id)+'">'),"manual_review"===this.selectedMethod||(this.codeSent=!0),this.step="verify"}catch(e){this.errorMsg="Network error"}finally{this.submitting=!1}},async sendEmailCode(){if(this.businessEmail){this.submitting=!0;try{const e={verification_method:"domain_email",email:this.businessEmail+"@"+this.extractDomain(this.lounge.website)},s=await fetch(ne.baseUrl+"api/v1/business/claim/"+this.lounge.id,{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(e)}),t=await s.json();if(!s.ok)return this.errorMsg=t.errors?t.errors.join(", "):"Failed to send email",void(this.submitting=!1);this.claimId=t.claim?t.claim.id:null,this.emailCodeSent=!0,this.codeSent=!0}catch(e){this.errorMsg="Network error"}finally{this.submitting=!1}}},async verifyClaim(){this.verifying=!0,this.errorMsg="";try{const e={claim_id:this.claimId};"website_meta"!==this.selectedMethod&&(e.code=this.verificationCode);const s=await fetch(ne.baseUrl+"api/v1/business/verify_claim",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(e)}),t=await s.json();if(!s.ok)return this.errorMsg=t.errors?t.errors.join(", "):"Verification failed",void(this.verifying=!1);this.step="success"}catch(e){this.errorMsg="Network error"}this.verifying=!1},maskPhone(e){if(!e)return"";const s=e.replace(/\D/g,"");return 11===s.length&&"1"===s[0]?"("+s.slice(1,4)+") ***-"+s.slice(-4):s.length>=10?"("+s.slice(0,3)+") ***-"+s.slice(-4):e},extractDomain(e){if(!e)return"";try{let s=e.replace(/^https?:\/\//,"").replace(/\/.*$/,"");return s=s.replace(/^www\./,""),s}catch{return e}},copyMeta(){navigator.clipboard.writeText(this.metaTag).then((()=>{this.copied=!0,setTimeout((()=>{this.copied=!1}),2e3)}))},handleFile(e){const s=e.target.files[0];s&&s.size<=10485760?this.uploadedFile=s:s&&(this.errorMsg="File must be under 10 MB.")},handleDrop(e){const s=e.dataTransfer.files[0];s&&s.size<=10485760?this.uploadedFile=s:s&&(this.errorMsg="File must be under 10 MB.")},toggleFaq(e){this.faqOpen[e]=!this.faqOpen[e]}}},de=t(6262);const ue=(0,de.A)(re,[["render",le],["__scopeId","data-v-ac1b473c"]]);var ce=ue},1549:function(e,s,t){t.r(s),t.d(s,{default:function(){return U}});var i=t(641),a=t(33),o=t(3751);const l={class:"biz-page"},n={class:"create-container"},r={key:0,class:"login-prompt"},d={class:"login-btns"},u={key:1,class:"success-card"},c={class:"form-section"},p={class:"form-group"},h={class:"form-row"},g={class:"form-group"},k={class:"form-row three"},b={class:"form-group"},m={class:"form-group small"},v={class:"form-group small"},L={class:"form-row"},y={class:"form-group"},f={class:"form-group"},C={key:0,class:"form-error"},w=["disabled"];function _(e,s,t,_,F,E){const S=(0,i.g2)("business-nav"),X=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(S),(0,i.Lk)("div",n,[(0,i.bF)(X,{to:"/business/dashboard",class:"back-link"},{default:(0,i.k6)((()=>s[8]||(s[8]=[(0,i.eW)("↠Back to Dashboard")]))),_:1}),s[27]||(s[27]=(0,i.Lk)("h1",null,"Create a New Listing",-1)),s[28]||(s[28]=(0,i.Lk)("p",{class:"create-subtitle"},"Can't find your business in our directory? Add it here and we'll review it within 24-48 hours.",-1)),E.isLoggedIn?F.submitted?((0,i.uX)(),(0,i.CE)("div",u,[s[15]||(s[15]=(0,i.Lk)("div",{class:"success-icon"},"✓",-1)),s[16]||(s[16]=(0,i.Lk)("h2",null,"Listing Submitted!",-1)),(0,i.Lk)("p",null,[s[12]||(s[12]=(0,i.eW)("Your listing for ")),(0,i.Lk)("strong",null,(0,a.v_)(F.submittedName),1),s[13]||(s[13]=(0,i.eW)(" has been created! Redirecting you to add your business details..."))]),(0,i.bF)(X,{to:"/business/dashboard",class:"btn-primary"},{default:(0,i.k6)((()=>s[14]||(s[14]=[(0,i.eW)("Back to Dashboard")]))),_:1})])):((0,i.uX)(),(0,i.CE)("form",{key:2,onSubmit:s[7]||(s[7]=(0,o.D$)(((...e)=>E.submitListing&&E.submitListing(...e)),["prevent"])),class:"create-form"},[(0,i.Lk)("div",c,[s[25]||(s[25]=(0,i.Lk)("h2",null,"Business Information",-1)),(0,i.Lk)("div",p,[s[17]||(s[17]=(0,i.Lk)("label",null,"Business Name *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>F.form.name=e),required:"",placeholder:"e.g. The Cigar Bar"},null,512),[[o.Jo,F.form.name]])]),(0,i.Lk)("div",h,[(0,i.Lk)("div",g,[s[18]||(s[18]=(0,i.Lk)("label",null,"Street Address *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>F.form.address_line1=e),required:"",placeholder:"123 Main St"},null,512),[[o.Jo,F.form.address_line1]])])]),(0,i.Lk)("div",k,[(0,i.Lk)("div",b,[s[19]||(s[19]=(0,i.Lk)("label",null,"City *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=e=>F.form.city=e),required:"",placeholder:"Miami"},null,512),[[o.Jo,F.form.city]])]),(0,i.Lk)("div",m,[s[20]||(s[20]=(0,i.Lk)("label",null,"State *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>F.form.state=e),required:"",maxlength:"2",placeholder:"FL"},null,512),[[o.Jo,F.form.state]])]),(0,i.Lk)("div",v,[s[21]||(s[21]=(0,i.Lk)("label",null,"Zip Code *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[4]||(s[4]=e=>F.form.zip_code=e),required:"",maxlength:"10",placeholder:"33101"},null,512),[[o.Jo,F.form.zip_code]])])]),(0,i.Lk)("div",L,[(0,i.Lk)("div",y,[s[22]||(s[22]=(0,i.Lk)("label",null,"Phone *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"tel","onUpdate:modelValue":s[5]||(s[5]=e=>F.form.phone=e),required:"",placeholder:"(305) 555-1234"},null,512),[[o.Jo,F.form.phone]])]),(0,i.Lk)("div",f,[s[24]||(s[24]=(0,i.Lk)("label",null,"Business Type *",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[6]||(s[6]=e=>F.form.lounge_type=e),required:""},s[23]||(s[23]=[(0,i.Fv)('<option value="">Select type...</option><option value="cigar_lounge">Cigar Lounge</option><option value="cigar_shop">Cigar Shop</option><option value="cigar_bar">Cigar Bar</option><option value="tobacconist">Tobacconist</option>',5)]),512),[[o.u1,F.form.lounge_type]])])])]),s[26]||(s[26]=(0,i.Lk)("p",{class:"form-note"},"After your listing is approved, you'll be able to add hours, photos, description, and more from your dashboard.",-1)),F.error?((0,i.uX)(),(0,i.CE)("p",C,(0,a.v_)(F.error),1)):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"btn-primary btn-full",disabled:F.submitting},(0,a.v_)(F.submitting?"Submitting...":"Submit Listing for Review"),9,w)],32)):((0,i.uX)(),(0,i.CE)("div",r,[s[11]||(s[11]=(0,i.Lk)("p",null,"You need a business account to create a listing.",-1)),(0,i.Lk)("div",d,[(0,i.bF)(X,{to:"/business/login",class:"btn-primary"},{default:(0,i.k6)((()=>s[9]||(s[9]=[(0,i.eW)("Log In")]))),_:1}),(0,i.bF)(X,{to:"/business/register",class:"btn-outline"},{default:(0,i.k6)((()=>s[10]||(s[10]=[(0,i.eW)("Create Account")]))),_:1})])]))])])}t(4114);var F=t(7465),E=t(3337),S={name:"BusinessCreateListing",components:{BusinessNav:E.A},data(){return{form:{name:"",address_line1:"",city:"",state:"",zip_code:"",phone:"",lounge_type:""},submitting:!1,submitted:!1,submittedName:"",error:null}},computed:{isLoggedIn(){return!!localStorage.getItem("business_session_token")},token(){return localStorage.getItem("business_session_token")}},methods:{async submitListing(){this.error=null,this.submitting=!0;try{var e=await fetch(F.baseUrl+"api/v1/business/create_listing",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(this.form)}),s=await e.json();if(e.ok){if(this.submittedName=this.form.name,this.submitted=!0,s.lounge&&s.lounge.id){var t=this;setTimeout((function(){t.$router.push("/business/lounges/"+s.lounge.id+"/edit")}),2e3)}}else this.error=s.errors?s.errors.join(", "):"Failed to submit listing"}catch(i){this.error="Network error. Please try again."}this.submitting=!1}},created(){document.title="Create New Listing - CigarFinder Business"}},X=t(6262);const W=(0,X.A)(S,[["render",_]]);var U=W},8029:function(e,s,t){t.r(s),t.d(s,{default:function(){return ke}});var i=t(641),a=t(3751),o=t(33);const l={class:"business-page"},n={key:0,class:"dashboard-container"},r={key:0,class:"empty-state"},d={class:"start-options"},u={class:"start-option"},c={class:"search-claim"},p={class:"search-claim-bar"},h={class:"start-option"},g={key:0,class:"search-results"},k={class:"result-info"},b=["onClick"],m={key:1,class:"already-claimed"},v={class:"search-footer"},L={key:1,class:"no-results-box"},y={key:1,class:"lounges-list"},f={class:"dash-card-header"},C={class:"dash-card-name"},w={key:0,class:"badge-verified"},_={key:1,class:"badge-featured"},F={key:2,class:"badge-pending"},E={class:"dash-card-location"},S={class:"dash-stats-row"},X={class:"dash-stat"},W={class:"dash-stat-num"},U={class:"dash-stat"},P={class:"dash-stat-num"},x={class:"dash-stat"},z={class:"dash-stat-num"},T={class:"dash-stat"},I={class:"dash-actions"},M=["onClick"],D={key:0,class:"dash-checklist"},V={class:"checklist-sub"},B={class:"checklist-items"},j={key:1,class:"dash-tip"},Q={key:0,class:"review-tools-section"},O={class:"review-link-name"},N={class:"review-link-box"},A=["value"],q=["onClick"],R=["href"],J={class:"add-another-section"},$={class:"add-another-options"},H={class:"add-option"},Y={class:"add-option-search"},G={key:0,class:"search-results"},K={class:"search-count"},Z={class:"result-info"},ee=["onClick"],se={key:1,class:"already-claimed"},te={class:"search-footer"},ie={key:1,class:"no-results-box"},ae={key:2,class:"backlink-section"},oe={class:"backlink-actions"},le={key:1,class:"business-container"},ne={class:"business-header"},re={key:2,class:"loading"};function de(e,s,t,de,ue,ce){const pe=(0,i.g2)("business-nav"),he=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(pe),ue.user?((0,i.uX)(),(0,i.CE)("div",n,[ue.lounges.length||ue.loading?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",r,[s[17]||(s[17]=(0,i.Lk)("h2",null,"Get Started",-1)),s[18]||(s[18]=(0,i.Lk)("p",null,"Claim your existing business or create a new listing to manage it on CigarFinder.",-1)),(0,i.Lk)("div",d,[(0,i.Lk)("div",u,[s[7]||(s[7]=(0,i.Lk)("h3",null,"Claim Your Business",-1)),s[8]||(s[8]=(0,i.Lk)("p",null,"Already listed on CigarFinder? Search and claim it.",-1)),(0,i.Lk)("div",c,[(0,i.Lk)("div",p,[s[6]||(s[6]=(0,i.Lk)("svg",{class:"search-icon",viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"#999","stroke-width":"2"},[(0,i.Lk)("circle",{cx:"11",cy:"11",r:"8"}),(0,i.Lk)("path",{d:"M21 21l-4.35-4.35"})],-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>ue.searchQuery=e),placeholder:"Enter business name to search...",onKeyup:s[1]||(s[1]=(0,a.jR)(((...e)=>ce.searchLounges&&ce.searchLounges(...e)),["enter"])),class:"search-claim-input"},null,544),[[a.Jo,ue.searchQuery]]),(0,i.Lk)("button",{onClick:s[2]||(s[2]=(...e)=>ce.searchLounges&&ce.searchLounges(...e)),class:"search-claim-btn"},"Search & Claim")])])]),s[12]||(s[12]=(0,i.Lk)("div",{class:"start-divider"},"or",-1)),(0,i.Lk)("div",h,[s[10]||(s[10]=(0,i.Lk)("h3",null,"Create New Listing",-1)),s[11]||(s[11]=(0,i.Lk)("p",null,"Not listed yet? Add your business to CigarFinder.",-1)),(0,i.bF)(he,{to:"/business/create-listing",class:"btn-create-primary"},{default:(0,i.k6)((()=>s[9]||(s[9]=[(0,i.eW)("Create a New Listing")]))),_:1})])]),ue.searchResults.length?((0,i.uX)(),(0,i.CE)("div",g,[(0,i.Lk)("h3",null,"Found "+(0,o.v_)(ue.searchResults.length)+" matches:",1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.searchResults,(e=>((0,i.uX)(),(0,i.CE)("div",{class:"result-card",key:e.id},[(0,i.Lk)("div",k,[(0,i.Lk)("strong",null,(0,o.v_)(e.name),1),(0,i.Lk)("span",null,(0,o.v_)(e.address)+", "+(0,o.v_)(e.city)+", "+(0,o.v_)(e.state),1)]),e.claimed?((0,i.uX)(),(0,i.CE)("span",m,"Already Claimed")):((0,i.uX)(),(0,i.CE)("button",{key:0,onClick:s=>ce.startClaim(e),class:"btn-claim"},"Claim This",8,b))])))),128)),(0,i.Lk)("div",v,[(0,i.Lk)("p",null,[s[14]||(s[14]=(0,i.eW)("Don't see your business? ")),(0,i.bF)(he,{to:"/business/create-listing",class:"create-link"},{default:(0,i.k6)((()=>s[13]||(s[13]=[(0,i.eW)("Create a new listing")]))),_:1})])])])):(0,i.Q3)("",!0),0===ue.searchResults.length&&ue.searched?((0,i.uX)(),(0,i.CE)("div",L,[s[16]||(s[16]=(0,i.Lk)("p",null,"No businesses found matching your search.",-1)),(0,i.bF)(he,{to:"/business/create-listing",class:"btn-create-primary"},{default:(0,i.k6)((()=>s[15]||(s[15]=[(0,i.eW)("Create a New Listing Instead")]))),_:1})])):(0,i.Q3)("",!0)])),ue.lounges.length?((0,i.uX)(),(0,i.CE)("div",y,[(0,i.Lk)("h2",null,"Your Locations ("+(0,o.v_)(ue.lounges.length)+")",1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.lounges,(e=>((0,i.uX)(),(0,i.CE)("div",{class:"lounge-dashboard-card",key:e.id},[(0,i.Lk)("div",f,[(0,i.Lk)("h3",C,[(0,i.eW)((0,o.v_)(e.name)+" ",1),e.claimed?((0,i.uX)(),(0,i.CE)("span",w,"Verified")):(0,i.Q3)("",!0),e.featured?((0,i.uX)(),(0,i.CE)("span",_,"Featured")):e.pending_claim?((0,i.uX)(),(0,i.CE)("span",F,"Pending")):(0,i.Q3)("",!0)]),(0,i.Lk)("p",E,(0,o.v_)(e.city)+", "+(0,o.v_)(e.state),1)]),(0,i.Lk)("div",S,[(0,i.Lk)("div",X,[(0,i.Lk)("span",W,(0,o.v_)(e.views_count||0),1),s[19]||(s[19]=(0,i.Lk)("span",{class:"dash-stat-label"},"Views",-1))]),(0,i.Lk)("div",U,[(0,i.Lk)("span",P,(0,o.v_)(e.rating||"-"),1),s[20]||(s[20]=(0,i.Lk)("span",{class:"dash-stat-label"},"Rating",-1))]),(0,i.Lk)("div",x,[(0,i.Lk)("span",z,(0,o.v_)(e.review_count||0),1),s[21]||(s[21]=(0,i.Lk)("span",{class:"dash-stat-label"},"Reviews",-1))]),(0,i.Lk)("div",T,[(0,i.Lk)("span",{class:(0,o.C4)(["dash-stat-num dash-tier","tier-"+e.tier])},(0,o.v_)((e.tier||"free").charAt(0).toUpperCase()+(e.tier||"free").slice(1)),3),s[22]||(s[22]=(0,i.Lk)("span",{class:"dash-stat-label"},"Plan",-1))])]),(0,i.Lk)("div",I,[(0,i.bF)(he,{to:"/business/lounges/"+e.id+"/edit",class:"dash-btn dash-btn-primary"},{default:(0,i.k6)((()=>s[23]||(s[23]=[(0,i.eW)("Edit Listing")]))),_:2},1032,["to"]),(0,i.bF)(he,{to:"/lounges/"+e.slug,class:"dash-btn dash-btn-outline",target:"_blank"},{default:(0,i.k6)((()=>s[24]||(s[24]=[(0,i.eW)("View Public")]))),_:2},1032,["to"]),(0,i.Lk)("button",{onClick:s=>ce.goToSubscription(e.id),class:"dash-btn dash-btn-outline"},"Upgrade",8,M),(0,i.bF)(he,{to:"/business/embed-codes",class:"dash-btn dash-btn-outline"},{default:(0,i.k6)((()=>s[25]||(s[25]=[(0,i.eW)("Embed Codes")]))),_:1})]),ce.isListingComplete(e)?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",D,[s[34]||(s[34]=(0,i.Lk)("strong",null,"Complete Your Listing",-1)),(0,i.Lk)("p",V,(0,o.v_)(ce.completionPercent(e))+"% complete — finish these steps to maximize your visibility",1),(0,i.Lk)("div",B,[s[32]||(s[32]=(0,i.Lk)("span",{class:"done"},"Account created",-1)),s[33]||(s[33]=(0,i.Lk)("span",{class:"done"},"Listing created",-1)),(0,i.Lk)("span",{class:(0,o.C4)({done:ce.hasHours(e)})},[ce.hasHours(e)?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.eW)("Hours added")],64)):((0,i.uX)(),(0,i.Wv)(he,{key:1,to:"/business/lounges/"+e.id+"/edit"},{default:(0,i.k6)((()=>s[26]||(s[26]=[(0,i.eW)("Add business hours")]))),_:2},1032,["to"]))],2),(0,i.Lk)("span",{class:(0,o.C4)({done:ce.hasPhotos(e)})},[ce.hasPhotos(e)?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.eW)("Photo uploaded")],64)):((0,i.uX)(),(0,i.Wv)(he,{key:1,to:"/business/lounges/"+e.id+"/edit"},{default:(0,i.k6)((()=>s[27]||(s[27]=[(0,i.eW)("Upload a photo")]))),_:2},1032,["to"]))],2),(0,i.Lk)("span",{class:(0,o.C4)({done:ce.hasDescription(e)})},[ce.hasDescription(e)?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.eW)("Description added")],64)):((0,i.uX)(),(0,i.Wv)(he,{key:1,to:"/business/lounges/"+e.id+"/edit"},{default:(0,i.k6)((()=>s[28]||(s[28]=[(0,i.eW)("Add a description")]))),_:2},1032,["to"]))],2),(0,i.Lk)("span",{class:(0,o.C4)({done:ce.hasPlan(e)})},[ce.hasPlan(e)?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.eW)("Plan active")],64)):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.bF)(he,{to:"/business/embed-codes"},{default:(0,i.k6)((()=>s[29]||(s[29]=[(0,i.eW)("Add free badge")]))),_:1}),s[31]||(s[31]=(0,i.eW)(" or ")),(0,i.bF)(he,{to:"/business/subscription?lounge_id="+e.id},{default:(0,i.k6)((()=>s[30]||(s[30]=[(0,i.eW)("subscribe")]))),_:2},1032,["to"])],64))],2)])])),e.backlink_verified_at?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",j,[s[36]||(s[36]=(0,i.Lk)("strong",null,"Get premium features free:",-1)),s[37]||(s[37]=(0,i.eW)(" Add a CigarFinder badge to your website. ")),(0,i.bF)(he,{to:"/business/embed-codes"},{default:(0,i.k6)((()=>s[35]||(s[35]=[(0,i.eW)("Get your badge →")]))),_:1})]))])))),128)),ue.lounges.length?((0,i.uX)(),(0,i.CE)("div",Q,[s[38]||(s[38]=(0,i.Lk)("h3",null,"Collect Reviews",-1)),s[39]||(s[39]=(0,i.Lk)("p",null,"Share this link with customers to collect reviews on CigarFinder:",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.lounges,(s=>((0,i.uX)(),(0,i.CE)("div",{class:"review-link-row",key:"review-"+s.id},[(0,i.Lk)("span",O,(0,o.v_)(s.name),1),(0,i.Lk)("div",N,[(0,i.Lk)("input",{type:"text",value:"https://cigarfinder.com/lounges/"+s.slug+"#reviews",readonly:"",class:"review-link-input",ref_for:!0,ref:"reviewLink"+s.id},null,8,A),(0,i.Lk)("button",{class:"review-link-copy",onClick:e=>ce.copyReviewLink(s)},(0,o.v_)(e.copiedReview===s.id?"Copied!":"Copy"),9,q)]),(0,i.Lk)("a",{href:"https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://cigarfinder.com/lounges/"+s.slug+"%23reviews",target:"_blank",class:"qr-download-btn"},"Download QR Code",8,R)])))),128))])):(0,i.Q3)("",!0),(0,i.Lk)("div",J,[s[46]||(s[46]=(0,i.Lk)("h3",null,"Add Another Location",-1)),(0,i.Lk)("div",$,[(0,i.Lk)("div",H,[(0,i.Lk)("div",Y,[(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>ue.searchQuery=e),placeholder:"Enter business name to search...",onKeyup:s[4]||(s[4]=(0,a.jR)(((...e)=>ce.searchLounges&&ce.searchLounges(...e)),["enter"])),class:"search-claim-input"},null,544),[[a.Jo,ue.searchQuery]]),(0,i.Lk)("button",{onClick:s[5]||(s[5]=(...e)=>ce.searchLounges&&ce.searchLounges(...e)),class:"search-claim-btn"},"Search & Claim")])]),s[41]||(s[41]=(0,i.Lk)("span",{class:"add-divider"},"or",-1)),(0,i.bF)(he,{to:"/business/create-listing",class:"btn-create-primary"},{default:(0,i.k6)((()=>s[40]||(s[40]=[(0,i.eW)("Create New Listing")]))),_:1})]),ue.searchResults.length?((0,i.uX)(),(0,i.CE)("div",G,[(0,i.Lk)("p",K,"Found "+(0,o.v_)(ue.searchResults.length)+" matches:",1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ue.searchResults,(e=>((0,i.uX)(),(0,i.CE)("div",{class:"result-card",key:e.id},[(0,i.Lk)("div",Z,[(0,i.Lk)("strong",null,(0,o.v_)(e.name),1),(0,i.Lk)("span",null,(0,o.v_)(e.city)+", "+(0,o.v_)(e.state),1)]),e.claimed?((0,i.uX)(),(0,i.CE)("span",se,"Already Claimed")):((0,i.uX)(),(0,i.CE)("button",{key:0,onClick:s=>ce.startClaim(e),class:"btn-claim"},"Claim This",8,ee))])))),128)),(0,i.Lk)("div",te,[(0,i.Lk)("p",null,[s[43]||(s[43]=(0,i.eW)("Don't see your business? ")),(0,i.bF)(he,{to:"/business/create-listing",class:"create-link"},{default:(0,i.k6)((()=>s[42]||(s[42]=[(0,i.eW)("Create a new listing")]))),_:1})])])])):(0,i.Q3)("",!0),0===ue.searchResults.length&&ue.searched?((0,i.uX)(),(0,i.CE)("div",ie,[s[45]||(s[45]=(0,i.Lk)("p",null,"No businesses found.",-1)),(0,i.bF)(he,{to:"/business/create-listing",class:"btn-create-primary"},{default:(0,i.k6)((()=>s[44]||(s[44]=[(0,i.eW)("Create a New Listing")]))),_:1})])):(0,i.Q3)("",!0)])])):(0,i.Q3)("",!0),ue.lounges.length?((0,i.uX)(),(0,i.CE)("div",ae,[s[48]||(s[48]=(0,i.Lk)("h3",null,"Backlink Status",-1)),s[49]||(s[49]=(0,i.Lk)("p",{class:"backlink-desc"},"Add a CigarFinder link or badge to your website to get premium listing features for free.",-1)),(0,i.Lk)("div",oe,[(0,i.bF)(he,{to:"/business/embed-codes",class:"btn-action"},{default:(0,i.k6)((()=>s[47]||(s[47]=[(0,i.eW)("Get Embed Codes")]))),_:1})])])):(0,i.Q3)("",!0)])):ue.loading?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",le,[(0,i.Lk)("div",ne,[s[51]||(s[51]=(0,i.Lk)("h1",null,"Business Dashboard",-1)),s[52]||(s[52]=(0,i.Lk)("p",null,"Please log in to manage your listings.",-1)),(0,i.bF)(he,{to:"/business/login",class:"btn-submit",style:{display:"inline-block","margin-top":"16px","text-decoration":"none"}},{default:(0,i.k6)((()=>s[50]||(s[50]=[(0,i.eW)("Log In")]))),_:1})])])),ue.loading?((0,i.uX)(),(0,i.CE)("div",re,s[53]||(s[53]=[(0,i.Lk)("p",null,"Loading dashboard...",-1)]))):(0,i.Q3)("",!0)])}t(4114),t(8992),t(7550);var ue=t(3337),ce=t(7465),pe={name:"BusinessDashboard",components:{BusinessNav:ue.A},data(){return{user:null,lounges:[],loading:!0,searchQuery:"",searchResults:[],searched:!1}},methods:{isListingComplete(e){return this.hasHours(e)&&this.hasPhotos(e)&&this.hasDescription(e)&&this.hasPlan(e)},hasHours(e){return!(!e.hours||"object"!==typeof e.hours)&&(Object.keys(e.hours).length>0&&Object.values(e.hours).some((function(e){return e&&e.open})))},hasPhotos(e){return!!(e.photos&&Array.isArray(e.photos)&&e.photos.length>0)||!!e.photo},hasDescription(e){return e.description&&e.description.trim().length>0},hasPlan(e){return"free"!==e.tier||!!e.backlink_verified_at},completionPercent(e){var s=6,t=2;return this.hasHours(e)&&t++,this.hasPhotos(e)&&t++,this.hasDescription(e)&&t++,this.hasPlan(e)&&t++,Math.round(t/s*100)},copyReviewLink(e){var s="https://cigarfinder.com/lounges/"+e.slug+"#reviews";navigator.clipboard.writeText(s).then((()=>{this.copiedReview=e.id;var s=this;setTimeout((function(){s.copiedReview=null}),2e3)}))},async fetchDashboard(){const e=localStorage.getItem("business_session_token");if(e)try{const s=await fetch(`${ce.baseUrl}api/v1/business/dashboard`,{headers:{"Session-Token":e}});if(!s.ok)return localStorage.removeItem("business_session_token"),localStorage.removeItem("business_user"),void(this.loading=!1);const t=await s.json();this.user=t.owner,this.lounges=t.lounges||[]}catch(s){console.error("Dashboard error:",s)}finally{this.loading=!1}else this.loading=!1},async searchLounges(){if(this.searchQuery.trim()){this.searched=!0;try{const e=await fetch(`${ce.baseUrl}api/v1/lounges?q=${encodeURIComponent(this.searchQuery)}&per_page=10`),s=await e.json();this.searchResults=s.lounges||[]}catch(e){console.error("Search error:",e)}}},goToSubscription(e){localStorage.setItem("business_active_lounge_id",e),this.$router.push("/business/subscription")},startClaim(e){this.$router.push("/business/claim/"+e.id)},logout(){const e=localStorage.getItem("business_session_token");e&&fetch(`${ce.baseUrl}api/v1/business/logout`,{method:"DELETE",headers:{"Session-Token":e}}).catch((()=>{})),localStorage.removeItem("business_session_token"),localStorage.removeItem("business_user"),this.user=null,this.lounges=[],this.$router.push("/business/login")}},created(){document.title="Business Dashboard - CigarFinder",this.fetchDashboard()}},he=t(6262);const ge=(0,he.A)(pe,[["render",de],["__scopeId","data-v-25828e5e"]]);var ke=ge},2800:function(e,s,t){t.r(s),t.d(s,{default:function(){return ct}});var i=t(641),a=t(33),o=t(3751);const l={class:"biz-page"},n={key:0,class:"edit-container"},r={class:"edit-header"},d={key:0,class:"save-bar"},u=["disabled"],c={key:1,class:"pending-banner"},p={key:2,class:"edit-success"},h={key:3,class:"biz-error"},g={class:"edit-section"},k={class:"toggle-indicator"},b={key:0,class:"expand-hint"},m={class:"section-body"},v={class:"field-row"},L={class:"biz-field full"},y=["value"],f={class:"field-row"},C={class:"biz-field"},w={class:"biz-field"},_={class:"field-row three"},F={class:"biz-field"},E={class:"biz-field small"},S={class:"biz-field small"},X={class:"field-row"},W={class:"biz-field"},U={class:"biz-field"},P={class:"field-row"},x={class:"biz-field full"},z={class:"website-visibility-note"},T={class:"biz-field full"},I={key:0,class:"map-preview-section"},M={class:"map-preview-container"},D={id:"edit-map-preview",ref:"editMapPreview",class:"map-preview-box"},V={key:0,class:"field-hint"},B={key:1,class:"field-hint"},j={class:"edit-section"},Q={class:"toggle-indicator"},O={key:0,class:"expand-hint"},N={class:"section-body"},A={class:"hours-grid"},q={class:"day-label"},R={class:"closed-toggle"},J=["onUpdate:modelValue"],$=["onUpdate:modelValue"],H=["onUpdate:modelValue"],Y={key:1,class:"closed-label"},G={class:"hours-quick-actions"},K={class:"edit-section"},Z={class:"toggle-indicator"},ee={key:0,class:"expand-hint"},se={class:"section-body"},te={class:"biz-field full"},ie={class:"group-label"},ae={key:0,class:"lock-badge"},oe={class:"check-item"},le=["disabled"],ne={class:"check-item"},re=["disabled"],de={class:"check-item"},ue=["disabled"],ce={key:0,class:"lock-badge"},pe={key:0,class:"selected-tags"},he=["onClick"],ge={key:0,class:"multiselect-placeholder"},ke={key:1,class:"multiselect-placeholder"},be={class:"multiselect-dropdown"},me=["value","disabled"],ve={class:"edit-section"},Le={class:"toggle-indicator"},ye={key:0,class:"expand-hint"},fe={class:"section-body"},Ce={class:"subsection"},we={class:"toggle-grid"},_e={class:"toggle-item"},Fe={class:"toggle-item"},Ee={class:"toggle-item"},Se={class:"toggle-item"},Xe={class:"toggle-item"},We={class:"toggle-item"},Ue={class:"toggle-item"},Pe={class:"subsection"},xe={class:"toggle-grid"},ze={class:"toggle-item"},Te={class:"toggle-item"},Ie={class:"toggle-item"},Me={class:"subsection"},De={class:"field-row"},Ve={class:"biz-field"},Be=["value"],je={class:"biz-field"},Qe=["value"],Oe={class:"toggle-item"},Ne={class:"subsection"},Ae={class:"toggle-item"},qe={key:0,class:"field-row"},Re={class:"biz-field"},Je={class:"subsection"},$e={class:"field-row"},He={class:"biz-field"},Ye=["value"],Ge={class:"biz-field"},Ke=["value"],Ze={class:"biz-field full"},es={class:"tag-select"},ss=["value"],ts={class:"group-label"},is={key:0,class:"lock-badge"},as={class:"toggle-item"},os=["disabled"],ls={key:0,class:"biz-field full"},ns=["disabled"],rs={class:"group-label"},ds={key:0,class:"lock-badge"},us={class:"toggle-item"},cs=["disabled"],ps={key:0,class:"toggle-item"},hs=["disabled"],gs={class:"toggle-item"},ks=["disabled"],bs={class:"edit-section"},ms={class:"section-title"},vs={class:"toggle-indicator"},Ls={key:0,class:"expand-hint"},ys={class:"section-body"},fs={key:0,class:"photos-grid"},Cs=["src","alt"],ws=["onClick"],_s={key:1,class:"biz-field"},Fs=["disabled"],Es={key:0,class:"upload-status"},Ss={key:2,class:"field-hint"},Xs={class:"section-title"},Ws={key:0,class:"lock-badge"},Us={class:"toggle-indicator"},Ps={key:0,class:"expand-hint"},xs={class:"section-body"},zs={class:"biz-field"},Ts=["disabled"],Is={class:"biz-field"},Ms=["disabled"],Ds={class:"biz-field"},Vs=["disabled"],Bs={class:"biz-field"},js=["disabled"],Qs={class:"biz-field"},Os=["disabled"],Ns={class:"biz-field"},As=["disabled"],qs={class:"section-title"},Rs={key:0,class:"lock-badge"},Js={class:"toggle-indicator"},$s={key:0,class:"expand-hint"},Hs={class:"section-body"},Ys=["onClick"],Gs={class:"field-row"},Ks={class:"biz-field"},Zs={class:"biz-field"},et={class:"biz-field full"},st={class:"save-section"},tt=["disabled"],it={key:1,class:"edit-loading"},at={key:2,class:"edit-loading"};function ot(e,s,t,ot,lt,nt){const rt=(0,i.g2)("business-nav"),dt=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(rt),lt.lounge?((0,i.uX)(),(0,i.CE)("div",n,[(0,i.Lk)("div",r,[(0,i.Lk)("h1",null,"Edit Listing: "+(0,a.v_)(lt.lounge.name),1)]),lt.hasChanges&&!lt.saving?((0,i.uX)(),(0,i.CE)("div",d,[s[60]||(s[60]=(0,i.Lk)("span",null,"You have unsaved changes",-1)),(0,i.Lk)("button",{class:"biz-btn",onClick:s[0]||(s[0]=(...e)=>nt.saveListing&&nt.saveListing(...e)),disabled:lt.saving},(0,a.v_)(lt.saving?"Saving...":"Save Changes"),9,u)])):(0,i.Q3)("",!0),lt.lounge&&!lt.lounge.claimed?((0,i.uX)(),(0,i.CE)("div",c,[s[62]||(s[62]=(0,i.Lk)("strong",null,"⚠Verification Pending",-1)),s[63]||(s[63]=(0,i.Lk)("p",null,"You can edit your listing now. Your changes will go live once verification is complete.",-1)),(0,i.bF)(dt,{to:"/business/claim/"+lt.lounge.id},{default:(0,i.k6)((()=>s[61]||(s[61]=[(0,i.eW)("Complete Verification →")]))),_:1},8,["to"])])):(0,i.Q3)("",!0),lt.saveMsg?((0,i.uX)(),(0,i.CE)("p",p,(0,a.v_)(lt.saveMsg),1)):(0,i.Q3)("",!0),lt.error?((0,i.uX)(),(0,i.CE)("p",h,(0,a.v_)(lt.error),1)):(0,i.Q3)("",!0),(0,i.Lk)("div",g,[(0,i.Lk)("h2",{onClick:s[1]||(s[1]=e=>nt.toggleSection("basic")),class:"section-toggle"},[s[65]||(s[65]=(0,i.Lk)("span",{class:"section-title"},"Basic Information",-1)),(0,i.Lk)("span",k,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.basic}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[64]||(s[64]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.basic?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",b,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",m,[(0,i.Lk)("div",v,[(0,i.Lk)("div",L,[s[66]||(s[66]=(0,i.Lk)("label",null,"Business Name",-1)),(0,i.Lk)("input",{type:"text",value:lt.lounge.name,disabled:"",class:"disabled-input"},null,8,y),s[67]||(s[67]=(0,i.Lk)("span",{class:"field-hint"},"Contact support to change your business name",-1))])]),(0,i.Lk)("div",f,[(0,i.Lk)("div",C,[s[68]||(s[68]=(0,i.Lk)("label",null,"Address",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=e=>lt.form.address_line1=e),placeholder:"Street address"},null,512),[[o.Jo,lt.form.address_line1]])]),(0,i.Lk)("div",w,[s[69]||(s[69]=(0,i.Lk)("label",null,"Suite / Unit",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>lt.form.address_line2=e),placeholder:"Suite, unit, floor"},null,512),[[o.Jo,lt.form.address_line2]])])]),(0,i.Lk)("div",_,[(0,i.Lk)("div",F,[s[70]||(s[70]=(0,i.Lk)("label",null,"City",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[4]||(s[4]=e=>lt.form.city=e)},null,512),[[o.Jo,lt.form.city]])]),(0,i.Lk)("div",E,[s[71]||(s[71]=(0,i.Lk)("label",null,"State",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[5]||(s[5]=e=>lt.form.state=e),maxlength:"2",placeholder:"FL"},null,512),[[o.Jo,lt.form.state]])]),(0,i.Lk)("div",S,[s[72]||(s[72]=(0,i.Lk)("label",null,"Zip Code",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[6]||(s[6]=e=>lt.form.zip_code=e),maxlength:"10"},null,512),[[o.Jo,lt.form.zip_code]])])]),(0,i.Lk)("div",X,[(0,i.Lk)("div",W,[s[73]||(s[73]=(0,i.Lk)("label",null,"Phone",-1)),(0,i.bo)((0,i.Lk)("input",{type:"tel","onUpdate:modelValue":s[7]||(s[7]=e=>lt.form.phone=e),placeholder:"+1 (555) 123-4567"},null,512),[[o.Jo,lt.form.phone]])]),(0,i.Lk)("div",U,[s[74]||(s[74]=(0,i.Lk)("label",null,"Email",-1)),(0,i.bo)((0,i.Lk)("input",{type:"email","onUpdate:modelValue":s[8]||(s[8]=e=>lt.form.email=e),placeholder:"info@yourbusiness.com"},null,512),[[o.Jo,lt.form.email]])])]),(0,i.Lk)("div",P,[(0,i.Lk)("div",x,[s[80]||(s[80]=(0,i.Lk)("label",null,"Website",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[9]||(s[9]=e=>lt.form.website=e),placeholder:"https://yourbusiness.com"},null,512),[[o.Jo,lt.form.website]]),(0,i.Lk)("div",z,[s[79]||(s[79]=(0,i.Lk)("strong",null,"When will my website show on my listing?",-1)),(0,i.Lk)("ul",null,[(0,i.Lk)("li",null,[s[76]||(s[76]=(0,i.eW)("Add a free ")),(0,i.bF)(dt,{to:"/business/embed-codes"},{default:(0,i.k6)((()=>s[75]||(s[75]=[(0,i.eW)("CigarFinder badge")]))),_:1}),s[77]||(s[77]=(0,i.eW)(" to your site, OR"))]),s[78]||(s[78]=(0,i.Lk)("li",null,"Subscribe to Featured ($99/yr) or add a free badge",-1))])])])]),(0,i.Lk)("div",T,[s[82]||(s[82]=(0,i.Lk)("label",null,"Business Type",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[10]||(s[10]=e=>lt.form.lounge_type=e)},s[81]||(s[81]=[(0,i.Lk)("option",{value:"cigar_lounge"},"Cigar Lounge",-1),(0,i.Lk)("option",{value:"cigar_shop"},"Cigar Shop",-1),(0,i.Lk)("option",{value:"cigar_bar"},"Cigar Bar",-1),(0,i.Lk)("option",{value:"tobacconist"},"Tobacconist",-1)]),512),[[o.u1,lt.form.lounge_type]])]),lt.lounge?((0,i.uX)(),(0,i.CE)("div",I,[s[83]||(s[83]=(0,i.Lk)("label",null,"Location Preview",-1)),(0,i.Lk)("div",M,[(0,i.Lk)("div",D,null,512)]),lt.mapMarker?((0,i.uX)(),(0,i.CE)("p",V,"Drag the pin to adjust your exact location.")):((0,i.uX)(),(0,i.CE)("p",B,"Save your address to see the map pin."))])):(0,i.Q3)("",!0)],512),[[o.aG,lt.sections.basic]])]),(0,i.Lk)("div",j,[(0,i.Lk)("h2",{onClick:s[11]||(s[11]=e=>nt.toggleSection("hours")),class:"section-toggle"},[s[85]||(s[85]=(0,i.Lk)("span",{class:"section-title"},"Business Hours",-1)),(0,i.Lk)("span",Q,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.hours}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[84]||(s[84]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.hours?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",O,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",N,[s[88]||(s[88]=(0,i.Lk)("p",{class:"hours-helper"},"Set hours for each day your business is open",-1)),(0,i.Lk)("div",A,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.dayOrder,(e=>((0,i.uX)(),(0,i.CE)("div",{key:e,class:(0,a.C4)(["hours-row",{"row-closed":lt.hoursClosed[e]}])},[(0,i.Lk)("label",q,(0,a.v_)(lt.dayNames[e]),1),(0,i.Lk)("label",R,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s=>lt.hoursClosed[e]=s},null,8,J),[[o.lH,lt.hoursClosed[e]]]),s[86]||(s[86]=(0,i.eW)(" Closed "))]),lt.hoursClosed[e]?((0,i.uX)(),(0,i.CE)("span",Y,"Not open this day")):((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.bo)((0,i.Lk)("input",{type:"time","onUpdate:modelValue":s=>lt.hoursOpen[e]=s,class:"time-input"},null,8,$),[[o.Jo,lt.hoursOpen[e]]]),s[87]||(s[87]=(0,i.Lk)("span",{class:"time-sep"},"to",-1)),(0,i.bo)((0,i.Lk)("input",{type:"time","onUpdate:modelValue":s=>lt.hoursClose[e]=s,class:"time-input"},null,8,H),[[o.Jo,lt.hoursClose[e]]])],64))],2)))),128))]),(0,i.Lk)("div",G,[(0,i.Lk)("button",{type:"button",class:"btn-quick-hours",onClick:s[12]||(s[12]=(...e)=>nt.applyToWeekdays&&nt.applyToWeekdays(...e))},"Apply Monday hours to all weekdays"),(0,i.Lk)("button",{type:"button",class:"btn-quick-hours",onClick:s[13]||(s[13]=(...e)=>nt.applyToAll&&nt.applyToAll(...e))},"Apply Monday hours to all days")])],512),[[o.aG,lt.sections.hours]])]),(0,i.Lk)("div",K,[(0,i.Lk)("h2",{onClick:s[14]||(s[14]=e=>nt.toggleSection("about")),class:"section-toggle"},[s[90]||(s[90]=(0,i.Lk)("span",{class:"section-title"},"About Your Business",-1)),(0,i.Lk)("span",Z,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.about}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[89]||(s[89]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.about?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",ee,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",se,[(0,i.Lk)("div",te,[s[91]||(s[91]=(0,i.Lk)("label",null,"Description",-1)),(0,i.bo)((0,i.Lk)("textarea",{"onUpdate:modelValue":s[15]||(s[15]=e=>lt.form.description=e),rows:"5",placeholder:"Tell customers about your business, what makes it special, your history..."},null,512),[[o.Jo,lt.form.description]])]),(0,i.Lk)("div",{class:(0,a.C4)(["checkbox-group",{locked:!nt.canEditIdentity}])},[(0,i.Lk)("label",ie,[s[92]||(s[92]=(0,i.eW)("Business Identity ")),nt.canEditIdentity?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",ae,"Featured Only"))]),(0,i.Lk)("label",oe,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[16]||(s[16]=e=>lt.identityForm.women_owned=e),disabled:!nt.canEditIdentity},null,8,le),[[o.lH,lt.identityForm.women_owned]]),s[93]||(s[93]=(0,i.eW)(" Women Owned & Operated"))]),(0,i.Lk)("label",ne,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[17]||(s[17]=e=>lt.identityForm.minority_owned=e),disabled:!nt.canEditIdentity},null,8,re),[[o.lH,lt.identityForm.minority_owned]]),s[94]||(s[94]=(0,i.eW)(" Minority Owned & Operated"))]),(0,i.Lk)("label",de,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[18]||(s[18]=e=>lt.identityForm.veteran_owned=e),disabled:!nt.canEditIdentity},null,8,ue),[[o.lH,lt.identityForm.veteran_owned]]),s[95]||(s[95]=(0,i.eW)(" Veteran Owned & Operated"))])],2),(0,i.Lk)("div",{class:(0,a.C4)(["biz-field full",{locked:!nt.canEditIdentity}])},[(0,i.Lk)("label",null,[s[96]||(s[96]=(0,i.eW)("Languages Spoken ")),nt.canEditIdentity?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",ce,"Featured Only"))]),(0,i.Lk)("div",{class:(0,a.C4)(["language-multiselect",{disabled:!nt.canEditIdentity}])},[lt.identityForm.languages.length?((0,i.uX)(),(0,i.CE)("div",pe,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.identityForm.languages,(e=>((0,i.uX)(),(0,i.CE)("span",{class:"lang-tag",key:e},[(0,i.eW)((0,a.v_)(e)+" ",1),nt.canEditIdentity?((0,i.uX)(),(0,i.CE)("button",{key:0,type:"button",class:"tag-remove",onClick:s=>nt.removeLanguage(e)},"×",8,he)):(0,i.Q3)("",!0)])))),128))])):(0,i.Q3)("",!0),(0,i.Lk)("div",{class:(0,a.C4)(["multiselect-trigger",{active:lt.languageDropdownOpen}]),onClick:s[19]||(s[19]=(...e)=>nt.toggleLanguageDropdown&&nt.toggleLanguageDropdown(...e))},[lt.identityForm.languages.length?((0,i.uX)(),(0,i.CE)("span",ke,(0,a.v_)(lt.identityForm.languages.length)+" selected",1)):((0,i.uX)(),(0,i.CE)("span",ge,"Select languages...")),((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.languageDropdownOpen}]),width:"14",height:"14",viewBox:"0 0 16 16",fill:"none"},s[97]||(s[97]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2))],2),(0,i.bo)((0,i.Lk)("div",be,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.languageOptions,(e=>((0,i.uX)(),(0,i.CE)("label",{key:e,class:(0,a.C4)(["dropdown-check-item",{selected:lt.identityForm.languages.includes(e)}])},[(0,i.bo)((0,i.Lk)("input",{type:"checkbox",value:e,"onUpdate:modelValue":s[20]||(s[20]=e=>lt.identityForm.languages=e),disabled:!nt.canEditIdentity},null,8,me),[[o.lH,lt.identityForm.languages]]),(0,i.Lk)("span",null,(0,a.v_)(e),1)],2)))),128))],512),[[o.aG,lt.languageDropdownOpen]])],2)],2)],512),[[o.aG,lt.sections.about]])]),(0,i.Lk)("div",ve,[(0,i.Lk)("h2",{onClick:s[21]||(s[21]=e=>nt.toggleSection("features")),class:"section-toggle"},[s[99]||(s[99]=(0,i.Lk)("span",{class:"section-title"},"Features & Amenities",-1)),(0,i.Lk)("span",Le,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.features}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[98]||(s[98]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.features?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",ye,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",fe,[(0,i.Lk)("div",Ce,[s[107]||(s[107]=(0,i.Lk)("label",{class:"group-label"},"Lounge Features",-1)),(0,i.Lk)("div",we,[(0,i.Lk)("label",_e,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[22]||(s[22]=e=>lt.amenitiesForm.lounge_area=e)},null,512),[[o.lH,lt.amenitiesForm.lounge_area]]),s[100]||(s[100]=(0,i.eW)(" Lounge Area"))]),(0,i.Lk)("label",Fe,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[23]||(s[23]=e=>lt.amenitiesForm.wifi=e)},null,512),[[o.lH,lt.amenitiesForm.wifi]]),s[101]||(s[101]=(0,i.eW)(" Wi-Fi"))]),(0,i.Lk)("label",Ee,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[24]||(s[24]=e=>lt.amenitiesForm.tv=e)},null,512),[[o.lH,lt.amenitiesForm.tv]]),s[102]||(s[102]=(0,i.eW)(" TV"))]),(0,i.Lk)("label",Se,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[25]||(s[25]=e=>lt.amenitiesForm.parking=e)},null,512),[[o.lH,lt.amenitiesForm.parking]]),s[103]||(s[103]=(0,i.eW)(" Parking"))]),(0,i.Lk)("label",Xe,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[26]||(s[26]=e=>lt.amenitiesForm.outdoor=e)},null,512),[[o.lH,lt.amenitiesForm.outdoor]]),s[104]||(s[104]=(0,i.eW)(" Outdoor/Patio"))]),(0,i.Lk)("label",We,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[27]||(s[27]=e=>lt.amenitiesForm.events=e)},null,512),[[o.lH,lt.amenitiesForm.events]]),s[105]||(s[105]=(0,i.eW)(" Hosts Events"))]),(0,i.Lk)("label",Ue,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[28]||(s[28]=e=>lt.amenitiesForm.private_lockers=e)},null,512),[[o.lH,lt.amenitiesForm.private_lockers]]),s[106]||(s[106]=(0,i.eW)(" Private Lockers"))])])]),(0,i.Lk)("div",Pe,[s[111]||(s[111]=(0,i.Lk)("label",{class:"group-label"},"Cigar Features",-1)),(0,i.Lk)("div",xe,[(0,i.Lk)("label",ze,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[29]||(s[29]=e=>lt.featuresForm.walk_in_humidor=e)},null,512),[[o.lH,lt.featuresForm.walk_in_humidor]]),s[108]||(s[108]=(0,i.eW)(" Walk-in Humidor"))]),(0,i.Lk)("label",Te,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[30]||(s[30]=e=>lt.featuresForm.smoke_inside=e)},null,512),[[o.lH,lt.featuresForm.smoke_inside]]),s[109]||(s[109]=(0,i.eW)(" Smoke Inside"))]),(0,i.Lk)("label",Ie,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[31]||(s[31]=e=>lt.featuresForm.handroll_service=e)},null,512),[[o.lH,lt.featuresForm.handroll_service]]),s[110]||(s[110]=(0,i.eW)(" Handroll / Rolling Service"))])])]),(0,i.Lk)("div",Me,[s[117]||(s[117]=(0,i.Lk)("label",{class:"group-label"},"Food & Drink",-1)),(0,i.Lk)("div",De,[(0,i.Lk)("div",Ve,[s[113]||(s[113]=(0,i.Lk)("label",null,"Bar Type",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[32]||(s[32]=e=>lt.featuresForm.bar_type=e)},[s[112]||(s[112]=(0,i.Lk)("option",{value:""},"Select...",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.options.bar_types,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.value,value:e.value},(0,a.v_)(e.label),9,Be)))),128))],512),[[o.u1,lt.featuresForm.bar_type]])]),(0,i.Lk)("div",je,[s[115]||(s[115]=(0,i.Lk)("label",null,"Food",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[33]||(s[33]=e=>lt.featuresForm.food_type=e)},[s[114]||(s[114]=(0,i.Lk)("option",{value:""},"Select...",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.options.food_types,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.value,value:e.value},(0,a.v_)(e.label),9,Qe)))),128))],512),[[o.u1,lt.featuresForm.food_type]])])]),(0,i.Lk)("label",Oe,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[34]||(s[34]=e=>lt.featuresForm.gambling_gaming=e)},null,512),[[o.lH,lt.featuresForm.gambling_gaming]]),s[116]||(s[116]=(0,i.eW)(" Gambling / Gaming"))])]),(0,i.Lk)("div",Ne,[s[120]||(s[120]=(0,i.Lk)("label",{class:"group-label"},"Cigar Policy",-1)),(0,i.Lk)("label",Ae,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[35]||(s[35]=e=>lt.featuresForm.allows_outside_cigars=e)},null,512),[[o.lH,lt.featuresForm.allows_outside_cigars]]),s[118]||(s[118]=(0,i.eW)(" Allow Outside Cigars"))]),lt.featuresForm.allows_outside_cigars?((0,i.uX)(),(0,i.CE)("div",qe,[(0,i.Lk)("div",Re,[s[119]||(s[119]=(0,i.Lk)("label",null,"Cutting Fee",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[36]||(s[36]=e=>lt.featuresForm.cutting_fee=e),placeholder:"e.g. .00 or Free"},null,512),[[o.Jo,lt.featuresForm.cutting_fee]])])])):(0,i.Q3)("",!0)]),(0,i.Lk)("div",Je,[s[126]||(s[126]=(0,i.Lk)("label",{class:"group-label"},"Atmosphere",-1)),(0,i.Lk)("div",$e,[(0,i.Lk)("div",He,[s[122]||(s[122]=(0,i.Lk)("label",null,"Located In",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[37]||(s[37]=e=>lt.featuresForm.located_in=e)},[s[121]||(s[121]=(0,i.Lk)("option",{value:""},"Select...",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.options.located_in,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.value,value:e.value},(0,a.v_)(e.label),9,Ye)))),128))],512),[[o.u1,lt.featuresForm.located_in]])]),(0,i.Lk)("div",Ge,[s[124]||(s[124]=(0,i.Lk)("label",null,"Dress Code",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[38]||(s[38]=e=>lt.featuresForm.dress_code=e)},[s[123]||(s[123]=(0,i.Lk)("option",{value:""},"Select...",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.options.dress_codes,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.value,value:e.value},(0,a.v_)(e.label),9,Ke)))),128))],512),[[o.u1,lt.featuresForm.dress_code]])])]),(0,i.Lk)("div",Ze,[s[125]||(s[125]=(0,i.Lk)("label",null,"Atmosphere (select all that apply)",-1)),(0,i.Lk)("div",es,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.options.atmospheres,(e=>((0,i.uX)(),(0,i.CE)("label",{key:e.value,class:"check-item inline"},[(0,i.bo)((0,i.Lk)("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":s[39]||(s[39]=e=>lt.featuresForm.atmosphere=e)},null,8,ss),[[o.lH,lt.featuresForm.atmosphere]]),(0,i.eW)(" "+(0,a.v_)(e.label),1)])))),128))])])]),(0,i.Lk)("div",{class:(0,a.C4)(["subsection",{locked:!nt.isFeatured}])},[(0,i.Lk)("label",ts,[s[127]||(s[127]=(0,i.eW)("Entertainment ")),nt.isFeatured?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",is,"Featured Only"))]),(0,i.Lk)("label",as,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[40]||(s[40]=e=>lt.featuresForm.live_entertainment=e),disabled:!nt.isFeatured},null,8,os),[[o.lH,lt.featuresForm.live_entertainment]]),s[128]||(s[128]=(0,i.eW)(" Live Entertainment"))]),lt.featuresForm.live_entertainment?((0,i.uX)(),(0,i.CE)("div",ls,[s[129]||(s[129]=(0,i.Lk)("label",null,"Entertainment Schedule URL",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[41]||(s[41]=e=>lt.featuresForm.entertainment_schedule_url=e),placeholder:"https://yourbusiness.com/events",disabled:!nt.isFeatured},null,8,ns),[[o.Jo,lt.featuresForm.entertainment_schedule_url]])])):(0,i.Q3)("",!0)],2),(0,i.Lk)("div",{class:(0,a.C4)(["subsection",{locked:!nt.isFeatured}])},[(0,i.Lk)("label",rs,[s[130]||(s[130]=(0,i.eW)("Membership ")),nt.isFeatured?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",ds,"Featured Only"))]),(0,i.Lk)("label",us,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[42]||(s[42]=e=>lt.featuresForm.private_membership=e),disabled:!nt.isFeatured},null,8,cs),[[o.lH,lt.featuresForm.private_membership]]),s[131]||(s[131]=(0,i.eW)(" Private Lounge Membership"))]),lt.featuresForm.private_membership?((0,i.uX)(),(0,i.CE)("label",ps,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[43]||(s[43]=e=>lt.featuresForm.twenty_four_hour_access=e),disabled:!nt.isFeatured},null,8,hs),[[o.lH,lt.featuresForm.twenty_four_hour_access]]),s[132]||(s[132]=(0,i.eW)(" 24 Hour Access"))])):(0,i.Q3)("",!0),(0,i.Lk)("label",gs,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox","onUpdate:modelValue":s[44]||(s[44]=e=>lt.featuresForm.work_desk=e),disabled:!nt.isFeatured},null,8,ks),[[o.lH,lt.featuresForm.work_desk]]),s[133]||(s[133]=(0,i.eW)(" Work Desk / Computer Area"))])],2)],512),[[o.aG,lt.sections.features]])]),(0,i.Lk)("div",bs,[(0,i.Lk)("h2",{onClick:s[45]||(s[45]=e=>nt.toggleSection("photos")),class:"section-toggle"},[(0,i.Lk)("span",ms,[(0,i.eW)("Photos ("+(0,a.v_)(lt.lounge.photos?lt.lounge.photos.length:0)+" / "+(0,a.v_)(lt.lounge.max_photos||1)+") ",1),s[134]||(s[134]=(0,i.Lk)("span",{class:"tier-hint"},"Free: 1 | Basic: 3 | Featured: 20",-1))]),(0,i.Lk)("span",vs,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.photos}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[135]||(s[135]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.photos?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",Ls,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",ys,[lt.lounge.photos&<.lounge.photos.length?((0,i.uX)(),(0,i.CE)("div",fs,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.lounge.photos,(e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"photo-thumb"},[(0,i.Lk)("img",{src:e.url,alt:e.caption||"Photo"},null,8,Cs),(0,i.Lk)("button",{class:"photo-delete",onClick:s=>nt.deletePhoto(e.id)},"×",8,ws)])))),128))])):(0,i.Q3)("",!0),(lt.lounge.photos||[]).length<(lt.lounge.max_photos||1)?((0,i.uX)(),(0,i.CE)("div",_s,[s[136]||(s[136]=(0,i.Lk)("label",null,"Upload Photo",-1)),(0,i.Lk)("input",{type:"file",onChange:s[46]||(s[46]=(...e)=>nt.uploadPhoto&&nt.uploadPhoto(...e)),accept:"image/jpeg,image/png,image/webp",ref:"photoInput",disabled:lt.uploadingPhoto},null,40,Fs),lt.uploadingPhoto?((0,i.uX)(),(0,i.CE)("p",Es,"Uploading...")):(0,i.Q3)("",!0)])):((0,i.uX)(),(0,i.CE)("p",Ss,[s[138]||(s[138]=(0,i.eW)("Maximum photos reached for your tier. ")),(0,i.bF)(dt,{to:"/business/subscription"},{default:(0,i.k6)((()=>s[137]||(s[137]=[(0,i.eW)("Upgrade for more →")]))),_:1})]))],512),[[o.aG,lt.sections.photos]])]),(0,i.Lk)("div",{class:(0,a.C4)(["edit-section",{locked:!nt.isFeatured}])},[(0,i.Lk)("h2",{onClick:s[47]||(s[47]=e=>nt.toggleSection("social")),class:"section-toggle"},[(0,i.Lk)("span",Xs,[s[139]||(s[139]=(0,i.eW)("Social Profiles ")),nt.isFeatured?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",Ws,"Featured Only"))]),(0,i.Lk)("span",Us,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.social}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[140]||(s[140]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.social?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",Ps,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",xs,[(0,i.Lk)("div",zs,[s[141]||(s[141]=(0,i.Lk)("label",null,"Facebook",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[48]||(s[48]=e=>lt.socialForm.facebook=e),placeholder:"https://facebook.com/yourbusiness",disabled:!nt.isFeatured},null,8,Ts),[[o.Jo,lt.socialForm.facebook]])]),(0,i.Lk)("div",Is,[s[142]||(s[142]=(0,i.Lk)("label",null,"Instagram",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[49]||(s[49]=e=>lt.socialForm.instagram=e),placeholder:"https://instagram.com/yourbusiness",disabled:!nt.isFeatured},null,8,Ms),[[o.Jo,lt.socialForm.instagram]])]),(0,i.Lk)("div",Ds,[s[143]||(s[143]=(0,i.Lk)("label",null,"TikTok",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[50]||(s[50]=e=>lt.socialForm.tiktok=e),placeholder:"https://tiktok.com/@yourbusiness",disabled:!nt.isFeatured},null,8,Vs),[[o.Jo,lt.socialForm.tiktok]])]),(0,i.Lk)("div",Bs,[s[144]||(s[144]=(0,i.Lk)("label",null,"YouTube",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[51]||(s[51]=e=>lt.socialForm.youtube=e),placeholder:"https://youtube.com/@yourbusiness",disabled:!nt.isFeatured},null,8,js),[[o.Jo,lt.socialForm.youtube]])]),(0,i.Lk)("div",Qs,[s[145]||(s[145]=(0,i.Lk)("label",null,"LinkedIn",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[52]||(s[52]=e=>lt.socialForm.linkedin=e),placeholder:"https://linkedin.com/company/yourbusiness",disabled:!nt.isFeatured},null,8,Os),[[o.Jo,lt.socialForm.linkedin]])]),(0,i.Lk)("div",Ns,[s[146]||(s[146]=(0,i.Lk)("label",null,"Twitter / X",-1)),(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[53]||(s[53]=e=>lt.socialForm.twitter=e),placeholder:"https://x.com/yourbusiness",disabled:!nt.isFeatured},null,8,As),[[o.Jo,lt.socialForm.twitter]])])],512),[[o.aG,lt.sections.social]])],2),(0,i.Lk)("div",{class:(0,a.C4)(["edit-section",{locked:!nt.isFeatured}])},[(0,i.Lk)("h2",{onClick:s[54]||(s[54]=e=>nt.toggleSection("events")),class:"section-toggle"},[(0,i.Lk)("span",qs,[s[147]||(s[147]=(0,i.eW)("Events ")),nt.isFeatured?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",Rs,"Featured Only"))]),(0,i.Lk)("span",Js,[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["chevron-icon",{open:lt.sections.events}]),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s[148]||(s[148]=[(0,i.Lk)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)),lt.sections.events?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("span",$s,"Click to expand"))])]),(0,i.bo)((0,i.Lk)("div",Hs,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(lt.lounge.events,(e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"event-item"},[(0,i.Lk)("strong",null,(0,a.v_)(e.title),1),(0,i.eW)(" — "+(0,a.v_)(new Date(e.event_date).toLocaleDateString())+" ",1),(0,i.Lk)("button",{class:"small-delete",onClick:s=>nt.deleteEvent(e.id)},"Remove",8,Ys)])))),128)),s[152]||(s[152]=(0,i.Lk)("h3",{class:"mt-16"},"Add Event",-1)),(0,i.Lk)("div",Gs,[(0,i.Lk)("div",Ks,[s[149]||(s[149]=(0,i.Lk)("label",null,"Title",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[55]||(s[55]=e=>lt.newEvent.title=e),placeholder:"Cigar & Whiskey Night"},null,512),[[o.Jo,lt.newEvent.title]])]),(0,i.Lk)("div",Zs,[s[150]||(s[150]=(0,i.Lk)("label",null,"Date",-1)),(0,i.bo)((0,i.Lk)("input",{type:"datetime-local","onUpdate:modelValue":s[56]||(s[56]=e=>lt.newEvent.event_date=e)},null,512),[[o.Jo,lt.newEvent.event_date]])])]),(0,i.Lk)("div",et,[s[151]||(s[151]=(0,i.Lk)("label",null,"Description",-1)),(0,i.bo)((0,i.Lk)("textarea",{"onUpdate:modelValue":s[57]||(s[57]=e=>lt.newEvent.description=e),rows:"2",placeholder:"Details about the event..."},null,512),[[o.Jo,lt.newEvent.description]])]),(0,i.Lk)("button",{class:"biz-btn-sm",onClick:s[58]||(s[58]=(...e)=>nt.addEvent&&nt.addEvent(...e))},"Add Event")],512),[[o.aG,lt.sections.events&&nt.isFeatured]])],2),(0,i.Lk)("div",st,[(0,i.Lk)("button",{class:"biz-btn",onClick:s[59]||(s[59]=(...e)=>nt.saveListing&&nt.saveListing(...e)),disabled:lt.saving},(0,a.v_)(lt.saving?"Saving...":"Save All Changes"),9,tt),(0,i.bF)(dt,{to:"/lounges/"+lt.lounge.slug,class:"view-link",target:"_blank"},{default:(0,i.k6)((()=>s[153]||(s[153]=[(0,i.eW)("View Public Listing →")]))),_:1},8,["to"])])])):lt.loading?((0,i.uX)(),(0,i.CE)("div",it,s[154]||(s[154]=[(0,i.Lk)("p",null,"Loading listing...",-1)]))):((0,i.uX)(),(0,i.CE)("div",at,s[155]||(s[155]=[(0,i.Lk)("p",null,"Listing not found or you don't have access.",-1)])))])}t(4114),t(8992),t(4520),t(3949);var lt=t(3337),nt=t(7465),rt={name:"BusinessEditListing",components:{BusinessNav:lt.A},data(){return{lounge:null,loading:!0,editMap:null,mapMarker:null,adjustedLat:null,adjustedLng:null,saving:!1,uploadingPhoto:!1,error:null,saveMsg:null,hasChanges:!1,initialLoaded:!1,languageDropdownOpen:!1,options:{bar_types:[],food_types:[],located_in:[],dress_codes:[],atmospheres:[]},languageOptions:[],sections:{basic:!0,hours:!0,about:!0,features:!1,photos:!1,social:!1,events:!1},dayOrder:["mon","tue","wed","thu","fri","sat","sun"],dayNames:{mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},form:{address_line1:"",address_line2:"",city:"",state:"",zip_code:"",phone:"",email:"",website:"",description:"",lounge_type:""},hoursOpen:{mon:"",tue:"",wed:"",thu:"",fri:"",sat:"",sun:""},hoursClose:{mon:"",tue:"",wed:"",thu:"",fri:"",sat:"",sun:""},hoursClosed:{mon:!0,tue:!0,wed:!0,thu:!0,fri:!0,sat:!0,sun:!0},amenitiesForm:{lounge_area:!1,wifi:!1,tv:!1,parking:!1,outdoor:!1,events:!1,private_lockers:!1},featuresForm:{walk_in_humidor:!1,smoke_inside:!1,handroll_service:!1,bar_type:"",food_type:"",gambling_gaming:!1,located_in:"",dress_code:"",atmosphere:[],live_entertainment:!1,entertainment_schedule_url:"",private_membership:!1,twenty_four_hour_access:!1,work_desk:!1,allows_outside_cigars:!1,cutting_fee:""},identityForm:{women_owned:!1,minority_owned:!1,veteran_owned:!1,languages:[]},socialForm:{facebook:"",instagram:"",tiktok:"",youtube:"",linkedin:"",twitter:""},newEvent:{title:"",description:"",event_date:""}}},computed:{token(){return localStorage.getItem("business_session_token")},isFeatured(){return this.lounge&&("featured"===this.lounge.tier||this.lounge.backlink_verified_at)},canEditIdentity(){return this.isFeatured}},methods:{toggleSection(e){this.sections[e]=!this.sections[e]},toggleLanguageDropdown(){this.canEditIdentity&&(this.languageDropdownOpen=!this.languageDropdownOpen)},removeLanguage(e){this.identityForm.languages=this.identityForm.languages.filter((s=>s!==e))},closeLanguageDropdown(e){this.$el.querySelector(".language-multiselect")&&this.$el.querySelector(".language-multiselect").contains(e.target)||(this.languageDropdownOpen=!1)},applyToWeekdays(){var e=["tue","wed","thu","fri"],s=this;e.forEach((function(e){s.hoursOpen[e]=s.hoursOpen["mon"],s.hoursClose[e]=s.hoursClose["mon"],s.hoursClosed[e]=s.hoursClosed["mon"]}))},applyToAll(){var e=["tue","wed","thu","fri","sat","sun"],s=this;e.forEach((function(e){s.hoursOpen[e]=s.hoursOpen["mon"],s.hoursClose[e]=s.hoursClose["mon"],s.hoursClosed[e]=s.hoursClosed["mon"]}))},async loadLounge(){this.loading=!0;try{const e=await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id,{headers:{"Session-Token":this.token}});if(!e.ok)return this.lounge=null,void(this.loading=!1);const s=await e.json();this.lounge=s.lounge,this.initialLoaded=!1,this.populateForm(),setTimeout((()=>{this.hasChanges=!1,this.initialLoaded=!0}),500)}catch(e){console.error(e)}this.loading=!1,this.$nextTick((()=>{this.initEditMap()}))},initEditMap(){if(window.google&&window.google.maps&&this.lounge){var e=this.$refs.editMapPreview;if(e){var s=parseFloat(this.lounge.latitude)||39.8,t=parseFloat(this.lounge.longitude)||-98.5,i=this.lounge.latitude?15:4;if(this.editMap=new window.google.maps.Map(e,{zoom:i,center:{lat:s,lng:t},mapTypeControl:!1,streetViewControl:!1}),this.lounge.latitude){this.mapMarker=new window.google.maps.Marker({position:{lat:s,lng:t},map:this.editMap,draggable:!0,title:"Drag to adjust location"});var a=this;this.mapMarker.addListener("dragend",(function(e){a.adjustedLat=e.latLng.lat(),a.adjustedLng=e.latLng.lng(),a.hasChanges=!0}))}}}},populateForm(){const e=this.lounge;this.form={address_line1:e.address_line1||"",address_line2:e.address_line2||"",city:e.city||"",state:e.state||"",zip_code:e.zip_code||"",phone:e.phone||"",email:e.email||"",website:e.website||"",description:e.description||"",lounge_type:e.lounge_type||""},this.dayOrder.forEach((s=>{const t=(e.hours||{})[s];this.hoursOpen[s]=t&&t.open?t.open:"09:00",this.hoursClose[s]=t&&t.close?t.close:"21:00",this.hoursClosed[s]=!t||!t.open}));const s=e.amenities||{};Object.keys(this.amenitiesForm).forEach((e=>{this.amenitiesForm[e]=!0===s[e]||"true"===s[e]}));const t=e.features||{};Object.keys(this.featuresForm).forEach((e=>{"atmosphere"===e?this.featuresForm[e]=t[e]||[]:"boolean"===typeof this.featuresForm[e]?this.featuresForm[e]=!0===t[e]||"true"===t[e]:this.featuresForm[e]=t[e]||""}));const i=e.identity||{};this.identityForm.women_owned=i.women_owned||!1,this.identityForm.minority_owned=i.minority_owned||!1,this.identityForm.veteran_owned=i.veteran_owned||!1,this.identityForm.languages=i.languages||[];const a=e.social_links||{};Object.keys(this.socialForm).forEach((e=>{this.socialForm[e]=a[e]||""}))},async saveListing(){this.saving=!0,this.error=null,this.saveMsg=null;const e={};this.dayOrder.forEach((s=>{this.hoursClosed[s]||(e[s]={open:this.hoursOpen[s],close:this.hoursClose[s]})}));const s={...this.form,hours:e,latitude:this.adjustedLat||void 0,longitude:this.adjustedLng||void 0,amenities:this.amenitiesForm,features:this.featuresForm,identity:this.identityForm,social_links:this.socialForm};try{const e=await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id,{method:"PUT",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(s)}),i=await e.json();if(!e.ok)return void(this.error=i.errors?i.errors.join(", "):"Save failed");this.lounge=i.lounge,this.saveMsg="Listing saved successfully!",window.scrollTo(0,0),this.initialLoaded=!1,this.hasChanges=!1;try{this.populateForm()}catch(t){console.debug("populateForm error:",t)}setTimeout((()=>{this.hasChanges=!1,this.initialLoaded=!0}),500),setTimeout((()=>{this.saveMsg=null}),3e3)}catch(t){console.error("Save error:",t),this.saveMsg||(this.error="Network error - please try again")}finally{this.saving=!1}},async uploadPhoto(e){const s=e.target.files[0];if(!s)return;if(s.size>10485760)return void(this.error="Photo must be under 10MB");this.uploadingPhoto=!0,this.error=null;const t=new FormData;t.append("image",s);try{const e=await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id+"/photos",{method:"POST",headers:{"Session-Token":this.token},body:t}),s=await e.json();e.ok&&s.photo?(this.lounge.photos||(this.lounge.photos=[]),this.lounge.photos.push(s.photo),this.$refs.photoInput.value="",this.saveMsg="Photo uploaded successfully!",setTimeout((()=>{this.saveMsg=null}),3e3)):this.error=s.errors?s.errors.join(", "):"Upload failed — please try a different image"}catch(e){this.error="Upload failed: "+e.message,console.error("Photo upload error:",e)}this.uploadingPhoto=!1},async deletePhoto(e){if(confirm("Delete this photo?"))try{await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id+"/photos/"+e,{method:"DELETE",headers:{"Session-Token":this.token}}),this.lounge.photos=this.lounge.photos.filter((s=>s.id!==e))}catch(s){this.error="Delete failed"}},async addEvent(){if(this.newEvent.title&&this.newEvent.event_date)try{const e=await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id+"/events",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify(this.newEvent)}),s=await e.json();e.ok?(this.lounge.events.push(s.event),this.newEvent={title:"",description:"",event_date:""}):this.error=s.errors?s.errors.join(", "):"Failed"}catch(e){this.error="Failed"}else this.error="Event title and date required"},async deleteEvent(e){if(confirm("Delete this event?"))try{await fetch(nt.baseUrl+"api/v1/business/lounges/"+this.$route.params.id+"/events/"+e,{method:"DELETE",headers:{"Session-Token":this.token}}),this.lounge.events=this.lounge.events.filter((s=>s.id!==e))}catch(s){this.error="Delete failed"}},async loadOptions(){try{const e=await(0,nt.fetchData)(nt.baseUrl+"api/v1/lounges/feature_options");this.options=e,this.languageOptions=e.languages||[]}catch(e){console.error(e)}}},watch:{form:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},amenitiesForm:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},featuresForm:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},identityForm:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},socialForm:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},hoursOpen:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},hoursClose:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0},hoursClosed:{handler(){this.initialLoaded&&(this.hasChanges=!0)},deep:!0}},mounted(){document.title="Edit Listing - CigarFinder Business",this.token?(this.loadLounge(),this.loadOptions(),document.addEventListener("click",this.closeLanguageDropdown)):this.$router.push("/business/login")},beforeUnmount(){document.removeEventListener("click",this.closeLanguageDropdown)}},dt=t(6262);const ut=(0,dt.A)(rt,[["render",ot]]);var ct=ut},9196:function(e,s,t){t.r(s),t.d(s,{default:function(){return le}});var i=t(641),a=t(33),o=t(3751);const l={class:"biz-page"},n={class:"embed-container"},r={key:0,class:"biz-card",style:{"text-align":"center"}},d={key:1,class:"loading"},u={key:2,class:"biz-card",style:{"text-align":"center"}},c={key:3},p={key:0,class:"lounge-select"},h=["value"],g={class:"embed-option"},k={class:"size-tabs"},b=["onClick"],m={class:"size-use"},v={key:0,class:"badge-preview"},L={class:"pro-badge-content"},y={class:"pro-badge-name"},f={key:1,class:"badge-preview"},C={class:"pro-banner"},w={class:"pro-banner-info"},_={class:"pro-banner-name"},F={key:2,class:"badge-preview"},E={class:"pro-card"},S={class:"pro-card-header"},X={key:0,class:"pro-card-verified"},W={class:"pro-card-body"},U={class:"pro-card-name"},P={class:"pro-card-loc"},x={class:"code-box"},z={class:"embed-option"},T={class:"embed-preview-text"},I={class:"text-link-demo"},M={class:"code-box"},D={class:"embed-option"},V={class:"widget-preview"},B={class:"pro-widget"},j={class:"pro-widget-body"},Q={class:"pro-widget-name"},O={class:"pro-widget-loc"},N={class:"pro-widget-rating"},A={class:"pro-widget-big-score"},q={class:"pro-widget-stars-area"},R={class:"pro-widget-stars"},J={class:"pro-widget-count"},$={class:"code-box"},H={class:"embed-option"},Y={class:"code-box"},G={class:"verify-section"},K={class:"verify-row"},Z=["disabled"];function ee(e,s,t,ee,se,te){const ie=(0,i.g2)("business-nav"),ae=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(ie),(0,i.Lk)("div",n,[s[41]||(s[41]=(0,i.Fv)('<div class="embed-header"><h1>Get Your CigarFinder Badge</h1><p class="embed-subtitle">Add a CigarFinder badge or link to your website and get premium listing features for free.</p></div><div class="how-it-works"><h2>How It Works</h2><div class="steps-row"><div class="step-card"><div class="step-num">1</div><h3>Pick a Badge</h3><p>Choose from a text link, image badge, or live widget below.</p></div><div class="step-card"><div class="step-num">2</div><h3>Add to Your Site</h3><p>Copy the code and paste it into your website footer, sidebar, or partners page.</p></div><div class="step-card"><div class="step-num">3</div><h3>Verify & Unlock</h3><p>Click "Verify" below and your listing gets premium features instantly — no charge.</p></div></div></div>',2)),te.isLoggedIn?se.loading?((0,i.uX)(),(0,i.CE)("div",d,s[12]||(s[12]=[(0,i.Lk)("p",null,"Loading your listings...",-1)]))):0===se.lounges.length?((0,i.uX)(),(0,i.CE)("div",u,[(0,i.Lk)("p",null,[s[14]||(s[14]=(0,i.eW)("You need to ")),(0,i.bF)(ae,{to:"/lounges"},{default:(0,i.k6)((()=>s[13]||(s[13]=[(0,i.eW)("claim a listing")]))),_:1}),s[15]||(s[15]=(0,i.eW)(" first to get embed codes."))])])):((0,i.uX)(),(0,i.CE)("div",c,[se.lounges.length>1?((0,i.uX)(),(0,i.CE)("div",p,[s[16]||(s[16]=(0,i.Lk)("label",null,"Select listing:",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[0]||(s[0]=e=>se.selectedLoungeId=e)},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(se.lounges,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.id,value:e.id},(0,a.v_)(e.name)+" - "+(0,a.v_)(e.city)+", "+(0,a.v_)(e.state),9,h)))),128))],512),[[o.u1,se.selectedLoungeId]])])):(0,i.Q3)("",!0),(0,i.Lk)("div",g,[s[25]||(s[25]=(0,i.Lk)("div",{class:"option-header"},[(0,i.Lk)("h2",null,"1. Review Badge"),(0,i.Lk)("span",{class:"option-tag popular"},"Most Popular")],-1)),s[26]||(s[26]=(0,i.Lk)("p",{class:"embed-desc"},"Shows your rating and links back to your listing. Perfect for your website footer or sidebar.",-1)),(0,i.Lk)("div",k,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(se.badgeSizes,(e=>((0,i.uX)(),(0,i.CE)("button",{key:e.key,onClick:s=>se.selectedSize=e.key,class:(0,a.C4)([{active:se.selectedSize===e.key},"size-tab"])},[(0,i.eW)((0,a.v_)(e.label),1),(0,i.Lk)("span",m,(0,a.v_)(e.use),1)],10,b)))),128))]),"small"===se.selectedSize||"medium"===se.selectedSize?((0,i.uX)(),(0,i.CE)("div",v,[(0,i.Lk)("div",{class:(0,a.C4)(["pro-badge","pro-badge-"+se.selectedSize])},[s[18]||(s[18]=(0,i.Lk)("div",{class:"pro-badge-brand"},[(0,i.Lk)("div",{class:"pro-badge-logo-mark"},"CF")],-1)),(0,i.Lk)("div",L,[(0,i.Lk)("div",y,(0,a.v_)(te.loungeName),1),s[17]||(s[17]=(0,i.Lk)("div",{class:"pro-badge-cta"},"Find us on CigarFinder →",-1))])],2)])):(0,i.Q3)("",!0),"leaderboard"===se.selectedSize?((0,i.uX)(),(0,i.CE)("div",f,[(0,i.Lk)("div",C,[s[20]||(s[20]=(0,i.Lk)("div",{class:"pro-banner-brand"},[(0,i.Lk)("div",{class:"pro-banner-logo"},[(0,i.eW)("Cigar"),(0,i.Lk)("span",null,"Finder")])],-1)),s[21]||(s[21]=(0,i.Lk)("div",{class:"pro-banner-divider"},null,-1)),(0,i.Lk)("div",w,[(0,i.Lk)("div",_,(0,a.v_)(te.loungeName),1),s[19]||(s[19]=(0,i.Lk)("div",{class:"pro-banner-tagline"},"Cigar Lounge & Shop Directory",-1))]),s[22]||(s[22]=(0,i.Lk)("div",{class:"pro-banner-cta"},"Find Us →",-1))])])):(0,i.Q3)("",!0),"rectangle"===se.selectedSize?((0,i.uX)(),(0,i.CE)("div",F,[(0,i.Lk)("div",E,[(0,i.Lk)("div",S,[s[23]||(s[23]=(0,i.Lk)("span",{class:"pro-card-logo"},[(0,i.eW)("Cigar"),(0,i.Lk)("span",null,"Finder")],-1)),te.selectedLounge.claimed?((0,i.uX)(),(0,i.CE)("span",X,"✓ Verified")):(0,i.Q3)("",!0)]),(0,i.Lk)("div",W,[(0,i.Lk)("div",U,(0,a.v_)(te.loungeName),1),(0,i.Lk)("div",P,(0,a.v_)(te.selectedLounge.city)+", "+(0,a.v_)(te.selectedLounge.state),1),s[24]||(s[24]=(0,i.Lk)("div",{class:"pro-card-tagline"},"Hours · Photos · Directions",-1))]),(0,i.Lk)("a",{href:"#",onClick:s[1]||(s[1]=(0,o.D$)((()=>{}),["prevent"])),class:"pro-card-cta"},"Find us on CigarFinder →")])])):(0,i.Q3)("",!0),s[27]||(s[27]=(0,i.Lk)("p",{class:"preview-note"},"This is a live preview — your actual badge will look just like this",-1)),(0,i.Lk)("div",x,[(0,i.Lk)("code",null,(0,a.v_)(te.badgeCode),1),(0,i.Lk)("button",{class:"copy-btn",onClick:s[2]||(s[2]=e=>te.copyCode(te.badgeCode,"badge"))},(0,a.v_)("badge"===se.copied?"Copied!":"Copy"),1)])]),(0,i.Lk)("div",z,[s[32]||(s[32]=(0,i.Lk)("div",{class:"option-header"},[(0,i.Lk)("h2",null,"2. Simple Text Link"),(0,i.Lk)("span",{class:"option-tag"},"Easiest")],-1)),s[33]||(s[33]=(0,i.Lk)("p",{class:"embed-desc"},"One line of HTML. Paste into your footer, sidebar, or partners page.",-1)),(0,i.Lk)("div",T,[(0,i.Lk)("span",I,[s[28]||(s[28]=(0,i.eW)("★ Find ")),(0,i.Lk)("strong",null,(0,a.v_)(te.loungeName),1),s[29]||(s[29]=(0,i.eW)(" on ")),s[30]||(s[30]=(0,i.Lk)("span",{style:{color:"#B26D28","font-weight":"700"}},"CigarFinder",-1)),s[31]||(s[31]=(0,i.eW)(" →"))])]),(0,i.Lk)("div",M,[(0,i.Lk)("code",null,(0,a.v_)(te.textLinkCode),1),(0,i.Lk)("button",{class:"copy-btn",onClick:s[3]||(s[3]=e=>te.copyCode(te.textLinkCode,"text"))},(0,a.v_)("text"===se.copied?"Copied!":"Copy"),1)])]),(0,i.Lk)("div",D,[s[35]||(s[35]=(0,i.Lk)("div",{class:"option-header"},[(0,i.Lk)("h2",null,"3. Live Review Widget")],-1)),s[36]||(s[36]=(0,i.Lk)("p",{class:"embed-desc"},"Auto-updating widget showing your latest rating. Great for sidebars and about pages.",-1)),(0,i.Lk)("div",V,[(0,i.Lk)("div",B,[s[34]||(s[34]=(0,i.Lk)("div",{class:"pro-widget-top"},[(0,i.Lk)("div",{class:"pro-widget-logo-area"},[(0,i.Lk)("div",{class:"pro-widget-logo-mark"},"CF"),(0,i.Lk)("div",{class:"pro-widget-logo-text"},[(0,i.eW)("Cigar"),(0,i.Lk)("span",null,"Finder")])])],-1)),(0,i.Lk)("div",j,[(0,i.Lk)("div",Q,(0,a.v_)(te.loungeName),1),(0,i.Lk)("div",O,(0,a.v_)(te.selectedLounge.city)+", "+(0,a.v_)(te.selectedLounge.state),1),(0,i.Lk)("div",N,[(0,i.Lk)("span",A,(0,a.v_)(te.selectedLounge.google_rating||te.selectedLounge.rating||"N/A"),1),(0,i.Lk)("div",q,[(0,i.Lk)("div",R,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(Math.round(parseFloat(te.selectedLounge.google_rating||te.selectedLounge.rating||0)),(e=>((0,i.uX)(),(0,i.CE)("span",{class:"pro-star filled",key:e},"★")))),128)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(5-Math.round(parseFloat(te.selectedLounge.google_rating||te.selectedLounge.rating||0)),(e=>((0,i.uX)(),(0,i.CE)("span",{class:"pro-star",key:"e"+e},"★")))),128))]),(0,i.Lk)("span",J,"Based on "+(0,a.v_)(te.selectedLounge.google_review_count||te.selectedLounge.review_count||0)+" reviews",1)])])]),(0,i.Lk)("a",{href:"#",onClick:s[4]||(s[4]=(0,o.D$)((()=>{}),["prevent"])),class:"pro-widget-cta"},"Read Reviews on CigarFinder →")])]),(0,i.Lk)("div",$,[(0,i.Lk)("code",null,(0,a.v_)(te.widgetCode),1),(0,i.Lk)("button",{class:"copy-btn",onClick:s[5]||(s[5]=e=>te.copyCode(te.widgetCode,"widget"))},(0,a.v_)("widget"===se.copied?"Copied!":"Copy"),1)])]),(0,i.Lk)("div",H,[s[37]||(s[37]=(0,i.Lk)("div",{class:"option-header"},[(0,i.Lk)("h2",null,"4. iframe Embed")],-1)),s[38]||(s[38]=(0,i.Lk)("p",{class:"embed-desc"},"For WordPress.com, Squarespace, Wix, or sites that block external scripts.",-1)),(0,i.Lk)("div",Y,[(0,i.Lk)("code",null,(0,a.v_)(te.iframeCode),1),(0,i.Lk)("button",{class:"copy-btn",onClick:s[6]||(s[6]=e=>te.copyCode(te.iframeCode,"iframe"))},(0,a.v_)("iframe"===se.copied?"Copied!":"Copy"),1)])]),(0,i.Lk)("div",G,[s[39]||(s[39]=(0,i.Lk)("h2",null,"Verify Your Backlink",-1)),s[40]||(s[40]=(0,i.Lk)("p",null,"Paste the URL of the page where you added the code:",-1)),(0,i.Lk)("div",K,[(0,i.bo)((0,i.Lk)("input",{type:"url","onUpdate:modelValue":s[7]||(s[7]=e=>se.verifyUrl=e),placeholder:"https://yoursite.com/partners",class:"verify-input"},null,512),[[o.Jo,se.verifyUrl]]),(0,i.Lk)("button",{class:"verify-btn",onClick:s[8]||(s[8]=(...e)=>te.verifyBacklink&&te.verifyBacklink(...e)),disabled:se.verifying},(0,a.v_)(se.verifying?"Checking...":"Verify"),9,Z)]),se.verifyResult?((0,i.uX)(),(0,i.CE)("p",{key:0,class:(0,a.C4)(se.verifyResult.success?"verify-success":"verify-fail")},(0,a.v_)(se.verifyResult.message),3)):(0,i.Q3)("",!0)])])):((0,i.uX)(),(0,i.CE)("div",r,[(0,i.Lk)("p",null,[s[10]||(s[10]=(0,i.eW)("Please ")),(0,i.bF)(ae,{to:"/business/login"},{default:(0,i.k6)((()=>s[9]||(s[9]=[(0,i.eW)("log in")]))),_:1}),s[11]||(s[11]=(0,i.eW)(" to view your embed codes."))])]))])])}t(8992),t(2577);var se=t(3337),te=t(7465),ie={name:"BusinessEmbedCodes",components:{BusinessNav:se.A},data(){return{lounges:[],selectedLoungeId:null,loading:!0,selectedSize:"medium",copied:null,verifyUrl:"",verifying:!1,verifyResult:null,badgeSizes:[{key:"small",label:"150x50",use:"Footer"},{key:"medium",label:"300x100",use:"Sidebar"},{key:"leaderboard",label:"728x90",use:"Banner"},{key:"rectangle",label:"300x250",use:"Widget"}]}},computed:{isLoggedIn(){return!!localStorage.getItem("business_session_token")},token(){return localStorage.getItem("business_session_token")},selectedLounge(){return this.lounges.find((e=>e.id===this.selectedLoungeId))||{}},loungeSlug(){return this.selectedLounge.slug||""},loungeName(){return this.selectedLounge.name||"Your Business"},loungeUrl(){return"https://cigarfinder.com/lounges/"+this.loungeSlug},cdnUrl(){return"https://cigarfinder.com"},textLinkCode(){return'<a href="'+this.loungeUrl+'" target="_blank" rel="noopener">Find us on CigarFinder</a>'},badgeCode(){var e={small:"150x50",medium:"300x100",leaderboard:"728x90",rectangle:"300x250"},s=e[this.selectedSize]||"300x100",t=s.split("x");return'<a href="'+this.loungeUrl+'" target="_blank" rel="noopener"><img src="'+this.cdnUrl+"/badges/find-us-"+s+'.png" alt="Find '+this.loungeName+' on CigarFinder" width="'+t[0]+'" height="'+t[1]+'" style="border:0;" /></a>'},widgetCode(){var e="script";return'<div id="cigarfinder-badge" data-slug="'+this.loungeSlug+'" data-theme="dark"></div>\n<'+e+' src="'+this.cdnUrl+'/widget/badge.js" async></'+e+">"},iframeCode(){return'<iframe src="'+this.cdnUrl+"/embed/badge/"+this.loungeSlug+'" width="300" height="120" frameborder="0" style="border:none;overflow:hidden;" title="'+this.loungeName+' on CigarFinder"></iframe>'},badgePreviewStyle(){var e={small:{w:150,h:50},medium:{w:300,h:100},leaderboard:{w:364,h:45},rectangle:{w:200,h:166}},s=e[this.selectedSize]||e.medium;return{width:s.w+"px",height:s.h+"px"}}},methods:{async loadDashboard(){this.loading=!0;try{var e=await fetch(te.baseUrl+"api/v1/business/dashboard",{headers:{"Session-Token":this.token}});if(!e.ok)return void(this.loading=!1);var s=await e.json();this.lounges=s.lounges||[],this.lounges.length&&(this.selectedLoungeId=this.lounges[0].id,this.lounges[0].website&&(this.verifyUrl=this.lounges[0].website))}catch(t){console.error(t)}this.loading=!1},copyCode(e,s){navigator.clipboard.writeText(e).then((()=>{this.copied=s||"text",setTimeout((()=>{this.copied=null}),2e3)})).catch((()=>{}))},async verifyBacklink(){if(this.verifyUrl)if(this.selectedLoungeId){this.verifying=!0,this.verifyResult={success:!0,message:"Checking your website for the CigarFinder link..."};try{await fetch(te.baseUrl+"api/v1/business/backlink_url?lounge_id="+this.selectedLoungeId,{method:"PUT",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify({url:this.verifyUrl})}),await fetch(te.baseUrl+"api/v1/business/backlink_verify?lounge_id="+this.selectedLoungeId,{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify({url:this.verifyUrl})});var e=this;return void setTimeout((async function(){try{var s=await fetch(te.baseUrl+"api/v1/business/backlink_status?lounge_id="+e.selectedLoungeId,{headers:{"Session-Token":e.token}}),t=await s.json();t.backlink_active?e.verifyResult={success:!0,message:"Backlink verified! Your listing now has premium features active."}:t.last_check&&!1===t.last_check.success?e.verifyResult={success:!1,message:"CigarFinder link not found on "+e.verifyUrl+". Make sure you pasted the embed code on that page and it is publicly accessible."}:e.verifyResult={success:!1,message:"We could not find a CigarFinder link on your page. Please add one of the badge codes above to your website, then try again."}}catch(i){e.verifyResult={success:!1,message:"Could not check results. Please try again in a moment."}}e.verifying=!1}),3e3)}catch(s){this.verifyResult={success:!1,message:"Network error. Please try again."}}this.verifying=!1}else this.verifyResult={success:!1,message:"No listing selected."}}},watch:{selectedLoungeId(){var e=this.lounges.find((e=>e.id===this.selectedLoungeId));e&&e.website&&(this.verifyUrl=e.website)}},created(){document.title="Embed Codes - CigarFinder Business",this.isLoggedIn?this.loadDashboard():this.loading=!1}},ae=t(6262);const oe=(0,ae.A)(ie,[["render",ee]]);var le=oe},7627:function(e,s,t){t.r(s),t.d(s,{default:function(){return y}});t(4114);var i=t(641),a=t(3751),o=t(33);const l={class:"biz-page"},n={class:"biz-container"},r={class:"biz-card"},d={class:"biz-sub"},u={class:"biz-field"},c={class:"biz-field"},p={key:0,class:"biz-error"},h=["disabled"],g={class:"biz-forgot"};function k(e,s,t,k,b,m){return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.Lk)("div",n,[s[9]||(s[9]=(0,i.Lk)("div",{class:"biz-header"},[(0,i.Lk)("h1",null,"Business Portal Login"),(0,i.Lk)("p",null,"Manage your cigar lounge or shop listing on CigarFinder")],-1)),(0,i.Lk)("div",r,[s[8]||(s[8]=(0,i.Lk)("h2",null,"Log In",-1)),(0,i.Lk)("p",d,[s[5]||(s[5]=(0,i.eW)("Don't have an account? ")),(0,i.Lk)("a",{onClick:s[0]||(s[0]=(0,a.D$)((s=>e.$router.push("/business/register")),["prevent"])),class:"biz-link"},"Create one")]),(0,i.Lk)("form",{onSubmit:s[3]||(s[3]=(0,a.D$)(((...e)=>m.handleLogin&&m.handleLogin(...e)),["prevent"]))},[(0,i.Lk)("div",u,[s[6]||(s[6]=(0,i.Lk)("label",null,"Email",-1)),(0,i.bo)((0,i.Lk)("input",{type:"email","onUpdate:modelValue":s[1]||(s[1]=e=>b.email=e),placeholder:"you@yourbusiness.com",required:""},null,512),[[a.Jo,b.email]])]),(0,i.Lk)("div",c,[s[7]||(s[7]=(0,i.Lk)("label",null,"Password",-1)),(0,i.bo)((0,i.Lk)("input",{type:"password","onUpdate:modelValue":s[2]||(s[2]=e=>b.password=e),placeholder:"Your password",required:""},null,512),[[a.Jo,b.password]])]),b.error?((0,i.uX)(),(0,i.CE)("p",p,(0,o.v_)(b.error),1)):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"biz-btn",disabled:b.loading},(0,o.v_)(b.loading?"Logging in...":"Log In"),9,h)],32),(0,i.Lk)("p",g,[(0,i.Lk)("a",{onClick:s[4]||(s[4]=(0,a.D$)(((...e)=>m.forgotPw&&m.forgotPw(...e)),["prevent"])),class:"biz-link"},"Forgot your password?")])])])])}var b=t(7465),m={name:"BusinessLogin",data(){return{email:"",password:"",error:null,loading:!1}},methods:{async handleLogin(){this.error=null,this.loading=!0;try{const e=await fetch(b.baseUrl+"api/v1/business/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:this.email,password:this.password})}),s=await e.json();if(!e.ok)return void(this.error=s.errors?s.errors.join(", "):"Login failed");localStorage.setItem("business_session_token",s.session_token),localStorage.setItem("business_user",JSON.stringify(s.current_user)),this.$router.push("/business/dashboard")}catch(e){this.error="Network error. Please try again."}finally{this.loading=!1}},forgotPw(){alert("Password reset coming soon. Contact support@cigarfinder.com for now.")}},created(){document.title="Business Login - CigarFinder",localStorage.getItem("business_session_token")&&this.$router.push("/business/dashboard")}},v=t(6262);const L=(0,v.A)(m,[["render",k]]);var y=L},5240:function(e,s,t){t.r(s),t.d(s,{default:function(){return P}});var i=t(641),a=t(3751),o=t(33);const l={class:"biz-page"},n={class:"profile-container"},r={key:0,class:"biz-card"},d={class:"biz-field"},u={class:"biz-field"},c=["value"],p={class:"biz-field"},h={key:0,class:"edit-success"},g=["disabled"],k={class:"biz-card",style:{"margin-top":"16px"}},b={class:"biz-field"},m={class:"biz-field"},v={key:0,class:"biz-error"},L={key:1,class:"edit-success"},y=["disabled"],f={class:"biz-card",style:{"margin-top":"16px"}},C={class:"status-row"},w={class:"status-row"},_={class:"status-row"};function F(e,s,t,F,E,S){const X=(0,i.g2)("business-nav");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(X),(0,i.Lk)("div",n,[s[21]||(s[21]=(0,i.Lk)("div",{class:"edit-header"},[(0,i.Lk)("h1",null,"My Profile")],-1)),E.user?((0,i.uX)(),(0,i.CE)("div",r,[s[10]||(s[10]=(0,i.Lk)("h2",null,"Account Information",-1)),(0,i.Lk)("form",{onSubmit:s[2]||(s[2]=(0,a.D$)(((...e)=>S.saveProfile&&S.saveProfile(...e)),["prevent"]))},[(0,i.Lk)("div",d,[s[6]||(s[6]=(0,i.Lk)("label",null,"Full Name",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>E.name=e)},null,512),[[a.Jo,E.name]])]),(0,i.Lk)("div",u,[s[7]||(s[7]=(0,i.Lk)("label",null,"Email",-1)),(0,i.Lk)("input",{type:"email",value:E.user.email,disabled:"",class:"disabled-input"},null,8,c),s[8]||(s[8]=(0,i.Lk)("span",{class:"field-hint"},"Contact support to change your email",-1))]),(0,i.Lk)("div",p,[s[9]||(s[9]=(0,i.Lk)("label",null,"Phone",-1)),(0,i.bo)((0,i.Lk)("input",{type:"tel","onUpdate:modelValue":s[1]||(s[1]=e=>E.phone=e),placeholder:"+1 (555) 123-4567"},null,512),[[a.Jo,E.phone]])]),E.saved?((0,i.uX)(),(0,i.CE)("p",h,"Profile updated!")):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"biz-btn",disabled:E.saving},(0,o.v_)(E.saving?"Saving...":"Save Profile"),9,g)],32)])):(0,i.Q3)("",!0),(0,i.Lk)("div",k,[s[13]||(s[13]=(0,i.Lk)("h2",null,"Change Password",-1)),(0,i.Lk)("form",{onSubmit:s[5]||(s[5]=(0,a.D$)(((...e)=>S.changePassword&&S.changePassword(...e)),["prevent"]))},[(0,i.Lk)("div",b,[s[11]||(s[11]=(0,i.Lk)("label",null,"New Password",-1)),(0,i.bo)((0,i.Lk)("input",{type:"password","onUpdate:modelValue":s[3]||(s[3]=e=>E.newPassword=e),placeholder:"Minimum 6 characters",minlength:"6"},null,512),[[a.Jo,E.newPassword]])]),(0,i.Lk)("div",m,[s[12]||(s[12]=(0,i.Lk)("label",null,"Confirm New Password",-1)),(0,i.bo)((0,i.Lk)("input",{type:"password","onUpdate:modelValue":s[4]||(s[4]=e=>E.confirmPassword=e),placeholder:"Confirm new password"},null,512),[[a.Jo,E.confirmPassword]])]),E.pwError?((0,i.uX)(),(0,i.CE)("p",v,(0,o.v_)(E.pwError),1)):(0,i.Q3)("",!0),E.pwSaved?((0,i.uX)(),(0,i.CE)("p",L,"Password changed!")):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"biz-btn",disabled:E.pwSaving},(0,o.v_)(E.pwSaving?"Changing...":"Change Password"),9,y)],32)]),(0,i.Lk)("div",f,[s[20]||(s[20]=(0,i.Lk)("h2",null,"Account Status",-1)),(0,i.Lk)("div",C,[s[14]||(s[14]=(0,i.Lk)("span",null,"Email verified:",-1)),s[15]||(s[15]=(0,i.eW)()),(0,i.Lk)("strong",{style:(0,o.Tr)({color:E.user.confirmed?"#27ae60":"#e67e22"})},(0,o.v_)(E.user.confirmed?"Yes":"Not yet"),5)]),(0,i.Lk)("div",w,[s[16]||(s[16]=(0,i.Lk)("span",null,"Member since:",-1)),s[17]||(s[17]=(0,i.eW)()),(0,i.Lk)("strong",null,(0,o.v_)(new Date(E.user.created_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})),1)]),(0,i.Lk)("div",_,[s[18]||(s[18]=(0,i.Lk)("span",null,"Listings:",-1)),s[19]||(s[19]=(0,i.eW)()),(0,i.Lk)("strong",null,(0,o.v_)(E.user.lounges_count),1)])])])])}t(4114);var E=t(3337),S=t(7465),X={name:"BusinessProfile",components:{BusinessNav:E.A},data(){return{user:null,name:"",phone:"",saving:!1,saved:!1,newPassword:"",confirmPassword:"",pwSaving:!1,pwSaved:!1,pwError:null}},computed:{token(){return localStorage.getItem("business_session_token")}},methods:{async loadProfile(){try{const e=await fetch(S.baseUrl+"api/v1/business/profile",{headers:{"Session-Token":this.token}}),s=await e.json();this.user=s.current_user,this.name=this.user.full_name,this.phone=this.user.phone||""}catch(e){console.error(e)}},async saveProfile(){this.saving=!0,this.saved=!1,setTimeout((()=>{this.saved=!0,this.saving=!1}),500)},async changePassword(){this.pwError=null,this.pwSaved=!1,this.newPassword===this.confirmPassword?this.newPassword.length<6?this.pwError="Password must be at least 6 characters":(this.pwSaving=!0,setTimeout((()=>{this.pwSaved=!0,this.pwSaving=!1,this.newPassword="",this.confirmPassword=""}),500)):this.pwError="Passwords do not match"}},mounted(){document.title="My Profile - CigarFinder Business",this.token?this.loadProfile():this.$router.push("/business/login")}},W=t(6262);const U=(0,W.A)(X,[["render",F]]);var P=U},3363:function(e,s,t){t.r(s),t.d(s,{default:function(){return F}});t(4114);var i=t(641),a=t(3751),o=t(33);const l={class:"biz-page"},n={key:0,class:"biz-container"},r={class:"biz-card"},d={class:"biz-sub"},u={class:"biz-field"},c={class:"biz-field"},p={class:"biz-field"},h={class:"biz-field"},g={class:"biz-field"},k={key:0,class:"biz-error"},b=["disabled"],m={key:1,class:"biz-container"},v={class:"biz-card",style:{"text-align":"center"}},L={style:{color:"#bbb","margin-bottom":"16px"}};function y(e,s,t,y,f,C){return(0,i.uX)(),(0,i.CE)("div",l,[f.registered?((0,i.uX)(),(0,i.CE)("div",m,[(0,i.Lk)("div",v,[s[17]||(s[17]=(0,i.Lk)("h2",null,"Account Created!",-1)),(0,i.Lk)("p",L,"Welcome, "+(0,o.v_)(f.registeredName)+". Your business account is ready.",1),(0,i.Lk)("button",{onClick:s[7]||(s[7]=s=>e.$router.push("/business/dashboard")),class:"biz-btn"},"Go to Dashboard")])])):((0,i.uX)(),(0,i.CE)("div",n,[s[16]||(s[16]=(0,i.Lk)("div",{class:"biz-header"},[(0,i.Lk)("h1",null,"List Your Business on CigarFinder"),(0,i.Lk)("p",null,"Reach thousands of cigar enthusiasts searching for lounges and shops near them.")],-1)),(0,i.Lk)("div",r,[s[14]||(s[14]=(0,i.Lk)("h2",null,"Create Your Business Account",-1)),(0,i.Lk)("p",d,[s[8]||(s[8]=(0,i.eW)("Already have an account? ")),(0,i.Lk)("a",{onClick:s[0]||(s[0]=(0,a.D$)((s=>e.$router.push("/business/login")),["prevent"])),class:"biz-link"},"Log in")]),(0,i.Lk)("form",{onSubmit:s[6]||(s[6]=(0,a.D$)(((...e)=>C.handleRegister&&C.handleRegister(...e)),["prevent"]))},[(0,i.Lk)("div",u,[s[9]||(s[9]=(0,i.Lk)("label",null,"Full Name *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>f.form.full_name=e),placeholder:"Your full name",required:""},null,512),[[a.Jo,f.form.full_name]])]),(0,i.Lk)("div",c,[s[10]||(s[10]=(0,i.Lk)("label",null,"Business Email *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"email","onUpdate:modelValue":s[2]||(s[2]=e=>f.form.email=e),placeholder:"you@yourbusiness.com",required:""},null,512),[[a.Jo,f.form.email]])]),(0,i.Lk)("div",p,[s[11]||(s[11]=(0,i.Lk)("label",null,"Phone Number",-1)),(0,i.bo)((0,i.Lk)("input",{type:"tel","onUpdate:modelValue":s[3]||(s[3]=e=>f.form.phone=e),placeholder:"+1 (555) 123-4567"},null,512),[[a.Jo,f.form.phone]])]),(0,i.Lk)("div",h,[s[12]||(s[12]=(0,i.Lk)("label",null,"Password *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"password","onUpdate:modelValue":s[4]||(s[4]=e=>f.form.password=e),placeholder:"Minimum 6 characters",required:"",minlength:"6"},null,512),[[a.Jo,f.form.password]])]),(0,i.Lk)("div",g,[s[13]||(s[13]=(0,i.Lk)("label",null,"Confirm Password *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"password","onUpdate:modelValue":s[5]||(s[5]=e=>f.form.password_confirmation=e),placeholder:"Confirm your password",required:""},null,512),[[a.Jo,f.form.password_confirmation]])]),f.error?((0,i.uX)(),(0,i.CE)("p",k,(0,o.v_)(f.error),1)):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"biz-btn",disabled:f.loading},(0,o.v_)(f.loading?"Creating Account...":"Create Business Account"),9,b)],32),s[15]||(s[15]=(0,i.Lk)("div",{class:"biz-benefits"},[(0,i.Lk)("h3",null,"Why list your business?"),(0,i.Lk)("ul",null,[(0,i.Lk)("li",null,'Get found by cigar enthusiasts searching "cigar lounge near me"'),(0,i.Lk)("li",null,"Free listing when you add a CigarFinder badge to your website"),(0,i.Lk)("li",null,"Manage your hours, photos, events, and social links"),(0,i.Lk)("li",null,"Basic listings start at just $29/year")])],-1))])]))])}var f=t(7465),C={name:"BusinessRegister",data(){return{form:{full_name:"",email:"",phone:"",password:"",password_confirmation:""},error:null,loading:!1,registered:!1,registeredName:""}},methods:{async handleRegister(){if(this.error=null,this.form.password===this.form.password_confirmation){this.loading=!0;try{const e=await fetch(f.baseUrl+"api/v1/business/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(this.form)}),s=await e.json();if(!e.ok)return void(this.error=s.errors?s.errors.join(", "):"Registration failed");localStorage.setItem("business_session_token",s.session_token),localStorage.setItem("business_user",JSON.stringify(s.current_user)),this.registeredName=s.current_user.full_name,this.registered=!0}catch(e){this.error="Network error. Please try again."}finally{this.loading=!1}}else this.error="Passwords do not match"}},created(){document.title="List Your Business - CigarFinder Store Locator",localStorage.getItem("business_session_token")&&this.$router.push("/business/dashboard")}},w=t(6262);const _=(0,w.A)(C,[["render",y]]);var F=_},6759:function(e,s,t){t.r(s),t.d(s,{default:function(){return z}});var i=t(641),a=t(33);const o={class:"biz-page"},l={class:"sub-container"},n={key:0,class:"current-plan"},r={key:0,class:"plan-note"},d={key:1,class:"plan-note"},u={class:"plans-table"},c={class:"plans-grid"},p={class:"plan-action"},h={key:0,class:"current-label"},g={class:"plan-action"},k={key:0,class:"current-label"},b=["disabled"],m={key:1,class:"billing-section"},v={class:"billing-card"},L={class:"billing-row"},y={class:"billing-row"},f={key:0,class:"billing-row"},C={key:1,class:"billing-row"},w={class:"billing-actions"},_=["disabled"],F={key:2,class:"biz-error"},E={key:3,class:"no-lounge-state"};function S(e,s,t,S,X,W){const U=(0,i.g2)("business-nav"),P=(0,i.g2)("router-link");return(0,i.uX)(),(0,i.CE)("div",o,[(0,i.bF)(U),(0,i.Lk)("div",l,[s[15]||(s[15]=(0,i.Lk)("div",{class:"edit-header"},null,-1)),X.lounge?((0,i.uX)(),(0,i.CE)("div",n,[(0,i.Lk)("h2",null,(0,a.v_)(X.lounge.name),1),(0,i.Lk)("div",{class:(0,a.C4)(["plan-badge",X.lounge.tier])},(0,a.v_)("featured"===X.lounge.tier?"★ Featured":"basic"===X.lounge.tier?"Basic":"Free"),3),"free"!==X.lounge.tier||X.lounge.backlink_url?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("p",r,"Your listing is on the free tier with limited features.")),"free"===X.lounge.tier&&X.lounge.backlink_url?((0,i.uX)(),(0,i.CE)("p",d,"Free with backlink — your CigarFinder link is active.")):(0,i.Q3)("",!0)])):(0,i.Q3)("",!0),(0,i.Lk)("div",u,[s[6]||(s[6]=(0,i.Lk)("h2",null,"Choose Your Plan",-1)),(0,i.Lk)("div",c,[(0,i.Lk)("div",{class:(0,a.C4)(["plan-card",{active:"free"===W.currentTier}])},[s[4]||(s[4]=(0,i.Fv)('<div class="plan-head"><h3>Free</h3><div class="plan-price">$0<span>/year</span></div><p class="plan-req"><span class="plan-highlight-free">Requires CigarFinder link on your website</span></p></div><ul class="plan-features"><li class="yes">Basic listing (name, address, phone)</li><li class="yes">Business hours</li><li class="yes">Map pin</li><li class="yes">1 photo</li><li class="yes">Verified badge</li><li class="no">Website link shown</li><li class="no">Social profiles</li><li class="no">Events</li><li class="no">Featured placement</li><li class="no">Full features & identity</li></ul>',2)),(0,i.Lk)("div",p,["free"===W.currentTier?((0,i.uX)(),(0,i.CE)("span",h,"Current Plan")):((0,i.uX)(),(0,i.Wv)(P,{key:1,to:"/business/embed-codes",class:"plan-btn-outline"},{default:(0,i.k6)((()=>s[3]||(s[3]=[(0,i.eW)("Get Free with Backlink")]))),_:1}))])],2),(0,i.Lk)("div",{class:(0,a.C4)(["plan-card featured-plan",{active:"featured"===W.currentTier}])},[s[5]||(s[5]=(0,i.Fv)('<div class="plan-popular">Most Popular</div><div class="plan-head"><h3>★ Featured</h3><div class="plan-price">$99<span>/year</span></div><p class="plan-req"><span class="plan-highlight-badge">Or FREE — just add our badge to your site!</span></p></div><ul class="plan-features"><li class="yes">Everything in Verified</li><li class="yes">Unlimited photos</li><li class="yes">Social profiles (IG, FB, TikTok, etc.)</li><li class="yes">Events promotion</li><li class="yes">★ Featured placement at top of city</li><li class="yes">All features & identity badges</li><li class="yes">Live entertainment schedule</li><li class="yes">Private membership display</li><li class="yes">Priority in "near me" results</li></ul>',3)),(0,i.Lk)("div",g,["featured"===W.currentTier?((0,i.uX)(),(0,i.CE)("span",k,"Current Plan")):((0,i.uX)(),(0,i.CE)("button",{key:1,class:"plan-btn featured-btn",onClick:s[0]||(s[0]=e=>W.subscribe("featured")),disabled:X.subscribing},(0,a.v_)(X.subscribing?"Loading...":"Upgrade — $99/yr"),9,b))])],2)])]),X.subscription?((0,i.uX)(),(0,i.CE)("div",m,[s[11]||(s[11]=(0,i.Lk)("h2",null,"Billing",-1)),(0,i.Lk)("div",v,[(0,i.Lk)("div",L,[s[7]||(s[7]=(0,i.Lk)("span",null,"Plan:",-1)),(0,i.Lk)("strong",null,(0,a.v_)(X.subscription.tier),1)]),(0,i.Lk)("div",y,[s[8]||(s[8]=(0,i.Lk)("span",null,"Status:",-1)),(0,i.Lk)("strong",{class:(0,a.C4)(X.subscription.status)},(0,a.v_)(X.subscription.status),3)]),X.subscription.current_period_end?((0,i.uX)(),(0,i.CE)("div",f,[s[9]||(s[9]=(0,i.Lk)("span",null,"Next renewal:",-1)),(0,i.Lk)("strong",null,(0,a.v_)(new Date(X.subscription.current_period_end).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})),1)])):(0,i.Q3)("",!0),X.subscription.cancel_at_period_end?((0,i.uX)(),(0,i.CE)("div",C,s[10]||(s[10]=[(0,i.Lk)("span",{class:"cancel-warning"},"Your subscription will cancel at the end of the current billing period.",-1)]))):(0,i.Q3)("",!0),(0,i.Lk)("div",w,[(0,i.Lk)("button",{class:"biz-btn-sm",onClick:s[1]||(s[1]=(...e)=>W.openPortal&&W.openPortal(...e)),disabled:X.portalLoading},(0,a.v_)(X.portalLoading?"Loading...":"Update Payment Method"),9,_),X.subscription.cancel_at_period_end?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("button",{key:0,class:"cancel-btn",onClick:s[2]||(s[2]=(...e)=>W.cancelSub&&W.cancelSub(...e))},"Cancel Subscription"))])])])):(0,i.Q3)("",!0),X.error?((0,i.uX)(),(0,i.CE)("p",F,(0,a.v_)(X.error),1)):(0,i.Q3)("",!0),X.lounge||X.loading||X.error?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",E,[s[13]||(s[13]=(0,i.Lk)("h2",null,"No Listing Found",-1)),s[14]||(s[14]=(0,i.Lk)("p",null,"Please claim or create a listing first before managing your subscription.",-1)),(0,i.bF)(P,{to:"/business/dashboard",class:"plan-btn"},{default:(0,i.k6)((()=>s[12]||(s[12]=[(0,i.eW)("Go to Dashboard")]))),_:1})]))])])}t(4114);var X=t(3337),W=t(7465),U={name:"BusinessSubscription",components:{BusinessNav:X.A},data(){return{lounge:null,subscription:null,loading:!0,subscribing:!1,portalLoading:!1,error:null}},computed:{token(){return localStorage.getItem("business_session_token")},currentTier(){return this.lounge?this.lounge.tier:"free"}},methods:{async loadData(){this.loading=!0;try{const e=this.$route.params.id||this.$route.query.lounge_id||localStorage.getItem("business_active_lounge_id");if(e){const s=await fetch(W.baseUrl+"api/v1/business/subscription?lounge_id="+e,{headers:{"Session-Token":this.token}}),t=await s.json();this.lounge=t.lounge,this.subscription=t.subscription}else{const e=await fetch(W.baseUrl+"api/v1/business/dashboard",{headers:{"Session-Token":this.token}}),s=await e.json();s.lounges&&s.lounges.length&&(this.lounge=s.lounges[0],this.subscription=s.lounges[0].subscription)}}catch(e){console.error(e)}this.loading=!1},async subscribe(e){if(this.subscribing=!0,this.error=null,!this.lounge||!this.lounge.id)return this.error="Please claim a listing first before choosing a plan.",void(this.subscribing=!1);try{const s=await fetch(W.baseUrl+"api/v1/business/subscription",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify({tier:e,lounge_id:this.lounge.id})}),t=await s.json();t.checkout_url?window.location.href=t.checkout_url:this.error=t.errors?t.errors.join(", "):"Failed to start checkout"}catch(s){this.error="Network error"}finally{this.subscribing=!1}},async openPortal(){this.portalLoading=!0;try{const e=await fetch(W.baseUrl+"api/v1/business/subscription/portal",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify({lounge_id:this.lounge.id})}),s=await e.json();s.portal_url?window.location.href=s.portal_url:this.error=s.errors?s.errors.join(", "):"Failed"}catch(e){this.error="Network error"}finally{this.portalLoading=!1}},async cancelSub(){if(confirm("Are you sure you want to cancel? Your listing will downgrade to free at the end of your billing period."))try{const e=await fetch(W.baseUrl+"api/v1/business/subscription/"+this.subscription.id,{method:"DELETE",headers:{"Session-Token":this.token}}),s=await e.json();e.ok?this.subscription.cancel_at_period_end=!0:this.error=s.errors?s.errors.join(", "):"Cancel failed"}catch(e){this.error="Network error"}}},mounted(){document.title="Manage Subscription - CigarFinder Business",this.token?this.loadData():this.$router.push("/business/login")}},P=t(6262);const x=(0,P.A)(U,[["render",S]]);var z=x},922:function(e,s,t){t.r(s),t.d(s,{default:function(){return S}});var i=t(641),a=t(3751),o=t(33);const l={class:"biz-page"},n={class:"support-container"},r={key:0,class:"biz-card"},d={class:"biz-field"},u={class:"biz-field"},c=["value"],p={class:"biz-field"},h={key:0,class:"biz-error"},g=["disabled"],k={key:1,class:"biz-card",style:{"text-align":"center"}},b={key:2,class:"tickets-section"},m={class:"ticket-head"},v={class:"ticket-date"},L={class:"ticket-msg"},y={key:0,class:"ticket-response"};function f(e,s,t,f,C,w){const _=(0,i.g2)("business-nav");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bF)(_),(0,i.Lk)("div",n,[s[14]||(s[14]=(0,i.Lk)("div",{class:"edit-header"},[(0,i.Lk)("h1",null,"Help & Support")],-1)),C.submitted?((0,i.uX)(),(0,i.CE)("div",k,[s[10]||(s[10]=(0,i.Lk)("h2",{style:{color:"#27ae60"}},"Ticket Submitted!",-1)),s[11]||(s[11]=(0,i.Lk)("p",{style:{color:"#bbb"}},"We'll respond within 24-48 hours via email.",-1)),(0,i.Lk)("button",{onClick:s[4]||(s[4]=e=>C.submitted=!1),class:"biz-btn-sm",style:{"margin-top":"12px"}},"Submit Another")])):((0,i.uX)(),(0,i.CE)("div",r,[s[9]||(s[9]=(0,i.Lk)("h2",null,"Submit a Support Request",-1)),(0,i.Lk)("form",{onSubmit:s[3]||(s[3]=(0,a.D$)(((...e)=>w.submitTicket&&w.submitTicket(...e)),["prevent"]))},[(0,i.Lk)("div",d,[s[5]||(s[5]=(0,i.Lk)("label",null,"Subject *",-1)),(0,i.bo)((0,i.Lk)("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>C.subject=e),placeholder:"What do you need help with?",required:""},null,512),[[a.Jo,C.subject]])]),(0,i.Lk)("div",u,[s[7]||(s[7]=(0,i.Lk)("label",null,"Related Listing (optional)",-1)),(0,i.bo)((0,i.Lk)("select",{"onUpdate:modelValue":s[1]||(s[1]=e=>C.loungeId=e)},[s[6]||(s[6]=(0,i.Lk)("option",{value:""},"General Question",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(C.lounges,(e=>((0,i.uX)(),(0,i.CE)("option",{key:e.id,value:e.id},(0,o.v_)(e.name),9,c)))),128))],512),[[a.u1,C.loungeId]])]),(0,i.Lk)("div",p,[s[8]||(s[8]=(0,i.Lk)("label",null,"Message *",-1)),(0,i.bo)((0,i.Lk)("textarea",{"onUpdate:modelValue":s[2]||(s[2]=e=>C.message=e),rows:"5",placeholder:"Describe your issue or question in detail...",required:""},null,512),[[a.Jo,C.message]])]),C.error?((0,i.uX)(),(0,i.CE)("p",h,(0,o.v_)(C.error),1)):(0,i.Q3)("",!0),(0,i.Lk)("button",{type:"submit",class:"biz-btn",disabled:C.loading},(0,o.v_)(C.loading?"Submitting...":"Submit Ticket"),9,g)],32)])),C.tickets.length?((0,i.uX)(),(0,i.CE)("div",b,[s[13]||(s[13]=(0,i.Lk)("h2",null,"Your Tickets",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(C.tickets,(e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"ticket-card"},[(0,i.Lk)("div",m,[(0,i.Lk)("strong",null,(0,o.v_)(e.subject),1),(0,i.Lk)("span",{class:(0,o.C4)(["ticket-status",e.status])},(0,o.v_)(e.status),3),(0,i.Lk)("span",v,(0,o.v_)(new Date(e.created_at).toLocaleDateString()),1)]),(0,i.Lk)("p",L,(0,o.v_)(e.message),1),e.admin_response?((0,i.uX)(),(0,i.CE)("div",y,[s[12]||(s[12]=(0,i.Lk)("strong",null,"Response:",-1)),(0,i.Lk)("p",null,(0,o.v_)(e.admin_response),1)])):(0,i.Q3)("",!0)])))),128))])):(0,i.Q3)("",!0)])])}t(4114);var C=t(3337),w=t(7465),_={name:"BusinessSupport",components:{BusinessNav:C.A},data(){return{subject:"",message:"",loungeId:"",lounges:[],tickets:[],loading:!1,submitted:!1,error:null}},computed:{token(){return localStorage.getItem("business_session_token")}},methods:{async loadData(){try{const e=await fetch(w.baseUrl+"api/v1/business/dashboard",{headers:{"Session-Token":this.token}}),s=await e.json();this.lounges=s.lounges||[]}catch(e){console.error(e)}try{const e=await fetch(w.baseUrl+"api/v1/business/support_tickets",{headers:{"Session-Token":this.token}}),s=await e.json();this.tickets=s.tickets||[]}catch(e){console.error(e)}},async submitTicket(){this.error=null,this.loading=!0;try{const e=await fetch(w.baseUrl+"api/v1/business/support",{method:"POST",headers:{"Content-Type":"application/json","Session-Token":this.token},body:JSON.stringify({subject:this.subject,message:this.message,lounge_id:this.loungeId||void 0})}),s=await e.json();e.ok?(this.submitted=!0,this.subject="",this.message="",this.loungeId="",this.loadData()):this.error=s.errors?s.errors.join(", "):"Failed"}catch(e){this.error="Network error"}finally{this.loading=!1}}},mounted(){document.title="Support - CigarFinder Business",this.token?this.loadData():this.$router.push("/business/login")}},F=t(6262);const E=(0,F.A)(_,[["render",f]]);var S=E},3579:function(e,s,t){var i=t(6518),a=t(2652),o=t(9306),l=t(8551),n=t(1767);i({target:"Iterator",proto:!0,real:!0},{some:function(e){l(this),o(e);var s=n(this),t=0;return a(s,(function(s,i){if(e(s,t++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},7550:function(e,s,t){t(3579)}}]);
//# sourceMappingURL=business-pages.ef60e867.js.map