1(()=>{(function(){try{var _=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new _.Error().stack;d&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[d]="20eca4e1-94a1-4a55-bfe9-bfaa7c413e3d",_._sentryDebugIdIdentifier="sentry-dbid-20eca4e1-94a1-4a55-bfe9-bfaa7c413e3d")}catch(n){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[67439],{17582:((_,d,n)=>{n.d(d,{A:()=>T});var e=n(96540),P=n(85092),E=Object.defineProperty,b=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,I=(i,t,o)=>t in i?E(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o,m=(i,t)=>{for(var o in t||(t={}))L.call(t,o)&&I(i,o,t[o]);if(b)for(var o of b(t))M.call(t,o)&&I(i,o,t[o]);return i};const T=(i=>e.createElement(P.A,m({},i),e.createElement("path",{d:"M4 31.188v-30.375c0-0.563 0.25-0.813 0.813-0.813h6.438c0.5 0 0.75 0.25 0.75 0.813v30.375c0 0.563-0.25 0.813-0.75 0.813h-6.438c-0.563 0-0.813-0.25-0.813-0.813zM20 31.188v-30.375c0-0.563 0.25-0.813 0.813-0.813h6.438c0.5 0 0.75 0.25 0.75 0.813v30.375c0 0.563-0.25 0.813-0.75 0.813h-6.438c-0.563 0-0.813-0.25-0.813-0.813z"})))}),52144:((_,d,n)=>{n.r(d),n.d(d,{default:()=>y});var e=n(96540),P=n(36079),E=n(13516),b=n(90317),L=n(16433),M=n(36047),I=n(91443),m=Object.defineProperty,T=Object.defineProperties,i=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,h=(a,s,r)=>s in a?m(a,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[s]=r,p=(a,s)=>{for(var r in s||(s={}))o.call(s,r)&&h(a,r,s[r]);if(t)for(var r of t(s))D.call(s,r)&&h(a,r,s[r]);return a},A=(a,s)=>T(a,i(s));const B="v4",g="PREVIEW_READY",y=()=>{var a;const[s,r]=e.useState(null),[O,w]=e.useState(null),[C,W]=e.useState(null),[S,l]=e.useState(null),c=!!((a=S==null?void 0:S.items)!=null&&a.length);e.useEffect(()=>((0,I.p)(),window.parent.postMessage({paginationVersion:B},"*"),window.addEventListener("message",u,!1),()=>window.removeEventListener("message",u,!1)),[]);const u=v=>{const{data:{heroes:R,buckets:f,bucketShortcuts:K,heroLayout:x},origin:G}=v;G!==window.location.origin&&(R||f||K||x)&&(window.parent.postMessage(g,"*"),r(R),W(f),l(K),w(x))},U=()=>C.map((v,R)=>{var f;const K=A(p({},v),{bucketId:`${v.type}.${v.name}`,contentList:(f=v.contentList)==null?void 0:f.map(P.WD.normalizeContent)});return e.createElement(L.E,{key:v.exid,sectionId:null,bucket:K,rowPosition:R})}),H=()=>{const v=(S==null?void 0:S.iconsStatus)==="SHOW",R=S.items.map(f=>({id:f.exid,title:f.name,iconUrl:v&&f.iconUrl}));return e.createElement(b.B,{items:R})};return e.createElement("div",{className:"preview view"},e.createElement("div",{className:(0,E.AH)("section-wrapper","view","ready",c&&"section-wrapper--with-sidebar")},s&&e.createElement(M.A,{heroes:s,heroLayout:O}),e.createElement("div",{className:"section-wrapper__inner"},c&&H(),!!(C!=null&&C.length)&&e.createElement("div",{className:"content-wrapper"},U()))))}}),90317:((_,d,n)=>{n.d(d,{B:()=>i});var e=n(96540),P=n(63719),E=n(13516),b=n(90953),L=n(94962),M=n(17540),I=n(64759),m;(function(t){t.LOADING="loading",t.LOADED="loaded",t.ERROR="error"})(m||(m={}));const T=({item:t,isSelected:o,itemClick:D,index:h,itemFocus:p,showIcons:A})=>{const[B,g]=(0,e.useState)(m.LOADING),N=()=>D(t.id),y=()=>p==null?void 0:p(t.id),a=()=>g(m.LOADED),s=()=>
1g(m.ERROR),{imageType:r}=e.useContext(E.xK),O=(0,E.AH)("sidebar__item",`sidebar--icon-${B}`,o&&"selected");return e.createElement("button",{className:O,onClick:N,onFocus:y,title:t.description||t.title,"aria-label":t.title,"data-item-index":h,"data-item-id":t.id},t.iconUrl&&A&&e.createElement("img",{src:(0,E.vy)(t.iconUrl,"AUTO",60,r),alt:t.title,onLoad:a,onError:s,height:"25",width:"25"}),e.createElement("span",null,t.title))},i=({items:t,globalOnClick:o,globalOnFocus:D,isLoading:h,toggleMode:p,allCategoriesLabel:A,showIcons:B=!0,showLoader:g=!1,loadMore:N,highlightedItem:y})=>{const a=(0,E.AH)(P.k,"sidebar",h&&"sidebar--loading"),{settings:s}=(0,b.U)(),{setCSSProperty:r}=(0,M.E)(),[O,w]=e.useState(null),C=e.useRef(null);e.useEffect(()=>{y&&w(null)},[y]),(0,L.BL)(C.current,N),e.useEffect(()=>{r("--sidebar-item-font",s.SECONDARY_FONT_URL),r("--sidebar-bg-color",s.BG_COLOR);const l=t.find(c=>c.isSelected);return l&&w(l.id),()=>{r("--sidebar-item-font",null),r("--sidebar-bg-color",null)}},[r]);const W=e.useCallback(l=>{w(p&&l===O?null:l);const c=t.find(u=>u.id===l);o&&o(c),c!=null&&c.action&&c.action()},[t,o,O]),S=e.useCallback(l=>{if(D){const c=t.find(U=>U.id===l),u=t.indexOf(c);D(c,u)}},[t,D]);return e.createElement("div",{className:a},e.createElement("div",{className:"sidebar__content"},p&&e.createElement("button",{className:(0,E.AH)("sidebar__item",O===null&&"selected"),onClick:()=>W(null),"aria-label":A},e.createElement("span",null,A)),t.map((l,c)=>{var u;const U=(u=l.isSelected)!==null&&u!==void 0?u:l.id===O||l.id===y;return e.createElement(T,{key:l.id,item:l,isSelected:U,itemClick:W,itemFocus:S,showIcons:B,index:c})}),g&&e.createElement("div",{ref:C,className:"sidebar__content--loader"},e.createElement(I.A,{useRealmColor:!0,smallMode:!0}))),h&&e.createElement(I.A,{useRealmColor:!0}))}}),91443:((_,d,n)=>{n.d(d,{p:()=>P});var e=n(47393);const P=()=>e.eG.dismissBanner()})}]);})(); 2 3//# sourceMappingURL=section-preview.2b6819563192e24db393.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.