PageSourceSearch

https://www.fodboldbilleder.dk/_next/static/chunks/706-cb582954c6e21eb1.js

js fodboldbilleder.dk collected 2026-10-02 14:05:05 UTC 28,386 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[706],{30165:function(e,o,t){t.d(o,{Z:function(){return n}});var a=t(85893),l=t(99077);t(67294);var i=t(25617);function n(){let e=(0,i.v9)(l.L3),o=Object.values(l.xQ).map(e=>({id:e,Component:l.XS[e]}));return(0,a.jsx)(a.Fragment,{children:o.map(o=>{let{id:t,Component:l}=o,{open:i,hidden:n,onClose:r,config:s}=e[t];return i?(0,a.jsx)(l,{hidden:n,onClose:r,open:i,config:s},t):null})})}},57290:function(e,o,t){t.d(o,{Z:function(){return y}});var a=t(85893),l=t(67294),i=t(25617),n=t(51359),r=t(44723),s=t(70760),d=t(21485),c=t(88220),u=t(93043),p=t(92608),v=t(96954),x=t(74492),h=t(39604),m=t(93931),g=t(35023),f=t(39881),C=t(71055);function b(e){let{autoHideDuration:o=5e3,message:t="",subMessage:b="",severity:y="info",toastMaxWidth:j="800px",toastButtons:Z,"data-qa":k,id:R=Date.now().toString(),linkData:M,autoHidePaused:w,onClose:I,...S}=e,[q,T]=(0,l.useState)(!0),z=(0,i.I0)(),B=(0,C.a)("sm"),H=(e,o)=>{"clickaway"!==o&&(T(!1),clearInterval(_),I&&I(e,o),R&&z((0,n.jn)(R)))},W=!new DOMParser().parseFromString(t,"text/html").querySelector("script"),[L,P]=(0,l.useState)(0),[_,F]=(0,l.useState)();return l.useEffect(()=>{if(o){if(w)return clearInterval(_);{let e=Date.now();clearInterval(_),F(setInterval(()=>{P(t=>t>100?100:L+(Date.now()-e)/(o||1)*100)},10))}return()=>{clearInterval(_)}}},[w]),(0,a.jsx)(s.Z,{open:q,autoHideDuration:null===o||w?null:(o||0)*(1-L/100),id:R,disableWindowBlurListener:!0,"data-qa":"toast-bar",...S,onClose:H,children:(0,a.jsxs)(c.Z,{sx:{width:"inherit",height:"inherit"},children:[(0,a.jsx)(r.Z,{variant:"filled",severity:y,sx:e=>({p:0,borderRadius:w?"8px":"8px 8px 0px 0px",borderTop:"1px solid ".concat(e.palette.secondary.main),borderLeft:"1px solid ".concat(e.palette.secondary.main),borderRight:"1px solid ".concat(e.palette.secondary.main),boxShadow:"0px 8px 16px 0px rgba(0, 0, 0, 0.16)",backgroundColor:e.palette.psColors.white,color:e.palette.psColors.charcoal,maxWidth:j,width:"inherit",height:"inherit",overflow:"hidden",...B&&{flexWrap:"wrap",p:"4px 24px 8px 4px"},".MuiAlert-action":{alignItems:"center",p:0,m:0},".MuiAlert-message":{p:0}}),onClose:H,action:(0,a.jsxs)(c.Z,{sx:{pr:"16px",pl:"8px",display:"flex",gap:"8px",alignItems:"center"},children:[!!(null==Z?void 0:Z.length)&&(0,a.jsx)(a.Fragment,{children:Z.map(e=>{let{onClick:o,label:t,"data-qa":l,buttonColor:i}=e;return(0,a.jsx)(u.Z,{"data-qa":l,onClick:e=>{o&&o(e),H(e)},variant:"contained",color:null!=i?i:y,sx:{padding:"6px 16px",minHeight:"20px",height:"32px"},children:(0,a.jsx)(d.Z,{noWrap:!0,sx:e=>({fontSize:e.typography.sizeInPx[14],fontWeight:e.typography.fontWeightMedium}),children:t})},t)})}),(0,a.jsx)(f.Z,{mode:"icon",startIcon:(0,a.jsx)(x.Z,{}),onClick:H,label:"",size:"small",sx:e=>({color:e.palette.info.light,width:"24px",height:"24px",minHeight:"24px",...B&&{position:"absolute",top:"8px",right:"8px"}})})]}),"data-qa":null!=k?k:"toast-alert",icon:!1,children:(0,a.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"row",p:"16px",gap:"16px"},children:[!B&&(0,a.jsx)(c.Z,{sx:e=>({pr:"16px",display:"flex",alignItems:"center",borderRight:"1px solid ".concat(B?"transparent":e.palette.secondary.dark)}),children:"error"===y?(0,a.jsx)(h.Z,{filled:!0,color:y}):"success"===y?(0,a.jsx)(g.Z,{filled:!0,color:y}):(0,a.jsx)(m.Z,{filled:!0,color:y})}),(0,a.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",gap:(null==b?void 0:b.length)&&"4px"},children:[(0,a.jsx)(d.Z,{variant:"bodyLargeRegular","data-qa":"toast-message",sx:e=>({fontWeight:e.typography.fontWeightLight,color:e.palette.text.primary,a:{color:"inherit !important"}}),children:W?(0,a.jsx)(v.cC,{i18nKey:null==M?void 0:M.key,values:null==M?void 0:M.values,components:null==M?void 0:M.components,children:t}):t}),(0,a.jsx)(d.Z,{variant:"bodyRegular",sx:e=>({fontWeight:e.typography.fontWeightLight,color:e.palette.divider}),children:b})]})]})}),(0,a.jsx)(c.Z,{children:!(null==Z?void 0:Z.length)&&void 0!=_&&(0,a.jsx)(p.Z,{sx:{flexGrow:1,height:"4px",width:"100%",borderRadius:0,"& .MuiLinearProgress-bar":{transition:"none"}},color:y,value:L,variant:"determinate"})})]})})}function y(e){let{maxToasts:o=10,position:t="left"}=e,r=(0,i.I0)(),s=(0,i.v9)(n.m),d=(0,i.v9)(n.iE),u=(0,i.v9)(n.G5),p=(0,i.v9)(n.d8),v=(0,C.a)("md"),[x,h]=l.useState(!1),[m,g]=l.useState(),f=s.length>=o?s.slice(s.length-o,s.length):s;return(s.length>
1=o?s.slice(0,s.length-o):[]).forEach(e=>{e.id&&r((0,n.jn)(e.id))}),l.useEffect(()=>{var e;g(document.getElementById(null===(e=f[0])||void 0===e?void 0:e.id))},[f]),(0,a.jsx)(c.Z,{sx:{position:"fixed",zIndex:1400,display:"flex",width:"100%",height:"100%",flexDirection:"column-reverse",gap:0,alignItems:"right"===t?"flex-end":"flex-start",justifyContent:"end",padding:v?"8px":"20px",...!v&&{paddingLeft:"".concat(d+(u?p:0)+20,"px")},left:0,bottom:0,pointerEvents:"none",".MuiSnackbar-root":{position:"relative",pointerEvents:"auto",bottom:0,right:0,top:0,left:0}},onMouseEnter:()=>h(!0),onMouseLeave:()=>{h(!1)},children:f.map((e,o)=>(0,a.jsx)(b,{id:e.id,sx:{...!x&&0!==o&&{height:"".concat(null==m?void 0:m.clientHeight,"px !important"),width:"".concat(null==m?void 0:m.clientWidth,"px !important"),transform:"translateY(".concat(o*(v?95:85),"%) scale(").concat(100-9*o,"%,1)"),zIndex:1400-o},...x&&{borderTop:"10px solid transparent",transition:"transform 0.2s ease-in-out"}},autoHidePaused:x,onClose:()=>{0===o&&h(!1)},...e},e.id))})}},25298:function(e,o,t){t.d(o,{Z:function(){return i}});var a=t(85893);t(67294);var l=t(31589);function i(e){let{sx:o,filled:t=!1,...i}=e;return(0,a.jsx)(l.Z,{sx:[...Array.isArray(o)?o:[o]],viewBox:"0 0 24 24",...i,children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11C17.5 7.41015 14.5899 4.5 11 4.5ZM1.5 11C1.5 5.75329 5.75329 1.5 11 1.5C16.2467 1.5 20.5 5.75329 20.5 11C20.5 16.2467 16.2467 20.5 11 20.5C5.75329 20.5 1.5 16.2467 1.5 11Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5893 15.5894C16.1751 15.0036 17.1249 15.0036 17.7107 15.5894L22.0607 19.9394C22.6464 20.5252 22.6464 21.4749 22.0607 22.0607C21.4749 22.6465 20.5251 22.6465 19.9393 22.0607L15.5893 17.7107C15.0035 17.1249 15.0035 16.1752 15.5893 15.5894Z",fill:"currentColor"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9429 15.9429C16.3334 15.5524 16.9666 15.5524 17.3571 15.9429L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0977 20.6834 22.0977 20.2929 21.7071L15.9429 17.3571C15.5524 16.9666 15.5524 16.3334 15.9429 15.9429Z",fill:"currentColor"})]})})}},84095:function(e,o,t){t.d(o,{Z:function(){return i}});var a=t(85893);t(67294);var l=t(31589);function i(e){let{sx:o,filled:t=!1,...i}=e;return(0,a.jsx)(l.Z,{sx:[...Array.isArray(o)?o:[o]],viewBox:"0 0 24 24",...i,children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 7C8 6.44772 8.44772 6 9 6L20 6C20.5523 6 21 6.44771 21 7C21 7.55228 20.5523 8 20 8L9 8C8.44772 8 8 7.55228 8 7Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 17C4 16.4477 4.44772 16 5 16H18C18.5523 16 19 16.4477 19 17C19 17.5523 18.5523 18 18 18H5C4.44772 18 4 17.5523 4 17Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M17 20C18.6569 20 20 18.6569 20 17C20 15.3431 18.6569 14 17 14C15.3431 14 14 15.3431 14 17C14 18.6569 15.3431 20 17 20Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 14.5C15.6193 14.5 14.5 15.6193 14.5 17C14.5 18.3807 15.6193 19.5 17 19.5C18.3807 19.5 19.5 18.3807 19.5 17C19.5 15.6193 18.3807 14.5 17 14.5ZM13.5 17C13.5 15.067 15.067 13.5 17 13.5C18.933 13.5 20.5 15.067 20.5 17C20.5 18.933 18.933 20.5 17 20.5C15.067 20.5 13.5 18.933 13.5 17Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4.5C5.61929 4.5 4.5 5.61929 4.5 7C4.5 8.38071 5.61929 9.5 7 9.5C8.38071 9.5 9.5 8.38071 9.5 7C9.5 5.
161929 8.38071 4.5 7 4.5ZM3.5 7C3.5 5.067 5.067 3.5 7 3.5C8.933 3.5 10.5 5.067 10.5 7C10.5 8.933 8.933 10.5 7 10.5C5.067 10.5 3.5 8.933 3.5 7Z",fill:"currentColor"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7C10 6.44772 10.4477 6 11 6H20C20.5523 6 21 6.44772 21 7C21 7.55228 20.5523 8 20 8H11C10.4477 8 10 7.55228 10 7Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 17C4 16.4477 4.44772 16 5 16H14C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18H5C4.44772 18 4 17.5523 4 17Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 15C15.8954 15 15 15.8954 15 17C15 18.1046 15.8954 19 17 19C18.1046 19 19 18.1046 19 17C19 15.8954 18.1046 15 17 15ZM13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5C5.89543 5 5 5.89543 5 7C5 8.10457 5.89543 9 7 9C8.10457 9 9 8.10457 9 7C9 5.89543 8.10457 5 7 5ZM3 7C3 4.79086 4.79086 3 7 3C9.20914 3 11 4.79086 11 7C11 9.20914 9.20914 11 7 11C4.79086 11 3 9.20914 3 7Z",fill:"currentColor"})]})})}},40816:function(e,o,t){t.d(o,{Z:function(){return x}});var a=t(85893),l=t(67294),i=t(25617),n=t(34599),r=t(34853),s=t(40492),d=t(64142),c=t(93441),u=t(34332),p=t(51359),v=t(75942);function x(e){let{open:o=!0,onClose:t,onSubmit:x}=e,{t:h}=(0,d.Z)(["auth","common"]),m=(0,i.I0)(),[g,f]=(0,l.useState)({name:"",email:"",message:"",recaptcha_response:""}),{usePortalContact:C}=(0,u.Z)(),{selectors:b}=(0,c.aF)(),y=b.hasSession();(0,l.useEffect)(()=>{y&&f({...g,name:b.fullName(),email:b.email()})},[y]);let j=(0,l.useMemo)(()=>(0,v.vV)(g.email),[g]),Z=(0,l.useMemo)(()=>""!==g.email&&j&&""!==g.name&&""!==g.message&&""!==g.recaptcha_response,[g]),k=()=>{f({name:y?b.fullName():"",email:y?b.email():"",message:"",recaptcha_response:""})},R=async e=>{Z&&(e.preventDefault(),null==x||x(),C.mutate(g,{onSuccess:()=>{null==t||t(),k(),m((0,p.fz)({message:h("contact-success"),severity:"success"}))},onError:()=>{m((0,p.fz)({message:h("contact-error"),severity:"error"}))}}))};return(0,a.jsxs)(n.ZP,{open:o,size:"medium","data-qa":"contact-dialog",id:"contactDialog",buttonTray:[{label:h("common:send"),"data-qa":"contact-submit",onClick:R,disabled:!Z,loading:C.isPending,color:"primary",variant:"contained",isConfirmButton:!0}],hideCloseIcon:!t,handleCloseDialog:()=>{null==t||t()},title:h("contact"),autoFocusSelector:'input[type="text"]',sx:{"& .MuiDialogContent-root":{gap:"24px",display:"flex",flexDirection:"column"}},children:[(0,a.jsx)(s.Z,{InputLabelProps:{required:!0},"data-qa":"contact-name",label:h("common:name"),variant:"outlined",required:!0,disabled:y,value:g.name,onChange:e=>f({...g,name:e.target.value})}),(0,a.jsx)(s.Z,{InputLabelProps:{required:!0},"data-qa":"contact-email",label:h("email-label"),variant:"outlined",type:"email",required:!0,disabled:y,error:!j,value:g.email,onChange:e=>f({...g,email:e.target.value})}),(0,a.jsx)(s.Z,{InputLabelProps:{required:!0},multiline:!0,minRows:3,"data-qa":"contact-message",label:h("common:message"),variant:"outlined",required:!0,value:g.message,onChange:e=>f({...g,message:e.target.value})}),(0,a.jsx)(r.Z,{sitekey:"6LewpjsiAAAAANsemXfj1UcJzGRSMZYvpNwlHpc5",onChange:e=>{f({...g,recaptcha_response:e})}})]})}},12327:function(e,o,t){t.d(o,{Z:function(){return P}});var a=t(85893),l=t(67294),i=t(64142),n=t(25617),r=t(77527),s=t(21485),d=t(88220),c=t(49634),u=t(39881),p=t(11306),v=t(14e3),x=t(44044),h=t(93441),m=t(32550),g=t(40816),f=t(11163),C=t(51359),b=t(75942),y=t(72247),j=t(3180),Z=t(71055),k=t(74492),R=t(80459),M=t(10025),w=t(47860),I=t(92238),S=t(31589);function q(e){let{...o}=e;return(0,a.jsx)(S.Z,{viewBox:"0 0 24 24",...o,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H4C3.44772 7 3 6.55228 3 6ZM3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12ZM4 17C3.44772 17 3 17.4477 3 18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H4Z",fill:"currentColor"})})}var T=t(43834),z=t(6348),B=t(84095),H=t(9601),W=t(21156);let L=(0,r.ZP)(e=>(0,a.jsx)(s.Z,{variant:"bodyLargeRegular",...e}),{shouldForwardProp:e=>"linkColor"!==e})(e=>{let{theme:o,linkColor:t}=e;return{fontWeight:o.typography.fontWeightMedium,color:t||"inherit","&:hover":{opacity:".8"}}});function P(e){var o,t,r,S,P,_,F,A,D,E,O,N,Q,U;let{showSearch:X,showLeftPane:G}=e,{t:K}=(0,i.Z)(["common","glossary","settings"]),Y=(0,Z.a)("md"),J=(0,n.I0)(),V=(0,f.useRouter)(),{lumenMenuItems:$}=(0,j.Z)(),[ee,eo]=(0,l.useState)(),[et,ea]=(0,l.useState)(!1),el=(0,p.hg)(),ei=(0,n.v9)(x.fO),en=(0,n.v9)(x.ST),er=(0,p.EW)(),es=(0,p.bm)(),ed=(0,p.Ye)(),ec=(0,p.XX)(),{selectors:eu,isPending:ep}=(0,h.aF)(),{data:ev}=(0,v.qZ)({org_id:ei}),{data:ex}=(0,v.BJ)(),eh=null!==(U=null==ex?void 0:null===(t=ex.data)||void 0===t?void 0:null===(o=t.attributes)||void 0===o?void 0:o.sso_url)&&void 0!==U?U:"",em=eu.orgRole(),eg=(0,n.v9)(C.a3),ef=(0,n.v9)(C.Hq),[eC,eb]=(0,l.useState)(!1),ey=(0,w.L)(),ej=Y&&!en,eZ=e=>{if("internal"!==e.type)return e;switch(e.name){case"Home":return{...e,url:"".concat(el||"/")};case"Galleries":return{...e,url:"".concat(el,"/library")};case"Workspaces":return{...e,url:"".concat(el,"/library/ws")};
1case"Contact":return{...e,ariaHasPopup:"dialog",ariaControls:"contactDialog",callback:()=>{ea(!0)}};case"Templates":return{...e,...eu.hasSession()?{url:"".concat(el,"/templates")}:{callback:()=>{eo("login")}}};case"Help":return{...e,url:"https://support.photoshelterbrands.com/hc/en-us/categories/115000009254-PhotoShelter-for-Brands"};case"Lightboxes":return null;case"Cart":var o;return{...e,url:(null==V?void 0:null===(o=V.query)||void 0===o?void 0:o.portalName)?"".concat("https://www.photoshelter.com".replace(RegExp("(?<=\\/)([^/]+?)(?=\\.)"),V.query.portalName)).concat(e.url):e.url};default:return e}},ek=(0,l.useMemo)(()=>{var e,o,t,l,i,n,r,u,p,v,x,h,m,g,f,C,b,y,j,Z,k,R,M,w;return(0,a.jsx)(c.Z,{href:el||"/",children:(null==ev?void 0:null===(l=ev.data)||void 0===l?void 0:null===(t=l.attributes)||void 0===t?void 0:null===(o=t.branding)||void 0===o?void 0:null===(e=o.logo)||void 0===e?void 0:e.selected)==="text"?(0,a.jsx)(s.Z,{sx:{color:(null==ev?void 0:null===(u=ev.data)||void 0===u?void 0:null===(r=u.attributes)||void 0===r?void 0:null===(n=r.branding)||void 0===n?void 0:null===(i=n.color)||void 0===i?void 0:i["color-nav"])||"inherit"},children:null==ev?void 0:null===(h=ev.data)||void 0===h?void 0:null===(x=h.attributes)||void 0===x?void 0:null===(v=x.branding)||void 0===v?void 0:null===(p=v.logo)||void 0===p?void 0:p.text}):(0,a.jsx)(a.Fragment,{children:(null==ev?void 0:null===(C=ev.data)||void 0===C?void 0:null===(f=C.attributes)||void 0===f?void 0:null===(g=f.branding)||void 0===g?void 0:null===(m=g.logo)||void 0===m?void 0:m.asset)&&(0,a.jsx)(d.Z,{component:"img",alt:null==ev?void 0:null===(Z=ev.data)||void 0===Z?void 0:null===(j=Z.attributes)||void 0===j?void 0:null===(y=j.branding)||void 0===y?void 0:null===(b=y.logo)||void 0===b?void 0:b.text,src:"https://www.photoshelter.com/asset-get/"+(null==ev?void 0:null===(w=ev.data)||void 0===w?void 0:null===(M=w.attributes)||void 0===M?void 0:null===(R=M.branding)||void 0===R?void 0:null===(k=R.logo)||void 0===k?void 0:k.asset),sx:{maxHeight:"56px",width:"auto",maxWidth:"176px",objectFit:"contain"}})})})},[null==ev?void 0:null===(_=ev.data)||void 0===_?void 0:null===(P=_.attributes)||void 0===P?void 0:null===(S=P.branding)||void 0===S?void 0:null===(r=S.logo)||void 0===r?void 0:r.asset,null==ev?void 0:null===(D=ev.data)||void 0===D?void 0:null===(A=D.attributes)||void 0===A?void 0:null===(F=A.branding)||void 0===F?void 0:F.logo]),eR=null==ev?void 0:null===(Q=ev.data)||void 0===Q?void 0:null===(N=Q.attributes)||void 0===N?void 0:null===(O=N.navigation)||void 0===O?void 0:null===(E=O.links)||void 0===E?void 0:E.filter(e=>e.visible).map(e=>{var o,t,l,i;let n=eZ(e);if(!n)return;let r=(0,a.jsx)(u.Z,{variant:"text",size:Y?"xsmall":"large","data-qa":"menu-".concat((0,b.wX)(null==n?void 0:n.name.split(" ").join(""))||""),...(null==n?void 0:n.ariaHasPopup)&&{"aria-haspopup":n.ariaHasPopup},...(null==n?void 0:n.ariaControls)&&{"aria-controls":n.ariaControls},sx:e=>({"&:focus-visible":{outline:"3px solid",borderRadius:"4px"},...Y&&{".MuiTypography-root":{fontSize:"".concat(e.typography.sizeInPx[16]," !important")}}}),label:(0,a.jsx)(L,{linkColor:null==ev?void 0:null===(i=ev.data)||void 0===i?void 0:null===(l=i.attributes)||void 0===l?void 0:null===(t=l.branding)||void 0===t?void 0:null===(o=t.color)||void 0===o?void 0:o["color-link"],children:"internal"===n.type?K("settings:portal:navigation:system-link-".concat((0,b.wX)(n.name))):null==n?void 0:n.name}),...n.url&&!n.callback&&{href:n.url},...n.callback&&{onClick:n.callback}},(null==n?void 0:n.name)||(null==n?void 0:n.url));return Y?(0,a.jsx)(I.Z,{mode:"other",control:r,sx:{".MuiButtonBase-root":{width:"100%",justifyContent:"flex-start"}}}):r}),eM=(0,a.jsx)(M.Z,{open:!ef,width:.8*ey,onClose:()=>J((0,C.UQ)(!1)),children:(0,a.jsx)(d.Z,{component:"ul",id:"mobile-nav",sx:{display:"flex",flexDirection:"column",gap:"8px",p:"16px",m:0,width:"100%"},children:eR})});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(d.Z,{component:"header","data-qa":"portal-nav-bar",sx:e=>{var o,t,a,l;return{gridArea:"navBar",display:"flex",position:"relative",width:"100%",maxWidth:"100vw",height:Y?"56px":"72px",padding:Y?"8px 12px":"16px 24px",backgroundColor:ej?e.palette.dark.main:(null==ev?void 0:null===(l=ev.data)||void 0===l?void 0:null===(a=l.attributes)||void 0===a?void 0:null===(t=a.branding)||void 0===t?void 0:null===(o=t.color)||void 0===o?void 0:o["color-foreground"])||e.palette.background.default,borderBottom:"1px solid ".concat(ej?e.palette.dark.light:e.palette.secondary.main),justifyContent:"space-between",...Y&&{zIndex:e.zIndex.drawer+1,alignItems:"center"}}},children:[eC||Y&&ec?(0,a.jsxs)(d.Z,{sx:{display:"flex",gap:"8px",width:"100%"},children:[(0,a.jsx)(z.Z,{terms:es,anchorMediaId:ed,size:"small",autofocus:!0,color:ej?"dar
1k":"secondary",sx:{".MuiTextField-root > .MuiInputBase-root":{px:"4px !important",gap:"4px !important","> .MuiBox-root":{gap:"4px"},"> input":{px:"4px !important"}}}}),(0,a.jsx)(u.Z,{tabIndex:0,label:K("library:search-filters"),mode:"icon","aria-label":K("library:search-filters"),size:"small",color:ej?"dark":"secondary",variant:en?"transparent":"contained",startIcon:(0,a.jsx)(B.Z,{}),...ec?{active:eg,"aria-label":K("common:search-filters"),"aria-controls":"library-tree","aria-expanded":eg,onClick:()=>{J((0,C.iQ)()),J((0,C.KW)()),J((0,C.UQ)(!1))}}:{href:"".concat(el,"/library/search")}}),(0,a.jsx)(u.Z,{tabIndex:0,label:K("common:close"),mode:"icon",size:"small",color:ej?"dark":"secondary",variant:en?"transparent":"contained",startIcon:(0,a.jsx)(k.Z,{}),...ec?{href:"".concat(el,"/library")}:{onClick:()=>{eb(!1)}}})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",gap:Y?"8px":"24px","> a":{lineHeight:0}},children:[Y&&(0,a.jsx)(u.Z,{mode:"icon",size:"small",color:ej?"dark":"secondary",variant:en?"transparent":"contained","aria-label":"".concat(K("common:toggle")," ").concat(K("common:left-pane")),"aria-controls":"mobile-nav","aria-expanded":!ef,active:!ef,onClick:()=>{J((0,C.zv)()),J((0,C.KW)()),J((0,C.UQ)(ef))},startIcon:ef?(0,a.jsx)(q,{}):(0,a.jsx)(k.Z,{})}),Y&&!en?(0,a.jsx)(W.Z,{showLabel:!1}):ek,!Y&&en&&eR,Y&&en&&eM]}),(0,a.jsxs)(d.Z,{sx:{display:"flex",gap:"8px"},children:[Y&&(en&&!er||!en)&&X&&(0,a.jsx)(u.Z,{mode:"icon",size:"small",color:ej?"dark":"secondary",variant:en?"transparent":"contained","aria-label":K("common:search"),onClick:()=>{J((0,C.zv)()),J((0,C.KW)()),J((0,C.UQ)(!1)),eb(!0)},startIcon:(0,a.jsx)(T.Z,{})}),eu.hasSession()&&(0,a.jsxs)(d.Z,{sx:{gap:Y?"8px":"24px",display:"flex"},children:["Contributor"===em&&(0,a.jsx)(u.Z,{label:K("upload"),variant:"contained",color:"secondary",size:Y?"small":"large",mode:Y?"icon":"text",startIcon:Y?(0,a.jsx)(H.Z,{}):void 0,LinkComponent:c.Z,href:"".concat(el,"/asset-upload")}),(0,a.jsx)(y.Z,{menuItems:$,transformOrigin:{vertical:"top",horizontal:"right"},mode:Y?"button":"avatar",buttonProps:{variant:en?"transparent":"contained",color:ej?"dark":"secondary"},sx:e=>({gap:"16px","& >.MuiBox-root >span:first-of-type":{...e.mixins.textOverflow,fontSize:e.typography.sizeInPx[16],fontWeight:e.typography.fontWeightMedium}})})]}),!eu.hasSession()&&!ep&&(0,a.jsxs)(d.Z,{sx:{gap:"16px",display:"flex"},children:[(0,a.jsx)(u.Z,{label:K("login"),variant:"text",color:"secondary",mode:"text","aria-haspopup":"dialog",size:Y?"small":"large",onClick:()=>eo(eh?"sso":"login"),sx:e=>{var o,t,a,l,i,n,r,s,d,c,u,p;return{color:(null==ev?void 0:null===(l=ev.data)||void 0===l?void 0:null===(a=l.attributes)||void 0===a?void 0:null===(t=a.branding)||void 0===t?void 0:null===(o=t.color)||void 0===o?void 0:o["color-link"])||e.palette.secondary.contrastText,"&:hover":{color:(null==ev?void 0:null===(s=ev.data)||void 0===s?void 0:null===(r=s.attributes)||void 0===r?void 0:null===(n=r.branding)||void 0===n?void 0:null===(i=n.color)||void 0===i?void 0:i["color-link"])||e.palette.text.secondary,opacity:(null==ev?void 0:null===(p=ev.data)||void 0===p?void 0:null===(u=p.attributes)||void 0===u?void 0:null===(c=u.branding)||void 0===c?void 0:null===(d=c.color)||void 0===d?void 0:d["color-link"])?".8":"1"}}}}),(0,a.jsx)(u.Z,{label:K("signup"),variant:"contained",color:"secondary",mode:"text","aria-haspopup":"dialog",size:Y?"small":"large",onClick:()=>{eo("signup")}}),(0,a.jsx)(m.Z,{open:!!ee,canSignUp:!0,onClose:()=>{eo(null)},mode:ee||"login",onLogin:()=>{V.push(V.asPath,void 0).then(()=>{eo(null)})}})]}),Y&&(en&&!er||!en)&&G&&(0,a.jsx)(u.Z,{mode:"icon",size:"small",color:ej?"dark":"secondary",variant:en?"transparent":"contained",active:eg,"aria-label":K("common:toggle-library-tree"),"aria-controls":"library-tree","aria-expanded":eg,onClick:()=>{J((0,C.iQ)()),J((0,C.KW)()),J((0,C.UQ)(!1))},startIcon:eg?(0,a.jsx)(k.Z,{}):(0,a.jsx)(R.Z,{})})]})]}),(0,a.jsx)(g.Z,{open:et,onClose:()=>ea(!1)})]})})}},6348:function(e,o,t){t.d(o,{Z:function(){return w}});var a=t(85893),l=t(67294),i=t(11163),n=t(25617),r=t(64142),s=t(16829),d=t(86330),c=t(88220),u=t(25298),p=t(62467),v={src:"/_next/static/media/aisearch.a03fbf92.svg"},x=t(93441),h=t(11306),m=t(44044),g=t(21485),f=t(95611),C=t(98710),b=t(44738),y=t(39881),j=t(7169),Z=t(1300),k=t(11692),R=t(29336);let M=(0,s.Z)("form")(()=>({width:"100%",display:"flex",gap:"16px",justifyContent:"center",alignItems:"center"}));function w(e){var o,t,s;let{terms:w,anchorMediaId:I,showSearchAction:S,size:q="medium",autofocus:T=!1,color:z="secondary",sx:B}=e,H="dark"===z,{t:W}=(0,r.Z)(["common"]),L=(0,i.useRouter)(),[P,_]=(0,l.useState)(w),[F,A]=(0,l.useState)(!1),D=(0,n.v9)(m.F1),E=(0,h.XX)(),O=(0,n.v9)(m.ST),N=(0,n.v9)(m.fO),Q=(0,n.v9)(m.ZZ),{openAsset:U}=(0,k.f)({assets:[]}),{cid:X,gid:G,oid:K}=Q,Y=G||(0,R.l)(null===(o=L.query)||void 0===o?void 0:o.galleries)||"",J=X||(null===(t=L.query)||void 0===t?void 0:t.collections)||"",[V,$]=(0,l.useState)(G||X||K||"");(0,l.useEffect)(()=>{$(Y||J||K||"")},[K,Y,J]);let[ee,eo]=(0,l.useState)(!D&&"true"===L.query.aivs),{selectors:{hasTicket:et},isPending:ea}=(0,x.Uo)({account_id:N,tickets:[d.gx.ResourceTickets.ResourceTicketsBase.MagicSearch,d.gx.ResourceTickets.ResourceTicketsBase.SmartMetadata]});(0,l.useEffect)(()=>{L.pathname.includes("search")&&(!I||ee)&&E&&!ea&&es(void 0,"toggle",w)},[ee,ea,V]);let{settings:el,isPending:ei}=(0,Z.A4)({id:"global",owner_id:N},O&&et(d.gx.ResourceTickets.ResourceTicketsBase.MagicSearch||et(d.gx.ResourceTickets.ResourceTicketsBase.SmartMetadata)));(0,l.useEffect)(()=>{(w||""===w)&&_(w)},[w]);let en=(0,h.hg)(),{slug:er}=(0,h.h)(),es=(e,o,t)=>{var a,l,i;null==e||e.preventDefault();let n=void 0!==t?t:P;if("toggle"===o||n!==(null===(a=L.query)||void 0===a?void 0:a.terms)||ee!==((null===(l=L.query)||void 0===l?void 0:l.aivs)==="true")){if(A(!0),L.pathname.includes("search")&&!er){let{aivs:e,anchor_media_id:t,galleries:a,collections:l,...i}=L.query,r=ee!==("true"===L.query.aivs);L.replace({pathname:"".concat(en,"/library/search"),query:{...i,...V&&a&&{galleries:a},...V&&l&&{collections:l},...et(d.gx.ResourceTickets.ResourceTicketsBase.MagicSearch)&&ee&&{aivs:"true"},..."toggle"===o&&ee&&r&&{media_type:[d.xB.ResourceType.image]},..."toggle"===o&&!ee&&{media_type:[]},terms:n}}).then(()=>A(!1))}else{let e=K&&V?"/".concat(K):"";L.push({pathname:"".concat(en,"/library/search").concat(e),query:{terms:n,...et(d.gx.ResourceTickets.ResourceTicketsBase.MagicSearch)&&ee?{aivs:"true"}:{},...I&&!ee?{anchor_media_id:I}:{},include_tags:!O||!ei&&(null==el?void 0:null===(i=el.attributes)||void 0===i?void 0:i.portal_search_ml),recycle:!1,...V&&d.cO.getResourceTypeFromId(V)===d.xB.ResourceType.gallery&&{galleries:Y},...V&&d.cO.getResourceTypeFromId(V)===d.xB.ResourceType.collection&&{collections:J},match_all_terms:!0,...L.query.portalName?{portalName:L.query.portalName}:{}}}).then(()=>A(!1))}}},ed=(0,a.jsx)(u.Z,{sx:e=>({width:"20px !important",height:"20px !important",color:H?e.palette.psColors.storm:e.palette.info.light})}),ec=(!O||!ei&&(null==el?void 0:null===(s=el.attributes)||void 0===s?void 0:s.portal_search_magic))&&!D&&et(d.gx.ResourceTickets.ResourceTicketsBase.MagicSearch)?(0,a.jsx)(c.Z,{sx:{display:"flex",alignItems:"center",gap:"16px"},children:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(j.Z,{sx:{maxWidth:"200px"},title:(0,a.jsxs)(c.Z,{textAlign:"left",children:[(0,a.jsx)(g.Z,{variant:"bodySmallMedium",fontWeight:e=>e.typography.fontWeightBold,children:W("common:aivs-search-disclosure-visual-search")}),W("common:aivs-search-disclosure")]}),children:(0,a.jsx)(f.Z,{position:"start",sx:e=>
1({color:H?e.palette.dark.contrastText:e.palette.secondary.contrastText,height:"24px",mr:0,borderRight:"".concat(H?2:1,"px solid ").concat(H?e.palette.psColors.nickel:e.palette.secondary.dark)}),children:(0,a.jsx)(p.Z,{isChecked:ee,color:z,adornment:v.src,toggleCallback:e=>{eo(e)},sx:{".MuiSwitch-root":{ml:"10px"}},"aria-label":"".concat(W("common:toggle")," ").concat(W("common:ai")," ").concat(W("common:search"))})})})})}):(0,a.jsx)(a.Fragment,{});return(0,a.jsxs)(M,{onSubmit:es,"data-qa":"search-form",role:"search",children:[(0,a.jsx)(b.Z,{disablePortal:!0,displayAsPill:!0,color:z,"data-qa":"search-bar-input","aria-label":W("search"),placeholder:W(ee?"visual-search":"search"),disabled:F,loading:F,autofocus:T,startAdornment:(0,a.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"row",gap:"16px"},children:[ec,ed]}),initialId:V||"",initialInputValue:P,onChange:(e,o)=>{"selectOption"===o&&U.callback({item:null==e?void 0:e[0],includeQuery:!1,includeSharedOrg:!1}),"createOption"===o&&(_(e),es(void 0,"submit")),"removeOption"===o&&$("")},onInputChange:(e,o)=>{_(o)},sx:[e=>({borderRadius:"24px",flexGrow:1,".MuiTextField-root":{mt:0,"> .MuiInputBase-root":{p:"4px 16px !important","> fieldset":{border:"none !important"}}},".MuiInputBase-root":{height:"small"===q?"32px":"40px",gap:"8px !important",..."small"===q&&{padding:"4px 8px !important"},backgroundColor:H?e.palette.psColors.charcoal:e.palette.secondary.main,...H&&{border:"1px solid ".concat(e.palette.psColors.nickel)},"&:hover":{backgroundColor:"".concat((0,C.Fq)(H?e.palette.dark.light:e.palette.secondary.main,.6)," !important")},"&.Mui-focused":{backgroundColor:"".concat(H?e.palette.psColors.charcoal:e.palette.background.default," !important")}},".MuiChip-root":{backgroundColor:H?e.palette.dark.light:e.palette.secondary.dark,...H&&{color:e.palette.common.white}}}),...Array.isArray(B)?B:[B]]}),S&&(0,a.jsx)(y.Z,{label:W("search"),onClick:es,variant:"contained",color:"primary"})]})}}}]);

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.