PageSourceSearch

https://www.nuvemshop.com.br/_next/static/chunks/4590-8515d1f5ca6f802a.js

js nuvemshop.com.br collected 2026-10-01 08:49:45 UTC 58,995 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4590],{1051:(e,t,a)=>{a.d(t,{Z:()=>m});var r=a(95155),l=a(19749),s=a(70367),n=a(26469),i=a(19648),c=a(80095),o=a.n(c),d=a(43578);function m(e){let t,a,c,m,p,x,u,h,g,f,y,b,v,j,N=(0,l.c)(68);N[0]!==e?({currentPage:a,totalPages:m,ariaLabel:t,...c}=e,N[0]=e,N[1]=t,N[2]=a,N[3]=c,N[4]=m):(t=N[1],a=N[2],c=N[3],m=N[4]);let w=(0,i.useTranslations)(),D="getPageUrl"in c,_=D?c.getPageUrl:void 0,S=D?void 0:c.onPageChange,C=a>1,R=a<m;if(N[5]!==t||N[6]!==a||N[7]!==_||N[8]!==C||N[9]!==S||N[10]!==w||N[11]!==m||N[12]!==D){let e,l,i,c,f=function(e,t){let a=[];if(t<=5){for(let e=1;e<=t;e++)a.push({type:"page",page:e});return a}a.push({type:"page",page:1}),e>3&&a.push({type:"ellipsis",key:"start"});let r=Math.max(2,e-1),l=Math.min(t-1,e+1);for(let e=r;e<=l;e++)a.push({type:"page",page:e});return e<t-2&&a.push({type:"ellipsis",key:"end"}),a.push({type:"page",page:t}),a}(a,m);N[18]!==t||N[19]!==w?(e=t??w("categoryPage.pagination"),N[18]=t,N[19]=w,N[20]=e):e=N[20],u="mt-12 flex items-center justify-center gap-2",h=e;let y=!C,b=!!(C&&D&&_);N[21]!==a||N[22]!==C||N[23]!==S||N[24]!==w?(l=C&&S?{onClick:()=>S(a-1),"aria-label":w("categoryPage.previousPage")}:{},N[21]=a,N[22]=C,N[23]=S,N[24]=w,N[25]=l):l=N[25],N[26]!==a||N[27]!==_||N[28]!==C||N[29]!==w||N[30]!==D?(i=C&&D&&_?(0,r.jsx)(o(),{href:_(a-1),"aria-label":w("categoryPage.previousPage"),children:(0,r.jsx)(n.ChevronLeftIcon,{className:"h-4 w-4"})}):(0,r.jsx)("span",{children:(0,r.jsx)(n.ChevronLeftIcon,{className:"h-4 w-4"})}),N[26]=a,N[27]=_,N[28]=C,N[29]=w,N[30]=D,N[31]=i):i=N[31],N[32]!==i||N[33]!==y||N[34]!==b||N[35]!==l?(g=(0,r.jsx)(d.$,{variant:"outline-neutral",className:"border-transparent hover:border-primary bg-transparent hover:bg-gray-100 hover:border-neutral-200 transition-colors",size:"sm",disabled:y,asChild:b,...l,children:i}),N[32]=i,N[33]=y,N[34]=b,N[35]=l,N[36]=g):g=N[36],p="flex items-center gap-1",N[37]!==a||N[38]!==_||N[39]!==S||N[40]!==w||N[41]!==D?(c=e=>"ellipsis"===e.type?(0,r.jsx)("span",{className:"px-2 text-gray-500",children:"..."},`ellipsis-${e.key}`):(0,r.jsx)(d.$,{variant:a===e.page?"primary":"outline",className:(0,s.cn)(a===e.page?"bg-primary-accent text-white hover:bg-transparent hover:text-primary-accent border-primary-accent border":"border-transparent hover:border-primary bg-transparent hover:bg-gray-100 hover:border-neutral-200 transition-colors"),size:"sm",asChild:!!(a!==e.page&&D&&_),...a!==e.page&&S?{onClick:()=>S(e.page),"aria-label":w("categoryPage.goToPage",{page:e.page})}:{},children:a===e.page?(0,r.jsx)("span",{"aria-current":"page",children:e.page}):D&&_?(0,r.jsx)(o(),{href:_(e.page),"aria-label":w("categoryPage.goToPage",{page:e.page}),className:"border-transparent text-neutral-600 hover:border-primary bg-transparent hover:bg-gray-100 hover:border-neutral-200 hover:text-neutral-600 transition-colors",children:e.page}):(0,r.jsx)("span",{className:"border-transparent text-neutral-600 hover:border-primary bg-transparent hover:bg-gray-100 hover:border-neutral-200 hover:text-neutral-600 transition-colors",children:e.page})},e.page),N[37]=a,N[38]=_,N[39]=S,N[40]=w,N[41]=D,N[42]=c):c=N[42],x=f.map(c),N[5]=t,N[6]=a,N[7]=_,N[8]=C,N[9]=S,N[10]=w,N[11]=m,N[12]=D,N[13]=p,N[14]=x,N[15]=u,N[16]=h,N[17]=g}else p=N[13],x=N[14],u=N[15],h=N[16],g=N[17];N[43]!==p||N[44]!==x?(f=(0,r.jsx)("div",{className:p,children:x}),N[43]=p,N[44]=x,N[45]=f):f=N[45];let k=!R,A=!!(R&&D&&_);return N[46]!==a||N[47]!==R||N[48]!==S||N[49]!==w?(y=R&&S?{onClick:()=>S(a+1),"aria-label":w("categoryPage.nextPage")}:{},N[46]=a,N[47]=R,N[48]=S,N[49]=w,N[50]=y):y=N[50],N[51]!==a||N[52]!==_||N[53]!==R||N[54]!==w||N[55]!==D?(b=R&&D&&_?(0,r.jsx)(o(),{href:_(a+1),"aria-label":w("categoryPage.nextPage"),children:(0,r.jsx)(n.ChevronRightIcon,{className:"h-4 w-4"})}):(0,r.jsx)("span",{children:(0,r.jsx)(n.ChevronRightIcon,{className:"h-4 w-4"})}),N[51]=a,N[52]=_,N[53]=R,N[54]=w,N[55]=D,N[56]=b):b=N[56],N[57]!==b||N[58]!==k||N[59]!==A||N[60]!==y?(v=(0,r.jsx)(d.$,{variant:"outline-neutral",className:"border-transparent hover:border-primary bg-transparent hover:bg-gray-100 hover:border-neutral-200 transition-colors",size:"sm",disabled:k,asChild:A,...y,children:b}),N[57]=b,N[58]=k,N[59]=A,N[60]=y,N[61]=v):v=N[61],N[62]!==v||N[63]!==u||N[64]!==h||N[65]!==g||N[66]!==f?(j=(0,r.jsxs)("nav",{className:u,"aria-label":h,children:[g,f,v]}),N[62]=v,N[63]=u,N[64]=h,N[65]=g,N[66]=f,N[67]=j):j=N[67],j}},1298:(e,t,a)=>{a.d(t,{AllReviewsModal:()=>h});var r=a(95155),l=a(19749),s=a(69942),n=a(53015),i=a(38254),c=a(34984),o=a(19648),d=a(12115),m=a(11550),p=a(93095),x=a(83569);function u(e){let t,a,s,n,c,d,u,h,g=(0,l.c)(21),{review:f}=e,y=(0,o.useLocale)();g[0]!==y||g[1]!==f.createdAt?(t=(0,i.Yq)(f.createdAt,y),g[0]=y,g[1]=f.createdAt,g[2]=t):t=g[2];let b=t;return g[3]!==f.storeName?(a=(0,r.jsx)("p",{className:"font-bold text-gray-900",children:f.storeName}),g[3]=f.storeName,g[4]=a):a=g[4],g[5]!==b?(s=(0,r.jsx)("span",{className:"text-xs text-gray-400 shrink-0 ml-2",children:b}),g[5]=b,g[6]=s):s=g[6],g[7]!==a||g[8]!==s?(n=(0,r.jsxs)("div",{className:"flex items-start justify-between mb-1",children:[a,s]}),g[7]=a,g[8]=s,g[9]=n):n=g[9],g[10]!==f.rating?(c=(0,r.jsx)(x.G,{rating:f.rating,size:"sm",className:"mb-3"}),g[10]=f.rating,g[11]=c):c=g[11],g[12]!==f.comment?(d=(0,r.jsx)(p.M,{text:f.comment,maxLength:250,className:"text-sm text-gray-700"}),g[12]=f.comment,g[13]=d):d=g[13],g[14]!==f.reply?(u=(0,r.jsx)(m.$,{reply:f.reply,maxLength:250}),g[14]=f.reply,g[15]=u):u=g[15],g[16]!==n||g[17]!==c||g[18]!==d||g[19]!==u?(h=(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm p-5 flex flex-col review-card hover:review-card-hover transition-all duration-200 hover:translate-y-[-2px]",children:[n,c,d,u]}),g[16]=n,g[17]=c,g[18]=d,g[19]=u,g[20]=h):h=g[20],h}function h({appId:e,totalCount:t,isOpen:a,onClose:l}){let i=(0,o.useTranslations)(),{dialogRef:m,handleBackdropClick:p}=(0,n.s)(a,l),[x,h]=(0,d.useState)([]),[g,f]=(0,d.useState)(1),[y,b]=(0,d.useState)(!1),[v,j]=(0,d.useState)(!0),N=(0,d.useRef)(!1);(0,d.useEffect)(()=>
1{if(!a){h([]),f(1),j(!0),N.current=!1;return}N.current||(N.current=!0,(async()=>{b(!0);try{let t=await (0,s.G)(e,1,10);h(t.reviews),j(t.reviews.length<t.total),f(1)}finally{b(!1)}})())},[a,e]);let w=(0,d.useCallback)(async()=>{if(!y&&v){b(!0);try{let t=g+1,a=await (0,s.G)(e,t,10);h(e=>[...e,...a.reviews]),j(x.length+a.reviews.length<a.total),f(t)}finally{b(!1)}}},[e,g,y,v,x.length]);return a?(0,r.jsx)("dialog",{ref:m,className:"backdrop:bg-black/50 bg-transparent p-0 m-auto max-w-2xl w-full max-h-[85vh]",onClick:p,onKeyDown:e=>{"Escape"===e.key&&l()},onClose:l,children:(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl flex flex-col max-h-[85vh] mx-4 md:mx-0",children:[(0,r.jsxs)("div",{className:" flex items-center justify-between p-6 border-b border-neutral-200 shrink-0",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:i("appDetail.allReviews")}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-0.5",children:i("appDetail.allReviewsCount",{count:t})})]}),(0,r.jsx)("button",{type:"button",onClick:l,className:"p-1 rounded-lg hover:bg-gray-100 transition-colors","aria-label":i("appDetail.close"),children:(0,r.jsx)(c.A,{className:"h-5 w-5 text-gray-500"})})]}),(0,r.jsxs)("div",{className:"overflow-y-auto p-6 flex-1 modal-liquidity-gradient",children:[(0,r.jsx)("div",{className:"flex flex-col gap-4",children:x.map(e=>(0,r.jsx)(u,{review:e},e.id))}),y&&(0,r.jsx)("div",{className:"flex justify-center py-6",children:(0,r.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-neutral-300 border-t-primary-accent"})}),v&&!y&&x.length>0&&(0,r.jsx)("div",{className:"flex justify-center pt-4",children:(0,r.jsx)("button",{type:"button",onClick:w,className:"text-sm font-medium text-primary-accent hover:underline focus:outline-none",children:i("appDetail.readMore")})})]})]})}):null}},11550:(e,t,a)=>{a.d(t,{$:()=>c});var r=a(95155),l=a(19749),s=a(38254),n=a(19648),i=a(93095);function c(e){let t,a,c,o,d,m,p,x=(0,l.c)(19),{reply:u,maxLength:h,onReadMore:g}=e,f=void 0===h?150:h,y=(0,n.useTranslations)(),b=(0,n.useLocale)();if(!u)return null;x[0]!==b||x[1]!==u.createdAt?(t=(0,s.Yq)(u.createdAt,b),x[0]=b,x[1]=u.createdAt,x[2]=t):t=x[2];let v=t;return x[3]!==y?(a=y("appDetail.developerResponse"),x[3]=y,x[4]=a):a=x[4],x[5]!==a?(c=(0,r.jsx)("span",{className:"text-xs font-semibold text-gray-700",children:a}),x[5]=a,x[6]=c):c=x[6],x[7]!==v?(o=(0,r.jsx)("span",{className:"text-xs text-gray-400",children:v}),x[7]=v,x[8]=o):o=x[8],x[9]!==c||x[10]!==o?(d=(0,r.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[c,o]}),x[9]=c,x[10]=o,x[11]=d):d=x[11],x[12]!==f||x[13]!==g||x[14]!==u.comment?(m=(0,r.jsx)(i.M,{text:u.comment,maxLength:f,className:"text-sm text-gray-600",onReadMore:g}),x[12]=f,x[13]=g,x[14]=u.comment,x[15]=m):m=x[15],x[16]!==d||x[17]!==m?(p=(0,r.jsxs)("div",{className:"mt-3 rounded-lg bg-primary-200/20 border border-neutral-100 p-3",children:[d,m]}),x[16]=d,x[17]=m,x[18]=p):p=x[18],p}},18080:(e,t,a)=>{a.d(t,{RelatedApps:()=>m});var r=a(95155),l=a(19749),s=a(70367),n=a(33786),i=a(78725),c=a(19648),o=a(12115),d=a(21319);function m(e){let t,a,m,p,x,u,h,g,f,y=(0,l.c)(42),{apps:b,locale:v,currentAppId:j,sourceAppName:N,sourceAppSlug:w,className:D}=e,_=(0,c.useTranslations)(),S=(0,o.useRef)(null),[C,R]=(0,o.useState)(!1),[k,A]=(0,o.useState)(!0);if(y[0]!==b||y[1]!==C||y[2]!==k||y[3]!==D||y[4]!==j||y[5]!==v||y[6]!==N||y[7]!==w||y[8]!==_){h=Symbol.for("react.early_return_sentinel");e:{let e,l,c,o,g,f;y[16]!==j?(e=e=>e.id!==j,y[16]=j,y[17]=e):e=y[17];let E=b.filter(e);y[18]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=S.current;e&&(R(e.scrollLeft>16),A(e.scrollLeft<e.scrollWidth-e.clientWidth-1))},y[18]=l):l=y[18];let L=l;y[19]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{let t=S.current;if(!t)return;let a="left"===e?t.scrollLeft-280:t.scrollLeft+280;t.scrollTo({left:a,behavior:"smooth"}),setTimeout(L,300)},y[19]=c):c=y[19];let P=c;if(0===E.length){h=null;break e}y[20]!==D?(x=(0,s.cn)("",D),y[20]=D,y[21]=x):x=y[21],y[22]!==_?(o=_("appDetail.relatedApps"),y[22]=_,y[23]=o):o=y[23],y[24]!==o?(g=(0,r.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:o}),y[24]=o,y[25]=g):g=y[25];let T=E.length>3&&(0,r.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>P("left"),disabled:!C,className:(0,s.cn)("p-2 rounded-full border border-neutral-200 transition-colors focus:outline-none focus:ring-2 focus:ring-primary-accent",C?"hover:bg-neutral-50 text-gray-600":"opacity-50 cursor-not-allowed text-gray-300"),"aria-label":_("appDetail.previous"),children:(0,r.jsx)(n.A,{className:"w-5 h-5"})}),(0,r.jsx)("button",{type:"button",onClick:()=>P("right"),disabled:!k,className:(0,s.cn)("p-2 rounded-full border border-neutral-200 transition-colors focus:outline-none focus:ring-2 focus:ring-primary-accent",k?"hover:bg-neutral-50 text-gray-600":"opacity-50 cursor-not-allowed text-gray-300"),"aria-label":_("appDetail.next"),children:(0,r.jsx)(i.A,{className:"w-5 h-5"})})]});y[26]!==g||y[27]!==T?(u=(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[g,T]}
1),y[26]=g,y[27]=T,y[28]=u):u=y[28],t=S,a=L,m="grid grid-cols-1 gap-12 md:flex md:pb-4 md:scrollbar-thin md:scrollbar-thumb-neutral-300 md:scrollbar-track-transparent md:scroll-smooth md:snap-x md:snap-mandatory md:px-4 md:overflow-x-hidden",y[29]!==v||y[30]!==N||y[31]!==w?(f=(e,t)=>(0,r.jsx)("div",{className:"md:flex-shrink-0 md:w-[260px] md:snap-start",children:(0,r.jsx)(d.FullAppCard,{app:e,locale:v,tracking:{section:"related_apps",position:t,source_app_name:N,source_app_slug:w}})},e.id),y[29]=v,y[30]=N,y[31]=w,y[32]=f):f=y[32],p=E.map(f)}y[0]=b,y[1]=C,y[2]=k,y[3]=D,y[4]=j,y[5]=v,y[6]=N,y[7]=w,y[8]=_,y[9]=t,y[10]=a,y[11]=m,y[12]=p,y[13]=x,y[14]=u,y[15]=h}else t=y[9],a=y[10],m=y[11],p=y[12],x=y[13],u=y[14],h=y[15];return h!==Symbol.for("react.early_return_sentinel")?h:(y[33]!==t||y[34]!==a||y[35]!==m||y[36]!==p?(g=(0,r.jsx)("div",{ref:t,onScroll:a,className:m,children:p}),y[33]=t,y[34]=a,y[35]=m,y[36]=p,y[37]=g):g=y[37],y[38]!==x||y[39]!==u||y[40]!==g?(f=(0,r.jsxs)("section",{className:x,children:[u,g]}),y[38]=x,y[39]=u,y[40]=g,y[41]=f):f=y[41],f)}},24920:(e,t,a)=>{a.d(t,{ReviewCard:()=>m});var r=a(95155),l=a(19749),s=a(70367),n=a(38254),i=a(19648),c=a(11550),o=a(93095),d=a(83569);function m(e){let t,a,m,p,x,u,h,g,f,y,b=(0,l.c)(50),{review:v,className:j,variant:N,onShowMore:w}=e,D=(0,i.useLocale)();b[0]!==D||b[1]!==v.createdAt?(t=(0,n.Yq)(v.createdAt,D),b[0]=D,b[1]=v.createdAt,b[2]=t):t=b[2];let _=t;b[3]!==w||b[4]!==v?(a=w?()=>w(v):void 0,b[3]=w,b[4]=v,b[5]=a):a=b[5];let S=a;if("card"===(void 0===N?"card":N)){let e,t,a,l,n,i,m,p;return b[6]!==j?(e=(0,s.cn)("bg-white  rounded-xl p-5 flex flex-col review-card hover:review-card-hover transition-all duration-200 hover:translate-y-[-2px]",j),b[6]=j,b[7]=e):e=b[7],b[8]!==v.storeName?(t=(0,r.jsx)("p",{className:"font-semibold text-gray-900",children:v.storeName}),b[8]=v.storeName,b[9]=t):t=b[9],b[10]!==_?(a=(0,r.jsx)("span",{className:"text-xs text-gray-400 shrink-0 ml-2",children:_}),b[10]=_,b[11]=a):a=b[11],b[12]!==t||b[13]!==a?(l=(0,r.jsxs)("div",{className:"flex items-start justify-between mb-1",children:[t,a]}),b[12]=t,b[13]=a,b[14]=l):l=b[14],b[15]!==v.rating?(n=(0,r.jsx)(d.G,{rating:v.rating,size:"sm",className:"mb-3"}),b[15]=v.rating,b[16]=n):n=b[16],b[17]!==S||b[18]!==v.comment?(i=(0,r.jsx)(o.M,{text:v.comment,maxLength:150,className:"text-gray-700 text-sm",onReadMore:S}),b[17]=S,b[18]=v.comment,b[19]=i):i=b[19],b[20]!==S||b[21]!==v.reply?(m=(0,r.jsx)(c.$,{reply:v.reply,maxLength:150,onReadMore:S}),b[20]=S,b[21]=v.reply,b[22]=m):m=b[22],b[23]!==m||b[24]!==e||b[25]!==l||b[26]!==n||b[27]!==i?(p=(0,r.jsxs)("div",{className:e,children:[l,n,i,m]}),b[23]=m,b[24]=e,b[25]=l,b[26]=n,b[27]=i,b[28]=p):p=b[28],p}return b[29]!==j?(m=(0,s.cn)(" pb-4 last:border-0 review-card hover:review-card-hover transition-all duration-200 hover:translate-y-[-2px]",j),b[29]=j,b[30]=m):m=b[30],b[31]!==v.storeName?(p=(0,r.jsx)("p",{className:"font-semibold text-gray-900",children:v.storeName}),b[31]=v.storeName,b[32]=p):p=b[32],b[33]!==_?(x=(0,r.jsx)("span",{className:"text-xs text-gray-400 shrink-0 ml-2",children:_}),b[33]=_,b[34]=x):x=b[34],b[35]!==p||b[36]!==x?(u=(0,r.jsxs)("div",{className:"flex items-start justify-between mb-1",children:[p,x]}),b[35]=p,b[36]=x,b[37]=u):u=b[37],b[38]!==v.rating?(h=(0,r.jsx)(d.G,{rating:v.rating,size:"sm",className:"mb-2"}),b[38]=v.rating,b[39]=h):h=b[39],b[40]!==v.comment?(g=(0,r.jsx)(o.M,{text:v.comment,maxLength:150,className:"text-gray-700"}),b[40]=v.comment,b[41]=g):g=b[41],b[42]!==v.reply?(f=(0,r.jsx)(c.$,{reply:v.reply}),b[42]=v.reply,b[43]=f):f=b[43],b[44]!==f||b[45]!==m||b[46]!==u||b[47]!==h||b[48]!==g?(y=(0,r.jsxs)("div",{className:m,children:[u,h,g,f]}),b[44]=f,b[45]=m,b[46]=u,b[47]=h,b[48]=g,b[49]=y):y=b[49],y}},37310:(e,t,a)=>{a.r(t),a.d(t,{ReviewsSectionClient:()=>I});var r=a(95155),l=a(19749),s=a(93641),n=a(70367),i=a(92511),c=a(19648),o=a(12115),d=a(93333);function m(e){let t,a,s,i,c=(0,l.c)(9),{distribution:o,total:m,className:p}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[5,4,3,2,1],c[0]=t):t=c[0];let x=t;return c[1]!==p?(a=(0,n.cn)("space-y-2",p),c[1]=p,c[2]=a):a=c[2],c[3]!==o||c[4]!==m?(s=x.map(e=>
1{let t=o[e]||0,a=m>0?t/m*100:0;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 w-8 justify-end",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-gray-700",children:e}),(0,r.jsx)(d.A,{className:"h-3.5 w-3.5 text-yellow-400"})]}),(0,r.jsx)("div",{className:"flex-1 h-2 bg-neutral-200 rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-primary-accent rounded-full transition-all duration-300",style:{width:`${a}%`}})}),(0,r.jsx)("span",{className:"text-sm text-gray-500 w-10 text-right",children:t})]},e)}),c[3]=o,c[4]=m,c[5]=s):s=c[5],c[6]!==a||c[7]!==s?(i=(0,r.jsx)("div",{className:a,children:s}),c[6]=a,c[7]=s,c[8]=i):i=c[8],i}var p=a(43578),x=a(1051),u=a(1298),h=a(41154);let g=(0,h.createServerReference)("40ce8ee1725cc0ceaeb54f0c81a0b0afa84e130bf4",h.callServer,void 0,h.findSourceMapURL,"fetchMyReviewAction");var f=a(57337),y=a(8663),b=a(39200),v=a(69942),j=a(54286);function N(e){let t,a,s,n,i,o,d,m=(0,l.c)(15),{summary:p}=e,x=(0,c.useTranslations)();return m[0]!==x?(t=x("appDetail.reviewAiSummary.title"),m[0]=x,m[1]=t):t=m[1],m[2]!==t?(a=(0,r.jsx)("h6",{className:"font-semibold text-gray-900 mb-2",children:t}),m[2]=t,m[3]=a):a=m[3],m[4]!==p?(s=(0,r.jsx)("p",{className:"text-sm text-gray-700 mb-3",children:p}),m[4]=p,m[5]=s):s=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(j.A,{className:"h-3.5 w-3.5 text-primary-accent"}),m[6]=n):n=m[6],m[7]!==x?(i=x("appDetail.reviewAiSummary.generatedBy"),m[7]=x,m[8]=i):i=m[8],m[9]!==i?(o=(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-400",children:[n,(0,r.jsx)("span",{children:i})]}),m[9]=i,m[10]=o):o=m[10],m[11]!==a||m[12]!==s||m[13]!==o?(d=(0,r.jsxs)("div",{className:"review-ai-summary flex flex-col border border-transparent rounded-xl gap-[2px]",children:[a,s,o]}),m[11]=a,m[12]=s,m[13]=o,m[14]=d):d=m[14],d}var w=a(24920),D=a(82185),_=a(83569);let S=(0,h.createServerReference)("780764951c08085fd7692168ceaf91208a9579a36f",h.callServer,void 0,h.findSourceMapURL,"updateReviewAction"),C=(0,h.createServerReference)("704c70e91b5aeaa22b58e4fbde5e998f81f1c61f12",h.callServer,void 0,h.findSourceMapURL,"createReviewAction");var R=a(53015),k=a(34984);function A({appId:e,isOpen:t,onClose:a,onSuccess:l,existingReview:s}){let i=(0,c.useTranslations)(),[d,m]=(0,o.useState)(0),[x,u]=(0,o.useState)(0),[h,g]=(0,o.useState)(""),[f,y]=(0,o.useState)(!1),[b,v]=(0,o.useState)(null),{dialogRef:j,handleBackdropClick:N}=(0,R.s)(t,a),w=null!==s;(0,o.useEffect)(()=>{s?(m(s.rating),g(s.comment)):(m(0),g("")),v(null)},[s]);let D=(0,o.useCallback)(async t=>{if(t.preventDefault(),v(null),d<1||d>5)return void v(i("appDetail.reviewStarsRequired"));y(!0);try{let t=w?await S(e,s.id,d,h):await C(e,d,h);if(!t.success)return void(409===t.status?v(i("appDetail.reviewAlreadyExists")):v(t.error||i("appDetail.reviewError")));l(),a()}catch{v(i("appDetail.reviewError"))}finally{y(!1)}},[e,h,s,w,a,l,d,i]);return t?(0,r.jsx)("dialog",{ref:j,className:"backdrop:bg-black/50 bg-transparent p-0 m-auto max-w-lg w-full",onClick:N,onKeyDown:e=>{"Escape"===e.key&&a()},onClose:a,children:(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl p-6 mx-4 md:mx-0",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6 border-b border-neutral-200 pb-4",children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:w?i("appDetail.editReview"):i("appDetail.writeReview")}),(0,r.jsx)("button",{type:"button",onClick:a,className:"p-1 rounded-lg hover:bg-gray-100 transition-colors","aria-label":i("appDetail.close"),children:(0,r.jsx)(k.A,{className:"h-5 w-5 text-gray-500"})})]}),(0,r.jsxs)("form",{onSubmit:D,children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("span",{className:"block text-sm font-semibold text-gray-700 mb-2",children:i("appDetail.reviewStarsLabel")}),(0,r.jsx)(_.Q,{stars:d,hoveredStar:x,onRate:m,onHover:u})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("label",{htmlFor:"review-comment",className:"block text-sm font-semibold text-gray-700 mb-2",children:i("appDetail.reviewCommentLabel")}),(0,r.jsx)("textarea",{id:"review-comment",value:h,onChange:e=>g(e.target.value),placeholder:i("appDetail.reviewCommentPlaceholder"),rows:4,className:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm text-gray-900 placeholder:text-gray-400 focus:border-primary-accent focus:outline-none focus:ring-1 focus:ring-primary-accent resize-none"})]}),b&&(0,r.jsx)("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-600",children:b}),(0,r.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,r.jsx)(p.$,{variant:"outline-neutral",size:"sm",onClick:()=>a(),children:i("appDetail.cancel")}),(0,r.jsx)(p.$,{type:"submit",disabled:f,className:(0,n.cn)(f?"bg-primary-accent/60 cursor-not-allowed":""),children:f?i("appDetail.submitting"):w?i("appDetail.updateReview"):i("appDetail.submitReview")})]})]})]})}):null}function E(e){let t,a,s,n,i,c,o=(0,l.c)(15),{averageScore:d,distribution:p,totalCount:x}=e;return o[0]!==d?(t=d.toFixed(1),o[0]=d,o[1]=t):t=o[1],o[2]!==t?(a=(0,r.jsx)("h3",{className:"font-bold text-5xl text-gray-900",children:t}),o[2]=t,o[3]=a):a=o[3],o[4]!==d?(s=(0,r.jsx)(_.G,{rating:d,size:"md"}),o[4]=d,o[5]=s):s=o[5],o[6]!==a||o[7]!==s?(n=(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2 mb-4",children:[a,s]}),o[6]=a,o[7]=s,o[8]=n):n=o[8],o[9]!==p||o[10]!==x?(i=(0,r.jsx)(m,{distribution:p,total:x}),o[9]=p,o[10]=x,o[11]=i):i=o[11],o[12]!==n||o[13]!==i?(c=(0,r.jsxs)("div",{className:"review-linear hover:review-linear-shadow review-linear-default-shadow border hover:translate-y-[-2px] transition-all duration-100 rounded-xl p-6",children:[n,i]}),o[12]=n,o[13]=i,o[14]=c):c=o[14],c}function L(e){let t,a,s=(0,l.c)(9),{reviews:n,isLoading:i,reviewsPerPage:c,onShowMore:o}=e;if(i){let e;return s[0]!==c?(e=(0,r.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 animate-pulse",children:Array.from({length:c}).map(P)}),s[0]=c,s[1]=e):e=s[1],e}if(s[2]!==o||s[3]!==n){let e;s[5]!==o?(e=e=>(0,r.jsx)(w.ReviewCard,{review:e,variant:"card",onShowMore:o},e.id),s[5]=o,s[6]=e):e=s[6],t=n.map(e),s[2]=o,s[3]=n,s[4]=t}else t=s[4];return s[7]!==t?(a=(0,r.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:t}),s[7]=t,s[8]=a):a=s[8],a}function P(e,t){return(0,r.jsx)("div",{className:"h-40 bg-neutral-100 rounded-xl border border-neutral-200"},t)}function T(e){let t,a,s,n,o=(0,l.c)(12),{canReview:d,storeAppReview:m,onWriteReview:p}=e,x=(0,c.useTranslations)();return o[0]!==x?(t=x("appDetail.noReviews"),o[0]=x,o[1]=t):t=o[1],o[2]!==t?(a=(0,r.jsx)("p",{className:"text-gray-500",children:t}),o[2]=t,o[3]=a):a=o[3],o[4]!==d||o[5]!==p||o[6]!==m||o[7]!==x?(s=d&&(0,r.jsxs)("button",{type:"button",onClick:p,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-primary-accent px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-accent/90",children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),x(m?"appDetail.editReview":"appDetail.writeReview")]}),o[4]=d,o[5]=p,o[6]=m,o[7]=x,o[8]=s):s=o[8],o[9]!==a||o[10]!==s?(n=(0,r.jsxs)("div",{className:"text-center py-8 bg-neutral-50 rounded-xl",children:[a,s]}),o[9]=a,o[10]=s,o[11]=n):n=o[11],n}function I(e){let t,a,d,m,h,j,w,_,S,C,R=(0,l.c)(46),{reviews:k,rating:P,distribution:I,totalCount:M,app:$,iframeUrl:F,reviewSummary:B,className:O}=e,U=(0,c.useTranslations)();R[0]!==F?(t={iframeUrl:F},R[0]=F,R[1]=t):t=R[1];let{isLoggedIn:z,isLoading:Y,isPartnerUser:G,storeData:W}=(0,s.r)(t),[V,q]=(0,o.useState)(!1),[K,H]=(0,o.useState)(null),Q=!!z&&!!W?.store_id&&!!$.isInstalled&&!G,{storeAppReview:X,storeAppReviewLoaded:Z,resetMyReview:J}=function(e,t,a){let[r,l]=(0,o.useState)(null),[s,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t&&!s&&(async()=>{try{let t=await g(e);t&&(null==a||t.storeId===a)?l(t):l(null)}catch{l(null)}finally{n(!0)}})()},[e,t,s,a]),{storeAppReview:r,storeAppReviewLoaded:s,resetMyReview:()=>{n(!1)}}}
1($.id,z,W?.store_id),ee=Q&&!0,{currentPage:et,paginatedReviews:ea,isLoading:er,totalPages:el,handlePageChange:es,handleReviewSuccess:en,reviewsPerPage:ei,reviews:ec}=function(e,t){let[a,r]=(0,o.useState)(1),[l,s]=(0,o.useState)(t),[n,i]=(0,o.useState)(!1),c=(0,o.useRef)(new Map),d=(0,o.useRef)(!1),m=(0,o.useRef)(""),p=Math.ceil(l.total/4);(0,o.useEffect)(()=>{let e=`${t.total}:${t.reviews.map(e=>e.id).join(",")}`;e!==m.current&&(m.current=e,s(t),c.current=new Map,c.current.set(1,t),r(1))},[t]),(0,o.useEffect)(()=>{if(d.current)return;d.current=!0;let t=Math.max(1,Number(new URLSearchParams(window.location.search).get("reviews_page"))||1);t<=1||(async()=>{i(!0);try{let a=await (0,v.G)(e,t,4);c.current.set(t,a),s(a),r(t)}finally{i(!1)}})()},[e]);let x=(0,o.useCallback)(async t=>{if(t<1)return;let a=c.current.get(t);if(a){s(a),r(t);return}i(!0);try{let a=await (0,v.G)(e,t,4);c.current.set(t,a),s(a),r(t)}finally{i(!1)}},[e]),u=(0,o.useCallback)(e=>{let t=new URL(window.location.href);e>1?t.searchParams.set("reviews_page",e.toString()):t.searchParams.delete("reviews_page"),window.history.pushState(null,"",t.toString())},[]),h=(0,o.useCallback)((e,t)=>{e<1||e>p||n||(x(e),u(e),t?.scrollIntoView({behavior:"smooth",block:"start"}))},[p,x,n,u]),g=(0,o.useCallback)(()=>{c.current=new Map,x(1),r(1),u(1)},[x,u]);return{currentPage:a,reviews:l,paginatedReviews:l.reviews,isLoading:n,totalPages:p,handlePageChange:h,handleReviewSuccess:g,reviewsPerPage:4}}($.id,k),{isWriteModalOpen:eo,openReviewModal:ed,handleReviewClose:em}=function(e,t,a,r,l,s){let{trackEvent:n}=(0,f.s)(),i=(0,b.usePathname)(),c=(0,b.useRouter)(),d=i.endsWith("/rating"),[m,p]=(0,o.useState)(!1),x=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(!d||t)return;if(e)return void p(!0);if(l&&!s&&!x.current){x.current=!0,c.refresh();return}let a=new URL(window.location.href);a.pathname=a.pathname.replace(/\/rating$/,""),window.history.replaceState(null,"",a.toString())},[d,e,t,l,s,c]),(0,o.useEffect)(()=>{let t=()=>{p(window.location.pathname.endsWith("/rating")&&!!e)};return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e]),{isWriteModalOpen:m,openReviewModal:(0,o.useCallback)(()=>{n(y.o.APP_REVIEWS_MODAL_CLICKED,{app_name:a.name,app_slug:a.slug,action:r?"edit":"write"}),p(!0),window.location.pathname.endsWith("/rating")||window.history.pushState(null,"",`${window.location.pathname}/rating`)},[n,a.name,a.slug,r]),handleReviewClose:(0,o.useCallback)(()=>{if(p(!1),window.location.pathname.endsWith("/rating")){let e=new URL(window.location.href);e.pathname=e.pathname.replace(/\/rating$/,""),window.history.replaceState(null,"",e.toString())}},[])}}(ee,Y||!1,$,X,z,$.isInstalled),ep=function(e){let t,a,r=(0,l.c)(5),{trackEvent:s}=(0,f.s)(),n=(0,o.useRef)(null),i=(0,o.useRef)(!1);return r[0]!==e.name||r[1]!==e.slug||r[2]!==s?(t=()=>{let t=n.current;if(!t||i.current)return;let a=new IntersectionObserver(t=>{let[r]=t;r.isIntersecting&&!i.current&&(i.current=!0,s(y.o.APP_REVIEWS_SECTION_VIEWED,{app_name:e.name,app_slug:e.slug}),a.disconnect())},{threshold:.5});return a.observe(t),()=>a.disconnect()},a=[s,e.name,e.slug],r[0]=e.name,r[1]=e.slug,r[2]=s,r[3]=t,r[4]=a):(t=r[3],a=r[4]),(0,o.useEffect)(t,a),n}($);R[2]!==en||R[3]!==J?(a=()=>{J(),en()},R[2]=en,R[3]=J,R[4]=a):a=R[4];let ex=a;R[5]===Symbol.for("react.memo_cache_sentinel")?(d=()=>q(!1),R[5]=d):d=R[5];let eu=d;R[6]===Symbol.for("react.memo_cache_sentinel")?(m=()=>H(null),R[6]=m):m=R[6];let eh=m;R[7]!==O?(h=(0,n.cn)("",O),R[7]=O,R[8]=h):h=R[8],R[9]!==ee||R[10]!==et||R[11]!==I||R[12]!==es||R[13]!==er||R[14]!==ed||R[15]!==ea||R[16]!==P||R[17]!==B||R[18]!==ec.total||R[19]!==ei||R[20]!==ep||R[21]!==X||R[22]!==U||R[23]!==M||R[24]!==el?(j=0===ec.total?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:U("appDetail.reviews")}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-6",children:U("appDetail.reviewsTotal",{count:M})}),(0,r.jsx)(T,{canReview:ee,storeAppReview:X,onWriteReview:ed})]}):(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-8",children:[(0,r.jsxs)("div",{className:"md:w-1/3 flex-shrink-0",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:U("appDetail.reviews")}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-6",children:U("appDetail.reviewsTotal",{count:M})}),(0,r.jsx)(E,{averageScore:P.score,distribution:I,totalCount:M}),ee&&(0,r.jsxs)(p.$,{variant:"primary",size:"md",className:"w-full sm:max-w-xl mt-4",onClick:ed,children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),U(X?"appDetail.editReview":"appDetail.writeReview")]})]}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col",children:[B?(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(N,{summary:B.summary})}):(0,r.jsx)("div",{className:"h-20"}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(L,{reviews:ea,isLoading:er,reviewsPerPage:ei,onShowMore:H})}),el>1&&(0,r.jsx)(x.Z,{currentPage:et,totalPages:el,onPageChange:e=>es(e,ep.current)}),M>ei&&(0,r.jsx)("div",{className:"flex justify-end mt-4",children:(0,r.jsx)("button",{type:"button",onClick:()=>q(!0),className:"text-sm font-medium text-primary-accent hover:underline focus:outline-none",children:U("appDetail.seeAllReviews")})})]})]}),R[9]=ee,R[10]=et,R[11]=I,R[12]=es,R[13]=er,R[14]=ed,R[15]=ea,R[16]=P,R[17]=B,R[18]=ec.total,R[19]=ei,R[20]=ep,R[21]=X,R[22]=U,R[23]=M,R[24]=el,R[25]=j):j=R[25],R[26]!==$.id||R[27]!==em||R[28]!==ex||R[29]!==eo||R[30]!==X?(w=(0,r.jsx)(A,{appId:$.
1id,isOpen:eo,onClose:em,onSuccess:ex,existingReview:X}),R[26]=$.id,R[27]=em,R[28]=ex,R[29]=eo,R[30]=X,R[31]=w):w=R[31],R[32]!==$.id||R[33]!==V||R[34]!==M?(_=(0,r.jsx)(u.AllReviewsModal,{appId:$.id,totalCount:M,isOpen:V,onClose:eu}),R[32]=$.id,R[33]=V,R[34]=M,R[35]=_):_=R[35];let eg=null!==K;return R[36]!==K||R[37]!==eg?(S=(0,r.jsx)(D.ReviewDetailModal,{review:K,isOpen:eg,onClose:eh}),R[36]=K,R[37]=eg,R[38]=S):S=R[38],R[39]!==ep||R[40]!==S||R[41]!==h||R[42]!==j||R[43]!==w||R[44]!==_?(C=(0,r.jsxs)("section",{ref:ep,id:"reviews-section",className:h,children:[j,w,_,S]}),R[39]=ep,R[40]=S,R[41]=h,R[42]=j,R[43]=w,R[44]=_,R[45]=C):C=R[45],C}},38254:(e,t,a)=>{function r(e,t){let a;if(e instanceof Date)a=e;else{if("string"!=typeof e||!e.trim()||Number.isNaN(Date.parse(e)))return"";a=new Date(e)}if(Number.isNaN(a.getTime()))return"";let r=t?({br:"pt-BR",ar:"es-AR",mx:"es-MX",cl:"es-CL",co:"es-CO"})[t]??"es-ES":"es-ES";return a.toLocaleDateString(r,{year:"numeric",month:"long",day:"numeric"})}a.d(t,{Yq:()=>r})},45930:(e,t,a)=>{a.d(t,{AppDetailSidebar:()=>z});var r=a(95155),l=a(19749),s=a(57337),n=a(8663),i=a(13214),c=a(70367),o=a(41774),d=a(86268),m=a(93333),p=a(80849),x=a(19648),u=a(88907),h=a(80095),g=a.n(h),f=a(12115),y=a(76044),b=a(97573),v=a(26469);let j={[i.jo.NATIVE]:{title:"appDetail.advancedFeatures.native.title",description:"appDetail.advancedFeatures.native.description"},[i.jo.MULTI_INVENTORY_READY]:{title:"appDetail.advancedFeatures.multiInventoryReady.title",description:"appDetail.advancedFeatures.multiInventoryReady.description"},[i.jo.MULTI_INVENTORY_NOT_READY]:{title:"appDetail.advancedFeatures.multiInventoryNotReady.title",description:"appDetail.advancedFeatures.multiInventoryNotReady.description"}};function N(e){let t,a=(0,l.c)(2),{isPositive:s}=e;if(s){let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("span",{className:"flex items-center justify-center w-5 h-5 bg-primary-100/50 p-5 rounded-lg",children:(0,r.jsx)(v.CheckIcon,{className:"h-5 w-5 text-primary-accent flex-shrink-0"})}),a[0]=e):e=a[0],e}return a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("span",{className:"flex items-center justify-center w-5 h-5 bg-error-100/50 p-5 rounded-lg",children:(0,r.jsx)(b.A,{className:"h-5 w-5 text-error-500 flex-shrink-0"})}),a[1]=t):t=a[1],t}function w(e){let t,a,s,n,c,o,d,p,u=(0,l.c)(27),{badgeList:h}=e,g=(0,x.useTranslations)();if(u[0]!==h||u[1]!==g){o=Symbol.for("react.early_return_sentinel");e:{let e,l,d,p,x=(0,i.YF)(h);if(0===x.length){o=null;break e}s="rounded-xl border bg-[#eef5ff] border-[#96C1FC] p-4 w-full",u[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(m.A,{className:"h-4 w-4 text-primary-950"}),u[8]=e):e=u[8],u[9]!==g?(l=g("appDetail.advancedFeatures.title"),u[9]=g,u[10]=l):l=u[10],u[11]!==l?(n=(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[e,(0,r.jsx)("p",{className:"font-bold text-lg text-primary-950",children:l})]}),u[11]=l,u[12]=n):n=u[12],u[13]!==g?(d=g("appDetail.advancedFeatures.description"),u[13]=g,u[14]=d):d=u[14],u[15]!==d?(c=(0,r.jsx)("p",{className:"text-xs text-gray-600 mb-4",children:d}),u[15]=d,u[16]=c):c=u[16],t="flex flex-col gap-2",u[17]!==g?(p=e=>{let t=(0,i.KK)(e.name),a=j[t];if(!a)return null;let l=i.lV.includes(t);return(0,r.jsxs)("li",{className:"rounded-lg bg-white px-2 py-4 flex items-start gap-4 border border-primary-100/60",children:[(0,r.jsx)(N,{isPositive:l}),(0,r.jsxs)("div",{className:"flex flex-col gap-1 justify-center",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-primary-950",children:g(a.title)}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:g(a.description)})]})]},e.id)},u[17]=g,u[18]=p):p=u[18],a=x.map(p)}u[0]=h,u[1]=g,u[2]=t,u[3]=a,u[4]=s,u[5]=n,u[6]=c,u[7]=o}else t=u[2],a=u[3],s=u[4],n=u[5],c=u[6],o=u[7];return o!==Symbol.for("react.early_return_sentinel")?o:(u[19]!==t||u[20]!==a?(d=(0,r.jsx)("ul",{className:t,children:a}),u[19]=t,u[20]=a,u[21]=d):d=u[21],u[22]!==s||u[23]!==n||u[24]!==c||u[25]!==d?(p=(0,r.jsxs)("div",{className:s,children:[n,c,d]}),u[22]=s,u[23]=n,u[24]=c,u[25]=d,u[26]=p):p=u[26],p)}var D=a(93145),_=a(53861),S=a(20741),C=a(73269),R=a(84680);let k={BR:{currencyCode:"BRL",symbol:"R$"},AR:{currencyCode:"ARS",symbol:"$"}},A={ARS:"$",BRL:"R$"};function E(e){return k[e]?.currencyCode??e}function L(e){let t,a,s,n,i,d,m,u,h,g,f,y,b,j,N=(0,l.c)(53),{pricing:w,locale:D,variant:_,className:S,plans:C}=e,L=void 0===_?"default":_,T=(0,x.useTranslations)();
1N[0]!==C?(t=C?.find(P)??C?.[0],N[0]=C,N[1]=t):t=N[1];let I=t;N[2]!==I||N[3]!==w?(a=I?{...w,price:I.price,currency:I.currency,localBillingPrice:I.price,localBillingCurrency:I.currency}:w,N[2]=I,N[3]=w,N[4]=a):a=N[4];let M=a;N[5]!==D||N[6]!==M.currency?(s=M.currency||(0,o.rv)(D),N[5]=D,N[6]=M.currency,N[7]=s):s=N[7];let $=s;if(M.hasExternalPurchases){let e,t,a;return N[8]!==S?(e=(0,c.cn)("text-sm font-medium","text-primary-accent",S),N[8]=S,N[9]=e):e=N[9],N[10]!==T?(t=T("app.externalPurchases"),N[10]=T,N[11]=t):t=N[11],N[12]!==e||N[13]!==t?(a=(0,r.jsx)("span",{className:e,children:t}),N[12]=e,N[13]=t,N[14]=a):a=N[14],a}N[15]!==$||N[16]!==D||N[17]!==M.billingPeriod||N[18]!==M.localBillingCurrency||N[19]!==M.localBillingPrice||N[20]!==M.price||N[21]!==M.type||N[22]!==T?(n=()=>{switch(M.type){case R.E.FREE:return{mainText:T("app.free"),color:"text-green-600"};case R.E.FREE_TO_INSTALL:return{mainText:T("app.freeToInstall"),color:"text-green-600"};case R.E.FREEMIUM:return{mainText:T("app.freemium"),color:"text-primary-accent"};case R.E.PAID:case R.E.RECURRING:case R.E.ONETIME:{if(void 0===M.price||null===M.price)return{mainText:T("app.paid"),color:"text-orange-700"};let e=function(e,t,a){let r=(0,o.DO)(t),l=A[a];if(l){let t=new Intl.NumberFormat(r,{minimumFractionDigits:0,maximumFractionDigits:2}).format(e);return`${l} ${t}`}return new Intl.NumberFormat(r,{style:"currency",currency:a,currencyDisplay:"code",minimumFractionDigits:0,maximumFractionDigits:2}).format(e)}(M.price,D,$),t="yearly"===M.billingPeriod?"appDetail.pricePerYear":"appDetail.pricePerMonth",a=E(M.localBillingCurrency);if(M.localBillingCurrency&&a!==$)return{mainText:T(t,{price:function(e,t,a){let r=(0,o.DO)(t),l=k[a]?.symbol;if(l){let t=new Intl.NumberFormat(r,{minimumFractionDigits:0,maximumFractionDigits:2}).format(e);return`${l} ${t}`}let s=E(a);return new Intl.NumberFormat(r,{style:"currency",currency:s,currencyDisplay:"code",minimumFractionDigits:0,maximumFractionDigits:2}).format(e)}(M.localBillingPrice,D,M.localBillingCurrency)}),color:"text-orange-700",secondaryPriceText:`(${T(t,{price:e})})`,originalCurrency:$};return{mainText:T(t,{price:e}),color:"text-orange-700"}}default:return{mainText:T("app.free"),color:"text-green-600"}}},N[15]=$,N[16]=D,N[17]=M.billingPeriod,N[18]=M.localBillingCurrency,N[19]=M.localBillingPrice,N[20]=M.price,N[21]=M.type,N[22]=T,N[23]=n):n=N[23];let F=n;if(N[24]!==S||N[25]!==F||N[26]!==M.trialDays||N[27]!==T||N[28]!==L){g=Symbol.for("react.early_return_sentinel");e:{let{mainText:e,color:t,secondaryPriceText:a,originalCurrency:l}=F();if(i=e,m=a,d=l,"compact"===L){let e;N[35]!==M.trialDays||N[36]!==T?(e=null!=M.trialDays&&M.trialDays>0&&(0,r.jsx)("p",{className:"mt-1 text-sm font-medium text-gray-600",children:T("appDetail.trialDays",{days:M.trialDays})}),N[35]=M.trialDays,N[36]=T,N[37]=e):e=N[37],g=(0,r.jsxs)("div",{className:S,children:[(0,r.jsx)("span",{className:(0,c.cn)("text-sm font-medium",t),children:i}),m&&d&&(0,r.jsxs)("div",{className:"mt-0.5 flex items-center gap-1",children:[(0,r.jsx)("span",{className:"text-xs text-gray-500",children:m}),(0,r.jsx)(p.Popover,{enabledHover:!0,arrow:!0,width:"250px",content:(0,r.jsx)("span",{className:"text-xs text-gray-700",children:T("appDetail.approxLocalPriceTooltip",{currency:d})}),position:"top-end",children:(0,r.jsx)("button",{type:"button",children:(0,r.jsx)(v.InfoCircleIcon,{className:"inline ml-1 h-4 w-4 cursor-pointer hover:text-primary-accent text-gray-400"})})})]}),e]});break e}h=S,u=(0,c.cn)("inline-flex items-center rounded-full bg-gray-100 px-3 py-1 text-sm font-semibold",t)}N[24]=S,N[25]=F,N[26]=M.trialDays,N[27]=T,N[28]=L,N[29]=i,N[30]=d,N[31]=m,N[32]=u,N[33]=h,N[34]=g}else i=N[29],d=N[30],m=N[31],u=N[32],h=N[33],g=N[34];return g!==Symbol.for("react.early_return_sentinel")?g:(N[38]!==i||N[39]!==u?(f=(0,r.jsx)("span",{className:u,children:i}),N[38]=i,N[39]=u,N[40]=f):f=N[40],N[41]!==d||N[42]!==m||N[43]!==T?(y=m&&d&&(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-1",children:[(0,r.jsx)("span",{className:"text-xs text-gray-500",children:m}),(0,r.jsx)(p.Popover,{enabledHover:!0,arrow:!0,width:"250px",content:(0,r.jsx)("span",{className:"text-xs text-gray-700",children:T("appDetail.approxLocalPriceTooltip",{currency:d})}),position:"top-end",children:(0,r.jsx)("button",{type:"button",children:(0,r.jsx)(v.InfoCircleIcon,{className:"inline ml-1 h-4 w-4 cursor-pointer hover:text-primary-accent text-gray-400"})})})]}),N[41]=d,N[42]=m,N[43]=T,N[44]=y):y=N[44],N[45]!==M.trialDays||N[46]!==T?(b=null!=M.trialDays&&M.trialDays>0&&(0,r.jsx)("p",{className:"mt-1 text-xs text-green-600",children:T("appDetail.trialDays",{days:M.trialDays})}),N[45]=M.trialDays,N[46]=T,N[47]=b):b=N[47],N[48]!==y||N[49]!==b||N[50]!==h||N[51]!==f?(j=(0,r.jsxs)("div",{className:h,children:[f,y,b]}),N[48]=y,N[49]=b,N[50]=h,N[51]=f,N[52]=j):j=N[52],j)}function P(e){return e.default}var T=a(53015),I=a(34984),M=a(24607),$=a(43578);let F={br:"pt-BR",ar:"es-AR",cl:"es-CL",co:"es-CO",mx:"es-MX"};function B(e){let t,a,i,o,d,m,p,h,g,f,y,b,v,j=(0,l.c)(48),{app:N,plans:w,trialDays:D,installationUrl:_,isOpen:S,onClose:C,locale:R}=e,k=(0,x.useTranslations)(),{trackEvent:A}=(0,s.s)(),{dialogRef:E,handleBackdropClick:L}=(0,T.s)(S,C),P=F[R]??R,B="number"==typeof D&&D>0;if(j[0]!==N.iconSmall||j[1]!==N.name?(t=N.iconSmall&&(0,r.jsx)(u.default,{src:N.iconSmall,alt:N.name,width:40,height:40,className:"rounded-lg flex-shrink-0"}),j[0]=N.iconSmall,j[1]=N.name,j[2]=t):t=j[2],j[3]!==N.name||j[4]!==k?(a=k.rich("appDetail.choosePlanTitle",{appName:N.name,b:U}),j[3]=N.name,j[4]=k,j[5]=a):a=j[5],j[6]!==a?(i=(0,r.jsx)("h3",{className:"text-base font-semibold text-gray-900",children:a}),j[6]=a,j[7]=i):i=j[7],j[8]!==t||j[9]!==i?(o=(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[t,i]}),j[8]=t,j[9]=i,j[10]=o):o=j[10],j[11]!==k?(d=k("appDetail.close"),j[11]=k,j[12]=d):d=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(I.A,{className:"h-5 w-5 text-gray-500"}),j[13]=m):m=j[13],j[14]!==C||j[15]!==d?(p=(0,r.jsx)("button",{type:"button",onClick:C,className:"p-1 rounded-lg hover:bg-gray-100 transition-colors","aria-label":d,children:m}),j[14]=C,j[15]=d,j[16]=p):p=j[16],j[17]!==o||j[18]!==p?(h=(0,r.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-neutral-200",children:[o,p]}),j[17]=o,j[18]=p,j[19]=h):h=j[19],j[20]!==B||j[21]!==k||j[22]!==D?(g=B&&(0,r.jsxs)("div",{className:"bg-success-50 text-success-800 px-6 py-3 text-sm flex items-center gap-2",children:[(0,r.jsx)(M.A,{className:"h-4 w-4 flex-shrink-0"}),(0,r.jsx)("span",{children:k("appDetail.trialBanner",{days:D})})]}),j[20]=B,j[21]=k,j[22]=D,j[23]=g):g=j[23],j[24]!==N||j[25]!==_||j[26]!==P||j[27]!==w||j[28]!==k||j[29]!==A){let e;j[31]!==N||j[32]!==_||j[33]!==P||j[34]!==k||j[35]!==A?(e=e=>{let t=new Intl.NumberFormat(P,{style:"currency",currency:e.currency}).format(e.price),a=_.includes("?")?"&":"?",l=`${_}${a}planId=${e.planId}`;
1return(0,r.jsxs)("div",{className:(0,c.cn)("flex items-start justify-between gap-4 p-4 rounded-xl bg-white border plan-row","transition-[border-color,box-shadow] duration-150",e.featured?"plan-row-featured":"plan-row-interactive"),children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("span",{className:"font-bold uppercase text-secondary-500 text-md",children:e.name}),e.featured&&(0,r.jsx)("span",{className:"bg-primary-accent text-white text-xs font-semibold rounded-full px-2 py-0.5",children:k("appDetail.mostPopularBadge")})]}),e.description&&(0,r.jsx)("p",{className:"text-xs text-gray-600 mb-1 italic",children:e.description}),(0,r.jsx)("p",{className:"text-[12px] text-gray-500",children:e.features.map(O).join(" \xb7 ")})]}),(0,r.jsxs)("div",{className:"flex flex-col items-end gap-2 flex-shrink-0",children:[(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsx)("span",{className:"font-bold text-secondary-500 text-md",children:t}),(0,r.jsx)("span",{className:"text-gray-400 text-xs",children:k("appDetail.perMonth")})]}),(0,r.jsx)($.$,{variant:e.featured?"primary":"outline",size:"sm",asChild:!0,className:e.featured?"plan-cta-featured-hover":"plan-cta-outline-hover hover:!text-primary-accent",onClick:()=>{A(n.o.PLAN_SELECTED,{app_name:N.name,app_slug:"slug"in N?N.slug:"",plan_name:e.name,plan_price:String(e.price),is_popular:String(e.featured)})},children:(0,r.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",children:k("appDetail.choosePlanButton")})})]})]},e.code)},j[31]=N,j[32]=_,j[33]=P,j[34]=k,j[35]=A,j[36]=e):e=j[36],f=w.map(e),j[24]=N,j[25]=_,j[26]=P,j[27]=w,j[28]=k,j[29]=A,j[30]=f}else f=j[30];return j[37]!==f?(y=(0,r.jsx)("div",{className:"p-6 space-y-3 overflow-y-auto",children:f}),j[37]=f,j[38]=y):y=j[38],j[39]!==y||j[40]!==h||j[41]!==g?(b=(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden flex flex-col max-h-modal",children:[h,g,y]}),j[39]=y,j[40]=h,j[41]=g,j[42]=b):b=j[42],j[43]!==E||j[44]!==L||j[45]!==C||j[46]!==b?(v=(0,r.jsx)("dialog",{ref:E,className:"backdrop:bg-black/30 backdrop:backdrop-blur-sm bg-transparent p-0 m-auto rounded-xl w-full max-w-2xl max-h-modal",onClick:L,onClose:C,children:b}),j[43]=E,j[44]=L,j[45]=C,j[46]=b,j[47]=v):v=j[47],v}function O(e){return e.name}function U(e){return(0,r.jsx)("strong",{children:e})}function z(e){let t,a,h,b,v,j,N,R,k,A,E,P,T,I,M,F,O,U,z,Y,G,W,V,q,K,H,Q,X,Z,J,ee,et,ea,er,el,es,en,ei,ec,eo,ed,em,ep,ex,eu,eh,eg,ef,ey,eb,ev,ej,eN=(0,l.c)(151),{app:ew,locale:eD,categoryName:e_,categorySlug:eS,className:eC,installationUrl:eR,plans:ek,trialDays:eA}=e,eE=(0,x.useTranslations)(),{trackEvent:eL}=(0,s.s)();eN[0]!==ew.tags?(t=ew.tags?.includes("native"),eN[0]=ew.tags,eN[1]=t):t=eN[1];let eP=t,eT=(0,o.em)(ew.name),eI="slug"in ew?ew.slug:"",eM="string"==typeof ew.category?ew.category:ew.category?.name??"";eN[2]!==ew.badgeList?(a=ew.badgeList??[],eN[2]=ew.badgeList,eN[3]=a):a=eN[3];let e$=a;eN[4]!==e$?(h=(0,i.YF)(e$),eN[4]=e$,eN[5]=h):h=eN[5];let eF=h;eN[6]!==e$?(b=(0,i.wO)(e$),eN[6]=e$,eN[7]=b):b=eN[7];let eB=b;eN[8]!==e$?(v=(0,i.Rm)(e$),eN[8]=e$,eN[9]=v):v=eN[9];let eO=v;eN[10]!==e$?(j=(0,i.xV)(e$),eN[10]=e$,eN[11]=j):j=eN[11];let eU=j,[ez,eY]=(0,f.useState)(!1),eG=ek.length>0;eN[12]!==ew.name||eN[13]!==ew.pricing.type||eN[14]!==eI||eN[15]!==eM||eN[16]!==eG||eN[17]!==eY||eN[18]!==eL?(N=()=>{eL(n.o.INSTALL_BUTTON_CLICKED,{app_name:ew.name,app_slug:eI,category:eM,pricing_model:ew.pricing.type}),eG&&(eL(n.o.PLAN_SELECTION_MODAL_OPENED,{app_name:ew.name,app_slug:eI}),eY(!0))},eN[12]=ew.name,eN[13]=ew.pricing.type,eN[14]=eI,eN[15]=eM,eN[16]=eG,eN[17]=eY,eN[18]=eL,eN[19]=N):N=eN[19];let eW=N;eN[20]!==eC?(R=(0,c.cn)("grid gap-4 md:gap-6",eC),eN[20]=eC,eN[21]=R):R=eN[21];let eV=ew.iconSmall?(0,r.jsx)(u.default,{src:ew.iconSmall,alt:eT,width:64,height:64,className:"w-full h-full object-contain",priority:!0,quality:90}):(0,r.jsx)("div",{className:"w-full h-full bg-primary-surface flex items-center justify-center text-xl font-bold text-primary-interactive",children:eT.charAt(0).toUpperCase()});eN[22]!==eV?(k=(0,r.jsx)("div",{className:"w-20 h-20 rounded-xl overflow-hidden border border-neutral-200 shadow-sm flex-shrink-0",children:eV}),eN[22]=eV,eN[23]=k):k=eN[23],eN[24]!==eT?(A=(0,r.jsx)("h1",{className:"text-xl font-bold text-primary-950 leading-tight",children:eT}),eN[24]=eT,eN[25]=A):A=eN[25],eN[26]!==eB||eN[27]!==eU||eN[28]!==eO?(E=(eB||eO||eU)&&(0,r.jsxs)("div",{className:"flex flex-wrap gap-1 mt-4",children:[eB&&(0,r.jsx)(_.U,{className:"text-primary-950"}),eO&&(0,r.jsx)(C.f,{}),eU&&(0,r.jsx)(S.T,{})]}),eN[26]=eB,eN[27]=eU,eN[28]=eO,eN[29]=E):E=eN[29],eN[30]!==A||eN[31]!==E?(P=(0,r.jsxs)("div",{className:"min-w-0",children:[A,E]}),eN[30]=A,eN[31]=E,eN[32]=P):P=eN[32],eN[33]!==k||eN[34]!==P?(T=(0,r.jsxs)("div",{className:"md:col-span-1 flex items-start gap-4",children:[k,P]}),eN[33]=k,eN[34]=P,eN[35]=T):T=eN[35],eN[36]!==eE?(I=eE("appDetail.price"),eN[36]=eE,eN[37]=I):I=eN[37],eN[38]!==I?(M=(0,r.jsx)("p",{className:"text-md font-semibold text-gray-700 mb-1",children:I}),eN[38]=I,eN[39]=M):M=eN[39],eN[40]!==ew.pricing||eN[41]!==eD||eN[42]!==ek?(F=(0,r.jsx)(L,{pricing:ew.pricing,locale:eD,variant:"compact",plans:ek}),eN[40]=ew.pricing,eN[41]=eD,eN[42]=ek,eN[43]=F):F=eN[43],eN[44]!==ew.pricing.type||eN[45]!==eE?(O="free_to_install"===ew.pricing.type&&(0,r.jsx)("span",{className:"ml-1 text-sm text-gray-500",children:(0,r.jsx)(p.Tooltip,{content:eE("app.externalPurchases"),position:"top",children:(0,r.jsx)(d.A,{className:"inline h-4 w-4 text-gray-400"})})}),eN[44]=ew.pricing.type,eN[45]=eE,eN[46]=O):O=eN[46],eN[47]!==M||eN[48]!==F||eN[49]!==O?(U=(0,r.jsxs)("div",{children:[M,F,O]}),eN[47]=M,eN[48]=F,eN[49]=O,eN[50]=U):U=eN[50],eN[51]!==eE?(z=eE("appDetail.classification"),eN[51]=eE,eN[52]=z):z=eN[52],eN[53]!==z?(Y=(0,r.jsx)("p",{className:"text-md font-semibold text-gray-700 mb-1",children:z}),eN[53]=z,eN[54]=Y):Y=eN[54],eN[55]!==ew.rating.average?(G=ew.rating.average.toFixed(1),eN[55]=ew.rating.average,eN[56]=G):G=eN[56],eN[57]!==G?(W=(0,r.jsx)("span",{className:"text-sm font-bold text-gray-900",children:G}),eN[57]=G,eN[58]=W):W=eN[58],eN[59]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(m.A,{className:"h-5 w-5 text-yellow-400"}),eN[59]=V):V=eN[59],eN[60]!==ew.rating.count||eN[61]!==eE?(q=eE("appDetail.reviewsCount",{count:ew.rating.count}),eN[60]=ew.rating.count,eN[61]=eE,eN[62]=q):q=eN[62],eN[63]!==q?(K=(0,r.jsxs)("span",{className:"text-sm text-primary-accent group-hover:underline",children:["(",q,")"]}),eN[63]=q,eN[64]=K):K=eN[64],eN[65]!==W||eN[66]!==K?(H=(0,r.jsxs)("a",{href:"#reviews-section",className:"flex items-center gap-1 group",children:[W,V,K]}),eN[65]=W,eN[66]=K,eN[67]=H):H=eN[67],eN[68]!==Y||eN[69]!==H?(Q=(0,r.jsxs)("div",{children:[Y,H]}),eN[68]=Y,eN[69]=H,eN[70]=Q):Q=eN[70];let eq=ew.isInstalled,eK=ew.isInstalled?"opacity-50 cursor-not-allowed":"";eN[71]!==eK?(X=(0,c.cn)("w-full sm:max-w-xl",eK),eN[71]=eK,eN[72]=X):X=eN[72],eN[73]!==ew.isInstalled||eN[74]!==eW||eN[75]!==eG||eN[76]!==eR||eN[77]!==eE?(Z=ew.isInstalled?(0,r.jsx)("span",{className:"",children:eE("appDetail.installedButton")}):eG?(0,r.jsx)("button",{type:"button",onClick:eW,children:eE("appDetail.installButton")}):(0,r.jsx)("a",{href:eR,target:"_blank",rel:"noopener noreferrer",onClick:eW,children:eE("appDetail.installButton")}),eN[73]=ew.isInstalled,eN[74]=eW,eN[75]=eG,eN[76]=eR,eN[77]=eE,eN[78]=Z):Z=eN[78],eN[79]!==ew.isInstalled||eN[80]!==X||eN[81]!==Z?(J=(0,r.jsx)("div",{className:"order-last lg:order-none col-span-2 md:col-span-4 lg:col-span-1 grid grid-cols-subgrid",children:(0,r.jsx)("div",{className:"col-span-2 md:col-span-4 lg:col-span-2 flex justify-center items-center",children:(0,r.jsx)($.$,{variant:"primary",size:"lg",disabled:eq,asChild:!0,className:X,children:Z})})}),eN[79]=ew.isInstalled,eN[80]=X,eN[81]=Z,eN[82]=J):J=eN[82],eN[83]!==eE?(ee=eE("appDetail.developer"),eN[83]=eE,eN[84]=ee):ee=eN[84],eN[85]!==ee?(et=(0,r.jsx)("p",{className:"sm:text-md md:text-lg lg:text-lg font-semibold text-gray-700 mb-1",children:ee}),eN[85]=ee,eN[86]=et):et=eN[86],eN[87]!==ew.developer.name||eN[88]!==ew.developer.website?(ea=ew.developer.website?(0,r.jsx)("a",{href:ew.developer.website,target:"_blank",rel:"noopener noreferrer",className:"text-primary-accent hover:underline",children:ew.developer.name}):(0,r.jsx)("p",{className:"text-sm text-gray-600",children:ew.developer.name}),eN[87]=ew.developer.name,eN[88]=ew.developer.website,eN[89]=ea):ea=eN[89],eN[90]!==et||eN[91]!==ea?(er=(0,r.jsxs)("div",{children:[et,ea]}),eN[90]=et,eN[91]=ea,eN[92]=er):er=eN[92],eN[93]!==eE?(el=eE("appDetail.accessType"),eN[93]=eE,eN[94]=el):el=eN[94],eN[95]!==el?(es=(0,r.jsx)("p",{className:"sm:text-md md:text-lg lg:text-lg font-semibold text-gray-700 mb-1",children:el}),eN[95]=el,eN[96]=es):es=eN[96],eN[97]!==eP||eN[98]!==eE?(en=eE(eP?"appDetail.accessTypeIntegrated":"appDetail.accessTypeExternal"),eN[97]=eP,eN[98]=eE,eN[99]=en):en=eN[99],eN[100]!==en?(ei=(0,r.jsx)("p",{className:"text-sm text-gray-600",children:en}
1),eN[100]=en,eN[101]=ei):ei=eN[101],eN[102]!==es||eN[103]!==ei?(ec=(0,r.jsxs)("div",{children:[es,ei]}),eN[102]=es,eN[103]=ei,eN[104]=ec):ec=eN[104],eN[105]!==eE?(eo=eE("appDetail.categories"),eN[105]=eE,eN[106]=eo):eo=eN[106],eN[107]!==eo?(ed=(0,r.jsx)("p",{className:"sm:text-md md:text-lg lg:text-lg font-semibold text-gray-700 mb-2",children:eo}),eN[107]=eo,eN[108]=ed):ed=eN[108],eN[109]!==e_||eN[110]!==eS?(em={category_name:e_,category_slug:eS,source:"app_detail_categories"},eN[109]=e_,eN[110]=eS,eN[111]=em):em=eN[111];let eH=`categorias/${eS}`;return eN[112]!==eD||eN[113]!==eH?(ep=(0,y.k)(eD,eH),eN[112]=eD,eN[113]=eH,eN[114]=ep):ep=eN[114],eN[115]!==e_?(ex=(0,r.jsx)(p.Tag,{appearance:"primary",children:e_}),eN[115]=e_,eN[116]=ex):ex=eN[116],eN[117]!==ep||eN[118]!==ex?(eu=(0,r.jsx)(g(),{href:ep,children:ex}),eN[117]=ep,eN[118]=ex,eN[119]=eu):eu=eN[119],eN[120]!==em||eN[121]!==eu?(eh=(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,r.jsx)(D.TrackedLinkWrapper,{eventName:n.o.CATEGORY_VIEWED,eventProperties:em,children:eu})}),eN[120]=em,eN[121]=eu,eN[122]=eh):eh=eN[122],eN[123]!==ed||eN[124]!==eh?(eg=(0,r.jsxs)("div",{children:[ed,eh]}),eN[123]=ed,eN[124]=eh,eN[125]=eg):eg=eN[125],eN[126]!==eF?(ef=eF.length>0&&(0,r.jsx)("div",{className:"order-last lg:order-none col-span-2 md:col-span-4 lg:col-span-1 grid grid-cols-subgrid",children:(0,r.jsx)("div",{className:"col-span-2 md:col-span-4 lg:col-span-2 flex justify-center items-center",children:(0,r.jsx)(w,{badgeList:eF})})}),eN[126]=eF,eN[127]=ef):ef=eN[127],eN[128]!==U||eN[129]!==Q||eN[130]!==J||eN[131]!==er||eN[132]!==ec||eN[133]!==eg||eN[134]!==ef?(ey=(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-1 gap-5",children:[U,Q,J,er,ec,eg,ef]}),eN[128]=U,eN[129]=Q,eN[130]=J,eN[131]=er,eN[132]=ec,eN[133]=eg,eN[134]=ef,eN[135]=ey):ey=eN[135],eN[136]!==eY?(eb=()=>eY(!1),eN[136]=eY,eN[137]=eb):eb=eN[137],eN[138]!==ew||eN[139]!==eR||eN[140]!==ez||eN[141]!==eD||eN[142]!==ek||eN[143]!==eb||eN[144]!==eA?(ev=(0,r.jsx)(B,{app:ew,plans:ek,trialDays:eA,installationUrl:eR,isOpen:ez,onClose:eb,locale:eD}),eN[138]=ew,eN[139]=eR,eN[140]=ez,eN[141]=eD,eN[142]=ek,eN[143]=eb,eN[144]=eA,eN[145]=ev):ev=eN[145],eN[146]!==T||eN[147]!==ey||eN[148]!==ev||eN[149]!==R?(ej=(0,r.jsxs)("aside",{className:R,children:[T,ey,ev]}),eN[146]=T,eN[147]=ey,eN[148]=ev,eN[149]=R,eN[150]=ej):ej=eN[150],ej}},53015:(e,t,a)=>{a.d(t,{s:()=>s});var r=a(19749),l=a(12115);function s(e,t){let a,s,n,i,c=(0,r.c)(7),o=(0,l.useRef)(null);c[0]!==e?(a=()=>
1{let t=o.current;t&&(e?t.showModal():t.close())},s=[e],c[0]=e,c[1]=a,c[2]=s):(a=c[1],s=c[2]),(0,l.useEffect)(a,s),c[3]!==t?(n=e=>{e.target===o.current&&t()},c[3]=t,c[4]=n):n=c[4];let d=n;return c[5]!==d?(i={dialogRef:o,handleBackdropClick:d},c[5]=d,c[6]=i):i=c[6],i}},69942:(e,t,a)=>{a.d(t,{G:()=>l});var r=a(41154);let l=(0,r.createServerReference)("70344e8926140a82674898f339928f7780da69cc74",r.callServer,void 0,r.findSourceMapURL,"fetchReviewsAction")},82185:(e,t,a)=>{a.d(t,{ReviewDetailModal:()=>d});var r=a(95155),l=a(19749),s=a(53015),n=a(38254),i=a(34984),c=a(19648),o=a(83569);function d(e){let t,a,d,m,p,x,u,h,g,f,y,b,v,j,N,w,D,_=(0,l.c)(46),{review:S,isOpen:C,onClose:R}=e,k=(0,c.useTranslations)(),A=(0,c.useLocale)(),{dialogRef:E,handleBackdropClick:L}=(0,s.s)(C,R);if(!S)return null;_[0]!==A||_[1]!==S.createdAt?(t=(0,n.Yq)(S.createdAt,A),_[0]=A,_[1]=S.createdAt,_[2]=t):t=_[2];let P=t;_[3]!==A||_[4]!==S.reply?(a=S.reply?(0,n.Yq)(S.reply.createdAt,A):null,_[3]=A,_[4]=S.reply,_[5]=a):a=_[5];let T=a;return _[6]!==R?(d=e=>{"Escape"===e.key&&R()},_[6]=R,_[7]=d):d=_[7],_[8]!==S.storeName?(m=(0,r.jsx)("p",{className:"text-lg font-bold text-gray-900",children:S.storeName}),_[8]=S.storeName,_[9]=m):m=_[9],_[10]!==k?(p=k("appDetail.close"),_[10]=k,_[11]=p):p=_[11],_[12]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)(i.A,{className:"h-5 w-5 text-gray-500"}),_[12]=x):x=_[12],_[13]!==R||_[14]!==p?(u=(0,r.jsx)("button",{type:"button",onClick:R,className:"p-1 rounded-lg hover:bg-gray-100 transition-colors","aria-label":p,children:x}),_[13]=R,_[14]=p,_[15]=u):u=_[15],_[16]!==m||_[17]!==u?(h=(0,r.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-neutral-200 shrink-0",children:[m,u]}),_[16]=m,_[17]=u,_[18]=h):h=_[18],_[19]!==S.rating?(g=(0,r.jsx)(o.G,{rating:S.rating,size:"sm"}),_[19]=S.rating,_[20]=g):g=_[20],_[21]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsx)("span",{className:"text-xs text-gray-400",children:"\xb7"}),_[21]=f):f=_[21],_[22]!==P?(y=(0,r.jsx)("span",{className:"text-xs text-gray-400",children:P}),_[22]=P,_[23]=y):y=_[23],_[24]!==y||_[25]!==g?(b=(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[g,f,y]}),_[24]=y,_[25]=g,_[26]=b):b=_[26],_[27]!==S.comment?(v=(0,r.jsx)("p",{className:"whitespace-pre-line text-gray-700 text-sm",children:S.comment}),_[27]=S.comment,_[28]=v):v=_[28],_[29]!==T||_[30]!==S.reply||_[31]!==k?(j=S.reply&&(0,r.jsxs)("div",{className:"mt-6 rounded-lg bg-primary-200/20 border border-neutral-100 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-gray-700",children:k("appDetail.developerResponse")}),T&&(0,r.jsx)("span",{className:"text-xs text-gray-400",children:T})]}),(0,r.jsx)("p",{className:"whitespace-pre-line text-sm text-gray-600",children:S.reply.comment})]}),_[29]=T,_[30]=S.reply,_[31]=k,_[32]=j):j=_[32],_[33]!==b||_[34]!==v||_[35]!==j?(N=(0,r.jsxs)("div",{className:"overflow-y-auto p-6 flex-1",children:[b,v,j]}),_[33]=b,_[34]=v,_[35]=j,_[36]=N):N=_[36],_[37]!==N||_[38]!==h?(w=(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl flex flex-col max-h-[85vh] mx-4 md:mx-0",children:[h,N]}),_[37]=N,_[38]=h,_[39]=w):w=_[39],_[40]!==E||_[41]!==L||_[42]!==R||_[43]!==w||_[44]!==d?(D=(0,r.jsx)("dialog",{ref:E,className:"backdrop:bg-black/50 bg-transparent p-0 m-auto max-w-2xl w-full max-h-[85vh]",onClick:L,onKeyDown:d,onClose:R,children:w}),_[40]=E,_[41]=L,_[42]=R,_[43]=w,_[44]=d,_[45]=D):D=_[45],D}},83569:(e,t,a)=>{a.d(t,{G:()=>o,Q:()=>d});var r=a(95155),l=a(19749),s=a(70367),n=a(99610),i=a(93333);let c={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-7 w-7"};function o(e){let t,a,n,o,d=(0,l.c)(9),{rating:m,size:p,className:x}=e,u=c[void 0===p?"sm":p];return d[0]!==x?(t=(0,s.cn)("flex items-center gap-0.5",x),d[0]=x,d[1]=t):t=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(a=Array.from({length:5}),d[2]=a):a=d[2],d[3]!==m||d[4]!==u?(n=a.map((e,t)=>(0,r.jsx)(i.A,{className:(0,s.cn)(u,t<Math.round(m)?"text-yellow-400":"text-gray-200")},t)),d[3]=m,d[4]=u,d[5]=n):n=d[5],d[6]!==t||d[7]!==n?(o=(0,r.jsx)("div",{className:t,children:n}),d[6]=t,d[7]=n,d[8]=o):o=d[8],o}function d(e){let t,a,s=(0,l.c)(6),{stars:c,hoveredStar:o,onRate:d,onHover:m}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=Array.from({length:5}),s[0]=t):t=s[0],s[1]!==o||s[2]!==m||s[3]!==d||s[4]!==c?(a=(0,r.jsx)("div",{className:"flex gap-1",children:t.map((e,t)=>{let a=t+1,l=a<=(o||c);return(0,r.jsx)("button",{type:"button",onClick:()=>d(a),onMouseEnter:()=>m(a),onMouseLeave:()=>m(0),className:"p-0.5 transition-transform hover:scale-110","aria-label":`${a} star${a>
11?"s":""}`,children:l?(0,r.jsx)(i.A,{className:"h-7 w-7 text-yellow-400"}):(0,r.jsx)(n.A,{className:"h-7 w-7 text-gray-300"})},t)})}),s[1]=o,s[2]=m,s[3]=d,s[4]=c,s[5]=a):a=s[5],a}},93095:(e,t,a)=>{a.d(t,{M:()=>c});var r=a(95155),l=a(19749),s=a(70367),n=a(19648),i=a(12115);function c(e){let t,a,c,o,d,m=(0,l.c)(30),{text:p,maxLength:x,className:u,onReadMore:h}=e,g=(0,n.useTranslations)(),[f,y]=(0,i.useState)(!1);if(!(p.length>x)){let e,t;return m[0]!==u?(e=(0,s.cn)("whitespace-pre-line",u),m[0]=u,m[1]=e):e=m[1],m[2]!==e||m[3]!==p?(t=(0,r.jsx)("p",{className:e,children:p}),m[2]=e,m[3]=p,m[4]=t):t=m[4],t}if(h){let e,t,a,l;m[5]!==u?(e=(0,s.cn)("whitespace-pre-line line-clamp-3",u),m[5]=u,m[6]=e):e=m[6];let n=`${p.slice(0,x)}...`;return m[7]!==g?(t=g("appDetail.showMore"),m[7]=g,m[8]=t):t=m[8],m[9]!==h||m[10]!==t?(a=(0,r.jsx)("button",{type:"button",onClick:h,className:"ml-1 text-sm font-medium text-primary-accent hover:underline focus:outline-none",children:t}),m[9]=h,m[10]=t,m[11]=a):a=m[11],m[12]!==e||m[13]!==n||m[14]!==a?(l=(0,r.jsxs)("p",{className:e,children:[n,a]}),m[12]=e,m[13]=n,m[14]=a,m[15]=l):l=m[15],l}m[16]!==u?(t=(0,s.cn)("whitespace-pre-line line-clamp-3",u),m[16]=u,m[17]=t):t=m[17];let b=f?p:`${p.slice(0,x)}...`;return m[18]!==f?(a=()=>y(!f),m[18]=f,m[19]=a):a=m[19],m[20]!==f||m[21]!==g?(c=g(f?"appDetail.readLess":"appDetail.readMore"),m[20]=f,m[21]=g,m[22]=c):c=m[22],m[23]!==a||m[24]!==c?(o=(0,r.jsx)("button",{type:"button",onClick:a,className:"ml-1 text-sm font-medium text-primary-accent hover:underline focus:outline-none",children:c}),m[23]=a,m[24]=c,m[25]=o):o=m[25],m[26]!==t||m[27]!==b||m[28]!==o?(d=(0,r.jsxs)("p",{className:t,children:[b,o]}),m[26]=t,m[27]=b,m[28]=o,m[29]=d):d=m[29],d}},93145:(e,t,a)=>{a.r(t),a.d(t,{TrackedLinkWrapper:()=>n});var r=a(95155),l=a(19749),s=a(57337);function n(e){let t,a,n=(0,l.c)(7),{eventName:i,eventProperties:c,children:o}=e,{trackEvent:d}=(0,s.s)();n[0]!==i||n[1]!==c||n[2]!==d?(t=()=>{d(i,c)},n[0]=i,n[1]=c,n[2]=d,n[3]=t):t=n[3];let m=t;return n[4]!==o||n[5]!==m?(a=(0,r.jsx)("button",{type:"button",onClick:m,children:o}),n[4]=o,n[5]=m,n[6]=a):a=n[6],a}}}]);

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.