PageSourceSearch

https://assets.allocine.fr/js/website/followees-rating-modal.e573bfe2abf46b6da0d2.js

js allocine.fr collected 2026-10-01 08:45:39 UTC 13,616 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkallocine_js=self.webpackChunkallocine_js||[]).push([[53],{40581:function(e,t,n){n.d(t,{A:function(){return g},k:function(){return u}});var a=n(58168),l=n(46942),o=n.n(l),r=n(96540),i=n(30507),s=n(89955),c=n(25948),d=n(18516),m=n(92022);const f=/^(3(393|447|509)|4(045|409|422)|7(420|444|856)|9(264|31|604)|1649|2641|2904|5232|5809|6337|6540|8855)$/.test(n.j)?["small","medium","medium-large","large","xlarge"]:null,u=e=>f.includes(e),h=[.5,1,1.5,2,2.5,3,3.5,4,4.5,5];var g=function({onCreate:e=c.A,onDelete:t=c.A,onUpdate:n=c.A,readOnly:l=!1,showDeleteRating:f,showVerifyButton:u=!1,isVerified:g=!1,onVerifyNote:p,size:b="small",theme:E="default",value:A=0}){const[w,k]=(0,r.useState)(null),y=(a,o)=>{l||(o&&o.stopPropagation(),A&&a&&A===a?t(a):A&&a&&A!==a?n(a,A):!A&&a&&e(a))},v=e=>{l||k(e)},T=()=>{l||k(null)};let N=null;const x=f&&!l&&A;x&&(N=r.createElement("span",{className:"user-rating-del",onClick:t.bind(null,A)},r.createElement("i",{className:"icon icon-cross"})));let _=null,C=null;const S=s.y$&&u&&!l&&A&&p&&!g;S&&(_=r.createElement(i.Ay,{size:"xs",className:"button-verified-rating",onClick:p},(0,m.default)("review.verified.label")));const D=s.y$&&g&&A;D&&(C=r.createElement("span",{className:"verified-rating-indicator"},r.createElement("span",{className:"badge-verified"}),r.createElement("span",{className:"verified-rating-text"},(0,m.default)("bam.verified.status"))));const z=h.map((e=>{const t=e<=(null!==w?w:A??0),n=o()("rating-star tooltip-parent",{active:t});return r.createElement("div",{key:e,className:n,onClick:y.bind(null,e),onMouseEnter:v.bind(null,e),onMouseLeave:T},!l&&r.createElement("span",{className:"tooltip tooltip-dark tooltip-child"},`${e} ${(0,m.default)("rating.notescale-"+(0,d.A)(""+Math.round(2*e)/2*10,2,"0"))}`))})),I={};return r.createElement("span",(0,a.A)({},I,{className:o()("user-rating-note",`theme-${E}`,{"read-only":l,"no-del":!x,[`user-rating-${b}`]:!!b})}),r.createElement("span",{className:"user-rating"},z,x?N:null,S?_:null,D?C:null))}},24343:function(e,t,n){var a=n(58168),l=n(96540),o=n(78098),r=n(46971);t.A=({alt:e="",src:t="",size:n=60,className:i="",fix:s=!1})=>{const[c,d]=(0,l.useState)(t);(0,l.useEffect)((()=>{d(t)}),[t]);const m=(0,l.useMemo)((()=>(0,r.Uy)((0,o.V)(c||(0,o.N)(),n))),[c,n]),f={alt:e||"avatar",className:i};return s&&(f.width=n,f.height=n),l.createElement("img",(0,a.A)({src:m,onError:()=>{d((0,o.N)())}},f))}},25665:function(e,t,n){var a=n(5338),l=n(25948);const o=new WeakMap,r=e=>(o.has(e)||o.set(e,(0,a.H)(e)),o.get(e));t.A=(e,t,n=l.A,a=l.A)=>({name:e,render:(e,n,a,l,o)=>{if(e){const i=r(e),s=t(n,a,l,o);i?.render(s)}},remove:e=>{const t=r(e);t?.unmount(),o.delete(e)},onClose:n,onOpen:a})},40183:function(e,t,n){n.d(t,{A:function(){return v}});var a=n(58168),l=n(46942),o=n.n(l),r=n(96540),i=n(62134),s=n(85072),c=n.n(s),d=n(97825),m=n.n(d),f=n(77659),u=n.n(f),h=n(55056),g=n.n(h),p=n(10540),b=n.n(p),E=n(41113),A=n.n(E),w=n(98020),k={};k.styleTagTransform=A(),k.setAttributes=g(),k.insert=u().bind(null,"head"),k.domAPI=m(),k.insertStyleElement=b(),c()(w.A,k);var y=w.A&&w.A.locals?w.A.locals:void 0,v=({className:e,image:t,imageWidth:n,imageHeight:l,title:s,children:c,size:d,preventClose:m,backgroundImage:f,fallback:u,pagination:h,...g})=>{const p=(0,r.createRef)();(0,r.useEffect)((()=>{u&&p.current&&(0,i.A)(p.current).then((e=>{e||u()}))}),[u,p]);const b=o()("modal",{[`modal-${d}`]:!!d,[y.modalWithBackground]:!!f},e),E=r.createElement(r.Fragment,null,r.createElement("header",{className:"modal-header",id:"modal-header"},h,(t||s)&&r.createElement("div",{className:"modal-header-content"},t?r.createElement("img",{src:t,width:n,height:l,className:"modal-header-image"}):null,s?r.createElement("h2",{className:"titlebar-title titlebar-title-sm",dangerouslySetInnerHTML:{__html:s}}):null),!m&&r.createElement("button",{type:"button",className:"modal-close icon icon-cross light js-trigger-overlay-close"},r.createElement("span",{className:"no-icon"},"X"))),r.createElement("div",{className:"modal-content"},c));return r.createElement(r.Fragment,null,r.createElement("div",{className:o()("modal-layer",{"js-trigger-overlay-close":!m})}),r.createElement("div",(0,a.A)({className:b,ref:p},g),f?r.createElement(r.Fragment,null,r.createElement("img",{className:y.modalLeft,src:f}),r.createElement("div",{className:y.modalRight},E)):E))}},49703:function(e,t,n){var a=n(96540),l=n(18224),o=n(36677);t.A=e=>{const t=t=>o.JM?a.createElement(e,t):null;return t.displayName=`OnlyIfHasSocial(${(0,l.A)(e)})`,t},(Object.getOwnPropertyDescriptor(t.A,"name")||{}).writable||Object.defineProperty(t.A,"name",{value:"default",configurable:!0})},48126:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});var a=n(46942),l=n.n(a),o=n(96540),r=n(22171),i=n(77992),s=n(25665),c=n(40183),d=n(38134),m=n(92022),f=n(49703),u=n(59080),h=n(40581),g=n(24343),p=n(4460),b=n(33849),E=(0,f.A)((e=>{const{user:{mainAvatar:t,legacyId:n,nickname:a},opinion:r,entityId:i,entityType:s}=e;let c,d=null;const f=r.hasReview?(0,p.zr)(s):null;if(f){c=o.createElement(o.Fragment,null,o.createElement("span",{className:b.A.followeeName},a)," ",(0,m.default)("rating.friends.has-review"));const e=(0,p.Ae)(f,{entity:i,user:n.toUpperCase()});d=o.createElement("a",{className:b.A.followeeDetailsBlock,href:e},(0,m.default)("rating.friends.read-review"))}else c=o.createElement(o.Fragment,null,o.createElement("span",{className:b.A.followeeName},a)," ",(0,m.default)(`rating.friends.${s.toLowerCase()}.has-note`));const u=(0,p.Ae)("userprofile_index",{user:n.toLowerCase()});return o.createElement("figure",{className:l()(b.A.followeeDetails,"cf","hred")},o.createElement("a",{className:b.A.followeeDetailsThumb,href:u},o.createElement(g.A,{alt:a,className:b.A.followeeAvatar,src:t})),o.createElement("figcaption",null,c,o.createElement("div",null,o.createElement(h.A,{value:r.rating,readOnly:!0})),d))})),A=(0,f.A)((e=>{const{user:{mainAvatar:t,legacyId:n,nickname:a}}=e,r=(0,p.Ae)("userprofile_index",{user:n.toLowerCase()});return o.createElement("figure",{className:l()(b.A.followeeDetails,"cf","hred")},o.createElement("a",{className:b.A.followeeDetailsThumb,href:r},o.createElement(g.A,{alt:a,className:b.A.followeeAvatar,src:t})),o.createElement("figcaption",{className:b.A.followeeName},a))}));const w=(e,t)=>{const n=(0,d.A)(e,["action","content","rating"]);return(0,d.A)(t,["action","content","rating"])-n};class k extends o.Component{constructor(e){super(e),this.state={followeesRatings:[],followeesWantToSee:[]}}async componentDidMount(){const e=await(0,r.k$)(this.props.entity.id),t=[],n=[],a=(0,d.A)(e,["me","user","social","followeesActions"]);a.filter((e=>
1"Opinion"===e.action.__typename)).sort(w).forEach((e=>{t.push({action:{...e.action,hasReview:/(PUBLISHED|ACCEPTED)/gi.test(e.action.content.status)},user:e.user})})),a.filter((e=>"WantToSee"===e.action.__typename)).sort(w).forEach((e=>{n.push(e)})),this.setState({followeesRatings:t,followeesWantToSee:n})}render(){const{entity:e}=this.props,{followeesRatings:t,followeesWantToSee:n}=this.state,a=[],r=[];t.forEach((t=>{const n={rating:t.action.content.rating,hasReview:t.action.hasReview};a.push(o.createElement(E,{opinion:n,user:t.user,key:t.user.legacyId,entityId:e.legacyId,entityType:e.typename}))}));let i=null;return n.length&&(n.forEach((e=>{r.push(o.createElement(A,{user:e.user,key:e.user.legacyId}))})),i=o.createElement(o.Fragment,null,o.createElement("h2",{className:l()(b.A.modalSecondTitle,"titlebar-title"),dangerouslySetInnerHTML:{__html:(0,m.default)("rating.modal.second-title",{entity:this.props.entity.title})}}),r)),o.createElement(c.A,{size:"medium",className:"modal-followees-rating",title:(0,m.default)("rating.labelfriends")},a,i)}}var y=(0,s.A)(i.VC,((e={})=>{const t=(0,u.A)((0,f.A)(k));return o.createElement(t,{entity:e.entity})}))},98020:function(e,t,n){var a=n(31601),l=n.n(a),o=n(76314),r=n.n(o)()(l());r.push([e.id,".xMFhR7TX8akeV_KDDfXk{position:relative;display:flex}.xMFhR7TX8akeV_KDDfXk .modal-header,.xMFhR7TX8akeV_KDDfXk .modal-content{padding-right:1.875rem;padding-left:1.875rem}.xMFhR7TX8akeV_KDDfXk .modal-header{position:relative}.oS36iX8mxDcLYGfk1nU7{display:none;width:auto;height:100%}.jLYdac7WhChWhq6Y49rQ{position:relative;background-color:#fff;width:100%}@media all and (min-width: 37.625em){.oS36iX8mxDcLYGfk1nU7{display:block}.xMFhR7TX8akeV_KDDfXk .modal-header{padding-top:5rem}.jLYdac7WhChWhq6Y49rQ{width:auto}}",""]),r.locals={modalWithBackground:"xMFhR7TX8akeV_KDDfXk",modalLeft:"oS36iX8mxDcLYGfk1nU7",modalRight:"jLYdac7WhChWhq6Y49rQ"},t.A=r},18820:function(e,t,n){var a=n(31601),l=n.n(a),o=n(76314),r=n.n(o)()(l());r.push([e.id,".qzScDZg7Q2VkqVe9ATQt{display:flex;margin-bottom:.625rem;padding-bottom:.625rem}.WDoum7Og6dJ3jzEd8rkO{float:left;width:30%;max-width:3.438rem;padding-right:.625rem}.Td9AUO9InxKJU0avgZEV{width:100%}.PaPzb7STBV1hoPYo9SE8{font-weight:700}.IhUDQ7hUPWJfdFPGmG_k{display:block}.AzQ86rrCAgssP6ZtUGtB{width:100%;padding:1.875rem 0;text-align:center}.Td9AUO9InxKJU0avgZEV{font-size:.75rem;display:inline-block;overflow:hidden;box-sizing:content-box;width:1.875rem;height:1.875rem;margin-right:-0.3125rem;text-align:center;vertical-align:middle;border:solid .125rem #fff;border-radius:1.875rem;background-color:#d8d8d8}.ESeFAB0H4cVrk_LDMX7J{line-height:1.875rem}.zRJZkyoM6t6Z56xqtqmA{clear:both}.ge0hwpOnOrD4gl_F5v4I{cursor:pointer}.ge0hwpOnOrD4gl_F5v4I:hover{color:#2c82c8}.Sa2pwzj21140GwedZzgE{cursor:pointer;color:inherit;text-decoration:none}.Sa2pwzj21140GwedZzgE:hover{color:inherit;text-decoration:none}.hBMsMETPRGBkzr8LKI8T{cursor:pointer;color:#2b2b2b}.hBMsMETPRGBkzr8LKI8T:hover{text-decoration:underline}.sN0Gs8SxroqwjfYT0dmu{min-height:19.625rem}.XLMJEI8hk254l6EkG9XK{font-size:.75rem;display:block;padding-bottom:.5rem;letter-spacing:1px;text-transform:uppercase;color:#2b2b2b}.hmQ4uTUrwcCfpv9ds3UU{width:100%}.hmQ4uTUrwcCfpv9ds3UU .title{font-size:.9375rem;display:flex;justify-content:space-between;color:#2b2b2b}.edCSo6NQ7U7H621tLqpM{overflow:auto;max-height:160px;padding:1.35rem 1.875rem}.AZsSX_5vUa8TO2sshCug,._aDqiFei0qOHWRPTllER{font-size:.9375rem;position:relative;padding-bottom:.625rem;cursor:pointer;color:#2b2b2b}.AZsSX_5vUa8TO2sshCug{display:flex;justify-content:space-between}.AZsSX_5vUa8TO2sshCug:last-child{padding-bottom:0}.k_Zy_cYkLvFks_pkm1fA{color:#1ca2eb}._aDqiFei0qOHWRPTllER{border-top:1px solid #d8d8d8}._aDqiFei0qOHWRPTllER:first-child{border-top:none}._aDqiFei0qOHWRPTllER.icon{line-height:1.875rem;margin-right:1.875rem;margin-left:1.875rem;padding:1.35rem 0 1.35rem 2.5rem}._aDqiFei0qOHWRPTllER.icon:before{font-size:.625rem;line-height:1.875rem;position:absolute;top:0;bottom:0;left:0;width:1.875rem;height:1.875rem;margin:auto;text-align:center;border-radius:2px;background-color:#d8d8d8}.X2HuN_6Yee9E15BhjXI_{display:flex;justify-content:center;width:100%;margin-top:1.875rem}.X2HuN_6Yee9E15BhjXI_ .button{margin-left:1rem}.X2HuN_6Yee9E15BhjXI_ .button:first-child{margin-left:0}.zFApPnn_OSPdNFk6cpSN{margin-bottom:1.75rem}.fIgddil8ZmYbs3hArCC0{font-size:.75rem;display:block;padding-bottom:.5rem;letter-spacing:1px;text-transform:uppercase;color:#2b2b2b}._jOiEsQfe_EDWRcS3L9O{font-size:.6875rem;margin-left:.375rem;letter-spacing:normal;text-transform:none;color:#737373}.McELIWNb5w7dI5hxdnMC{font-size:.875rem;display:inline-block;width:100%;height:3.125rem;padding-left:1.125rem;vertical-align:middle;color:#2b2b2b;border:1px solid #d8d8d8;border-radius:2px;background-color:#fff}.McELIWNb5w7dI5hxdnMC::placeholder{font-size:.75rem;color:#737373}.r06VzgPyguxzL1Xkkf5B{font-size:.6875rem;display:block;margin:.625rem auto;text-align:center;color:#e50712}.IyBzfrlo3d003IMe3hdc{font-size:.75rem;width:100%;height:7.5rem;padding:.625rem 1.125rem;color:#2b2b2b;border:1px solid #d8d8d8;background-color:#fff}.yb8lUYA2_f7DfSRxgG1G{text-align:center}.bnEz7Nu12cfcBVChflNG{display:block;margin-bottom:.625rem}.fy7HXwFnCTOyjpVd2kxZ.active{color:#737373}",""]),r.locals={followeeDetails:"qzScDZg7Q2VkqVe9ATQt",followeeDetailsThumb:"WDoum7Og6dJ3jzEd8rkO",followeeAvatar:"Td9AUO9InxKJU0avgZEV",followeeName:"PaPzb7STBV1hoPYo9SE8",followeeDetailsBlock:"IhUDQ7hUPWJfdFPGmG_k",modalSecondTitle:"AzQ86rrCAgssP6ZtUGtB",followeeMore:"ESeFAB0H4cVrk_LDMX7J",followeesAvatars:"zRJZkyoM6t6Z56xqtqmA",friendsRatingLink:"ge0hwpOnOrD4gl_F5v4I",friendsRatingTooltipLink:"Sa2pwzj21140GwedZzgE",followUnfollowButton:"hBMsMETPRGBkzr8LKI8T",addToCollectionContainer:"sN0Gs8SxroqwjfYT0dmu",addToCollectionLabel:"XLMJEI8hk254l6EkG9XK",addToCollectionSelect:"hmQ4uTUrwcCfpv9ds3UU",addToCollectionSelectList:"edCSo6NQ7U7H621tLqpM",addToCollectionSelectItem:"AZsSX_5vUa8TO2sshCug",addToNewCollectionButton:"_aDqiFei0qOHWRPTllER",addToCollectionAlreadyAdded:"k_Zy_cYkLvFks_pkm1fA",addToCollectionButtonBar:"X2HuN_6Yee9E15BhjXI_",addToNewCollectionFieldset:"zFApPnn_OSPdNFk6cpSN",addToNewCollectionLabel:"fIgddil8ZmYbs3hArCC0",addToNewCollectionHint:"_jOiEsQfe_EDWRcS3L9O",addToNewCollectionInput:"McELIWNb5w7dI5hxdnMC",addToNewCollectionError:"r06VzgPyguxzL1Xkkf5B",addToNewCollectionTextarea:"IyBzfrlo3d003IMe3hdc",affinityScoreTooltip:"yb8lUYA2_f7DfSRxgG1G",affinityScoreTooltipText:"bnEz7Nu12cfcBVChflNG",affinityScoreTooltipButton:"fy7HXwFnCTOyjpVd2kxZ"},t.A=r},33849:function(e,t,n){var a=n(85072),l=n.n(a),o=n(97825),r=n.n(o),i=n(77659),s=n.n(i),c=n(55056),d=n.n(c),m=n(10540),f=n.n(m),u=n(41113),h=n.n(u),g=n(18820),p={};p.styleTagTransform=h(),p.setAttributes=d(),p.insert=s().bind(null,"head"),p.domAPI=r(),p.insertStyleElement=f(),l()(g.A,p),t.A=g.A&&g.A.locals?g.A.locals:void 0}}]);
2//# sourceMappingURL=followees-rating-modal.e573bfe2abf46b6da0d2.js.map

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.