PageSourceSearch

https://www.avaliamed.com.br/_next/static/chunks/pages/provider/[slug]/profile-card-widget-abe71aa454d6f7ce.js

js avaliamed.com.br collected 2026-10-04 18:31:40 UTC 11,587 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1131],{15221:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/provider/[slug]/profile-card-widget",function(){return n(48127)}])},94732:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var r=n(61250),a=n(88880),o=n(59480),i=n(14583);n(29901);var l=(0,o.Z)((function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));return(0,i.Z)({progress:{position:"fixed",top:"50%",left:"50%"}})})),c=function(){var e=l({});return(0,r.jsx)(a.Z,{className:e.progress})}},31877:function(e,t,n){"use strict";n.d(t,{h:function(){return h}});var r=n(61250),a=n(10194),o=n(6973),i=n.n(o),l=n(88075),c=n(29901),s=n(11306);var u,g,f,d=(u={},g=a.ProfileLanguage.Portuguese,f="pt-BR",g in u?Object.defineProperty(u,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[g]=f,u);function m(e){var t;return null!==(t=d[e])&&void 0!==t?t:e}function p(e,t,n){try{var r=new URL(e),a=s.O.PAGE_SLUGS;return n?function(e,t,n){var r=new RegExp("\\/".concat(n,"\\/\\d+"));1===t?e.pathname=e.pathname.replace(r,""):r.test(e.pathname)?e.pathname=e.pathname.replace(r,"/".concat(n,"/").concat(t)):e.pathname+="/".concat(n,"/").concat(t);return e.toString()}(r,t,a.PAGE):function(e,t,n){1===t?e.searchParams.delete(n):e.searchParams.set(n,t.toString());return e.toString()}(r,t,a.PAGE)}catch(o){return console.error("Invalid URL: ".concat(e)),null}}var v=a.EnumUtils.getValues(a.ProfileLanguage),h=function(e){var t=e.title,n=e.description,o=e.pathname,u=e.canonical,g=e.alternateLocales,f=void 0===g?v:g,d=e.otherMetas,h=e.noIndex,x=e.OGMetas,b=e.currentPage,y=e.totalItemsCount,j=e.itemsPerPage,w=e.isPageParamInPath,P=e.isNeedToAddPaginationLinks,S=void 0===P||P,O=(0,l.useRouter)(),U=null!==o&&void 0!==o?o:O.asPath,N="".concat(O.locale===s.O.DEFAULT_LANG?"":"/".concat(O.locale)).concat(U),C=u||a.UrlUtils.normalizeUrlSlashes("".concat(s.O.HOST).concat(N)),Z=b&&y&&j?function(e){var t=e.currentPage,n=e.totalItemsCount,r=e.baseUrl,a=e.itemsPerPage,o=e.isPageParamInPath,i=void 0!==o&&o,l=Math.ceil(n/a);return t&&l?{prevUrl:t>1?p(r,t-1,i):null,nextUrl:t<l?p(r,t+1,i):null}:null}({currentPage:b,totalItemsCount:y,baseUrl:C,itemsPerPage:j,isPageParamInPath:w}):null;return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:n},"meta_description"),(0,r.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,r.jsx)("meta",{property:"og:description",content:n},"og:description"),(0,r.jsx)("meta",{property:"og:url",content:a.UrlUtils.normalizeUrlSlashes("".concat(s.O.HOST).concat(N))},"og:url"),(0,r.jsx)("link",{rel:"canonical",href:C},"canonical"),S&&Z&&Z.prevUrl&&(0,r.jsx)("link",{rel:"prev",href:Z.prevUrl},"prev"),S&&Z&&Z.nextUrl&&(0,r.jsx)("link",{rel:"next",href:Z.nextUrl},"next"),f&&f.length>1&&f.map((function(e,t){var n=e===s.O.DEFAULT_LANG,o=n?"".concat(s.O.HOST).concat(a.UrlUtils.getPathNameWithoutLocale(U,v)):"".concat(s.O.HOST,"/").concat(e).concat(a.UrlUtils.getPathNameWithoutLocale(U,v));return(0,r.jsxs)(c.Fragment,{children:[n&&(0,r.jsx)("link",{rel:"alternate",href:a.UrlUtils.normalizeUrlSlashes(o),hrefLang:"x-default"},"alternate-locale-x-default"),(0,r.jsx)("link",{rel:"alternate",href:a.UrlUtils.normalizeUrlSlashes(o),hrefLang:m(e)},"alternate-locale-".concat(t))]},"alternate-locale-".concat(e))})),d&&d.map((function(e){return(0,r.jsx)("meta",{name:e.name,content:e.content},e.name)})),x&&x.map((function(e){return(0,r.jsx)("meta",{property:e.property,content:e.content},e.property)})),h&&(0,r.jsx)("meta",{name:"robots",content:"noindex, follow"})]})}},36738:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(61250),a=n(59480),o=n(14583),i=n(94143),l=n.n(i);n(29901);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=(0,a.Z)((function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));return(0,o.Z)({root:{borderRadius:"50%",lineHeight:1}})})),u=function(e){var t=s({});return(0,r.jsx)(l(),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}({className:t.root},e))}},94821:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var r=(0,n(41136).vU)({reviewsCountBadgeAriaLabel:{id:"review.reviewsCountBadge.aria-label",defaultMessage:"{reviewsCount} reviews for {profileName}",description:"Reviews count badge aria-label"},reviewsCountBadgeTitle:{id:"review.reviewsCountBadge.title",defaultMessage:"{reviewsCount} reviews for {profileName}",description:"Reviews count badge title"}})},21598:function(e,t,n){"use strict";n.d(t,{S:function(){return d}});var r=n(61250),a=n(63774),o=n(92095),i=n(59480),l=n(14583),c=n(48630),s=n(43150),u=(n(29901),n(68285)),g=n(94821),f=(0,i.Z)((function(e){var t=e.palette,n=e.spacing;return(0,l.Z)({iconButton:{padding:n(0)},badgeIcon:{fontSize:function(e){return e.iconSize}
1,color:t.tertiary.main},badge:{top:"42%",right:"50%",color:t.tertiary.main,fontWeight:"bold",fontSize:function(e){return e.fontSize}}})})),d=function(e){var t=e.count,n=e.profileName,i=e.iconSize,l=void 0===i?68:i,d=e.fontSize,m=(0,u.Z)(),p=(0,c.Z)().typography.fontSize,v=f({iconSize:l,fontSize:null!==d&&void 0!==d?d:p});return(0,r.jsx)(o.Z,{"aria-label":m.formatMessage(g.s.reviewsCountBadgeAriaLabel,{reviewsCount:t,profileName:n}),title:m.formatMessage(g.s.reviewsCountBadgeTitle,{reviewsCount:t,profileName:n}),className:v.iconButton,edge:"end",children:(0,r.jsx)(a.Z,{max:3e4,badgeContent:t||"0",color:"default",classes:{badge:v.badge},children:(0,r.jsx)(s.Z,{className:v.badgeIcon})})})}},8326:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(61250),a=n(14583),o=n(59480),i=n(48630),l=n(10210),c=n(46513),s=n(16110);n(29901);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f={xs:20,sm:24,md:30,lg:36},d={xs:100,sm:120,md:150,lg:180},m=(0,o.Z)((function(e){var t=e.palette;return(0,a.Z)({root:function(e){var t=e.size;return{minWidth:d[t]}},star:function(e){var n=e.size;return{color:e.color||t.primary.main,fontSize:f[n]}},halfIconRotated:{transform:"scaleX(-1)"}})})),p=function(e){var t=e.currentRating,n=void 0===t?0:t,a=e.maxRating,o=void 0===a?5:a,u=e.size,f=void 0===u?"md":u,d=e.color,p=d?"#".concat(d):null,v=m({size:f,color:p}),h=(0,i.Z)(),x=.5*Math.floor(n/.5)+(n%.5>=.45?.5:0),b=x%1>0,y=Math.floor(x),j=Math.floor(o-x),w=g(Array(y).keys()),P=g(Array(j).keys());return(0,r.jsxs)("div",{className:v.root,children:[w.map((function(e,t){return(0,r.jsx)(l.Z,{className:v.star},"filled-star-".concat(t))})),b&&(0,r.jsx)(s.Z,{className:"".concat(v.star," ").concat("rtl"===h.direction?v.halfIconRotated:"")}),P.map((function(e,t){return(0,r.jsx)(c.Z,{className:v.star},"empty-star-".concat(t))}))]})}},97102:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var r=(0,n(41136).vU)({metaTitle:{id:"ratingWidgetPage.meta.title",defaultMessage:"ratingWidgetPage page title"},metaDescription:{id:"ratingWidgetPage.meta.description",defaultMessage:"ratingWidgetPage page meta description"},reviewsCountText:{id:"ratingWidgetPage.reviewsCountDescription",defaultMessage:"based on {reviewsCount} reviews"}})},48127:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return C},default:function(){return Z}});var r=n(61250),a=n(98022),o=n(88075),i=n(29901),l=n(68285),c=n(94732),s=n(31877),u=n(60359),g=n(59480),f=n(14583),d=n(52745),m=n(83810),p=n(38559),v=n(10194),h=n(94143),x=n.n(h),b=n(36738),y=n(21598),j=n(8326),w=n(11306),P=(0,g.Z)((function(e){var t=e.palette,n=e.spacing;return(0,f.Z)({"@global":{body:{backgroundColor:t.common.white}},root:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:n(2),textAlign:"center",maxWidth:300,margin:"0 auto"},avatarContainer:{position:"relative"},text:{fontWeight:700},ratingText:{marginRight:n(1)},shortDescription:{whiteSpace:"pre-line"},ratingBox:{display:"flex",alignItems:"center",marginBottom:n(.5)}})})),S=i.memo((function(e){var t=e.profile,n=P(),a=i.useContext(u.J),o=v.NumberUtils.convertToTwoDigit(null===t||void 0===t?void 0:t.generalRating),l=a.locale===w.O.DEFAULT_LANG?"":"/".concat(a.locale),c="".concat(a.hostName).concat(l,"/").concat(w.O.PAGE_SLUGS.PROVIDER,"/").concat(null===t||void 0===t?void 0:t.slug),s="".concat(w.O.SITE_SYMBOLIC_NAME," Logo");return(0,r.jsx)(d.Z,{target:"_blank",href:c,underline:"none",color:"inherit",children:t&&(0,r.jsxs)(m.Z,{className:n.root,children:[(0,r.jsx)("div",{className:n.avatarContainer,children:(0,r.jsx)(b.y,{alt:t.name,src:t.logoUrl,width:100,height:100,loading:"eager",unoptimized:!0,priority:!0})}),(0,r.jsx)(p.Z,{variant:"h3",component:"h1",className:n.text,children:t.name}),(0,r.jsx)(p.Z,{variant:"body2",color:"textSecondary",gutterBottom:!0,className:"".concat(n.shortDescription," ").concat(n.text),children:t.shortDe
1scription}),(0,r.jsxs)("div",{className:n.ratingBox,children:[(0,r.jsx)(p.Z,{className:n.ratingText,variant:"h3",component:"span",children:o}),(0,r.jsx)(j.Z,{size:"sm",currentRating:t.generalRating}),(0,r.jsx)(y.S,{count:t.reviewsCount,profileName:t.name})]}),(0,r.jsx)("div",{children:(0,r.jsx)(x(),{height:42,width:175,src:"/static/logo.png",alt:s})})]})})})),O=n(97102);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){U(e,t,n[t])}))}return e}var C=!0,Z=function(){var e,t=(0,l.Z)(),n=(0,o.useRouter)(),g=i.useContext(u.J),f=(0,a.aM)("\n    query getProfileCardWidgetData($lang: String!, $slug: String!) {\n        profile: profileBySearchParams(lang: $lang, slug: $slug) {\n            name\n            generalRating\n            reviewsCount\n            slug\n            logoUrl\n            shortDescription\n\n            \n        }\n    }\n",{variables:(e={lang:g.locale,slug:n.query.slug},{lang:e.lang,slug:e.slug})}),d=f.loading,m=f.data,p=f.error,v={title:t.formatMessage(O.s.metaTitle),description:t.formatMessage(O.s.metaDescription),noIndex:!0};return p?(0,r.jsx)("span",{children:JSON.stringify(p)}):d?(0,r.jsx)(c.T,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h,N({},v)),(0,r.jsx)(S,{profile:null===m||void 0===m?void 0:m.profile})]})}}},function(e){e.O(0,[6551,2095,6386,9774,2888,179],(function(){return t=15221,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.