text: (self.webpackChunklite=self.webpackChunklite||[]).push([[8331],{89392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(67294);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o=i.createElement("path",{clipRule:"evenodd",d:"M3 3.35c0-1.26 1.11-2.3 2.5-2.3S8 2.1 8 3.35v2.6H3zm6 2.6v-2.6C9 1.52 7.42.05 5.5.05S2 1.52 2 3.35v2.6a2 2 0 0 0-2 2v4a1.99 1.99 0 0 0 2 2h7a2 2 0 0 0 2-2v-4a1.99 1.99 0 0 0-2-2z",fill:"#a8a8a8",fillRule:"evenodd"});const r=function(e){return i.createElement("svg",a({fill:"none",height:14,viewBox:"0 0 11 14",width:11},e),o)}},66612:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,l:()=>u});var i=n(28655),a=n.n(i),o=n(71439),r=n(67294),l=n(27721),c=n(42933);function s(){var e=a()(["\n  fragment BookCover_bookEdition on BookEdition {\n    cover\n  }\n"]);return s=function(){return e},e}var d=function(e){var t=e.bookEdition,n=e.width,i=e.marginRight,a=e.marginBottom,o=e.marginLeft,s=e.marginTop,d=e.height,u=e.strategy;return r.createElement(c.x,{marginRight:i,marginLeft:o,marginTop:s,marginBottom:a},t.cover?r.createElement(l.UV,{miroId:t.cover,width:n,height:d,strategy:u}):r.createElement(c.x,{height:"".concat(d||1.5*n,"px"),width:"".concat(n,"px"),backgroundColor:"BASE_NORMAL"}))},u=(0,o.Ps)(s())},73976:(e,t,n)=>{"use strict";n.d(t,{n:()=>x,E:()=>w});var i=n(28655),a=n.n(i),o=n(71439),r=n(67294),l=n(42933),c=n(4353),s=n(98024),d=n(71229),u=n(6688),g=n(14391),m=n(89392),p=n(66137),f=n(24821);function v(){var e=a()(["\n  fragment CatalogAddToListItem_catalog on Catalog {\n    id\n    name\n    visibility\n    predefined\n    version\n    itemsConnection(pagingOptions: $pagingOptions) {\n      items {\n        ...CatalogAddToListItem_catalogItemV2\n      }\n    }\n    ...WithToggleInsideCatalog_catalog\n  }\n  ","\n  ","\n"]);return v=function(){return e},e}function h(){var e=a()(["\n  fragment CatalogAddToListItem_catalogItemV2 on CatalogItemV2 {\n    catalogItemId\n    entity {\n      __typename\n      ... on Post {\n        id\n      }\n      ... on BookEdition {\n        id\n      }\n    }\n  }\n"]);return h=function(){return e},e}var I={display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px","& > label":{width:"calc(100% - 10px)","& > div":{flexShrink:0},"& > p":{marginRight:"10px",textAlign:"left"}}};function y(e){var t=e.catalog,n=e.target,i=e.kind,a=e.queryVariablesOptions,o=(0,u.I)();return r.createElement(f.jo,{target:n,kind:i,catalog:t,variablesOptions:a},(function(e){var n=e.toggleInsideCatalog,i=e.isInsideCatalog,a=e.loading,l=t.predefined?(0,p.S)(t.predefined):t.name;return r.createElement("div",{className:o(I)},r.createElement(d.X,{key:t.id,checked:i,checkboxStyle:"OBVIOUS",onChange:n,disabled:a||t.visibility===g.n2.LOCKED,textScale:"L",clampText:1},l),t.visibility!==g.n2.PUBLIC&&r.createElement(m.Z,null))}))}var C=(0,o.Ps)(h()),E=(0,o.Ps)(v(),C,f.sC);function b(){var e=a()(["\n  fragment CatalogAddToList_catalog on Catalog {\n    ...CatalogAddToListItem_catalog\n  }\n  ","\n"]);return b=function(){return e},e}function x(e){var t=e.target,n=e.kind,i=e.catalogs,a=e.isLoading,o=e.queryVariablesOptions;return a?r.createElement(l.x,{display:"flex",justifyContent:"center",padding:"40px 0"},r.createElement(s.F,{color:"DARKER",scale:"L"},r.createElement(c.T,null))):i?r.createElement(r.Fragment,null,i.map((function(e){return r.createElement(y,{key:e.id,catalog:e,target:t,kind:n,queryVariablesOptions:o})}))):null}var w=(0,o.Ps)(b(),E)},24821:(e,t,n)=>{"use strict";n.d(t,{jo:()=>m,sC:()=>p,tA:()=>f,m7:()=>v});var i=n(28655),a=n.n(i),o=n(63038),r=n.n(o),l=n(71439),c=n(67294),s=n(57768);function d(){var e=a()(["\n  fragment WithToggleInsideCatalog_post on Post {\n    id\n    viewerEdge {\n      catalogsConnection {\n        catalogsContainingThis(type: LISTS) {\n          catalogId\n        }\n        predefinedContainingThis {\n          predefined\n        }\n      }\n    }\n  }\n"]);return d=function(){return e},e}function u(){var e=a()(["\n  fragment WithToggleInsideCatalog_bookEdition on BookEdition {\n    id\n    viewerEdge {\n      catalogsConnection {\n        catalogsContainingThis(type: LISTS) {\n          catalogId\n        }\n        predefinedContainingThis {\n          predefined\n        }\n      }\n    }\n  }\n"]);return u=function(){return e},e}function g(){var e=a()(["\n  fragment WithToggleInsideCatalog_catalog on Catalog {\n    id\n    version\n    predefined\n  }\n"]);return g=function(){return e},e}function m(e){var t,n,i=e.children,a=e.target,o=e.kind,l=e.catalog,d=c.useMemo((function(){if(l.predefined){var e,t=null===(e=a.viewerEdge.catalogsConnection)||void 0===e?void 0:e.predefinedContainingThis.find((function(e){return e.predefined===l.predefined}));return[!!t,null==t?void 0:t.catalogItemIds]}var n,i=null===(n=a.viewerEdge.catalogsConnection)||void 0===n?void 0:n.catalogsContainingThis.find((function(e){return e.catalogId===l.id}));return[!!i,null==i?void 0:i.catalogItemIds]}),[l.predefined,l.id,a.viewerEdge]),u=r()(d,2),g=u[0],m=u[1],p=(0,s.qY)(l.id,l.version,a.id,o,null!==(t=l.predefined)&&void 0!==t?t:void 0),f=r()(p,2),v=f[0],h=f[1].loading,I=(0,s.jN)(l.id,l.version,a.id,o,m||[],null!==(n=l.predefined)&&void 0!==n?n:void 0),y=r()(I,2),C=y[0],E=y[1].loading;return i({toggleInsideCatalog:g?C:v,isInsideCatalog:g,loading:h||E})}var p=(0,l.Ps)(g()),f=(0,l.Ps)(u()),v=(0,l.Ps)(d())},19661:(e,t,n)=>{"use strict";n.d(t,{Rw:()=>p,Y_:()=>h,u1:()=>I});var i=n(28655),a=n.n(i),o=n(71439),r=n(67294),l=n(66612),c=n(27721),s=n(42933),d=n(6688),u=n(51299),g=n(90038);function m(){var e=a()(["\n  fragment CatalogCovers_catalogItemV2 on CatalogItemV2 {\n    catalogItemId\n    entity {\n      __typename\n      ... on BookEdition {\n        ...BookCover_bookEdition\n      }\n      ... on Post {\n        previewImage {\n          id\n          alt\n        }\n      }\n    }\n  }\n  ","\n"]);return m=function(){return e},e}var p=336,f=function(e,t){var n=t?-20:-80,i=t?0:-130;return{position:"relative",borderRight:e<2?"".concat(3,"px solid #FFFFFF"):void 0,zIndex:3-e,marginLeft:1===e?"".concat(n,"px"):2===e?"".concat(i,"px"):void 0}},v=function(e){var t,n=e.catalogItem,i=e.size,a=null==n?void 0:n.entity,o=r.createElement(s.x,{height:"".concat(i,"px"),width:"".concat(i,"px"),backgroundColor:"BASE_NORMAL"});return a&&("BookEdition"===a.__typename?o=r.createElement(l.F,{bookEdition:a,width:i,height:i,strategy:g._S.Crop}):"Post"===a.__typename&&null!==(t=a.previewImage)&&void 0!==t&&t.id&&(o=r.createElement(c.UV,{miroId:a.previewImage.id,alt:a.previewImage.alt||"",width:i,height:i,strategy:g._S.Crop}))),r.createElement(s.x,{height:"".concat(i,"px")},o)},h=function(e){var t=e.catalogItems,n=e.isMobile,i=(0,d.I)(),a=(0,u.U)(),o=t.filter((function(e){var t,n=e.entity;return!("Post"!==(null==n?void 0:n.__typename)||null===(t=n.previewImage)||void 0===t||!t.id)||!("BookEdition"!==(null==n?void 0:n.__typename)||!n.cover)})),l=[o[0],o[1],o[2]],c=n||"sm"===a||"xs"===a,g=c?140:184;return r.createElement(s.x,{display:"flex",overflow:"hidden",justifyContent:n?"flex-start":"flex-end",width:"".concat(p,"px"),borderRadius:"0 4px 4px",position:"relative",xs:{width:"100%",justifyContent:"flex-start"}},l.map((function(e,t){return r.createElement("div",{key:(null==e?void 0:e.catalogItemId)||t,className:i(f(t,c))},r.createElement(v,{catalogItem:e,size:g}))})))},I=(0,o.Ps)(m(),l.l)},16084:(e,t,n)=>{"use strict";n.d(t,{W:()=>h,CT:()=>I,e7:()=>y,dT:()=>C,dw:()=>E,Fk:()=>b,jk:()=>x,Dk:()=>w,T8:()=>O,Hp:()=>k});var i=n(319),a=n.n(i),o=n(28655),r=n.n(o),l=n(59713),c=n.n(l),s=n(71439),d=n(73976),u=n(76532),g=n(14391),m=n(12566);function p(){var e=r()(["\n  query GetCatalogsByUser(\n    $userId: ID!\n    $pagingOptions: CatalogPagingOptionsInput!\n    $type: CatalogType!\n    $isPaginated: Boolean!\n    $withCatalogDetails: Boolean!\n    $withReadingList: Boolean!\n  ) {\n    readingList: getPredefinedCatalog(userId: $userId, type: READING_LIST)\n      @include(if: $withReadingList) {\n      __typename\n      ...CatalogAddToList_catalog @skip(if: $withCatalogDetails)\n      ...YourCatalogsScreen_catalog @include(if: $withCatalogDetails)\n    }\n    catalogsByUser(userId: $userId, pagingOptions: $pagingOptions, type: $type) {\n      __typename\n      catalogs {\n        ...CatalogAddToList_catalog @skip(if: $withCatalogDetails)\n        ...YourCatalogsScreen_catalog @include(if: $withCatalogDetails)\n      }\n\n      paging @include(if: $isPaginated) {\n        __typename\n        nextPageCursor {\n          id\n        }\n      }\n    }\n  }\n  ","\n  ","\n"]);return p=function(){return e},e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=5,I=20,y=100,C=20,E=function(e){var t,n=e.limit,i=e.isPaginated,a=void 0!==i&&i,o=e.withCatalogDetails,r=void 0!==o&&o,l=e.withReadingList,c=void 0===l||l,s=(0,u.H)().value;return{userId:null!==(t=null==s?void 0:s.id)&&void 0!==t?t:"",pagingOptions:{limit:n},type:g.HQ.LISTS,isPaginated:a,withCatalogDetails:r,withReadingList:c}};function b(e,t,n,i){var a,o=e.readQuery({query:w,variables:n}),r=null===(a=t.data)||void 0===a?void 0:a.deleteCatalog;if("MutationSuccess"===r.__typename&&r.success){var l,c=null!==(l=null==o?void 0:o.catalogsByUser.catalogs)&&void 0!==l?l:[],s=v(v({},o),{},{catalogsByUser:v(v({},null==o?void 0:o.catalogsByUser),{},{catalogs:c.filter((function(e){return e.id!==i}))})});e.writeQuery({query:w,variables:n,data:s})}}var x=function(e){var t,n;return null!==(t=null==e||null===(n=e.catalogsByUser)||void 0===n?void 0:n.catalogs)&&void 0!==t?t:[]},w=(0,s.Ps)(p(),d.E,m.G),_=function(e){var t,n,i;return"Catalog"!==(null==e||null===(t=e.catalogById)||void 0===t?void 0:t.__typename)?[]:null!==(n=null==e||null===(i=e.catalogById)||void 0===i?void 0:i.itemsConnection.items)&&void 0!==n?n:[]},O=function(e){var t,n,i,a;if("Catalog"===(null==e||null===(t=e.catalogById)||void 0===t?void 0:t.__typename)){var o=null==e||null===(n=e.catalogById)||void 0===n||null===(i=n.itemsConnection)||void 0===i||null===(a=i.paging)||void 0===a?void 0:a.nextPageCursor;if(o)return{nextCursor:{cursor:{id:o.id},limit:C}}}},k=function(e,t){return{catalogById:{itemsConnection:{items:[].concat(a()(_(e)),a()(_(t)))}}}}},59749:(e,t,n)=>{"use strict";n.d(t,{fg:()=>d,SZ:()=>u,BR:()=>g});var i=n(28655),a=n.n(i),o=n(71439),r=n(23450),l=n.n(r),c=n(36511);function s(){var e=a()(["\n  fragment formatItemsCount_catalog on Catalog {\n    postItemsCount\n    bookEditionItemsCount\n  }\n"]);return s=function(){return e},e}var d=function(e){return(0,c.r)().viewerId===e},u=function(e,t){var n=e.bookEditionItemsCount,i=e.postItemsCount,a=i>0?"".concat(e.postItemsCount," ").concat(l()("story",i)):"",o=n>0&&t?"".concat(e.bookEditionItemsCount," ").concat(l()("book",n)):"";return a&&o?"".concat(a,", ").concat(o):a||o},g=(0,o.Ps)(s())},46282:(e,t,n)=>{"use strict";n.d(t,{U:()=>u,S:()=>g});var i=n(59713),a=n.n(i),o=n(28655),r=n.n(o),l=n(71439);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){var e=r()(["\n      fragment updateCatalogVersionInCache_catalog on Catalog {\n        version\n      }\n    "]);return d=function(){return e},e}function u(e,t,n){e.writeFragment({id:"Catalog:".concat(t),fragment:(0,l.Ps)(d()),data:{version:n}})}function g(e,t,n){e.modify({id:"Catalog:".concat(t),fields:{itemsConnection:function(e){if(null==e||!e.items)return e;var t=e.items.filter((function(e){return!n.some((function(t){return n={catalogItemId:t},e.__ref==="CatalogItemV2:".concat(JSON.stringify(n));var n}))}));return s(s({},e),{},{items:t})}}})}},57768:(e,t,n)=>{"use strict";n.d(t,{Vd:()=>y,OG:()=>C,T2:()=>E,qY:()=>b,jN:()=>x});var i=n(63038),a=n.n(i),o=n(28655),r=n.n(o),l=n(50361),c=n.n(l),s=n(71439),d=n(46829),u=n(67294),g=n(46282),m=n(14391);function p(){var e=r()(["\n  fragment editCatalogItemsMutation_post on Post {\n    viewerEdge {\n      catalogsConnection {\n        catalogsContainingThis(type: LISTS) {\n          catalogId\n          version\n          catalogItemIds\n        }\n        predefinedContainingThis {\n          catalogId\n          predefined\n          version\n          catalogItemIds\n        }\n      }\n    }\n  }\n"]);return p=function(){return e},e}function f(){var e=r()(["\n  fragment editCatalogItemsMutation_bookEdition on BookEdition {\n    viewerEdge {\n      catalogsConnection {\n        catalogsContainingThis(type: LISTS) {\n          catalogId\n          version\n          catalogItemIds\n        }\n        predefinedContainingThis {\n          catalogId\n          predefined\n          version\n          catalogItemIds\n        }\n      }\n    }\n  }\n"]);return f=function(){return e},e}function v(){var e=r()(["\n  mutation EditCatalogItems(\n    $catalogId: String!\n    $version: String!\n    $operations: [CatalogItemMutateOperationInput!]!\n  ) {\n    editCatalogItems(catalogId: $catalogId, version: $version, operations: $operations) {\n      __typename\n      ... on EditCatalogItemsSuccess {\n        version\n        operations {\n          __typename\n          preprend {\n            __typename\n            catalogItemId\n          }\n          append {\n            __typename\n            catalogItemId\n          }\n        }\n      }\n    }\n  }\n"]);return v=function(){return e},e}var h="temp-cat-version",I=(0,s.Ps)(v()),y=(0,s.Ps)(f()),C=(0,s.Ps)(p());function E(){var e=(0,d.useMutation)(I),t=a()(e,1)[0];return(0,u.useCallback)((function(e){t({variables:{catalogId:e.catalogId,version:e.version,operations:[{preprend:{type:e.kind,id:e.itemId}}]},update:function(t,n){w(t,n,e.catalogId,e.itemId,e.kind,"preprend",e.predefined)}})}),[t])}function b(e,t,n,i,a){return(0,d.useMutation)(I,{variables:{catalogId:e,version:t,operations:[{preprend:{type:i,id:n}}]},update:function(t,o){w(t,o,e,n,i,"preprend",a)},optimisticResponse:{editCatalogItems:{__typename:"EditCatalogItemsSuccess",operations:[{__typename:"EditCatalogItemMutationOperationResponse",preprend:{__typename:"CatalogItemV2",catalogItemId:"temp-cat-item-id"},append:null}],version:h}}})}var x=function(e,t,n,i,a,o){return(0,d.useMutation)(I,{variables:{catalogId:e,version:t,operations:a.map((function(e){return{delete:{itemId:e}}}))},update:function(t,r){w(t,r,e,n,i,"delete",o,a),(0,g.S)(t,e,a)},optimisticResponse:{editCatalogItems:{__typename:"EditCatalogItemsSuccess",operations:a.map((function(e){return{__typename:"EditCatalogItemMutationOperationResponse",append:null,preprend:null}})),version:h}}})};function w(e,t,n,i,a,o,r,l){var s,d=null===(s=t.data)||void 0===s?void 0:s.editCatalogItems;if("EditCatalogItemsSuccess"===(null==d?void 0:d.__typename)){var u,p;if((0,g.U)(e,n,d.version),a===m.ej.BOOK_EDITION)u="BookEdition:".concat(i),p=y;else{if(a!==m.ej.POST)return;u="Post:".concat(i),p=C}var f=e.readFragment({id:u,fragment:p});if(null!=f&&f.viewerEdge.catalogsConnection){var v=d.operations,h=d.version,I=c()(f),E=v[0];if(!E||"move"===o)return;var b=r?I.viewerEdge.catalogsConnection.predefinedContainingThis:I.viewerEdge.catalogsConnection.catalogsContainingThis,x=b.findIndex((function(e){return r?e.predefined===r:e.catalogId===n}));if("append"===o||"preprend"===o){var w=E[o];if(-1!==x)b[x].catalogItemIds.push(w.catalogItemId);else{var _={catalogId:n,version:h,catalogItemIds:[w.catalogItemId]};r&&(_.predefined=r),b.push(_)}}else if("delete"===o&&-1!==x&&l){var O=b[x].catalogItemIds;b[x].catalogItemIds=O.filter((function(e){return!l.includes(e)})),0===b[x].catalogItemIds.length&&b.splice(x,1)}e.writeFragment({id:u,fragment:p,data:I})}}}},25752:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var i=n(67294).createContext({isFetching:!1})},67900:(e,t,n)=>{"use strict";n.d(t,{P:()=>h});var i=n(34575),a=n.n(i),o=n(93913),r=n.n(o),l=n(81506),c=n.n(l),s=n(2205),d=n.n(s),u=n(78585),g=n.n(u),m=n(29754),p=n.n(m),f=n(67294),v=n(25752);var h=function(e){d()(o,e);var t,n,i=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,i=p()(t);if(n){var a=p()(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return g()(this,e)});function o(e){var t;return a()(this,o),(t=i.call(this,e)).bottomEdgeEl=void 0,t.maybeFetch=void 0,t.state={isFetching:!1},t.maybeFetch=t._maybeFetch.bind(c()(t)),t}return r()(o,[{key:"componentDidMount",value:function(){this.attachScrollListener(),this._maybeFetch()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener()}},{key:"_maybeFetch",value:function(){var e=this;if(this.bottomEdgeEl&&!this.state.isFetching){var t=this.props.fetchMore;if(t){var n=this.bottomEdgeEl.getBoundingClientRect(),i=window.innerHeight;n.top-i<3*i&&(this.setState({isFetching:!0}),t().then((function(){e.setState({isFetching:!1}),e._maybeFetch()})))}}}},{key:"attachScrollListener",value:function(){window.addEventListener("scroll",this.maybeFetch),window.addEventListener("resize",this.maybeFetch)}},{key:"detachScrollListener",value:function(){window.removeEventListener("scroll",this.maybeFetch),window.removeEventListener("resize",this.maybeFetch)}},{key:"render",value:function(){var e=this,t=this.props.children;return f.createElement(v.z.Provider,{value:{isFetching:this.state.isFetching}},f.createElement("div",null,t,f.createElement("div",{ref:function(t){e.bottomEdgeEl=t}})))}}]),o}(f.Component)},42560:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var i=n(67294),a=n(82318),o=n(29637),r=n(98024),l=n(6688),c=n(87598),s=function(e){var t=e.items,n=(0,l.I)(),s=(0,c.G)();return i.createElement("div",{className:n(o.wf)},i.createElement("ul",{className:n(o._I)},t.map((function(e,t){var l=e.title,c=e.href,d=s(c);return i.createElement("li",{className:n((0,o.LE)(d)),key:t},i.createElement(r.F,{scale:"M",color:d?"DARKER":"LIGHTER"},i.createElement(a.r,{href:c},l)))}))))}},29637:(e,t,n)=>{"use strict";n.d(t,{wf:()=>s,_I:()=>d,LE:()=>u,LU:()=>g});var i=n(10429),a=n(67294),o=n(82318),r=n(98024),l=n(6688),c=n(87598),s=function(e){return{borderBottom:"1px solid ".concat(e.baseColor.border.lighter)}},d={listStyleType:"none",margin:0,whiteSpace:"nowrap",overflowX:"auto",marginBottom:"-1px"},u=function(e){return function(t){return{display:"inline-block",lineHeight:"40px",marginRight:"20px",paddingBottom:"8px",borderBottom:e?"1px solid ".concat(t.baseColor.border.dark):"none",outline:"none"}}},g=function(e){var t=e.items,n=(0,l.I)(),g=(0,c.G)();return a.createElement(i.mQ,{className:n(s)},a.createElement(i.td,{as:"ul",className:n(d)},t.map((function(e,t){var l=e.title,c=e.href,s=g(c);return a.createElement(i.OK,{as:"li",className:n(u(s)),key:t},a.createElement(r.F,{scale:"M",color:s?"DARKER":"LIGHTER"},a.createElement(o.r,{href:c},l)))}))))}},12566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,G:()=>j});var i=n(28655),a=n.n(i),o=n(71439),r=n(67294),l=n(70405),c=n(42933),s=n(82318),d=n(87561),u=n(98024),g=n(6688),m=n(27952),p=function(e){return{display:"flex",flexDirection:"column",alignItems:"center",borderWidth:"1px",textAlign:"center",borderStyle:"dashed",borderColor:e.baseColor.border.light,padding:"59px 10px",maxWidth:"680px"}},f=function(){var e=(0,g.I)();return r.createElement("div",{className:e(p)},r.createElement(c.x,{paddingBottom:"6px",maxWidth:"400px"},r.createElement(d.QE,{scale:"S",color:"DARKER"},"Make lists of your favorite stories and books on Medium, even add a little commentary.")),r.createElement(c.x,null,r.createElement(s.r,{href:(0,m.$x3)()},r.createElement(u.F,{scale:"M",color:"ACCENT"},"Get started"))))},v=n(59749),h=n(53976),I=n(37278),y=n(14391),C=n(89392),E=n(66137),b=n(19661);function x(){var e=a()(["\n  fragment CatalogsListItem_catalog on Catalog {\n    id\n    name\n    predefined\n    visibility\n    ...catalogUrl_catalog\n    ...formatItemsCount_catalog\n    listItemsConnection: itemsConnection(pagingOptions: {limit: 3}) {\n      items {\n        catalogItemId\n        ...CatalogCovers_catalogItemV2\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"]);return x=function(){return e},e}var w=function(e){var t=e.catalog,n=t.name,i=t.visibility,a=t.listItemsConnection,o=t.id,l=t.predefined,d=(0,h.V)({name:"enable_lite_book_experience",placeholder:!1}),g=(0,v.SZ)(t,d),p=i!==y.n2.PUBLIC,f=l?(0,E.S)(l):n;return r.createElement(s.r,{href:(0,m.ykG)(t)},r.createElement(c.x,{border:"BASE_LIGHTER",borderRadius:"4px",marginBottom:"40px",maxWidth:"680px",width:"100%",display:"flex",justifyContent:"space-between",xs:{flexDirection:"column",maxWidth:"100%"},sm:{width:"100%",flexDirection:"column"},md:{flexDirection:"row"},lg:{flexDirection:"row"},xl:{flexDirection:"row"}},r.createElement(c.x,{key:o,display:"flex",flexDirection:"column",padding:"24px 24px 29px",justifyContent:"space-between"},r.createElement(I.X6,{clamp:2,scale:"S"},f),(p||g)&&r.createElement(c.x,{display:"flex"},g&&r.createElement(u.F,{scale:"S",color:"LIGHTER"},g),p&&r.createElement(c.x,{paddingLeft:"8px"},r.createElement(C.Z,null)))),r.createElement(b.Y_,{catalogItems:a.items})))},_=(0,o.Ps)(x(),b.u1,m.UiF,v.BR),O=n(26463),k=n(67900),P=n(30027),S=n(42560);function T(){var e=a()(["\n  fragment YourCatalogsScreen_catalog on Catalog {\n    ...CatalogsListItem_catalog\n  }\n  ","\n"]);return T=function(){return e},e}var L=function(e){var t=e.catalogs,n=e.fetchMore,i=t.filter((function(e){return!e.predefined}));return r.createElement(r.Fragment,null,r.createElement(l.q,null,r.createElement("title",null,"Your lists"),r.createElement("meta",{name:"title",content:"Your lists"})),r.createElement(c.x,{paddingBottom:"50px",backgroundColor:"BACKGROUND"},r.createElement(O.kw,null),r.createElement(P.P,{size:"outset"},r.createElement(c.x,{maxWidth:"740px"},r.createElement(c.x,{paddingBottom:"20px",xs:{marginTop:"20px"},sm:{marginTop:"20px"},md:{marginTop:"-20px"},lg:{marginTop:"-20px"},xl:{marginTop:"-20px"}},r.createElement(I.X6,{scale:{xs:"M",sm:"M",md:"M",lg:"L",xl:"L"},tag:"h1"},"Your lists")),r.createElement(S.s,{items:[{title:"Lists",href:(0,m.be7)()},{title:"Highlights",href:(0,m.S0c)()},{title:"Recently viewed",href:(0,m.hGr)()}]}),r.createElement(c.x,{marginTop:"50px"},r.createElement(k.P,{fetchMore:n},t.map((function(e){return r.createElement(w,{catalog:e,key:e.id})})))),0===i.length&&r.createElement(f,null)))))},j=(0,o.Ps)(T(),_)},66137:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(59713),a=n.n(i),o=n(14391);function r(e){return a()({},o.l8.READING_LIST,"Reading list")[e]}},51299:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var i=n(63038),a=n.n(i),o=n(67294),r=n(77180),l=n(27108),c=function(){var e=(0,r.F)(),t=o.useState("lg"),n=a()(t,2),i=n[0],c=n[1],s=function(){window.innerWidth>=e.breakpoints.xl?c("xl"):e.breakpoints.lg<=window.innerWidth&&window.innerWidth<e.breakpoints.xl?c("lg"):e.breakpoints.md<=window.innerWidth&&window.innerWidth<e.breakpoints.lg?c("md"):e.breakpoints.sm<=window.innerWidth&&window.innerWidth<e.breakpoints.md?c("sm"):c("xs")};return o.useEffect((function(){return s(),l.V6.on("resize",s),function(){return l.V6.off("resize",s)}}),[]),i}},87598:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(5977),a=n(67297),o=n(96879),r=function(){var e=(0,i.TH)(),t=(0,a.v9)((function(e){return e.navigation.hostname}));return function(n){return(0,o.z9)(n,t,e)}}},29315:(e,t,n)=>{"use strict";n.d(t,{N:()=>d});var i=n(59713),a=n.n(i),o=n(82492),r=n.n(o),l=n(46829);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n,i){var a,o,c,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"fetchMoreResult",u=(0,l.useQuery)(e,{variables:t}),g=u.data,m=u.fetchMore;if(!g||u.error)return s(s({},u),{},{fetchMore:void 0});var p=null===(a=n(g))||void 0===a?void 0:a.next,f=null===(o=n(g))||void 0===o?void 0:o.nextCursor,v={};if(p||f){if(p){var h=p.limit,I=p.page,y=p.source,C=p.to,E=p.from,b=p.since,x=p.order,w=p.ignoredIds,_=void 0===w?[]:w;v={limit:h,page:I,to:C,source:y,from:E,since:b,order:x,ignoredIds:_}}else if(f){var O=f.cursor,k=f.limit;v={cursor:O,limit:k}}c=function(){return m({variables:s(s({},t),{},{pagingOptions:v}),updateQuery:function(e,t){var n=t.fetchMoreResult;return r()({},"previousResult"===d?e:n,i(e,n))}})}}return s(s({},u),{},{fetchMore:c})}}}]);
  //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/8331.dd650d60.chunk.js.map