{"version":3,"file":"PageReviews.BNJln-R7.mjs","names":["useState","useCallback","currentIcon","_Fragment"],"sources":["https:/framerusercontent.com/modules/kTigR56WsHdiqieocrDX/DMR2bx8ZxqSe3L6Aoy75/PageReviews.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useCallback}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{fetchUserData,apiFeux}from\"https://framerusercontent.com/modules/SLx2xfWAXovN7llsgFwe/IlfC81NRREIAGIG9Fb3R/api.js\";export default function PageReviews(props){const{pageId,styling,style,mode=\"like\",defaultIcon,likedIcon,halfIcon,defaultIconColor,likedIconColor,iconSize,countPosition=\"left\",display=\"count\",hideIcons=false,padding,background,borderRadius,border}=props;// Fetch user data at component level (it's a hook)\nconst{userData}=fetchUserData();const[count,setCount]=useState(0);const[hasLiked,setHasLiked]=useState(false);// Rating-specific state\nconst[userRating,setUserRating]=useState(0)// User's rating (0 = not rated)\n;const[hoverRating,setHoverRating]=useState(0)// Hover preview\n;const[averageRating,setAverageRating]=useState(0)// Average of all ratings\n;const[totalRatings,setTotalRatings]=useState(0)// Total number of ratings\n;// Get userId and authToken from the hooks/API\n// Note: userData.id (not userData.member.id) and authData.authorization.token (not .key)\nconst userId=userData?.id||null;const handleLike=useCallback(async()=>{if(!pageId||!userId){return;}try{// Update UI optimistically\nsetCount(prev=>prev+1);setHasLiked(true);await apiFeux.fetchWithBearer(\"/likes\",\"POST\",{page_id:pageId,origin:window.location.href});}catch(error){// Silently handle errors\nsetCount(prev=>prev-1);setHasLiked(false);}},[pageId,userId]);const handleUnlike=useCallback(async()=>{if(!pageId||!userId){return;}try{// Update UI optimistically\nsetCount(prev=>prev-1);setHasLiked(false);await apiFeux.fetchWithBearer(\"/likes\",\"DELETE\",{page_id:pageId});}catch(error){// Silently handle errors\nsetCount(prev=>prev+1);setHasLiked(true);}},[pageId,userId]);const unrate=useCallback(async()=>{if(!pageId||!userId){return;}try{// Update UI optimistically\nconst response=await apiFeux.fetchWithBearer(`/ratings/${pageId}`,\"DELETE\",{});if(response.was_removed){setUserRating(response.page.rating_avg);setTotalRatings(response.page.rating_count);setAverageRating(response.page.rating_avg);}}catch(error){// Silently handle errors\n}},[pageId,userId]);const rate=useCallback(async rating=>{if(!pageId||!userId){return;}try{// User hasn't rated yet, so rate now\nconst response=await apiFeux.fetchWithBearer(\"/ratings\",\"POST\",{page_id:pageId,rating,origin:window.location.href});if(response){setUserRating(response.rating.rating);setTotalRatings(response.page.rating_count);setAverageRating(response.page.rating_avg);}}catch(error){// Silently handle errors\n}},[pageId,userId]);const handleRate=useCallback(async rating=>{if(userRating>0){await unrate();}else{await rate(rating);}},[userRating,unrate,rate]);useEffect(()=>{const handleKeyPress=event=>{if(event.key.toLowerCase()===\"l\"&&!event.ctrlKey&&!event.metaKey&&!event.altKey&&document.activeElement?.tagName!==\"INPUT\"&&document.activeElement?.tagName!==\"TEXTAREA\"){if(hasLiked){handleUnlike();}else{handleLike();}}};window.addEventListener(\"keydown\",handleKeyPress);return()=>window.removeEventListener(\"keydown\",handleKeyPress);},[handleLike]);// Fetch data\nuseEffect(()=>{if(!pageId)return;const fetchData=async()=>{if(mode===\"like\"){// Get total likes count\nconst likes=await apiFeux.fetchWithBearer(`/likes/${pageId}`,\"GET\");if(likes){setCount(likes.total||0);}// Check if current user has liked (only if user is logged in)\nif(userId&&likes.user_liked){setHasLiked(true);}}else if(mode===\"allLikes\"){// Get total likes count (non-interactive mode)\nconst likes=await apiFeux.fetchWithBearer(`/likes/${pageId}`,\"GET\");if(likes){setCount(likes.total||0);}// Always show as \"liked\" state\nsetHasLiked(true);}else if(mode===\"rating\"){// Get all ratings for this page\nconst ratings=await apiFeux.fetchWithBearer(`/ratings/${pageId}`,\"GET\");if(ratings){setTotalRatings(ratings.total||0);setAverageRating(ratings.average||0);}// Check if current user has rated (only if user is logged in)\nif(ratings.user_rated){setUserRating(ratings.user_rating.rating||0);}}else if(mode===\"allRatings\"){// Get all ratings for this page (non-interactive mode)\nconst ratings=await apiFeux.fetchWithBearer(`/ratings/${pageId}`,\"GET\");if(ratings){setTotalRatings(ratings.total||0);setAverageRating(ratings.average||0);if(ratings.user_rating){setUserRating(ratings.user_rating.rating||0);}}}};fetchData();},[pageId,userId,mode]);// Format count with styling options\nconst formattedCount=new Intl.NumberFormat(\"pt-BR\",{notation:styling?.useCompactFormat?\"compact\":\"standard\",compactDisplay:\"short\"}).format(mode===\"like\"||mode===\"allLikes\"?count:totalRatings);const getLayoutStyle=()=>{const hasText=display!==\"hide\";const isLikeMode=mode===\"like\"||mode===\"allLikes\";const isRatingMode=mode===\"rating\"||mode===\"allRatings\";const baseStyle={display:\"flex\",alignItems:\"center\",opacity:(isLikeMode?hasLiked:isRatingMode&&(userRating>0||averageRating>0))?1:.8,...styling?.font,color:(isLikeMode?hasLiked:isRatingMode&&(userRating>0||averageRating>0))?styling?.likedColor:styling?.textColor,...hasText?{gap:styling?.gap}:{}};if(!hasText){return{...baseStyle,justifyContent:\"center\",alignItems:\"center\"};}switch(countPosition){case\"top\":return{...baseStyle,flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"};case\"right\":return{...baseStyle,flexDirection:\"row-reverse\",justifyContent:\"left\"};default:return{...baseStyle,flexDirection:\"row\",justifyContent:\"left\"};}};// Container style with visual properties\nconst containerStyle={padding,background,borderRadius,...border,...style};// Helper function to render a single star\nconst renderStar=starNumber=>{const displayRating=hoverRating>0?hoverRating:userRating;const isFilled=starNumber<=displayRating;const isHovering=hoverRating>0;// Determine which icon to use - ensure we always have a fallback\nconst currentIcon=isFilled?likedIcon||defaultIcon:defaultIcon||likedIcon;// Determine color: filled vs empty, with hover effect\nconst starColor=isFilled?likedIconColor:defaultIconColor;// Don't render if no icon is available\nif(!currentIcon){return null;}const baseStyle={width:`${iconSize}px`,height:`${iconSize}px`,cursor:\"pointer\",flexShrink:0,position:\"relative\"};return /*#__PURE__*/_jsx(\"div\",{onMouseEnter:()=>setHoverRating(starNumber),onClick:()=>handleRate(starNumber),style:baseStyle,children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:starColor,WebkitMaskImage:currentIcon?`url(\"${currentIcon}\")`:\"none\",maskImage:currentIcon?`url(\"${currentIcon}\")`:\"none\",WebkitMaskSize:\"contain\",maskSize:\"contain\",WebkitMaskRepeat:\"no-repeat\",maskRepeat:\"no-repeat\",WebkitMaskPosition:\"center\",maskPosition:\"center\",opacity:isHovering&&isFilled?.8:1}})},starNumber);};// Helper function to render average rating stars (with half stars)\nconst renderAverageStars=()=>{const stars=[];for(let i=1;i<=5;i++){const diff=averageRating-(i-1);let icon=defaultIcon;let color=defaultIconColor;if(diff>=1){// Full star\nicon=likedIcon;color=likedIconColor;}else if(diff>=.25&&diff<.75){// Half star\nicon=halfIcon;color=likedIconColor;}else if(diff>=.75){// Round up to full star\nicon=likedIcon;color=likedIconColor;}stars.push(/*#__PURE__*/_jsx(\"div\",{style:{width:`${iconSize}px`,height:`${iconSize}px`,backgroundColor:color,maskImage:`url('${icon}')`,WebkitMaskImage:`url('${icon}')`,maskSize:\"contain\",WebkitMaskSize:\"contain\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\",maskPosition:\"center\",WebkitMaskPosition:\"center\",flexShrink:0}},i));}return stars;};// Get current icon and color based on state (for like mode)\nconst currentIcon=hasLiked?likedIcon:defaultIcon;const currentColor=hasLiked?likedIconColor:defaultIconColor;// Format rating display\nconst formattedRating=averageRating>0?averageRating.toFixed(1):\"0.0\";const ratingLabel=totalRatings===1?\"rating\":\"ratings\";// All Ratings Mode (Non-interactive, show average)\nif(mode===\"allRatings\"){// Determine what to display based on display prop\nlet displayText=\"\";// Get label, only add if not empty\nconst label=styling?.numberLabel?.trim();const labelWithSpace=label?` ${label}`:\"\";if(display===\"count\"){// Show only count\ndisplayText=`${formattedCount}${labelWithSpace}`;}else if(display===\"average\"){// Show only average\ndisplayText=formattedRating;}else if(display===\"both\"){// Show both average and count\ndisplayText=`${formattedRating} • ${formattedCount}${labelWithSpace}`;}// Check if icons are provided\nconst hasRequiredIcons=defaultIcon&&likedIcon;// Non-interactive Rating Display\nreturn /*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",flexDirection:\"column\",justifyContent:display===\"hide\"?\"center\":\"flex-start\",alignItems:display===\"hide\"?\"center\":\"flex-start\",...containerStyle},children:/*#__PURE__*/_jsxs(\"div\",{style:getLayoutStyle(),children:[hasRequiredIcons&&!hideIcons?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"4px\",flexShrink:0},children:renderAverageStars()}):null,display!==\"hide\"&&/*#__PURE__*/_jsx(\"span\",{children:displayText})]})});}if(mode===\"rating\"){// Determine what to display based on display prop\nlet displayText=\"\";// Get label, only add if not empty\nconst label=styling?.numberLabel?.trim();const labelWithSpace=label?` ${label}`:\"\";if(display===\"count\"){// Show only count\ndisplayText=`${formattedCount}${labelWithSpace}`;}else if(display===\"average\"){// Show only average\ndisplayText=formattedRating;}else if(display===\"both\"){// Show both average and count\ndisplayText=`${formattedRating} • ${formattedCount}${labelWithSpace}`;}// Read-only mode (hideIcons = true): Show only text\nif(hideIcons){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",...styling?.font,color:styling?.textColor,...containerStyle},children:/*#__PURE__*/_jsx(\"span\",{children:displayText})});}// Check if icons are provided\nconst hasRequiredIcons=defaultIcon&&likedIcon;// Interactive Rating Mode UI\nreturn /*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",flexDirection:\"column\",justifyContent:display===\"hide\"?\"center\":\"flex-start\",alignItems:display===\"hide\"?\"center\":\"flex-start\",...containerStyle},children:/*#__PURE__*/_jsxs(\"div\",{style:getLayoutStyle(),children:[hasRequiredIcons?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"4px\",flexShrink:0},onMouseLeave:()=>setHoverRating(0),children:[1,2,3,4,5].map(star=>renderStar(star))}):/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",color:\"#999\"},children:\"Please set Default & Liked icons\"}),display!==\"hide\"&&hasRequiredIcons&&/*#__PURE__*/_jsx(\"span\",{children:displayText})]})});}// All Likes Mode (Non-interactive, always show liked state)\nif(mode===\"allLikes\"){// For like mode, \"average\" and \"both\" behave the same as \"count\"\nconst showCountForAllLikes=display===\"count\"||display===\"average\"||display===\"both\";// Get label for like mode, only add if not empty\nconst allLikesLabel=styling?.numberLabel?.trim();const allLikesLabelWithSpace=allLikesLabel?` ${allLikesLabel}`:\"\";// Non-interactive Like Display\nreturn /*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",flexDirection:\"column\",justifyContent:display===\"hide\"?\"center\":\"flex-start\",alignItems:display===\"hide\"?\"center\":\"flex-start\",...containerStyle},children:/*#__PURE__*/_jsxs(\"div\",{style:getLayoutStyle(),children:[likedIcon&&!hideIcons&&/*#__PURE__*/_jsx(\"div\",{style:{width:`${iconSize}px`,height:`${iconSize}px`,backgroundColor:likedIconColor,maskImage:`url('${likedIcon}')`,WebkitMaskImage:`url('${likedIcon}')`,maskSize:\"contain\",WebkitMaskSize:\"contain\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\",maskPosition:\"center\",WebkitMaskPosition:\"center\",flexShrink:0}}),showCountForAllLikes&&/*#__PURE__*/_jsxs(_Fragment,{children:[formattedCount,allLikesLabelWithSpace]})]})});}// Like Mode UI (default)\n// For like mode, \"average\" and \"both\" behave the same as \"count\" (since there's no average in like mode)\nconst showCountForLike=display===\"count\"||display===\"average\"||display===\"both\";// Get label for like mode, only add if not empty\nconst likeLabel=styling?.numberLabel?.trim();const likeLabelWithSpace=likeLabel?` ${likeLabel}`:\"\";// Read-only mode (hideIcons = true): Show only text\nif(hideIcons){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",...styling?.font,color:styling?.textColor,...containerStyle},children:showCountForLike&&/*#__PURE__*/_jsxs(\"span\",{children:[formattedCount,likeLabelWithSpace]})});}// Interactive Like Mode UI\nreturn /*#__PURE__*/_jsx(motion.div,{style:{display:\"flex\",flexDirection:\"column\",justifyContent:display===\"hide\"?\"center\":\"flex-start\",alignItems:display===\"hide\"?\"center\":\"flex-start\",cursor:\"pointer\",backdropFilter:\"blur(10px)\",...containerStyle},onClick:hasLiked?handleUnlike:handleLike,whileTap:{scale:.95},children:/*#__PURE__*/_jsxs(\"div\",{style:getLayoutStyle(),children:[currentIcon&&/*#__PURE__*/_jsx(\"div\",{style:{width:`${iconSize}px`,height:`${iconSize}px`,backgroundColor:currentColor,maskImage:`url('${currentIcon}')`,WebkitMaskImage:`url('${currentIcon}')`,maskSize:\"contain\",WebkitMaskSize:\"contain\",maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\",maskPosition:\"center\",WebkitMaskPosition:\"center\",flexShrink:0}}),showCountForLike&&/*#__PURE__*/_jsxs(_Fragment,{children:[formattedCount,likeLabelWithSpace]})]})});}PageReviews.defaultProps={numberLabel:\"likes\",textColor:\"#F12EFF\",likedColor:\"#FF2E2E\",padding:\"20px\",gap:8,defaultIconColor:\"#999999\",likedIconColor:\"#FF2E2E\",iconSize:24,hideIcons:false,background:\"transparent\",borderRadius:\"0px\"};PageReviews.displayName=\"Page Reviews\";addPropertyControls(PageReviews,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"like\",\"rating\",\"allLikes\",\"allRatings\"],optionTitles:[\"Like\",\"Rating\",\"All Likes\",\"All Ratings\"],defaultValue:\"like\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},pageId:{type:ControlType.String,title:\"Page ID\"},hideIcons:{type:ControlType.Boolean,title:\"Hide Icons\",defaultValue:false,enabledTitle:\"Hidden\",disabledTitle:\"Visible\"},defaultIcon:{type:ControlType.Image,title:\"Default Icon\",hidden:props=>props.hideIcons},defaultIconColor:{type:ControlType.Color,title:\"Default Color\",defaultValue:\"#999999\",hidden:props=>props.hideIcons},likedIcon:{type:ControlType.Image,title:\"Liked Icon\",hidden:props=>props.hideIcons},likedIconColor:{type:ControlType.Color,title:\"Liked Color\",defaultValue:\"#FF2E2E\",hidden:props=>props.hideIcons},halfIcon:{type:ControlType.Image,title:\"Half Icon\",hidden:props=>props.mode!==\"rating\"&&props.mode!==\"allRatings\"||props.hideIcons},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:24,min:12,max:64,step:2,unit:\"px\",displayStepper:true,hidden:props=>props.hideIcons},display:{type:ControlType.Enum,title:\"Display\",options:[\"hide\",\"count\",\"average\",\"both\"],optionTitles:[\"Hide\",\"Count\",\"Average\",\"Both\"],defaultValue:\"count\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},countPosition:{type:ControlType.Enum,title:\"Text Position\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"left\",\"top\",\"right\"],optionTitles:[\"Left\",\"Top\",\"Right\"],defaultValue:\"left\",hidden:props=>props.display===\"hide\"||props.hideIcons},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\",optional:true},border:{type:ControlType.Border,title:\"Border\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"20px\"},styling:{title:\"Styles\",type:ControlType.Object,hidden:props=>props.display===\"hide\"&&!props.hideIcons,controls:{numberLabel:{title:\"Label\",defaultValue:\"likes\",type:ControlType.String,description:\"Text after count (e.g. 'likes', 'reviews'). Leave empty to hide.\"},useCompactFormat:{type:ControlType.Boolean,title:\"Compact Numbers\",description:\"Display numbers in compact format (ex: 1,2 mil)\",defaultValue:false},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},textColor:{title:\"Default Color\",type:ControlType.Color},likedColor:{title:\"Liked Color\",type:ControlType.Color},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:100,unit:\"px\",step:1,displayStepper:true}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageReviews\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageReviews.map"],"mappings":"yTAAiV,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,SAAO,UAAQ,QAAM,OAAK,OAAO,cAAY,YAAU,WAAS,mBAAiB,iBAAe,WAAS,gBAAc,OAAO,UAAQ,QAAQ,YAAU,GAAM,UAAQ,aAAW,gBAAa,UAAQ,EACnkB,CAAC,YAAU,GAAe,CAAM,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CACxG,CAAC,EAAW,GAAeA,EAAS,EAAE,CACrC,CAAC,EAAY,GAAgBA,EAAS,EAAE,CACxC,CAAC,EAAc,GAAkBA,EAAS,EAAE,CAC5C,CAAC,EAAa,GAAiBA,EAAS,EAAE,CAG1C,EAAO,GAAU,IAAI,KAAW,EAAWC,EAAY,SAAS,CAAI,MAAC,GAAQ,CAAC,GAAgB,GAAG,CACvG,EAAS,GAAM,EAAK,EAAE,CAAC,EAAY,GAAK,CAAC,MAAM,EAAQ,gBAAgB,SAAS,OAAO,CAAC,QAAQ,EAAO,OAAO,EAAO,SAAS,KAAK,CAAC,MAAc,CAClJ,EAAS,GAAM,EAAK,EAAE,CAAC,EAAY,GAAM,GAAI,CAAC,EAAO,EAAO,CAAC,CAAO,EAAaA,EAAY,SAAS,CAAI,MAAC,GAAQ,CAAC,GAAgB,GAAG,CACvI,EAAS,GAAM,EAAK,EAAE,CAAC,EAAY,GAAM,CAAC,MAAM,EAAQ,gBAAgB,SAAS,SAAS,CAAC,QAAQ,EAAO,CAAC,MAAc,CACzH,EAAS,GAAM,EAAK,EAAE,CAAC,EAAY,GAAK,GAAI,CAAC,EAAO,EAAO,CAAC,CAAO,EAAOA,EAAY,SAAS,CAAI,MAAC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