1/*! For license information please see 2614.d9deec2b.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[2614],{9332(e,t,a){a.d(t,{cn:()=>r});var n=a(72004),s=a(79800);function r(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,n.$)(t))}},22614(e,t,a){a.r(t),a.d(t,{default:()=>_});var n=a(9950),s=a(92994),r=a(26910),i=a(32443),o=a(42989),l=a(27304),c=a(77737),d=a(45536),u=a(27255),m=a(97104),p=a(95995),x=a(21449),h=a(65613),g=a(30621),f=a(13147),y=a(81946),v=a(99438),b=a(358),j=a(96356),w=a(96479),A=a(80237),N=a(41111),k=a(94779),B=a(45532),E=a(32033),q=a(36503),S=a(44414);const F="https://peerlessetiquette.com",C={appearance:l.A,behavior:d.A,communication:x.A,emotional_intelligence:p.A,refined_living:i.A},P={standard:{bg:"bg-[#8B7355]",text:"text-[#2B2B2B]",border:"border-[#8B7355]"},premium:{bg:"bg-[#A58958]",text:"text-[#A58958]",border:"border-[#1B7B9E]"},exclusive:{bg:"bg-[#A8936B]",text:"text-[#A8936B]",border:"border-[#A8936B]"}},_=()=>{var e;const t=(0,s.Zp)(),{user:a,token:i}=(0,B.A)(),[l,d]=(0,n.useState)([]),[p,x]=(0,n.useState)([]),[_,z]=(0,n.useState)({}),[O,D]=(0,n.useState)(!0),[R,I]=(0,n.useState)(null),[M,U]=(0,n.useState)(null),[L,T]=(0,n.use
2State)(""),[W,$]=(0,n.useState)(null),[Z,J]=(0,n.useState)(!1),[G,V]=(0,n.useState)(.7),[H,Q]=(0,n.useState)(!1),[Y,X]=(0,n.useState)(null),[K,ee]=(0,n.useState)(!1),[te,ae]=(0,n.useState)(null),ne=(0,n.useRef)(new Audio);(0,n.useEffect)(()=>{(async()=>{const e=localStorage.getItem("adminToken");if(e)try{(await r.A.get("".concat(F,"/api/admin-auth/me"),{headers:{Authorization:"Bearer ".concat(e)}})).data.success&&ee(!0)}catch(t){ee(!1)}})()},[]);const se=(0,n.useCallback)(async()=>{try{const e=await r.A.get("".concat(F,"/api/audio-marketplace/categories"));x(e.data.categories||[]),z(e.data.tiers||{})}catch(e){console.error("Failed to fetch categories:",e)}},[]),re=(0,n.useCallback)(async()=>{D(!0);try{const e=new URLSearchParams;R&&e.append("category",R),M&&e.append("tier",M),L&&e.append("search",L);const t=await r.A.get("".concat(F,"/api/audio-marketplace/tracks?").concat(e));d(t.data.tracks||[])}catch(e){console.error("Failed to fetch audio tracks:",e)}finally{D(!1)}},[R,M,L]);(0,n.useEffect)(()=>{se()},[se]),(0,n.useEffect)(()=>{re()},[re]),(0,n.useEffect)(()=>{ne.current.volume=H?0:G},[G,H]),(0,n.useEffect)(()=>()=>{ne.current.pause()},[]);const ie=e=>{if((null===W||void 0===W?void 0:W.id)===e.id&&Z)ne.current.pause(),J(!1);else{const t="".concat(F).concat(e.preview_url);ne.current.pause(),ne.current.currentTime=0,ne.current.src=t,ne.current.onerror=e=>{console.error("Audio error:",e),J(!1)},ne.current.oncanplaythrough=()=>{ne.current.play().catch(e=>{console.error("Play error:",e)})},ne.current.onended=()=>{J(!1)},$(e),J(!0),ne.current.load()}},oe=async e=>{const a=localStorage.getItem("peerless_token")||localStorage.getItem("token");if(a){X(e);try{const t=await r.A.post("".concat(F,"/api/audio-marketplace/purchase/track/").concat(e),{},{headers:{Authorization:"Bearer ".concat(a)}});t.data.checkout_url&&(window.location.href=t.data.checkout_url)}catch(i){var n,s;E.oR.error((null===(n=i.response)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.detail)||"Purchase failed")}finally{X(null)}}else t("/login?redirect=/audio")},le=e=>{if(!e)return"--:--";const t=Math.floor(e/60),a=e%60;return"".concat(t,":").concat(a.toString().padStart(2,"0"))};return(0,S.jsxs)("div",{className:"min-h-screen bg-[#f3f0e8]",children:[(0,S.jsx)(A.Ay,{title:"Audio Marketplace | Peerless Etiquette",description:"Curated audio content for refined living - Appearance, Behavior, Communication, Emotional Intelligence, and Refined Living"}),(0,S.jsx)("div",{className:"pt-20 relative",children:(0,S.jsx)("div",{className:"bg-gradient-to-b from-[#f3f0e8] via-[#F5F3F0] to-[#EFECE8] py-20 px-6 text-center",children:(0,S.jsx)(q.A,{title:"Audio Marketplace",subtitle:"Cultivate refinement on the go with our curated collection organized by the pillars of elegant living.",badge:"CURATED AUDIO COLLECTION",imageIndex:1})})}),(0,S.jsxs)("div",{className:"bg-[#f3f0e8]",children:[K&&(0,S.jsxs)("div",{className:"fixed top-20 right-6 z-50 flex items-center gap-2 px-4 py-2 bg-[#1E3A5F]/30 border border-[#1E3A5F]/50 rounded-full",children:[(0,S.jsx)(y.A,{className:"w-4 h-4 text-[#5A7FA8]"}),(0,S.jsx)("span",{className:"text-[#5A7FA8] text-xs uppercase tracking-wider",children:"Admin Mode"})]}),(0,S.jsx)("section",{className:"px-6 py-6 border-b border-[#1B7B9E]/20",children:(0,S.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,S.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,S.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-md",children:[(0,S.jsx)(f.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[#5e5e5e]"}),(0,S.jsx)(k.p,{type:"text",placeholder:"Search audio...",value:L,onChange:e=>T(e.target.value),className:"pl-10 bg-white/5 border-[#1B7B9E]/20 text-[#2B2B2B] h-10 rounded-full","data-testid":"audio-search"})]}),(0,S.jsx)("div",{className:"flex gap-2 flex-wrap",children:p.map(e=>{const t=C[e.id]||m.A;return(0,S.jsxs)("button",{onClick:()=>I(R===e.id?null:e.id),className:"flex items-center gap-2 px-4 py-2 rounded-full text-sm transition-all ".concat(R===e.id?"bg-[#A58958] text-black":"bg-white/5 text-[#2B2B2B] hover:bg-white/10"),"data-testid":"filter-".concat(e.id),children:[(0,S.jsx)(t,{className:"w-4 h-4"}),(0,S.jsx)("span",{className:"hidden sm:inline",children:e.name})]},e.id)})}),(0,S.jsx)("div",{className:"flex gap-2",children:Object.entries(_).map(e=>{var t,a;let[n,s]=e;return(0,S.jsx)("button",{onClick:()=>U(M===n?null:n),className:"px-4 py-2 rounded-full text-sm transition-all ".concat(M===n?"".concat((null===(t=P[n])||void 0===t?void 0:t.bg)||"bg-[#A58958]"," text-black"):"bg-white/5 ".concat((null===(a=P[n])||void 0===a?void 0:a.text)||"text-[#2B2B2B]"," hover:bg-white/10")),"data-testid":"filter-tier-".concat(n),children:s.name},n)})}),(R||M||L)&&(0,S.jsxs)("button",{onClick:()=>{I(null),U(null),T("")},className:"flex items-center gap-1 px-3 py-2 text-[#5e5e5e] hover:text-[#2B2B2B] text-sm",children:[(0,S.jsx)(w.A,{className:"w-4 h-4"}),"Clear"]})]})})}),(0,S.jsx)("section",{className:"px-6 py-12",children:(0,S.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,S.jsx)("div",{className:"flex items-center justify-between mb-8",children:(0,S.jsx)("h2",{className:"text-2xl font-light text-[#2B2B2B]",children:O?"Loading...":"".concat(l.length," Tracks Available")})}),O?(0,S.jsx)("div",{className:"flex justify-center py-20",children:(0,S.jsx)(o.A,{className:"w-8 h-8 animate-spin text-[#A58958]"})}):0===l.length?(0,S.jsxs)("div",{className:"text-center py-20",children:[(0,S.jsx)(m.A,{className:"w-16 h-16 mx-auto mb-4 text-[#2B2B2B]/20"}),(0,S.jsx)("p",{className:"text-[#5e5e5e]",children:"No audio tracks foun
2d. Try adjusting your filters."})]}):(0,S.jsx)("div",{className:"grid gap-4",children:l.map(e=>{var t,a,n,s,r;const i=C[e.category]||m.A,l=(null===W||void 0===W?void 0:W.id)===e.id&&Z;return(0,S.jsx)("div",{className:"group bg-white/5 hover:bg-white/10 rounded-xl p-4 transition-all border border-white/5 hover:border-[#1B7B9E]/30","data-testid":"track-".concat(e.id),children:(0,S.jsxs)("div",{className:"flex items-center gap-4",children:[(0,S.jsx)("button",{onClick:()=>ie(e),className:"w-14 h-14 rounded-full flex items-center justify-center transition-all ".concat(l?"bg-[#A58958] text-black":"bg-white/10 text-[#2B2B2B] hover:bg-[#A58958] hover:text-black"),"data-testid":"play-".concat(e.id),children:l?(0,S.jsx)(h.A,{className:"w-6 h-6"}):(0,S.jsx)(g.A,{className:"w-6 h-6 ml-1"})}),(0,S.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,S.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,S.jsx)("h3",{className:"text-lg font-medium text-[#2B2B2B] truncate",children:e.title}),(0,S.jsx)("span",{className:"px-2 py-0.5 rounded text-xs uppercase ".concat((null===(t=P[e.tier])||void 0===t?void 0:t.bg)||"bg-[#8B7355]"," text-black"),children:e.tier})]}),(0,S.jsxs)("div",{className:"flex items-center gap-4 text-sm text-[#5e5e5e]",children:[(0,S.jsxs)("span",{className:"flex items-center gap-1",style:{color:null===(a=e.category_info)||void 0===a?void 0:a.color},children:[(0,S.jsx)(i,{className:"w-4 h-4"}),(null===(n=e.category_info)||void 0===n?void 0:n.name)||e.category]}),e.duration_seconds>0&&(0,S.jsxs)("span",{className:"flex items-center gap-1",children:[(0,S.jsx)(c.A,{className:"w-4 h-4"}),le(e.duration_seconds)]})]}),e.description&&(0,S.jsx)("p",{className:"text-sm text-[#5e5e5e] mt-1 line-clamp-1",children:e.description})]}),"exclusive"===e.tier&&void 0!==e.copies_remaining&&(0,S.jsxs)("div",{className:"text-right mr-4",children:[(0,S.jsx)("p",{className:"text-xs text-[#A8936B] uppercase tracking-wider",children:"Limited Edition"}),(0,S.jsxs)("p",{className:"text-sm text-[#2B2B2B]",children:[e.copies_remaining," of ",e.exclusive_limit," left"]})]}),K&&(0,S.jsxs)("div",{className:"flex items-center gap-2 mr-4 px-4 py-2 bg-[#1E3A5F]/20 border border-[#1E3A5F]/40 rounded-lg",children:[(0,S.jsx)("button",{onClick:t=>{t.stopPropagation(),(e=>{const t=localStorage.getItem("adminToken");if(t)if((null===te||void 0===te?void 0:te.id)===e.id&&Z)ne.current.pause(),J(!1),ae(null);else{const a="".concat(F,"/api/audio-marketplace/stream/").concat(e.id);fetch(a,{headers:{Authorization:"Bearer ".concat(t)}}).then(e=>e.blob()).then(t=>{const a=URL.createObjectURL(t);ne.current.src=a,ne.current.play(),ae(e),$(e),J(!0),E.oR.success("Streaming: ".concat(e.title))}).catch(e=>{console.error("Stream error:",e),E.oR.error("Failed to stream track")})}else E.oR.error("Admin login required")})(e)},className:"p-2 rounded-lg transition-colors ".concat((null===te||void 0===te?void 0:te.id)===e.id?"bg-[#1E3A5F] text-[#2B2B2B]":"bg-white/10 text-[#5A7FA8] hover:bg-[#1E3A5F]/30"),title:"Stream Full Track (Admin)","data-testid":"admin-stream-".concat(e.id),children:(0,S.jsx)(m.A,{className:"w-4 h-4"})}),(0,S.jsx)("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t=localStorage.getItem("adminToken");if(t)try{E.oR.info("Downloading: ".concat(e.title,"..."));const a=await fetch("".concat(F,"/api/audio-marketplace/download/").concat(e.id),{headers:{Authorization:"Bearer ".concat(t)}});if(!a.ok)throw new Error("Download failed");const n=await a.blob(),s=URL.createObjectURL(n),r=document.createElement("a");r.href=s,r.download="".concat(e.title,".mp3"),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(s),E.oR.success("Downloaded: ".concat(e.title))}catch(a){console.error("Download error:",a),E.oR.error("Failed to download track")}else E.oR.error("Admin login required")})(e)},className:"p-2 bg-white/10 text-[#5A7FA8] hover:bg-[#1E3A5F]/30 rounded-lg transition-colors",title:"Download Track (Admin)","data-testid":"admin-download-".concat(e.id),children:(0,S.jsx)(u.A,{className:"w-4 h-4"})})]}),(0,S.jsxs)("div",{className:"flex items-center gap-4",children:[(0,S.jsxs)("div",{className:"text-right",children:[(0,S.jsxs)("p",{className:"text-xl font-semibold ".concat((null===(s=P[e.tier])||void 0===s?void 0:s.text)||"text-[#2B2B2B]"),children:["$",null===(r=e.price)||void 0===r?void 0:r.toFixed(2)]}),(0,S.jsx)("p",{className:"text-xs text-[#5e5e5e]",children:"Stream + Download"})]}),(0,S.jsx)(N.$,{onClick:()=>oe(e.id),disabled:Y===e.id,className:"navy-cta bg-[#22364A] hover:opacity-90 rounded-full text-black px-6","data-testid":"buy-".concat(e.id),children:Y===e.id?(0,S.jsx)(o.A,{className:"w-4 h-4 animate-spin"}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(v.A,{className:"w-4 h-4 mr-2"}),"Buy Now"]})})]})]})},e.id)})})]})})]}),W&&(0,S.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-[#f3f0e8]/95 backdrop-blur-lg border-t border-[#1B7B9E]/20 py-4 px-6 z-50",children:(0,S.jsxs)("div",{className:"max-w-6xl mx-auto flex items-center gap-4",children:[(0,S.jsx)("button",{onClick:()=>ie(W),className:"navy-cta w-12 h-12 rounded-full bg-[#22364A] hover:opacity-90 rounded-full text-black flex items-center justify-center",children:Z?(0,S.jsx)(h.A,{className:"w-5 h-5"}):(0,S.jsx)(g.A,{className:"w-5 h-5 ml-0.5"})}),(0,S.jsxs)("div",{className:"flex-1",children:[(0,S.jsx)("p",{className:"font-medium text-[#2B2B2B]",children:W.title}),(0,S.jsx)("p",{className:"text-sm text-[#5e5e5e]",children:"40-second preview"})]}),(0,S.jsx)("button",{onClick:()=>Q(!H),className:"p-2 text-[#5e5e5e] hover:text-[#2B2B2B]",children:H?(0,S.jsx)(j.A,{className:"w-5 h-5"}):(0,S.jsx)(b.A,{className:"w-5 h-5"})}),(0,S.jsxs)(N.$,{onClick:()=>oe(W.id),className:"navy-cta bg-[#22364A] hover:opacity-90 rounded-full text-black",children:["Buy $",null===(e=W.price)||void 0===e?void 0:e.toFixed(2)]})]})})]})}},30621(e,t,a){a.d(t,{A:()=>n});const n=(0,a(36230).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},36503(e,t,a){a.d(t,{A:()=>c});var n=a(9950),s=a(89379),r=a(53986),i=a(44414);const o=["src","alt","className","style","width","height","objectFit","placeholderColor"],l=e=>{let{src:t,alt:a="",className:l="",style:c={},width:d,height:u,objectFit:m="cover",placeholderColor:p="#E8E0D4"}=e,x=(0,r.A)(e,o);
2const[h,g]=(0,n.useState)(!1),[f,y]=(0,n.useState)(!1),v=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const e=v.current;if(!e)return;const t=new IntersectionObserver(e=>{let[a]=e;a.isIntersecting&&(y(!0),t.disconnect())},{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[]),(0,i.jsx)("div",(0,s.A)((0,s.A)({ref:v,className:"overflow-hidden ".concat(l),style:(0,s.A)((0,s.A)((0,s.A)({position:"relative",backgroundColor:p},c),d&&{width:d}),u&&{height:u})},x),{},{children:f&&(0,i.jsx)("img",{src:t,alt:a,loading:"lazy",decoding:"async",onLoad:()=>g(!0),style:{width:"100%",height:"100%",objectFit:m,opacity:h?1:0,filter:h?"none":"blur(20px)",transform:h?"scale(1)":"scale(1.05)",transition:"opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease"}})}))};function c(e){let{title:t,subtitle:a,badge:n,heroImage:s,imageIndex:r=0,variant:o="navy",dataTestId:c}=e;const d="#22364A";return s?(0,i.jsxs)("section",{className:"relative overflow-hidden",style:{background:d},"data-testid":c,children:[(0,i.jsxs)("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 min-h-[340px] sm:min-h-[380px] pt-16 sm:pt-20",children:[(0,i.jsx)("div",{className:"relative hidden lg:flex items-center justify-center overflow-hidden",style:{backgroundColor:"#FAF8F5"},children:(0,i.jsx)(l,{src:s,alt:"",className:"w-full h-full",objectFit:"cover",placeholderColor:"#FAF8F5"})}),(0,i.jsxs)("div",{className:"relative flex flex-col justify-center items-center text-center px-6 sm:px-10 lg:px-16 py-16 sm:py-20 lg:py-24 z-10",children:[(0,i.jsx)("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 2px 2px, #A8936B 1px, transparent 0)",backgroundSize:"40px 40px"}}),(0,i.jsxs)("div",{className:"relative z-10 flex flex-col items-center",children:[(0,i.jsx)("img",{loading:"lazy",src:"/assets/crest.png",alt:"Peerless Etiquette Crest",className:"w-16 h-16 mb-6 opacity-90"}),n&&(0,i.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,i.jsx)("div",{className:"w-10 h-px",style:{background:"linear-gradient(90deg, transparent, rgba(165,137,88,0.6))"}}),(0,i.jsx)("span",{className:"text-[10px] uppercase tracking-[0.3em]",style:{color:"#A8936B"},children:n}),(0,i.jsx)("div",{className:"w-10 h-px",style:{background:"linear-gradient(90deg, rgba(165,137,88,0.6), transparent)"}})]}),(0,i.jsx)("h1",{className:"text-3xl sm:text-4xl lg:text-5xl tracking-tight text-[#FAF8F5]",style:{fontFamily:"'Cinzel', Georgia, serif",fontWeight:400},children:t}),a&&(0,i.jsx)("p",{className:"mt-4 text-sm sm:text-base text-[#FAF8F5]/60 max-w-md leading-relaxed",children:a}),(0,i.jsx)("hr",{className:"w-16 mt-6 border-t-2 border-[#1B7B9E]"})]})]})]}),(0,i.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-[#A58958]/60 to-transparent"})]}):(0,i.jsxs)("section",{className:"relative overflow-hidden",style:{background:d},"data-testid":c,children:[(0,i.jsx)("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 2px 2px, #A8936B 1px, transparent 0)",backgroundSize:"40px 40px"}}),(0,i.jsxs)("div",{className:"relative z-10 max-w-4xl mx-auto px-6 pt-28 pb-16 sm:pt-32 sm:pb-20 lg:pt-32 lg:pb-24 text-center flex flex-col items-center",children:[(0,i.jsx)("img",{loading:"lazy",src:"/assets/crest.png",alt:"Peerless Etiquette Crest",className:"w-16 h-16 mb-6 opacity-90"}),n&&(0,i.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,i.jsx)("div",{className:"w-10 h-px",style:{background:"linear-gradient(90deg, transparent, rgba(165,137,88,0.6))"}}),(0,i.jsx)("span",{className:"text-[10px] uppercase tracking-[0.3em]",style:{color:"#A8936B"},children:n}),(0,i.jsx)("div",{className:"w-10 h-px",style:{background:"linear-gradient(90deg, rgba(165,137,88,0.6), transparent)"}})]}),(0,i.jsx)("h1",{className:"text-3xl sm:text-4xl lg:text-5xl tracking-tight text-[#FAF8F5]",style:{fontFamily:"'Cinzel', Georgia, serif",fontWeight:400},children:t}),a&&(0,i.jsx)("p",{className:"mt-4 text-sm sm:text-base text-[#FAF8F5]/60 max-w-xl leading-relaxed",children:a}),(0,i.jsx)("hr",{className:"w-16 mt-6 border-t-2 border-[#1B7B9E]"})]}),(0,i.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-[#A58958]/60 to-transparent"})]})}},41111(e,t,a){a.d(t,{$:()=>m});var n=a(89379),s=a(53986),r=a(9950),i=a(92962),o=a(94364),l=a(9332),c=a(44414);const d=["className","variant","size","asChild"],u=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-body tracking-wide",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),m=r.forwardRef((e,t)=>
2{let{className:a,variant:r,size:o,asChild:m=!1}=e,p=(0,s.A)(e,d);const x=m?i.DX:"button";return(0,c.jsx)(x,(0,n.A)({className:(0,l.cn)(u({variant:r,size:o,className:a})),ref:t},p))});m.displayName="Button"},61167(e,t,a){a.d(t,{s:()=>i,t:()=>r});var n=a(9950);function s(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function r(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return e=>{let a=!1;const n=t.map(t=>{const n=s(t,e);return a||"function"!=typeof n||(a=!0),n});if(a)return()=>{for(let e=0;e<n.length;e++){const a=n[e];"function"==typeof a?a():s(t[e],null)}}}}function i(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n.useCallback(r(...t),t)}},65613(e,t,a){a.d(t,{A:()=>n});const n=(0,a(36230).A)("pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},77737(e,t,a){a.d(t,{A:()=>n});const n=(0,a(36230).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},80237(e,t,a){a.d(t,{Ay:()=>c});a(89379);var n=a(32856),s=a(44414);const r={siteName:"Peerless Etiquette",siteUrl:"https://peerlessetiquette.com",defaultDescription:"Master the timeless principles of grace, presence, and intentional living. World-class etiquette education by Mrs. Zakiyyah Benjamin.",defaultImage:"https://peerlessetiquette.com/og-image.jpg",twitterHandle:"@PeerlessEtiquette",locale:"en_US",logo:"https://customer-assets.emergentagent.com/job_a2d78716-22f1-4716-894a-1be52f584256/artifacts/ue9bx8d7_Untitled%20design%20%287%29.png"},i={"@context":"https://schema.org","@type":["Organization","EducationalOrganization"],name:"Peerless Etiquette",alternateName:["Peerless Etiquette by Mrs. Benjamin","Mrs. Benjamin's Etiquette School"],url:r.siteUrl,logo:{"@type":"ImageObject",url:r.logo,width:512,height:512},image:r.defaultImage,description:"World-class etiquette education and refinement training. Founded by Mrs. Zakiyyah Benjamin, serving Florida and clients worldwide since 2003.",slogan:"Where Grace Meets Excellence",founder:{"@type":"Person",name:"Mrs. Zakiyyah Benjamin",jobTitle:"Founder & Etiquette Expert",description:"Internationally recognized etiquette expert, educator, and host of the #1 ranked Peerless Etiquette Podcast."},foundingDate:"2003",sameAs:["https://www.instagram.com/peerlessetiquette","https://www.facebook.com/peerlessetiquette","https://www.linkedin.com/company/peerlessetiquette","https://twitter.com/peerlessetiquette","https://www.youtube.com/@peerlessetiquette","https://podcasts.apple.com/gb/podcast/peerless-etiquette/id1520769255","https://open.spotify.com/show/6prfykMTGf2e8WPxkR7jS4"],contactPoint:{"@type":"ContactPoint",contactType:"customer service",email:"[email protected]",availableLanguage:"English"},address:{"@type":"PostalAddress",addressRegion:"FL",addressCountry:"US"},areaServed:"Worldwide",knowsAbout:["Etiquette Training","Social Skills Education","Business Etiquette","Dining Etiquette","Professional Development","Personal Branding","Communication Skills","Table Manners","Fine Dining","Teen Etiquette","Youth Character Development","Corporate Training","Social Graces"],hasOfferCatalog:{"@type":"OfferCatalog",name:"Etiquette Courses & Programs",itemListElement:[{"@type":"Course",name:"Dining Etiquette Masterclass",description:"Master the art of fine dining and table manners"},{"@type":"Course",name:"Professional Presence Training",description:"Develop executive presence and business etiquette"},{"@type":"Course",name:"Social Graces Program",description:"Navigate social situations with confidence and elegance"},{"@type":"Course",name:"Teen Etiquette Mastery",description:"Comprehensive etiquette course for teens and young adults"},{"@type":"Course",name:"Youth Outreach & Character Development",description:"Literacy, etiquette, and character building for children"}]}},o={"@context":"https://schema.org","@type":"WebSite",name:"Peerless Etiquette",alternateName:"Peerless Etiquette by Mrs. Benjamin",url:r.siteUrl,description:"The definitive online resource for etiquette education. 500+ etiquette questions answered, 800+ etiquette terms defined, daily reflections, and world-class training.",inLanguage:"en-US",publisher:{"@type":"Organization",name:"Peerless Etiquette"},potentialAction:[{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"".concat(r.siteUrl,"/etiquette-faq?search={search_term_string}")},"query-input":"required name=search_term_string"},{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"".concat(r.siteUrl,"/dictionary?search={search_term_string}")},"query-input":"required name=search_term_string"}]},l={"@context":"https://schema.org","@type":"Person",name:"Mrs. Zakiyyah Benjamin",alternateName:"Mrs. Benjamin",jobTitle:"Founder & Etiquette Expert",description:"Internationally recognized etiquette expert, educator, podcast host, and founder of Peerless Etiquette. Serving Florida and clients worldwide since 2003.",url:"".concat(r.siteUrl,"/brand-story"),worksFor:{"@type":"Organization",name:"Peerless Etiquette",url:r.siteUrl},knowsAbout:["Etiquette","Social Graces","Dining Etiquette","Business Etiquette","Youth Character Development","Professional Presence"],sameAs:["https://www.instagram.com/peerlessetiquette","https://www.linkedin.com/company/peerlessetiquette"]},c=e=>{let{title:t="Peerless Etiquette",description:a=r.defaultDescription,image:c=r.defaultImage,url:d="",type:u="website",keywords:m=[],noindex:p=!1,course:x=null,article:h=null,faqs:g=null,breadcrumbs:f=null,showOrganization:y=!1,showWebsite:v=!1,showPerson:b=!1,jsonLd:j=null}=e;const w=t===r.siteName?t:"".concat(t," | ").concat(r.siteName),A=d?"".concat(r.siteUrl).concat(d):r.siteUrl,N=c.startsWith("http")?c:"".concat(r.siteUrl).concat(c),k=[...new Set(["etiquette","manners","social skills","professional etiquette","dining etiquette","business etiquette","Mrs. Benjamin","Peerless Etiquette","refinement","gracious living",...m])],B=g&&g.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:g.slice(0,10).map(e=>
2({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}:null,E=x?{"@context":"https://schema.org","@type":"Course",name:x.title,description:x.description,provider:{"@type":"Organization",name:"Peerless Etiquette",sameAs:r.siteUrl},instructor:{"@type":"Person",name:"Mrs. Zakiyyah Benjamin"},courseMode:"online",educationalLevel:x.level||"Beginner to Advanced",inLanguage:"en",isAccessibleForFree:!0}:null,q=h?{"@context":"https://schema.org","@type":"Article",headline:h.title,description:h.description||a,image:h.image||N,author:{"@type":"Person",name:h.author||"Mrs. Zakiyyah Benjamin"},publisher:{"@type":"Organization",name:"Peerless Etiquette",logo:{"@type":"ImageObject",url:r.logo}},datePublished:h.publishedDate,dateModified:h.modifiedDate||h.publishedDate,mainEntityOfPage:{"@type":"WebPage","@id":A}}:null,S=f&&f.length>0?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:r.siteUrl},...f.map((e,t)=>({"@type":"ListItem",position:t+2,name:e.name,item:"".concat(r.siteUrl).concat(e.url)}))]}:null;return(0,s.jsxs)(n.mg,{children:[(0,s.jsx)("title",{children:w}),(0,s.jsx)("meta",{name:"title",content:w}),(0,s.jsx)("meta",{name:"description",content:a}),(0,s.jsx)("meta",{name:"keywords",content:k.join(", ")}),(0,s.jsx)("link",{rel:"canonical",href:A}),p?(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}):(0,s.jsx)("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),(0,s.jsx)("meta",{name:"language",content:"English"}),(0,s.jsx)("meta",{httpEquiv:"content-language",content:"en-US"}),(0,s.jsx)("meta",{property:"og:type",content:u}),(0,s.jsx)("meta",{property:"og:url",content:A}),(0,s.jsx)("meta",{property:"og:title",content:w}),(0,s.jsx)("meta",{property:"og:description",content:a}),(0,s.jsx)("meta",{property:"og:image",content:N}),(0,s.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,s.jsx)("meta",{property:"og:image:height",content:"630"}),(0,s.jsx)("meta",{property:"og:site_name",content:r.siteName}),(0,s.jsx)("meta",{property:"og:locale",content:r.locale}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:site",content:r.twitterHandle}),(0,s.jsx)("meta",{name:"twitter:creator",content:r.twitterHandle}),(0,s.jsx)("meta",{name:"twitter:url",content:A}),(0,s.jsx)("meta",{name:"twitter:title",content:w}),(0,s.jsx)("meta",{name:"twitter:description",content:a}),(0,s.jsx)("meta",{name:"twitter:image",content:N}),(0,s.jsx)("meta",{name:"author",content:"Mrs. Zakiyyah Benjamin"}),(0,s.jsx)("meta",{name:"publisher",content:"Peerless Etiquette"}),(0,s.jsx)("meta",{name:"theme-color",content:"#1B6DB5"}),y&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(i)}),v&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(o)}),b&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(l)}),B&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(B)}),E&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(E)}),q&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(q)}),S&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(S)}),j&&(Array.isArray(j)?j:[j]).map((e,t)=>(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)},"jsonld-".concat(t)))]})}},92962(e,t,a){var n;a.d(t,{DX:()=>h,TL:()=>x});var s=a(89379),r=a(53986),i=a(9950),o=a(61167),l=a(44414);const c=["children"],d=["children"];var u=Symbol.for("react.lazy"),m=(n||(n=a.t(i,2)))[" use ".trim().toString()];function p(e){return null!=e&&"object"===typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&("object"===typeof(t=e._payload)&&null!==t&&"then"in t);var t}function x(e){const t=g(e),a=i.forwardRef((e,a)=>{let{children:n}=e,o=(0,r.A)(e,c);p(n)&&"function"===typeof m&&(n=m(n._payload));const d=i.Children.toArray(n),u=d.find(y);if(u){const e=u.props.children,n=d.map(t=>t===u?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,l.jsx)(t,(0,s.A)((0,s.A)({},o),{},{ref:a,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null}))}return(0,l.jsx)(t,(0,s.A)((0,s.A)({},o),{},{ref:a,children:n}))});return a.displayName="".concat(e,".Slot"),a}var h=x("Slot");function g(e){const t=i.forwardRef((e,t)=>
2{let{children:a}=e,n=(0,r.A)(e,d);if(p(a)&&"function"===typeof m&&(a=m(a._payload)),i.isValidElement(a)){const e=function(e){var t,a;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,s=n&&"isReactWarning"in n&&n.isReactWarning;if(s)return e.ref;if(n=null===(a=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===a?void 0:a.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s)return e.props.ref;return e.props.ref||e.ref}(a),r=function(e,t){const a=(0,s.A)({},t);for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?a[n]=function(){const e=i(...arguments);return r(...arguments),e}:r&&(a[n]=r):"style"===n?a[n]=(0,s.A)((0,s.A)({},r),i):"className"===n&&(a[n]=[r,i].filter(Boolean).join(" "))}return(0,s.A)((0,s.A)({},e),a)}(n,a.props);return a.type!==i.Fragment&&(r.ref=t?(0,o.t)(t,e):e),i.cloneElement(a,r)}return i.Children.count(a)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var f=Symbol("radix.slottable");function y(e){return i.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}},94364(e,t,a){a.d(t,{F:()=>c});var n=a(89379),s=a(53986),r=a(72004);const i=["class","className"],o=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,l=r.$,c=(e,t)=>a=>{var r;if(null==(null===t||void 0===t?void 0:t.variants))return l(e,null===a||void 0===a?void 0:a.class,null===a||void 0===a?void 0:a.className);const{variants:c,defaultVariants:d}=t,u=Object.keys(c).map(e=>{const t=null===a||void 0===a?void 0:a[e],n=null===d||void 0===d?void 0:d[e];if(null===t)return null;const s=o(t)||o(n);return c[e][s]}),m=a&&Object.entries(a).reduce((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e},{}),p=null===t||void 0===t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:a,className:r}=t,o=(0,s.A)(t,i);return Object.entries(o).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes((0,n.A)((0,n.A)({},d),m)[t]):(0,n.A)((0,n.A)({},d),m)[t]===a})?[...e,a,r]:e},[]);return l(e,u,p,null===a||void 0===a?void 0:a.class,null===a||void 0===a?void 0:a.className)}},94779(e,t,a){a.d(t,{p:()=>c});var n=a(89379),s=a(53986),r=a(9950),i=a(9332),o=a(44414);const l=["className","type"],c=r.forwardRef((e,t)=>{let{className:a,type:r}=e,c=(0,s.A)(e,l);return(0,o.jsx)("input",(0,n.A)({type:r,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:t},c))});c.displayName="Input"},97104(e,t,a){a.d(t,{A:()=>n});const n=(0,a(36230).A)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]])},99438(e,t,a){a.d(t,{A:()=>n});const n=(0,a(36230).A)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.