1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2198],{72198:(e,r,t)=>{t.r(r),t.d(r,{CollectionRowV2:()=>p,default:()=>u});var o=t(42969);t(14232);var n=t(93851),i=t(49027),l=t(1211),c=t(37876);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){(0,o.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var p=function(e){var r=e.block,t=(0,l.Uf)().recordMap,a=r.parent_id,p=null==(v=t.collection[a])?void 0:v.value,u=null==p?void 0:p.schema;if(!p||!u)return null;var f=Object.keys(u).filter(function(e){return"title"!==e});if(null!=(d=p.format)&&d.property_visibility&&(f=f.filter(function(e){var t,o,n;return(null==(t=p.format.property_visibility.find(function(r){return r.property===e}))?void 0:t.visibility)!=="hide"&&((null==(o=p.format.property_visibility.find(function(r){return r.property===e}))?void 0:o.visibility)!=="hide_if_empty"||!!(null!=(n=r.properties)&&n[e]))})),null!=(y=p.format)&&y.collection_page_properties){var v,d,y,b,m=null==(b=p.format)?void 0:b.collection_page_properties.reduce(function(e,r,t){return s(s({},e),{},(0,o.A)({},r.property,t))},{});f.sort(function(e,r){return m[r]-m[e]}).reverse()}else f.sort(function(e,r){return u[e].name.localeCompare(u[r].name)});return(0,c.jsx)("div",{className:"notion-collection-row",children:(0,c.jsx)("div",{className:"notion-collection-row-body",children:f.map(function(e){var t,o=u[e];return(0,c.jsxs)("div",{className:"notion-collection-row-property","data-schemaid":e,children:[(0,c.jsx)(n.p,{schema:o}),(0,c.jsx)("div",{className:"notion-collection-row-value",children:(0,c.jsx)(i.m,{schema:o,data:null==(t=r.properties)?void 0:t[e],block:r,collection:p})})]},e)})})})};let u=p}}]);
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.