import{a,q as t,j as s,b as c}from"./BulkImageUpload-DGPbX05r.js";import{U as o}from"./User-DMCQU0ZG.js";import{U as x}from"./UserMenu-BCHgG7Y0.js";import h from"./Path-BGQq4Hlj.js";import"./bootstrap.esm-e_F80uXB.js";const v=r=>{const[e,j]=a.useState(r.pack),[n,m]=a.useState(r.expery),{currency:l}=t().props,d=({validity:i})=>i==0?s.jsx("span",{children:"Lifetime"}):i>=12?s.jsxs("span",{children:[i/12," Years"]}):s.jsxs("span",{children:[i," Months"]});return s.jsxs(o,{children:[s.jsx(h,{title:"Plan Details"}),s.jsx("div",{className:"container-fluid user-container",children:s.jsx("div",{className:"container",children:s.jsxs("div",{className:"row",children:[s.jsx("div",{className:"col-md-3",children:s.jsx(x,{user:r.auth.user})}),s.jsxs("div",{className:"col-md-9",children:[e.listing&&s.jsx("div",{className:"col-md-7 mx-auto",children:s.jsxs("div",{className:"card pricecard  rounded border-0 text-center",children:[s.jsxs("div",{className:"card-header d-flex ps-3 pe-3 justify-content-between",children:[s.jsx("h6",{className:"fs-5 mb-0",children:e.name}),s.jsxs("h4",{className:"mt-0 fs-5 mb-0",children:[l,parseFloat(e.price).toFixed(2)]})]}),s.jsx("div",{className:"card-body",children:s.jsxs("ul",{children:[s.jsxs("li",{children:["Total No of Listings ",s.jsxs("span",{children:[" -   ",e.listing]})]}),s.jsxs("li",{children:["Verified Badge ",s.jsxs("span",{children:[" -   ",e.verification]})]}),s.jsxs("li",{children:["Messages from Visitors ",s.jsxs("span",{children:[" -   ",e.message," "]})]}),s.jsxs("li",{children:["Accept Reviews ",s.jsxs("span",{children:[" -   ",e.review]})]}),s.jsxs("li",{children:["No of Services Allowed / Listing ",s.jsxs("span",{children:[" -   ",e.services]})]}),s.jsxs("li",{children:["No of Products Allowed / Listing ",s.jsxs("span",{children:[" -   ",e.products]})]}),s.jsxs("li",{children:["No of Images Allowed / Listing ",s.jsxs("span",{children:[" -   ",e.images]})]}),s.jsxs("li",{children:["Package Validity ",s.jsxs("span",{children:[" -   ",s.jsx(d,{validity:e.validity})]})]}),s.jsxs("li",{children:["Expiry  Date ",s.jsxs("span",{children:[" -   ",n]})]})]})}),s.jsx("div",{className:"card-footer text-muted",children:s.jsx(c,{className:"btn w-100 btn-primary",href:route("choos-package"),as:"button",children:"Change Package"})})]})}),!e.listing&&s.jsx("div",{className:"center col-md-6 mx-auto pt-5 mt-5",children:s.jsxs("p",{className:"border-primary",children:["You Don't Have an Active Plan",s.jsx("b",{children:s.jsx(c,{href:route("choos-package"),children:" Choose a Package"})})]})})]})]})})})]})};export{v as default};
