1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[6957],{59026:function(e,t,n){n.r(t);var l=n(86246),u=n(32005),i=n(44183),r=n.n(i),s=n(26322),a=n(26322);t.default=()=>{const{template:e}=(0,l.N5)(),{siteId:t,publicApiUrl:n,currentLang:i}=(0,l.ZN)(),{languageId:d,isHome:o,structuredDataContent:c,structuredData:f,pageLanguages:g}=(0,l.N5)(),{0:v,1:m}=(0,s.useState)([]),{0:p,1:h}=(0,s.useState)(null),{0:D,1:w}=(0,s.useState)(null),I=t=>{var n;const{trigger:l,target:u,startDate:r,endDate:s}=t,a=new Date;if(a.setHours(0,0,0,0),r&&a<new Date(r))return!1;if(s&&a>new Date(s))return!1;if(null!=l&&l.includes("showInAllSite"))return!0;if("StudyList"===(null==e?void 0:e.templateType)&&null!=l&&l.includes("showInAllStudyLists"))return!0;if(o&&null!=l&&l.includes("showInHome"))return!0;if("manual"===(null==u?void 0:u.mode)){var d;if(D)return u.fixed.includes(D);const e=null==g||null===(d=g.find(e=>e.languageId===i.id))||void 0===d?void 0:d.pageId;return u.fixed.includes(e)}if("auto"===(null==u?void 0:u.mode)&&(null==u||null===(n=u.sources)||void 0===n?void 0:n.length)>0)for(const e of u.sources)if(null!=e&&e.structuredData.includes(f)){var v;if(null!==(v=e.filters)&&void 0!==v&&v.length){const t=e.filters.map(e=>e.id),n=Object.values(c).flatMap(e=>Array.isArray(e)?e.map(e=>e.id):[]);return t.some(e=>n.includes(e))}return!0}return!1};return(0,s.useEffect)(()=>{r().get(`${n}/list/v2/MODALS/site/${t}/lang/${d}/`).then(e=>{const t=e.data.items;m(t)}),c&&r().get(`${n}/list/fixed/${c.id}/site/${t}/lang/${d}/includePending/on/get/id`).then(e=>{var t;const n=null===(t=e.data.items[0])||void 0===t?void 0:t.id;w(n||c.id)})},[]),(0,s.useEffect)(()=>{if(v.length&&(!c||D)){const e=v.find(I);e&&h(e)}},[v,D]),p?a.createElement(u.default,p):null}}}]);
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.