{"version":3,"file":"Socialproof1.DcyjBjPF.mjs","names":["React.useState","React.useMemo","React.useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/hUSkCsoDEsmbapnhDYFq/hF6bXLk66bkAQ2XWXeKC/Socialproof1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{AnimatePresence,motion}from\"framer-motion\";import*as React from\"react\";import{createPortal}from\"react-dom\";const DEFAULT_APP_URL=\"https://www.revukit.com\";const MAX_REVIEWS=25;const TEST_PLACE_ID=\"\";const TEST_BUSINESS_ID=\"\";const UPGRADE_REQUIRED_TEXT=\"Upgrade required.\";const UPGRADE_MESSAGE_TEXT=\"Open the RevuKit plugin to enable this social proof section, or\";const UPGRADE_LINK_TEXT=\"view Framer pricing\";const UPGRADE_LINK_HREF=\"https://www.revukit.com/framer-pricing\";const ERROR_PREFIX_TEXT=\"We could not load live reviews right now.\";const WIDGET_STYLES=`\n  .rk-sp-section,\n  .rk-sp-section * {\n    box-sizing: border-box;\n  }\n  .rk-sp-section {\n    --rk-sp-bg: transparent;\n    --rk-sp-glow-one: rgba(255, 128, 181, 0.8);\n    --rk-sp-glow-two: rgba(144, 137, 252, 0.8);\n    position: relative;\n    isolation: isolate;\n    color-scheme: light;\n    width: 100%;\n    overflow: hidden;\n    background: var(--rk-sp-bg);\n    color: #111827;\n    padding: 6rem 0 8rem;\n    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  }\n  @media (min-width: 640px) {\n    .rk-sp-section {\n      padding-top: 8rem;\n      padding-bottom: 10rem;\n    }\n  }\n  .rk-sp-blob-wrap {\n    position: absolute;\n    inset: 0;\n    z-index: -10;\n    overflow: hidden;\n    pointer-events: none;\n  }\n  .rk-sp-blob {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 82rem;\n    aspect-ratio: 1313 / 771;\n    transform: translate(-50%, -50%);\n    background: linear-gradient(to top right, var(--rk-sp-glow-one), var(--rk-sp-glow-two));\n    opacity: 0.18;\n    filter: blur(90px);\n  }\n  .rk-sp-container {\n    margin: 0 auto;\n    max-width: 80rem;\n    padding: 0 1.5rem;\n  }\n  @media (min-width: 1024px) {\n    .rk-sp-container {\n      padding: 0 2rem;\n    }\n  }\n  .rk-sp-header {\n    margin: 0 auto;\n    max-width: 48rem;\n    text-align: center;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: 1.5rem;\n  }\n  .rk-sp-eyebrow {\n    margin: 0;\n    color: #4f46e5;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    font-weight: 700;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n  }\n  .rk-sp-headline {\n    margin: 0;\n    font-size: 2.5rem;\n    line-height: 1.08;\n    font-weight: 700;\n    letter-spacing: -0.03em;\n    text-wrap: balance;\n  }\n  @media (min-width: 640px) {\n    .rk-sp-headline {\n      font-size: 3.5rem;\n    }\n  }\n  .rk-sp-body {\n    margin: 0;\n    color: #4b5563;\n    font-size: 1.125rem;\n    line-height: 1.75rem;\n    text-wrap: balance;\n  }\n  .rk-sp-rating {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: 0.5rem;\n    margin-top: 0.25rem;\n  }\n  .rk-sp-stars {\n    display: flex;\n    gap: 0.25rem;\n    color: #facc15;\n  }\n  .rk-sp-stars svg {\n    width: 1.5rem;\n    height: 1.5rem;\n    flex-shrink: 0;\n  }\n  .rk-sp-rating-text {\n    margin: 0;\n    color: #374151;\n    font-size: 0.9375rem;\n    line-height: 1.5rem;\n    font-weight: 500;\n  }\n  .rk-sp-rating-source {\n    color: #111827;\n    font-weight: 600;\n    text-decoration: underline;\n    text-decoration-color: #d1d5db;\n    text-underline-offset: 2px;\n  }\n  .rk-sp-ctas {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: center;\n    gap: 1rem;\n    margin-top: 0.5rem;\n  }\n  .rk-sp-proof-row {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 1rem;\n    margin-top: 0.75rem;\n    color: #64748b;\n    flex-wrap: wrap;\n  }\n  .rk-sp-avatar-stack {\n    display: flex;\n    align-items: center;\n  }\n  .rk-sp-avatar-stack > * + * {\n    margin-left: -0.75rem;\n  }\n  .rk-sp-avatar-stack-item {\n    position: relative;\n    width: 2.5rem;\n    height: 2.5rem;\n    border-radius: 9999px;\n    border: 2px solid #ffffff;\n    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);\n    overflow: visible;\n    flex-shrink: 0;\n  }\n  .rk-sp-avatar-stack-item img {\n    width: 100%;\n    height: 100%;\n    object-fit: cover;\n    display: block;\n    border-radius: 9999px;\n  }\n  .rk-sp-avatar-stack-item::before,\n  .rk-sp-avatar-stack-item::after {\n    position: absolute;\n    left: 50%;\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.18s ease, transform 0.18s ease;\n  }\n  .rk-sp-avatar-stack-item::before {\n    content: attr(data-tooltip);\n    bottom: calc(100% + 0.7rem);\n    transform: translate(-50%, 4px);\n    background: rgba(15, 23, 42, 0.92);\n    color: #ffffff;\n    padding: 0.45rem 0.65rem;\n    border-radius: 0.65rem;\n    font-size: 0.75rem;\n    line-height: 1;\n    font-weight: 600;\n    white-space: nowrap;\n    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.5);\n    z-index: 4;\n  }\n  .rk-sp-avatar-stack-item::after {\n    content: '';\n    bottom: calc(100% + 0.3rem);\n    transform: translate(-50%, 4px);\n    border-left: 6px solid transparent;\n    border-right: 6px solid transparent;\n    border-top: 6px solid rgba(15, 23, 42, 0.92);\n    z-index: 3;\n  }\n  .rk-sp-avatar-stack-item:hover,\n  .rk-sp-avatar-stack-item:focus-within {\n    z-index: 12 !important;\n  }\n  .rk-sp-avatar-stack-item:hover::before,\n  .rk-sp-avatar-stack-item:hover::after,\n  .rk-sp-avatar-stack-item:focus-within::before,\n  .rk-sp-avatar-stack-item:focus-within::after {\n    opacity: 1;\n    transform: translate(-50%, 0);\n  }\n  .rk-sp-avatar-stack-fallback {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: #e5e7eb;\n    color: #111827;\n    font-size: 0.75rem;\n    font-weight: 700;\n    border-radius: 9999px;\n  }\n  .rk-sp-avatar-stack-copy {\n    display: flex;\n    flex-direction: column;\n    gap: 0.125rem;\n    text-align: left;\n  }\n  .rk-sp-avatar-stack-label {\n    color: #334155;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    font-weight: 600;\n  }\n  .rk-sp-avatar-stack-subtext {\n    color: #64748b;\n    font-size: 0.75rem;\n    line-height: 1rem;\n  }\n  .rk-sp-btn-primary,\n  .rk-sp-btn-secondary {\n    text-decoration: none;\n    font-size: 0.875rem;\n    font-weight: 600;\n    transition: all 0.2s ease;\n  }\n  .rk-sp-btn-primary {\n    border-radius: 9999px;\n    background: #111827;\n    color: #ffffff;\n    padding: 0.8rem 1.5rem;\n  }\n  .rk-sp-btn-primary:hover {\n    background: #374151;\n  }\n  .rk-sp-btn-secondary {\n    color: #111827;\n    padding: 0.8rem 0.25rem;\n  }\n  .rk-sp-btn-secondary:hover {\n    color: #4f46e5;\n  }\n  .rk-sp-grid {\n    margin-top: 5rem;\n  }\n  .rk-sp-masonry {\n    column-count: 1;\n    column-gap: 1.5rem;\n  }\n  @media (min-width: 768px) {\n    .rk-sp-masonry {\n      column-count: 2;\n    }\n  }\n  @media (min-width: 1200px) {\n    .rk-sp-masonry {\n      column-count: 4;\n    }\n  }\n  .rk-sp-featured,\n  .rk-sp-card,\n  .rk-sp-placeholder {\n    margin: 0;\n    border-radius: 1rem;\n    background: #ffffff;\n    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(17, 24, 39, 0.05);\n  }\n  .rk-sp-featured {\n    display: flex;\n    flex-direction: column;\n    width: min(100%, 52rem);\n    min-height: 100%;\n    margin: 0 auto 1.5rem;\n    color: #111827;\n    text-align: center;\n  }\n  .rk-sp-featured-quote {\n    margin: 0;\n    padding: 2rem;\n    flex: 1;\n    font-size: 1.25rem;\n    line-height: 1.8rem;\n    font-weight: 500;\n    letter-spacing: -0.02em;\n    color: #111827;\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 6;\n    overflow: hidden;\n  }\n  @media (min-width: 640px) {\n    .rk-sp-featured-quote {\n      padding: 2.5rem;\n      font-size: 1.45rem;\n      line-height: 2rem;\n    }\n  }\n  .rk-sp-featured-footer,\n  .rk-sp-card-footer {\n    display: flex;\n    align-items: center;\n    gap: 1rem;\n  }\n  .rk-sp-featured-footer {\n    padding: 1.5rem 2rem;\n    background: #f9fafb;\n    border-top: 1px solid rgba(17, 24, 39, 0.05);\n    border-bottom-left-radius: 1rem;\n    border-bottom-right-radius: 1rem;\n    color: #111827;\n    justify-content: center;\n  }\n  .rk-sp-card {\n    width: 100%;\n    margin: 0 0 1.5rem;\n    break-inside: avoid;\n    -webkit-column-break-inside: avoid;\n    display: flex;\n    flex-direction: column;\n    gap: 1.25rem;\n    padding: 1.5rem;\n    color: #111827;\n  }\n  .rk-sp-card-button {\n    cursor: pointer;\n    transition: transform 0.2s ease, box-shadow 0.2s ease;\n  }\n  .rk-sp-card-button:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 24px 30px -8px rgba(0, 0, 0, 0.1), 0 12px 14px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(17, 24, 39, 0.05);\n  }\n  .rk-sp-card-button:focus-visible {\n    outline: 2px solid #4f46e5;\n    outline-offset: 3px;\n  }\n  .rk-sp-card-text {\n    margin: 0;\n    color: #374151;\n    font-size: 1rem;\n    line-height: 1.65rem;\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    overflow: hidden;\n  }\n  .rk-sp-author {\n    min-width: 0;\n    flex: 1;\n  }\n  .rk-sp-author-name {\n    color: #111827;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    font-weight: 600;\n  }\n  .rk-sp-author-meta {\n    color: #6b7280;\n    font-size: 0.8125rem;\n    line-height: 1.25rem;\n    margin-top: 0.125rem;\n  }\n  .rk-sp-avatar,\n  .rk-sp-avatar-fallback {\n    width: 2.5rem;\n    height: 2.5rem;\n    border-radius: 9999px;\n    flex: none;\n  }\n  .rk-sp-avatar {\n    object-fit: cover;\n    background: #f3f4f6;\n  }\n  .rk-sp-avatar-fallback {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: #e5e7eb;\n    color: #111827;\n    font-size: 0.75rem;\n    font-weight: 700;\n  }\n  .rk-sp-inline-stars {\n    display: flex;\n    gap: 0.125rem;\n    color: #facc15;\n  }\n  .rk-sp-inline-stars svg {\n    width: 1rem;\n    height: 1rem;\n  }\n  .rk-sp-placeholder {\n    width: 100%;\n    margin: 0 0 1.5rem;\n    break-inside: avoid;\n    -webkit-column-break-inside: avoid;\n    padding: 1.5rem;\n    min-height: 12rem;\n  }\n  .rk-sp-placeholder-line,\n  .rk-sp-placeholder-avatar {\n    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);\n    background-size: 200% 100%;\n    animation: rk-sp-shimmer 1.5s infinite;\n  }\n  .rk-sp-placeholder-line {\n    height: 0.875rem;\n    border-radius: 999px;\n    margin-bottom: 0.75rem;\n  }\n  .rk-sp-placeholder-avatar {\n    width: 2.5rem;\n    height: 2.5rem;\n    border-radius: 999px;\n  }\n  .rk-sp-status {\n    margin: 3rem auto 0;\n    max-width: 40rem;\n    border-radius: 1rem;\n    background: rgba(255,255,255,0.96);\n    border: 1px solid rgba(148,163,184,0.3);\n    box-shadow: 0 18px 40px -30px rgba(15,23,42,0.4);\n    color: #334155;\n    padding: 1rem 1.25rem;\n    text-align: center;\n    font-size: 0.9375rem;\n    line-height: 1.5rem;\n  }\n  .rk-sp-upgrade {\n    margin: 3rem auto 0;\n    width: min(100%, 42rem);\n    border-radius: 1rem;\n    background: rgba(255,255,255,0.96);\n    border: 1px solid rgba(148,163,184,0.3);\n    box-shadow: 0 18px 40px -30px rgba(15,23,42,0.4);\n    color: #0f172a;\n    padding: 1.25rem 1.5rem;\n    text-align: center;\n    font-size: 0.95rem;\n    line-height: 1.6rem;\n  }\n  .rk-sp-upgrade a {\n    color: #2563eb;\n    font-weight: 600;\n    text-decoration: underline;\n  }\n  .rk-sp-modal-backdrop {\n    position: fixed;\n    inset: 0;\n    z-index: 9998;\n    background: rgba(15, 23, 42, 0.58);\n    backdrop-filter: blur(8px);\n  }\n  .rk-sp-modal-wrap {\n    position: fixed;\n    inset: 0;\n    z-index: 9999;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: 1.25rem;\n  }\n  .rk-sp-modal {\n    width: min(100%, 52rem);\n    max-height: 80vh;\n    overflow-y: auto;\n    border-radius: 1.25rem;\n    background: rgba(255, 255, 255, 0.98);\n    box-shadow: 0 32px 90px -32px rgba(15, 23, 42, 0.45);\n    border: 1px solid rgba(148, 163, 184, 0.22);\n    color: #111827;\n  }\n  .rk-sp-modal-header {\n    position: sticky;\n    top: 0;\n    z-index: 1;\n    display: flex;\n    align-items: flex-start;\n    justify-content: space-between;\n    gap: 1rem;\n    padding: 1.25rem 1.25rem 1rem;\n    background: rgba(255, 255, 255, 0.92);\n    backdrop-filter: blur(10px);\n    border-bottom: 1px solid rgba(226, 232, 240, 0.95);\n  }\n  .rk-sp-modal-close {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    width: 2.25rem;\n    height: 2.25rem;\n    border: 0;\n    border-radius: 999px;\n    background: #f8fafc;\n    color: #0f172a;\n    cursor: pointer;\n    flex: none;\n    transition: background 0.18s ease, transform 0.18s ease;\n  }\n  .rk-sp-modal-close:hover {\n    background: #eef2ff;\n    transform: scale(1.04);\n  }\n  .rk-sp-modal-close:focus-visible {\n    outline: 2px solid #4f46e5;\n    outline-offset: 2px;\n  }\n  .rk-sp-modal-content {\n    padding: 1.25rem 1.25rem 1.5rem;\n  }\n  .rk-sp-modal-quote {\n    margin: 0;\n    color: #111827;\n    font-size: 1.125rem;\n    line-height: 1.9rem;\n    white-space: pre-wrap;\n  }\n  .rk-sp-modal-stars {\n    display: flex;\n    gap: 0.125rem;\n    color: #facc15;\n    margin-top: 0.75rem;\n  }\n  .rk-sp-modal-stars svg {\n    width: 1.05rem;\n    height: 1.05rem;\n  }\n  @keyframes rk-sp-shimmer {\n    0% { background-position: 200% 0; }\n    100% { background-position: -200% 0; }\n  }\n`;function normalizeBaseUrl(input){const trimmed=input.trim();if(!trimmed)return DEFAULT_APP_URL;return trimmed.endsWith(\"/\")?trimmed.slice(0,-1):trimmed;}function getInitials(name){return name.split(\" \").map(part=>part[0]??\"\").join(\"\").slice(0,2).toUpperCase();}function StarIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",d:\"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z\",clipRule:\"evenodd\"})});}function ReviewAvatar({review,fallbackAuthorName}){const authorName=review.author_name?.trim()||fallbackAuthorName;const imageUrl=review.profile_photo_url?.trim();if(imageUrl){return /*#__PURE__*/_jsx(\"img\",{alt:\"\",src:imageUrl,className:\"rk-sp-avatar\",referrerPolicy:\"no-referrer\"});}return /*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-avatar-fallback\",children:getInitials(authorName)});}function AvatarStackAvatar({review,zIndex,fallbackAuthorName}){const authorName=review.author_name?.trim()||fallbackAuthorName;const imageUrl=review.profile_photo_url?.trim();return /*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-avatar-stack-item\",style:{zIndex},\"data-tooltip\":authorName,title:authorName,\"aria-hidden\":\"true\",children:imageUrl?/*#__PURE__*/_jsx(\"img\",{alt:authorName,src:imageUrl,referrerPolicy:\"no-referrer\"}):/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-avatar-stack-fallback\",children:getInitials(authorName)})});}function CloseIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M6 6l8 8M14 6l-8 8\"})});}function PlaceholderCard(){return /*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-placeholder\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-line\",style:{width:\"100%\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-line\",style:{width:\"88%\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-line\",style:{width:\"72%\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"1rem\",marginTop:\"1.5rem\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-avatar\"}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1},children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-line\",style:{width:\"8rem\",marginBottom:\"0.5rem\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-placeholder-line\",style:{width:\"5rem\",marginBottom:0}})]})]})]});}async function fetchCompactPlaceData(baseUrl,placeId,businessId){const response=await fetch(`${baseUrl}/api/widget/compact`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({place_id:placeId,business_id:businessId})});if(!response.ok){throw new Error(`Failed to fetch place data: ${response.status}`);}const data=await response.json();return data?.place??{};}async function fetchProPlaceData(baseUrl,placeId,businessId){const response=await fetch(`${baseUrl}/api/reviews/pro`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({place_id:placeId,business_id:businessId,max_reviews:25,widget_type:\"social-proof-section\"})});if(!response.ok){throw new Error(`Failed to fetch pro place data: ${response.status}`);}const data=await response.json();return data?.place??{};}function pickReviews(reviews){const validReviews=reviews.filter(review=>Boolean(review.text?.trim()));if(validReviews.length===0){return{featured:null,cards:[]};}// Preserve backend order so Manage Reviews customizations\n// (reorder / pin / hide) are reflected exactly in this component.\nconst ordered=[...validReviews];const featured=ordered[0]??null;const cards=ordered.filter(review=>review!==featured).slice(0,MAX_REVIEWS);return{featured,cards};}function pickAvatarReviews(reviews){const withImages=reviews.filter(review=>Boolean(review.profile_photo_url?.trim()));const source=withImages.length>=4?withImages:reviews;return source.slice(0,4);}function getReviewClampLines(review,index){const seed=`${review.author_name??\"\"}|${review.text??\"\"}|${index}`;let hash=0;for(let i=0;i<seed.length;i+=1){hash=hash*31+seed.charCodeAt(i)>>>0;}return 3+hash%5;}/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1280\n * @framerIntrinsicHeight 1320\n */export default function EditorialSpotlight(props){const{placeId,businessId,isPremium,appUrl,showEyebrow,showHeadline,showBody,showRatingText,showReviewCta,showAvatarTrustText,showMissingStateMessage,showUpgradeStateMessage,showErrorStateMessage,showEmptyStateMessage,eyebrow,headline,body,ratingSourceLabel,ratingIntroText,ratingOutOfText,ratingBasedOnText,ratingReviewsOnText,ratingLiveFallbackText,reviewCtaText,reviewCtaHref,avatarTrustText,missingStateMessage,emptyStateMessage,fallbackAuthorName,fallbackReviewerMeta,closeReviewAriaLabel,backgroundColor,glowColorOne,glowColorTwo}=props;const[placeData,setPlaceData]=React.useState(null);const[loading,setLoading]=React.useState(false);const[error,setError]=React.useState(null);const[selectedReview,setSelectedReview]=React.useState(null);const[portalContainer,setPortalContainer]=React.useState(null);React.useEffect(()=>{setPortalContainer(document.body);},[]);const baseUrl=React.useMemo(()=>normalizeBaseUrl(appUrl),[appUrl]);const showMissingIds=!placeId?.trim()||!businessId?.trim();React.useEffect(()=>{if(showMissingIds||!isPremium)return;const controller=new AbortController;let active=true;async function loadPlaceData(){setLoading(true);setError(null);try{let data;try{data=await fetchProPlaceData(baseUrl,placeId,businessId);}catch{data=await fetchCompactPlaceData(baseUrl,placeId,businessId);}if(!active||controller.signal.aborted)return;setPlaceData(data);}catch(loadError){if(!active||controller.signal.aborted)return;setError(loadError instanceof Error?loadError.message:\"Failed to load reviews\");}finally{if(active&&!controller.signal.aborted){setLoading(false);}}}loadPlaceData();return()=>{active=false;controller.abort();};},[baseUrl,placeId,businessId,isPremium,showMissingIds]);const rating=placeData?.rating??0;const reviewCount=placeData?.user_ratings_total??0;const{featured,cards}=React.useMemo(()=>pickReviews(placeData?.reviews??[]),[placeData?.reviews]);const avatarReviews=React.useMemo(()=>pickAvatarReviews(placeData?.reviews??[]),[placeData?.reviews]);React.useEffect(()=>{if(!selectedReview)return;const handleKeyDown=event=>{if(event.key===\"Escape\"){setSelectedReview(null);}};window.addEventListener(\"keydown\",handleKeyDown);return()=>window.removeEventListener(\"keydown\",handleKeyDown);},[selectedReview]);const openReviewModal=React.useCallback(review=>{if(!review.text?.trim())return;setSelectedReview(review);},[]);const closeReviewModal=React.useCallback(()=>{setSelectedReview(null);},[]);const renderStars=React.useCallback((ratingValue,className=\"rk-sp-inline-stars\")=>{const count=Math.max(0,Math.min(5,Math.round(ratingValue??5)));return /*#__PURE__*/_jsx(\"div\",{className:className,\"aria-hidden\":\"true\",children:Array.from({length:count}).map((_,index)=>/*#__PURE__*/_jsx(StarIcon,{},index))});},[]);const canRenderContent=!showMissingIds&&isPremium;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:WIDGET_STYLES}}),/*#__PURE__*/_jsxs(\"section\",{className:\"rk-sp-section\",style:{\"--rk-sp-bg\":backgroundColor,\"--rk-sp-glow-one\":glowColorOne,\"--rk-sp-glow-two\":glowColorTwo},children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-blob-wrap\",children:/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-blob\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-container\",children:[canRenderContent&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-header\",children:[showEyebrow&&eyebrow.trim().length>0&&/*#__PURE__*/_jsx(\"p\",{className:\"rk-sp-eyebrow\",children:eyebrow}),showHeadline&&headline.trim().length>0&&/*#__PURE__*/_jsx(\"h2\",{className:\"rk-sp-headline\",children:headline}),showBody&&body.trim().length>0&&/*#__PURE__*/_jsx(\"p\",{className:\"rk-sp-body\",children:body}),/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-rating\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-stars\",children:Array.from({length:5}).map((_,index)=>/*#__PURE__*/_jsx(StarIcon,{},index))}),showRatingText&&/*#__PURE__*/_jsxs(\"p\",{className:\"rk-sp-rating-text\",children:[ratingIntroText.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[ratingIntroText,\" \"]}),/*#__PURE__*/_jsxs(\"strong\",{children:[rating>0?rating.toFixed(1):\"4.9\",ratingOutOfText]}),ratingBasedOnText.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[\" \",ratingBasedOnText,\" \"]}),/*#__PURE__*/_jsx(\"strong\",{children:reviewCount>0?reviewCount.toLocaleString():ratingLiveFallbackText}),ratingReviewsOnText.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[\" \",ratingReviewsOnText,\" \"]}),ratingSourceLabel.trim().length>0&&/*#__PURE__*/_jsx(\"span\",{className:\"rk-sp-rating-source\",children:ratingSourceLabel})]})]}),showReviewCta&&reviewCtaText.trim().length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-ctas\",children:/*#__PURE__*/_jsx(\"a\",{href:reviewCtaHref,className:\"rk-sp-btn-primary\",children:reviewCtaText})}),avatarReviews.length>0&&showAvatarTrustText&&avatarTrustText.trim().length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-proof-row\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-avatar-stack\",children:avatarReviews.map((review,index)=>/*#__PURE__*/_jsx(AvatarStackAvatar,{review:review,fallbackAuthorName:fallbackAuthorName,zIndex:avatarReviews.length-index},`${review.author_name||\"customer\"}-${index}`))}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-avatar-stack-copy\",children:/*#__PURE__*/_jsx(\"span\",{className:\"rk-sp-avatar-stack-label\",children:avatarTrustText})})]})]}),showMissingIds&&showMissingStateMessage&&missingStateMessage.trim().length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-status\",children:missingStateMessage}),!showMissingIds&&!canRenderContent&&showUpgradeStateMessage&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-upgrade\",children:[UPGRADE_REQUIRED_TEXT.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"strong\",{children:UPGRADE_REQUIRED_TEXT}),\" \"]}),UPGRADE_MESSAGE_TEXT.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[UPGRADE_MESSAGE_TEXT,\" \"]}),UPGRADE_LINK_TEXT.trim().length>0&&/*#__PURE__*/_jsx(\"a\",{href:UPGRADE_LINK_HREF,children:UPGRADE_LINK_TEXT})]}),canRenderContent&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-grid\",children:[loading&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-masonry\",children:[/*#__PURE__*/_jsx(PlaceholderCard,{}),/*#__PURE__*/_jsx(PlaceholderCard,{}),/*#__PURE__*/_jsx(PlaceholderCard,{}),/*#__PURE__*/_jsx(PlaceholderCard,{}),/*#__PURE__*/_jsx(PlaceholderCard,{})]}),!loading&&error&&showErrorStateMessage&&/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-status\",style:{gridColumn:\"1 / -1\"},children:[ERROR_PREFIX_TEXT.trim().length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[ERROR_PREFIX_TEXT,\" \"]}),error]}),!loading&&!error&&featured&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"figure\",{className:\"rk-sp-featured rk-sp-card-button\",role:\"button\",tabIndex:0,onClick:()=>openReviewModal(featured),onKeyDown:event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();openReviewModal(featured);}},children:[/*#__PURE__*/_jsx(\"blockquote\",{className:\"rk-sp-featured-quote\",children:/*#__PURE__*/_jsxs(\"p\",{children:['\"',featured.text?.trim(),'\"']})}),/*#__PURE__*/_jsxs(\"figcaption\",{className:\"rk-sp-featured-footer\",children:[/*#__PURE__*/_jsx(ReviewAvatar,{review:featured,fallbackAuthorName:fallbackAuthorName}),/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-author\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-name\",children:featured.author_name?.trim()||fallbackAuthorName}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-meta\",children:featured.relative_time_description?.trim()||fallbackReviewerMeta})]}),renderStars(featured.rating)]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-masonry\",children:cards.map((review,index)=>/*#__PURE__*/_jsxs(\"figure\",{className:\"rk-sp-card rk-sp-card-button\",role:\"button\",tabIndex:0,onClick:()=>openReviewModal(review),onKeyDown:event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();openReviewModal(review);}},children:[renderStars(review.rating),/*#__PURE__*/_jsx(\"blockquote\",{className:\"rk-sp-card-text\",style:{WebkitLineClamp:getReviewClampLines(review,index)},children:/*#__PURE__*/_jsxs(\"p\",{children:['\"',review.text?.trim(),'\"']})}),/*#__PURE__*/_jsxs(\"figcaption\",{className:\"rk-sp-card-footer\",children:[/*#__PURE__*/_jsx(ReviewAvatar,{review:review,fallbackAuthorName:fallbackAuthorName}),/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-author\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-name\",children:review.author_name?.trim()||fallbackAuthorName}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-meta\",children:review.relative_time_description?.trim()||fallbackReviewerMeta})]})]})]},`${review.author_name||\"review\"}-${index}`))})]}),!loading&&!error&&!featured&&showEmptyStateMessage&&emptyStateMessage.trim().length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-status\",style:{gridColumn:\"1 / -1\"},children:emptyStateMessage})]})]})]}),portalContainer&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(AnimatePresence,{children:selectedReview&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(motion.div,{className:\"rk-sp-modal-backdrop\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22,ease:\"easeOut\"},onClick:closeReviewModal}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-modal-wrap\",children:/*#__PURE__*/_jsxs(motion.div,{className:\"rk-sp-modal\",initial:{opacity:0,y:24,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:18,scale:.98},transition:{duration:.24,ease:[.22,1,.36,1]},onClick:event=>event.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-modal-header\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"1rem\",minWidth:0},children:[/*#__PURE__*/_jsx(ReviewAvatar,{review:selectedReview,fallbackAuthorName:fallbackAuthorName}),/*#__PURE__*/_jsxs(\"div\",{className:\"rk-sp-author\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-name\",children:selectedReview.author_name?.trim()||fallbackAuthorName}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-author-meta\",children:selectedReview.relative_time_description?.trim()||fallbackReviewerMeta}),renderStars(selectedReview.rating,\"rk-sp-modal-stars\")]})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"rk-sp-modal-close\",onClick:closeReviewModal,\"aria-label\":closeReviewAriaLabel,children:/*#__PURE__*/_jsx(CloseIcon,{})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"rk-sp-modal-content\",children:/*#__PURE__*/_jsx(\"blockquote\",{className:\"rk-sp-modal-quote\",children:/*#__PURE__*/_jsxs(\"p\",{children:['\"',selectedReview.text?.trim(),'\"']})})})]})})]})}),portalContainer)]});}addPropertyControls(EditorialSpotlight,{placeId:{title:\"Place ID\",type:ControlType.String,defaultValue:TEST_PLACE_ID,hidden:()=>true},businessId:{title:\"Business ID\",type:ControlType.String,defaultValue:TEST_BUSINESS_ID,hidden:()=>true},isPremium:{title:\"Premium Access\",type:ControlType.Boolean,defaultValue:true,hidden:()=>true},appUrl:{title:\"App URL\",type:ControlType.String,defaultValue:DEFAULT_APP_URL,hidden:()=>true},showEyebrow:{title:\"Show Eyebrow\",type:ControlType.Boolean,defaultValue:true},showHeadline:{title:\"Show Headline\",type:ControlType.Boolean,defaultValue:true},showBody:{title:\"Show Body\",type:ControlType.Boolean,defaultValue:true},showRatingText:{title:\"Show Rating Text\",type:ControlType.Boolean,defaultValue:true},showReviewCta:{title:\"Show CTA\",type:ControlType.Boolean,defaultValue:true},showAvatarTrustText:{title:\"Show Trust Copy\",type:ControlType.Boolean,defaultValue:true},eyebrow:{title:\"Eyebrow\",type:ControlType.String,defaultValue:\"Customer Feedback\",hidden:props=>!props.showEyebrow},headline:{title:\"Headline\",type:ControlType.String,defaultValue:\"Trusted by happy customers\",hidden:props=>!props.showHeadline},body:{title:\"Body\",type:ControlType.String,defaultValue:\"Show real customer feedback in a polished social proof section that helps visitors trust your business faster.\",displayTextArea:true,hidden:props=>!props.showBody},ratingIntroText:{title:\"Rating Intro\",type:ControlType.String,defaultValue:\"Rated\",hidden:props=>!props.showRatingText},ratingOutOfText:{title:\"Rating Suffix\",type:ControlType.String,defaultValue:\"/5\",hidden:props=>!props.showRatingText},ratingBasedOnText:{title:\"Rating Middle\",type:ControlType.String,defaultValue:\"based on\",hidden:props=>!props.showRatingText},ratingReviewsOnText:{title:\"Rating End\",type:ControlType.String,defaultValue:\"reviews on\",hidden:props=>!props.showRatingText},ratingLiveFallbackText:{title:\"Rating Fallback\",type:ControlType.String,defaultValue:\"live\",hidden:props=>!props.showRatingText},ratingSourceLabel:{title:\"Source Label\",type:ControlType.String,defaultValue:\"Google Reviews\",hidden:props=>!props.showRatingText},reviewCtaText:{title:\"CTA Text\",type:ControlType.String,defaultValue:\"Review us\",hidden:props=>!props.showReviewCta},reviewCtaHref:{title:\"CTA Link\",type:ControlType.String,defaultValue:\"https://search.google.com/local/writereview?placeid=ChIJ26X5g654DTkR11G12XjS36M\",hidden:props=>!props.showReviewCta},avatarTrustText:{title:\"Trust Copy\",type:ControlType.String,defaultValue:\"Trusted by customers worldwide\",hidden:props=>!props.showAvatarTrustText},missingStateMessage:{title:\"Missing Message\",type:ControlType.String,defaultValue:\"Connect your business in the RevuKit plugin to load this social proof section.\",displayTextArea:true,hidden:props=>true},emptyStateMessage:{title:\"Empty Message\",type:ControlType.String,defaultValue:\"No review content is available yet for this business.\",displayTextArea:true,hidden:props=>true},fallbackAuthorName:{title:\"Author Fallback\",type:ControlType.String,defaultValue:\"Customer\"},fallbackReviewerMeta:{title:\"Meta Fallback\",type:ControlType.String,defaultValue:\"Google reviewer\"},closeReviewAriaLabel:{title:\"Close Label\",type:ControlType.String,defaultValue:\"Close review\"},backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"rgba(0,0,0,0)\"},glowColorOne:{title:\"Glow 1\",type:ControlType.Color,defaultValue:\"rgba(255, 128, 181, 0.8)\"},glowColorTwo:{title:\"Glow 2\",type:ControlType.Color,defaultValue:\"rgba(144, 137, 252, 0.8)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EditorialSpotlight\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1320\",\"framerIntrinsicWidth\":\"1280\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Socialproof1.map"],"mappings":"iSAgiBE,SAAS,GAAiB,EAAM,CAAC,IAAM,EAAQ,EAAM,MAAM,CAAoC,OAA/B,EAAsC,EAAQ,SAAS,IAAI,CAAC,EAAQ,MAAM,EAAE,GAAG,CAAC,EAAjE,EAA0E,SAAS,EAAY,EAAK,CAAC,OAAO,EAAK,MAAM,IAAI,CAAC,IAAI,GAAM,EAAK,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAE,SAAS,IAAU,CAAC,OAAoB,EAAK,MAAM,CAAC,QAAQ,YAAY,KAAK,eAAe,cAAc,OAAO,SAAsB,EAAK,OAAO,CAAC,SAAS,UAAU,EAAE,+RAA+R,SAAS,UAAU,CAAC,CAAC,CAAC,CAAE,SAAS,EAAa,CAAC,SAAO,sBAAoB,CAAC,IAAM,EAAW,EAAO,aAAa,MAAM,EAAE,EAAyB,EAAS,EAAO,mBAAmB,MAAM,CAA2H,OAAvH,EAA8B,EAAK,MAAM,CAAC,IAAI,GAAG,IAAI,EAAS,UAAU,eAAe,eAAe,cAAc,CAAC,CAAsB,EAAK,MAAM,CAAC,UAAU,wBAAwB,SAAS,EAAY,EAAW,CAAC,CAAC,CAAE,SAAS,GAAkB,CAAC,SAAO,SAAO,sBAAoB,CAAC,IAAM,EAAW,EAAO,aAAa,MAAM,EAAE,EAAyB,EAAS,EAAO,mBAAmB,MAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,UA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