1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5348],{77899:function(e,t,r){var o=r(57437),a=r(21170),n=r(65448);const s={en:"gb",kk:"kz",ja:"jp",ar:"ae"};t.Z=e=>{let{countryCode:t,sx:r,isLanguage:i=!0}=e;const l=(i?s[t]:void 0)||t.toLowerCase();return l?(0,o.jsx)(a.Z,{component:"img",display:"inherit",width:"16px",sx:r,src:(0,n.K)("flags/".concat(l,".svg")),alt:l}):null}},21653:function(e,t,r){var o=r(57437),a=r(2265),n=r(41530),s=r(91200);const i={wrapper:{flexWrap:"wrap",alignItems:"center",gap:"8px"}},l=e=>{let{tags:t,icon:r,onDelete:a,sx:l=[],...d}=e;if(!Array.isArray(t)||!t.length)return null;const c=Array.isArray(l)?l:[l];return(0,o.jsx)(n.Z,{direction:"row",sx:[i.wrapper,...c],...d,children:t.map((e=>{let{name:t,id:n,deletable:i=!0}=e;return(0,o.jsx)(s.Z,{label:t,icon:r,onDelete:i&&a?()=>a(n):void 0},n)}))})};t.Z=(0,a.memo)(l)},26761:function(e,t,r){var o=r(57437),a=r(2265),n=r(21170),s=r(41327),i=r(56326),l=r(50290),d=r(33833),c=r(78001),u=r(60642),p=r(77899),g=r(60046);const x={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:u.Z.popover},h=(0,a.forwardRef)(((e,t)=>{let{value:r,onChange:h,sx:m,dataTour:f,name:v,disabled:y,label:b,labelInfo:C,isRequired:j,error:Z,helperText:_}=e;const{options:T,length:S}=(0,g.Z)(),[w,k]=(0,a.useState)(r);(0,a.useEffect)((()=>{k(S?r:"")}),[S,r]);const M=Array.isArray(m)?m:[m];return(0,o.jsxs)(s.Z,{sx:[u.Z.formControl,...M],"data-tour":f,size:"small",children:[Boolean(b)&&(0,o.jsx)(c.Z,{required:j,error:Boolean(Z),info:C,children:b}),(0,o.jsx)(d.Z,{value:w,onChange:h,sx:u.Z.selector,MenuProps:x,disabled:y,name:v,ref:t,children:T.map((e=>(0,o.jsx)(l.Z,{value:e.value,children:(0,o.jsxs)(n.Z,{sx:u.Z.languageItem,children:[(0,o.jsx)(p.Z,{countryCode:e.value.toString(),sx:{mr:1}}),e.text]})},e.value)))}),(0,o.jsx)(i.Z,{component:"div",sx:{wordBreak:"break-word",mx:0},children:Z||_})]})}));h.displayName="FormLanguageSelectorWithFlag",t.Z=h},60642:function(e,t){t.Z={formControl:{"& .MuiInputBase-root":{borderWidth:{xs:"0px",sm:"1px"},"& .MuiSelect-select":{width:"100%",minWidth:"40px"}}},selector:{backgroundColor:"colors.white",border:"1px solid",borderColor:"colors.borderGreyLight","&.Mui-focused, &:focus, &:hover":{"&:not(:is(.Mui-error, .Mui-disabled))":{borderColor:"colors.functionalInfo"}},"& .MuiSelect-root ":{"&.MuiSvgIcon-root":{display:"none"}},"& fieldset":{border:"none"}},popover:{mt:.5,"& .MuiList-padding":{px:0,py:.5},"& .MuiPaper-root":{left:"0px"},"& .MuiPaper-root.MuiPaper-rounded":{borderRadius:"5px",boxShadow:"none",border:"1px solid",borderColor:"colors.borderGreyLight"},"& .MuiListItem-root.Mui-selected, .MuiListItem-root.Mui-selected:hover":{backgroundColor:"colors.statusNeutralLight"}},languageItem:{display:"flex",alignItems:"center","& > img":{mr:1}},label:{fontSize:14,color:"colors.textPrimary"},input:{"& .MuiOutlinedInput-root.MuiInputBase-root":{height:"42px",borderRadius:"5px",background:"var(--palette-colors-white)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--palette-colors-borderGreyLight)","&.Mui-error":{"&, &.Mui-focused, &:hover, &:focus":{borderColor:"var(--palette-colors-statusCancelled)"}}},"& .MuiInputBase-input.MuiOutlinedInput-input":{pl:"12px",py:"8.5px",pr:0},"& fieldset":{border:"0 !important"},"& .MuiInputAdornment-positionEnd":{"& svg":{width:"20px",height:"20px",color:"colors.iconGrey",borderRadius:"5px"},"& button":{p:"10px"}},"& button.clearButton":{p:0,width:0,"& svg":{width:"16px",height:"16px",mr:"18px"},"&:hover":{backgroundColor:"unset"}}}}},78369:function(e,t,r){r.d(t,{Z:function(){return p}});var o=r(57437),a=r(2265),n=r(21170),s=r(56326),i=r(46387),l=r(44102);var d={wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"colors.borderGreyLight",pt:"20px","& > *":{m:{xs:"8px",sm:"unset"}}},categoriesWrapper:{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"colors.borderGreyLight",pb:"12px",mt:"20px","& > div":{maxHeight:"120px",overflowY:"auto"},"&:empty":{pb:"20px",mt:"0px"}}},c=r(21653);const u=(e,t)=>
1{let{value:r,title:a,sx:u,error:p,addButtonProps:g,onOpen:x,disabled:h,onDelete:m}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.Z,{sx:[d.wrapper,...Array.isArray(u)?u:[u]],ref:t,children:["string"===typeof a?(0,o.jsx)(i.Z,{variant:"h4",children:a}):a,(0,o.jsx)(l.Z,{onClick:x,color:"primary",variant:"text",disabled:h,...g})]}),(0,o.jsx)(n.Z,{sx:d.categoriesWrapper,children:(0,o.jsx)(c.Z,{tags:r,onDelete:m})}),Boolean(p)&&(0,o.jsx)(s.Z,{component:"div",error:!0,children:p})]})};var p=(0,a.forwardRef)(u)},1650:function(e,t,r){var o=r(57437),a=r(21170),n=r(46387),s=r(55788);const i={imageFormat:{color:e=>e.palette.text.secondary,fontWeight:400}};t.Z=e=>{let{formats:t=["PNG","JPG","JPEG"],ratio:r="1:1",variant:l="h5",sx:d}=e;const{t:c}=(0,s.$G)();return(0,o.jsxs)(a.Z,{my:1,sx:d,children:[(0,o.jsxs)(n.Z,{variant:l,children:[c("common.supported_formats"),":"," ",(0,o.jsx)(a.Z,{component:"span",sx:i.imageFormat,children:t.join(", ")})]}),(0,o.jsxs)(n.Z,{variant:l,children:[c("common.aspect_ratio")," ",(0,o.jsx)(a.Z,{component:"span",sx:i.imageFormat,children:r})]})]})}},74044:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var o=r(57437),a=r(2265),n=r(14672),s=r(55788),i=r(82937),l=r(78369);var d=e=>{let{value:t,setValue:r,limit:n,addButtonProps:d,categories:c,...u}=e;const{t:p}=(0,s.$G)(),[g,x]=(0,a.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Z,{addButtonProps:{...d,children:p("categories.add_categories_block.add_category")},onOpen:()=>{x(!0)},value:t,onDelete:e=>{r(t.filter((t=>t.id!==e)))},...u}),(0,o.jsx)(i.default,{open:g,onClose:()=>{x(!1)},categories:c,value:t,setValue:r,limit:n})]})};var c=e=>{let{value:t,setValue:r,limit:s,...i}=e;const l=(0,n.TL5)(),c=(0,n.CGy)(n.pVQ),u=c.length>0;return(0,a.useEffect)((()=>{u||l((0,n.cgA)())}),[l,u]),(0,o.jsx)(d,{categories:c,value:t,setValue:r,limit:s,...i})}},50264:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(57437),a=r(2265),n=r(55788),s=r(98719),i=r(78369);var l=e=>{let{createTag:t,externalOptions:r,subject:l,value:d,setValue:c,addButtonProps:u,...p}=e;const{t:g}=(0,n.$G)(),[x,h]=(0,a.useState)(!1),m=()=>{h(!1)},f={checkedTags:d,...Array.isArray(r)&&{tags:r}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Z,{addButtonProps:{...u,children:g("system.add_tag")},onOpen:()=>{h(!0)},value:d,onDelete:e=>{c(d.filter((t=>t.id!==e)))},...p}),(0,o.jsx)(s.Z,{open:x,onClose:m,onSave:e=>{m(),c(e)},initialData:f,type:l,onCreate:t})]})}},98719:function(e,t,r){r.d(t,{Z:function(){return G}});var o,a=r(57437),n=r(2265),s=r(14672),i=r(55788),l=r(21170),d=r(46387),c=r(40280),u=r(12824),p=r(85219),g=r(21653),x=r(92566),h=r(72608);!function(e){e.SET_APPLIED_TAGS="SET_APPLIED_TAGS",e.SET_CHECKED_TAGS="SET_CHECKED_TAGS",e.SET_SEARCH="SET_SEARCH",e.CLEAR_ALL="CLEAR_ALL"}(o||(o={}));var m={appliedTagsWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2.5,"& > h5.MuiTypography-root":{textTransform:"uppercase"}},bodyContainer:{display:"flex",flexFlow:"column nowrap",maxHeight:{xs:200,sm:316},overflow:"auto"},tagItem:{justifyContent:"space-between",py:1,"&:not(:last-of-type), &:first-of-type":{borderBottom:"1px solid",borderBottomColor:"colors.borderGreyLight"}}},f=r(19902),v=r(77584),y=r(81705);var b={tagsContainer:{"&.MuiPaper-root":{display:"flex",justifyContent:"space-between",maxHeight:90,minHeight:50,overflowY:"auto",width:"100%",mt:2,p:1,"&.MuiPaper-root":{width:"auto","&.MuiPaper-rounded":{borderRadius:"5px"}},"& > .MuiSvgIcon-root":{color:"colors.iconSecondary",cursor:"pointer",mt:1,alignSelf:"flex-start"}}},tagField:{"&.MuiFormControl-root":{minWidth:100,flex:1,margin:"auto","& .MuiOutlinedInput-root":{border:"none !important"},"&.MuiTextField-root .Mui-focused .MuiInputBase-input":{boxShadow:"none"},"& .MuiInputBase-input":{border:"none",py:.5,px:1,height:"unset"}}},tag:{display:"inline-flex",alignItems:"center",p:"2px 8px",fontSize:"14px",backgroundColor:"colors.statusNeutralLight",borderRadius:"3px","& svg":{ml:1,fontSize:"14px","&, &:hover":{cursor:"pointer"}}}};const C=[{key:"createOrChooseTag",text:"system.add_system_tags_modal.create_or_choose_tag"},{key:"relevantTagsNotice",text:"system.add_system_tags_modal.relevant_tags_n
1otice"}];var j=e=>{let{checkedTags:t,deletingHandler:r,setCheckedTags:o,creationHandler:n,setCreatedTag:s,createdTag:c}=e;const{t:u}=(0,i.$G)(),p=t.length>0;return(0,a.jsxs)(a.Fragment,{children:[C.map((e=>{let{key:t,text:r}=e;return(0,a.jsx)(d.Z,{variant:"body2",children:u(r)},t)})),(0,a.jsxs)(f.Z,{sx:[b.tagsContainer,{py:p?.5:1.25}],variant:"outlined",children:[(0,a.jsxs)(l.Z,{display:"flex",flexWrap:"wrap",onClick:e=>{const t=e.target.closest("svg");if(!t)return;const{id:o}=t.dataset||{};o&&r(+o)},flex:1,gap:1,children:[t.map((e=>(0,a.jsxs)(l.Z,{sx:b.tag,children:[e.name,(0,a.jsx)(y.Z,{fontSize:"small","data-id":e.id})]},e.id))),(0,a.jsx)(v.Z,{sx:b.tagField,variant:"outlined",required:!0,id:"tagCreator",name:"tagCreator",placeholder:"+ ".concat(u("system.add_tag")),onChange:e=>{s(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&(n&&n(c).then((e=>{e&&o([...t,e])})),s(""))},value:c,autoComplete:"off"})]}),p&&(0,a.jsx)(y.Z,{onClick:()=>{o([])}})]})]})},Z=r(59869),_=r(83316),T=r(72291);var S={searchField:{mt:3,"& .MuiSvgIcon-root":{color:"colors.iconSecondary","&, &:hover":{cursor:"pointer"}}}};var w=e=>{let{checkedTags:t,deletingHandler:r,setSearch:o,search:n}=e;const{t:s}=(0,i.$G)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.Z,{value:n,onChange:e=>{o(e.target.value)},id:"tagSearch",name:"tagSearch",placeholder:s("system.tag_search.search_tag"),sx:S.searchField,fullWidth:!0,InputProps:{endAdornment:(0,a.jsx)(_.Z,{position:"end",children:(0,a.jsx)(Z.Z,{})})}}),(0,a.jsx)(g.Z,{tags:t,onDelete:r,sx:{mt:3}})]})};const{SET_APPLIED_TAGS:k,SET_CHECKED_TAGS:M,SET_SEARCH:A,CLEAR_ALL:E}=o,L={appliedTags:[],checkedTags:[],search:""},I=(e,t)=>{switch(t.type){case k:var r;return{...e,appliedTags:null!==(r=t.payload.appliedTags)&&void 0!==r?r:[]};case M:var o;return{...e,checkedTags:null!==(o=t.payload.checkedTags)&&void 0!==o?o:[]};case A:var a;return{...e,search:null!==(a=t.payload.search)&&void 0!==a?a:""};case E:return L;default:return e}},B=e=>{let{open:t,onClose:r,onSave:o,onCreate:f,type:v=c.B.News,additionalText:y,initialData:b,withSearch:C}=e;const{t:Z}=(0,i.$G)(),_=(0,s.TL5)(),T=(0,s.CGy)((e=>(0,s.rH8)(e,v))),[S,B]=(0,n.useReducer)(I,L),{appliedTags:G,checkedTags:P,search:F}=S,{tags:D,appliedTags:H,checkedTags:R}=b||{},O=Array.isArray(D)&&Boolean(D.length),W=G.length>0,N=G.map((e=>{let{id:t}=e;return t})),z=Boolean(f),K=(0,n.useMemo)((()=>{const e=O?D:T,t=F?null===e||void 0===e?void 0:e.filter((e=>{var t,r;return null===(r=e.name)||void 0===r||null===(t=r.toLowerCase())||void 0===t?void 0:t.includes(F.toLowerCase())})):e;return W?t.filter((e=>{let{id:t}=e;return!N.includes(t)})):t}),[T,D,N,W,F]),V=P.map((e=>{let{id:t}=e;return t})),$=function(){B({type:M,payload:{checkedTags:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}})},q=function(){B({type:k,payload:{appliedTags:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}})};(0,n.useEffect)((()=>{R&&$(R)}),[R]),(0,n.useEffect)((()=>{H&&q(H)}),[H]),(0,n.useEffect)((()=>{O||_((0,s.XKn)({type:v}))}),[_,v,O]);const J=e=>{z&&B({type:A,payload:{search:""}});const{id:t=0,name:r}=e.target||{},o=+t;if(P.find((e=>e.id===o))){const e=P.filter((e=>e.id!==o));$(e)}else $([...P,{id:o,name:r}])},U=e=>{const t=t=>e!==+t.id;G.find((t=>e===+t.id))&&q(G.filter(t)),$(P.filter(t))},Y=e=>{B({type:A,payload:{search:e}})},Q=C?P.filter((e=>{let{id:t}=e;return!N.includes(t)})):[],X={handleClose:r,handleSave:()=>{o?o(P):r()},saveButtonProps:{color:"primary"}};return(0,a.jsxs)(u.Z,{open:t,onClose:r,width:600,title:Z("system.add_system_tags_modal.select_tag"),ActionButtons:(0,a.jsx)(p.Z,{...X}),children:[W&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{sx:m.appliedTagsWrapper,children:[(0,a.jsx)(d.Z,{variant:"h5",children:Z("system.add_system_tags_modal.applied_tags")}),(0,a.jsx)(d.Z,{onClick:()=>{B({type:E})},color:"primary",variant:"button2",className:"pointer",children:Z("system.add_system_tags_modal.clear_all_tags")})]}),(0,a.jsx)(g.Z,{tags:G,onDelete:U,sx:{mb:1.5}})]}),Boolean(y)&&(0,a.jsx)(d.Z,{variant:"body2",children:y}),z&&(0,a.jsx)(j,{checkedTags:P,deletingHandler:U,setCheckedTags:$,creationHandler:f,setCreatedTag:Y,createdTag:F}),C&&(0,a.jsx)(w,{checkedTags:Q,deletingHandler:U,search:F,setSearch:Y}),(0,a.jsx)(l.Z,{sx:m.bodyContainer,children:K.map((e=>{let{id:t,name:r}=e;return(0,a.jsx)(h.Z,{sx:m.tagItem,onChange:J,label:r,labelPlacement:"start",checked:V.includes(t),control:(0,a.jsx)(x.Z,{id:String(t),name:null!==r&&void 0!==r?r:void 0}),"data-testid":"checkboxLabel"},t)}))})]})};var G=(0,n.memo)(B,((e,t)=>!e.open&&!t.open))},40280:function(e,t,r){var o;r.d(t,{B:function(){return o}}),function(e){e.News="news",e.OnDemand="ondemand",e.Sessions="sessions",e.Groups="groups"}(o||(o={}))},65448:function(e,t,r){r.d(t,{K:function(){return a}});var o=r(18600);const a=e=>"https://".concat(o.g5.CLOUDFRONT_DOMAIN,"/common/").concat(e)},60046:function(e,t,r){var o=r(14672),a=r(2265),n=r(59791),s=r(54656);t.Z=()=>{const e=(0,o.CGy)(o.BFU),[t]=(0,s.Z)(["lang_fr"]),r=(0,a.useMemo)((()=>Object.entries(e||{}).filter((e=>{let[t]=e;return n.mT.includes(t)})).map((e=>{let[t,r]=e;return{value:t,text:r}}))),[e]),{length:i}=r;return{options:r,length:i,showLanguageSelector:i>1&&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.