1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2c755904-2729-4f72-874c-9958027419ce",e._sentryDebugIdIdentifier="sentry-dbid-2c755904-2729-4f72-874c-9958027419ce")}catch(e){}}();"use strict";(self.webpackChunkhs_fe=self.webpackChunkhs_fe||[]).push([[4811],{34811:function(e,t,r){r.r(t),r.d(t,{Feedback:function(){return A}});var n,i,a,l,o,s,c,d=r(25353),u=r(49434),f=r(27608),h=r(63478);(n=i||(i={})).like="like",n.dislike="dislike";var y=r(93596);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function k(e){return u.createElement("svg",p({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=u.createElement("path",{d:"M5.125 17.251H1.479a.731.731 0 01-.729-.729v-8.75c0-.4.328-.729.73-.729h3.645c.401 0 .73.328.73.73v8.75c0 .4-.329.728-.73.728z",fill:"#FDF2E8",stroke:"#FE9023",strokeWidth:.75,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=u.createElement("path",{d:"M4.352 16.009a.32.32 0 100-.642.32.32 0 000 .642zM5.89 8.22c2.443-.583 4.893-3.601 4.893-7.196 0-.897 1.772-1.02 2.239.642.525 1.874-.321 3.514-.963 5.111h3.201",stroke:"#FE9023",strokeWidth:.75,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=u.createElement("path",{d:"M15.26 6.777c.708 0 1.277.576 1.277 1.276 0 .707-.577 1.276-1.277 1.276h-.614M14.646 9.33c.954 0 1.57.582 1.57 1.283 0 .707-.576 1.276-1.276 1.276M14.298 11.889c.707 0 1.276.575 1.276 1.276 0 .707-.576 1.276-1.276 1.276l-.642.007",stroke:"#FE9023",strokeWidth:.75,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=u.createElement("path",{d:"M14.646 9.33c.954 0 1.57.582 1.57 1.283 0 .707-.576 1.276-1.276 1.276h-.642M13.335 16.68l-3.828.006c-1.283 0-3.616-1.174-3.616-1.174M13.656 14.448h.16a1.116 1.116 0 010 2.231h-.48",stroke:"#FE9023",strokeWidth:.75,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),c||(c=u.createElement("path",{d:"M11.158 1.024a8.526 8.526 0 01-1.6 4.947C8.67 7.205 7.492 8.124 6.265 8.505v6.772c.048.023.104.05.166.078.234.108.56.252.923.396.747.294 1.59.559 2.152.56l3.828-.007h.482a.741.741 0 000-1.481h-.16a.375.375 0 01-.005-.75l.642-.008h.004c.494 0 .901-.402.901-.9 0-.495-.402-.901-.9-.901a.375.375 0 01-.076-.743l.075-.008h.642c.494 0 .9-.402.9-.9 0-.44-.39-.91-1.194-.91a.375.375 0 010-.75h.614c.495 0 .901-.401.901-.9 0-.494-.402-.901-.9-.901h-3.202a.375.375 0 01-.348-.515c.664-1.652 1.432-3.149.95-4.87-.196-.698-.64-.967-.981-1.01a.622.622 0 00-.41.07.22.22 0 00-.112.197z",fill:"#FDF2E8"})))}var g=r(26871),v=r(55400),m=r(74619),b=r(46719);let x=e=>(0,v.I)(["user-reaction",e],()=>g.Hn.getService("library").feedBack.get({"filter[service][eq]":"evo-library","filter[entity_name][eq]":"library-lesson-content",[Array.isArray(e)?"filter[entity_id][in][]":"filter[entity_id][eq]"]:e}),{enabled:void 0!==e}),w=()=>(0,m.n)(["reaction-type-lessons-content"],e=>g.Hn.getService("library").feedBack.save(e)),j=()=>{let e=(0,b.jE)();return(t,r,n)=>{e.setQueryData(["user-reaction",n||r],e=>{if(!e)return e;let n=e.map(e=>({...e}));if(null===t)return n.filter(e=>e.entity_id!==r);let i=n.findIndex(e=>e.entity_id===r);return -1===i?n.push({reaction_type:t,entity_id:r}):n[i].reaction_type=t,n})}};var _=r(10764);let E=_.default.div.withConfig({componentId:"sc-70726f0e-0"})(["display:flex;flex-direction:",";gap:8px;z-index:10;"],e=>{let{$direction:t}=e;return t}),I=_.default.button.withConfig({componentId:"sc-70726f0e-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;cursor:pointer;background-color:var(--gray-900);border:1px solid var(--orange-300);transition:0.3s;path{fill:var(--gray-900);&:not(:last-of-type){stroke:var(--orange-300);}}&:hover{path{fill:var(--orange-600);}}&:active{background-color:var(--orange-600);}
1&.selected{path{fill:var(--orange-300);&:not(:last-of-type){stroke:var(--gray-900);}}}"]),M=(0,_.default)(I).withConfig({componentId:"sc-70726f0e-2"})(["transform:rotate(180deg);"]);var F=r(61742);let C=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(F.A,{variant:"circular",width:32,height:32}),(0,d.jsx)(F.A,{variant:"circular",width:32,height:32})]}),A=(0,u.memo)(e=>{let{eventLabel:t,eventCategory:r,renderBefore:n,renderAfter:a,entityId:l,relatedEntitiesIds:o,direction:s="column",className:c}=e,p=w(),g=String(l),{data:v,isFetching:m}=x(o||g),b=j(),_=(0,u.useMemo)(()=>{var e,t;let r=null!==(t=null==v?void 0:null===(e=v.find(e=>e.entity_id===g))||void 0===e?void 0:e.reaction_type)&&void 0!==t?t:null;return r&&i[r]},[v,g]),F=(0,f.A)(e=>{let n=_===e,i=Number.isInteger(l);t&&r&&y.CY.fireEvent({type:"click",category:r,label:t,valueString:JSON.stringify({reaction:n?"remove-reaction":e,entityIdStr:i?null:l,entityIdInt:i?l:null})}),b(n?null:e,g,o),p.mutateAsync({entityId:g,reactionType:e})},50);return(0,d.jsxs)(E,{$direction:s,className:c,children:[n,m?(0,d.jsx)(C,{}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(I,{className:(0,h.A)(_===i.like&&"selected"),onClick:()=>F(i.like),children:(0,d.jsx)(k,{})}),(0,d.jsx)(M,{className:(0,h.A)(_===i.dislike&&"selected"),onClick:()=>F(i.dislike),children:(0,d.jsx)(k,{})})]}),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.