orgmode-to-gemini-blog/exports/html/L’aventure Superphénix🔥. Superphénix… s’il est un réacteur… _ by Dragonfeu _ Medium_fichiers/5250.9f9e01d2.chunk.js
2024-11-03 11:06:34 +01:00

2 lines
33 KiB
JavaScript

"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[5250],{24809:(e,n,i)=>{i.d(n,{A:()=>l});var a,t=i(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},o.apply(null,arguments)}const l=function(e){return t.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),a||(a=t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.385 12c0 .55.2 1.02.59 1.41.39.4.86.59 1.41.59s1.02-.2 1.41-.59c.4-.39.59-.86.59-1.41s-.2-1.02-.59-1.41a1.93 1.93 0 0 0-1.41-.59c-.55 0-1.02.2-1.41.59-.4.39-.59.86-.59 1.41m5.62 0c0 .55.2 1.02.58 1.41.4.4.87.59 1.42.59s1.02-.2 1.41-.59c.4-.39.59-.86.59-1.41s-.2-1.02-.59-1.41a1.93 1.93 0 0 0-1.41-.59c-.55 0-1.03.2-1.42.59s-.58.86-.58 1.41m5.6 0c0 .55.2 1.02.58 1.41.4.4.87.59 1.43.59s1.03-.2 1.42-.59.58-.86.58-1.41-.2-1.02-.58-1.41a1.93 1.93 0 0 0-1.42-.59c-.56 0-1.04.2-1.43.59s-.58.86-.58 1.41",clipRule:"evenodd"})))}},52161:(e,n,i)=>{i.d(n,{c:()=>d});var a=i(45458),t=i(59265),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogContentNonCreatorMenu_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clapCount"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}}]}}].concat((0,a.A)(t.Rm.definitions))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogContentCreatorMenu_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"postItemsCount"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"disallowResponses"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"UpdateCatalogDialog_catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}}]}}].concat((0,a.A)(t.v0.definitions),(0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"UpdateCatalogDialog_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]),(0,a.A)(t.Rm.definitions))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogContentMenu_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogContentNonCreatorMenu_catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogContentCreatorMenu_catalog"}}]}}].concat((0,a.A)(t.v0.definitions),(0,a.A)(o.definitions),(0,a.A)(l.definitions))}},13397:(e,n,i)=>{i.d(n,{m:()=>s});var a=i(45458),t=i(59265),o=i(55918),l=i(93240),d=i(87544),r=i(73114),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogsListItemCovers_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"listItemsConnection"},name:{kind:"Name",value:"itemsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagingOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"10"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PreviewCatalogCovers_catalogItemV2"}}]}}]}}]}}].concat((0,a.A)(r.L.definitions))},m=i(52161),u=i(40853),s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogsListItem_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getCatalogSlugId_Catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"formatItemsCount_catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogsListItemCovers_catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogContentMenu_catalog"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SaveCatalogButton_catalog"}}]}}].concat((0,a.A)(t.v0.definitions),(0,a.A)(o.s.definitions),(0,a.A)(l.S.definitions),(0,a.A)(d.PL.definitions),(0,a.A)(c.definitions),(0,a.A)(m.c.definitions),(0,a.A)(u.l.definitions))}},73114:(e,n,i)=>{i.d(n,{L:()=>a});var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PreviewCatalogCovers_catalogItemV2"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogItemV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"alt"}}]}}]}}]}}]}}]}},22554:(e,n,i)=>{i.d(n,{NB:()=>l,O1:()=>o,e1:()=>r,eB:()=>t,vW:()=>d});var a=i(42976),t=50,o=20,l=20,d=10,r=function(e){var n=e.limit,i=e.withCatalogDetails,t=void 0!==i&&i;return{userId:e.userId,pagingOptions:{limit:n},type:a.Mh.LISTS,withCatalogDetails:t}}},41370:(e,n,i)=>{i.d(n,{G:()=>l});var a=i(96540),t=i(52290),o=i(77662),l=function(e){var n=e.loading,i=e.text,l=void 0===i?"Done":i;return a.createElement(t.a,{display:"inline-flex",alignItems:"center",tag:"span"},l,n&&a.createElement(t.a,{paddingLeft:"10px",tag:"span"},a.createElement(o.k,{size:"18px"})))}},87544:(e,n,i)=>{i.d(n,{Be:()=>a,PL:()=>o,S7:()=>t});var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"itemIsUnlistedPost_catalogItemV2"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogItemV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"visibility"}}]}}]}}]}}]},t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getCatalogMiroURLForMetadata_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thumbnailImage"}}]}}]},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"formatItemsCount_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postItemsCount"}}]}}]}},85764:(e,n,i)=>{i.d(n,{JX:()=>p,Ke:()=>f,OW:()=>g,P2:()=>m,Yg:()=>u,b5:()=>s,bD:()=>k,dX:()=>N,ix:()=>v,sP:()=>c});var a=i(55127),t=i.n(a),o=i(96540),l=i(2550),d=i(42976),r=i(90383),c=function(){var e=(0,l.A)().viewerId;return(0,o.useCallback)((function(n){return e===n}),[e])},m=function(e){return c()(e)},u=function(e){return(0,r.rP)({miroId:e.thumbnailImage})},s=function(e){var n=e.postItemsCount;return n>0?"".concat(e.postItemsCount," ").concat(t()("story",n)):""},k=function(){return"This story is no longer available"},v=function(e){var n;return"Post"===(null===(n=e.entity)||void 0===n?void 0:n.__typename)&&e.entity.visibility===d.dL.UNLISTED},g=60,f=280;function p(e){return!!e&&e.length>f}function N(e){return e.length>g}},678:(e,n,i)=>{i.d(n,{VP:()=>f,gt:()=>y,Tq:()=>b,PN:()=>N,dJ:()=>p,WM:()=>g,qK:()=>S,eq:()=>k});var a=i(80296),t=i(45458),o=i(64467),l=i(67194),d=i(73927),r=i(21335),c=i(42976),m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"newCatalogItemV2_catalogItemV2"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogItemV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"catalogItemId"}}]}}]};function u(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach((function(n){(0,o.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function k(e,n,i){e.modify({id:"Catalog:".concat(n),fields:{version:function(){return i}}})}function v(e,n){var i=(0,o.A)({},c.Bd.POST,"postItemsCount");if(i[e])return(0,o.A)({},i[e],(function(e){return e+n}))}function g(e,n,i,a){e.modify({id:"Catalog:".concat(n),fields:s(s({},v(a,-i.length)),{},{itemsConnection:function(e){if(null==e||!e.items)return e;var n=e.items.filter((function(e){return!i.some((function(n){return i={catalogItemId:n},e.__ref==="CatalogItemV2:".concat(JSON.stringify(i));var i}))}));return s(s({},e),{},{items:n})}})})}function f(e,n,i,a){var o=i.map((function(n){return e.writeFragment({data:{__typename:"CatalogItemV2",catalogItemId:n},fragment:m})})).filter((function(e){return!!e}));o.length>0&&e.modify({id:e.identify({__typename:"Catalog",id:n}),fields:s(s({},v(a,o.length)),{},{itemsConnection:function(e){var n=(null==e?void 0:e.items)||[];return s(s({},e),{},{items:[].concat((0,t.A)(o),(0,t.A)(n))})}})})}var p=function(e,n){e.modify({id:e.identify({__typename:"UserViewerEdge",id:"userId:".concat(n,"-viewerId:").concat(n)}),fields:{catalogsConnection:function(e,n){return n.DELETE}}})};function N(e,n){e.modify({id:e.identify((0,l.WU)("ROOT_QUERY")),fields:{catalogsByUser:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(arguments.length>1?arguments[1]:void 0).DELETE,t={},o=(0,d.E)({userId:n}),l=0,r=Object.entries(e);l<r.length;l++){var c=(0,a.A)(r[l],2),m=c[0],u=c[1];t[m]=m.startsWith(o)?i:u}return t}}})}function b(e,n){e.modify({id:e.identify({__typename:"Catalog",id:n}),fields:{itemsConnection:function(e,n){return n.DELETE}}})}function y(e,n,i,o){e.modify({id:e.identify((0,l.WU)("ROOT_QUERY")),fields:{catalogsByUser:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,r=l.readField,c=l.DELETE,m={},u=(0,d.E)({userId:n,type:i}),k=0,v=Object.entries(e);k<v.length;k++){var g=(0,a.A)(v[k],2),f=g[0],p=g[1];if(f.startsWith(u)){var N=(null==p?void 0:p.catalogs)||[],b=(0,t.A)(N),y=b.findIndex((function(e){return r("id",e)===o}));if(-1===y)m[f]=c;else{var S=b.splice(y,1),C=(0,a.A)(S,1)[0];b.unshift(C),m[f]=s(s({},p),{},{catalogs:b})}}else m[f]=p}return m}}})}function S(e,n,i,a){e.modify({id:e.identify({__typename:"CatalogViewerEdge",id:"catalogId:".concat(i,"-viewerId:").concat(n)}),fields:{isFollowing:function(){return a},followersCount:function(e){return a?Number(e)+1:e>0?e-1:0}}}),e.modify({id:(0,r.sf)(e,{userId:n,viewerId:n}),fields:{followingCatalogsConnection:function(e,n){var t=n.DELETE,o=n.readField;if(a)return t;var l=s(s({},e),{},{catalogs:e.catalogs.filter((function(e){return o("id",e)!==i}))});return l}}})}},97213:(e,n,i)=>{i.d(n,{Ug:()=>C,u4:()=>y,rd:()=>S,yn:()=>F,JX:()=>h,i3:()=>I,Lm:()=>O});var a=i(80296),t=i(95420),o=i(96540),l=i(678),d=i(72130),r=i(42976),c=i(91830),m=i(15371),u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ClapCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"numClaps"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clapCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}},{kind:"Argument",name:{kind:"Name",value:"numClaps"},value:{kind:"Variable",name:{kind:"Name",value:"numClaps"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}},{kind:"Field",name:{kind:"Name",value:"clappersCount"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}}]}}]}}]}}]}}]},s=i(45458),k=i(59265),v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributes"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCatalogInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"attributes"},value:{kind:"Variable",name:{kind:"Name",value:"attributes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}}]}}]}}]}}].concat((0,s.A)(k.Rm.definitions))},g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MutationSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}}]}}]}}]}}]},f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FlagCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"flagCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}]}]}}]},p={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FollowCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MutationSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}}]}}]}}]}}]},N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnfollowCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unfollowCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MutationSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}}]}}]}}]}}]},b={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributes"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCatalogInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}},{kind:"Argument",name:{kind:"Name",value:"attributes"},value:{kind:"Variable",name:{kind:"Name",value:"attributes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}}]};function y(e){var n=(0,d.$L)(),i=(0,t.n)(v,{update:function(n){(0,l.PN)(n,e)},onCompleted:function(e){var i=e.createCatalog;"Catalog"===i.__typename&&n.event("list.new",{listId:i.id,listName:i.name,userId:i.creator.id,listPrivacyLevel:m.J8[i.visibility]})}}),o=(0,a.A)(i,2),r=o[0],c=o[1];return{createCatalog:function(e){return r({variables:e})},loading:c.loading,data:c.data,error:c.error}}function S(e){var n=e.catalog,i=e.userId,r=e.onCompleted,m=(0,d.$L)(),u=(0,c.zF)(),s=(0,t.n)(g,{onCompleted:function(e){var i=null==e?void 0:e.deleteCatalog;"MutationSuccess"===i.__typename&&i.success&&(m.event("list.deleted",{listId:n.id}),u({message:"List deleted and removed from Your library"}),null==r||r())},update:function(e){(0,l.PN)(e,i),(0,l.dJ)(e,i)}}),k=(0,a.A)(s,2),v=k[0],f=k[1],p=f.loading,N=f.error;return{deleteCatalog:(0,o.useCallback)((function(){v({variables:{catalogId:n.id}})}),[n.id]),loading:p,error:N}}function C(){var e=(0,t.n)(u),n=(0,a.A)(e,2),i=n[0],o=n[1];return{clapCatalog:function(e){return i({variables:e})},loading:o.loading,data:o.data,error:o.error}}function F(){var e=(0,c.zF)(),n=(0,t.n)(f,{onCompleted:function(){e({message:"Successfully reported list."})},onError:function(){e({toastStyle:"RETRYABLE_ERROR",duration:4e3})}}),i=(0,a.A)(n,1)[0];return{flagCatalog:function(e){return i({variables:e})}}}function h(e,n){var i=(0,c.zF)(),r=(0,d.$L)(),m=(0,t.n)(p,{update:function(i){(0,l.qK)(i,e,n,!0)},onCompleted:function(e){var a=null==e?void 0:e.followCatalog;"MutationSuccess"===a.__typename&&a.success&&(r.event("list.saved",{listId:n}),i({toastStyle:"FOLLOW_CATALOG"}))}}),u=(0,a.A)(m,2),s=u[0],k=u[1].loading;return{followCatalog:(0,o.useCallback)((function(){s({variables:{catalogId:n}})}),[n]),loading:k}}function I(e,n){var i=(0,c.zF)(),r=(0,d.$L)(),m=(0,t.n)(N,{update:function(i){(0,l.qK)(i,e,n,!1)},onCompleted:function(e){var a=null==e?void 0:e.unfollowCatalog;"MutationSuccess"===a.__typename&&a.success&&(r.event("list.removedFromLibrary",{listId:n}),i({message:"List removed from Your Library"}))}}),u=(0,a.A)(m,2),s=u[0],k=u[1].loading;return{unfollowCatalog:(0,o.useCallback)((function(){s({variables:{catalogId:n}})}),[n]),loading:k}}function O(e,n,i){var a=(0,d.$L)(),o=(0,c.zF)();return(0,t.n)(b,{onCompleted:function(t){if("Catalog"===(null==t?void 0:t.updateCatalog.__typename)){var l=t.updateCatalog.visibility,d=t.updateCatalog.name;if(l!==e.visibility){var c=e.predefined?(0,m.cm)(e.predefined):d;a.event("list.privacyChanged",{listId:t.updateCatalog.id,listPrivacyLevel:m.J8[l]}),o({message:"".concat(c," is now ").concat(l===r.y_.PUBLIC?"public":"private")})}d!==e.name&&(null==i||i(d))}null==n||n()}})}},22036:(e,n,i)=>{i.d(n,{n:()=>l});var a=i(96540),t=i(79756),o=i(46445),l=function(e){var n=e.onConfirm,i=e.isVisible,l=e.hide,d=e.entityTypename,r=(0,t.bY)(d);return a.createElement(o.T,{onConfirm:n,isVisible:i,hide:l,titleText:"Hide responses",confirmText:"Confirm",isDestructiveAction:!1},"People will still be able to respond, but the link to see responses will not be displayed at the bottom of your ",r,".")}},40853:(e,n,i)=>{i.d(n,{l:()=>o});var a=i(45458),t=i(93240),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SaveCatalogButton_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}}]}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getCatalogSlugId_Catalog"}}]}}].concat((0,a.A)(t.S.definitions))}},30142:(e,n,i)=>{i.d(n,{i:()=>m});var a=i(80296),t=i(96540),o=t.createContext({isFetching:!1}),l=i(52290),d=i(99731),r=i(66305),c=!1;i.g.window&&function e(){window.requestAnimationFrame((function(){c=!0,setImmediate((function(){c=!1,e()}))}))}();var m=function(e){var n=e.children,i=e.fetchMore,m=e.scrollableEl,u=e.disabled,s=e.fetchMoreText,k=void 0===s?"Load more":s,v=e.fetchingPlaceholder,g=function(e){var n=e.fetchMore,i=e.scrollableEl,o=e.disabled,l=(0,t.useState)(!1),d=(0,a.A)(l,2),m=d[0],u=d[1],s=(0,t.useRef)(null),k=(0,t.useRef)(!1),v=(0,t.useRef)(),g=(0,t.useMemo)((function(){return(0,r.$U)(i||void 0)}),[i]),f=(0,t.useRef)(m),p=(0,t.useRef)(n);(0,t.useEffect)((function(){f.current=m,p.current=n}),[m,n]);var N=(0,t.useCallback)((function(){return p.current?(u(!0),p.current().then((function(){return u(!1)}))):Promise.resolve()}),[]),b=(0,t.useCallback)((function(){k.current||(k.current=!0,v.current=function(e){if(!c)return window.requestAnimationFrame((function(){setImmediate((function(){return e()}))}));setImmediate((function(){return e()}))}((function(){if(k.current=!1,s.current&&!f.current&&p.current&&g instanceof r.ZJ){var e=g.ref,n=s.current.getBoundingClientRect(),i=e instanceof Window?e.innerHeight:e.clientHeight;n.top-i<3*i&&N().then((function(){return b()}))}})))}),[g]);return(0,t.useEffect)((function(){if(!o)return g.on("scroll_throttled",b),g.on("resize_throttled",b),function(){g.off("scroll_throttled",b),g.off("resize_throttled",b)}}),[g,b,o]),(0,t.useEffect)((function(){return b(),function(){v.current&&cancelAnimationFrame(v.current)}}),[]),{isFetching:m,bottomEdgeRef:s,handleFetchMore:N}}({fetchMore:i,scrollableEl:m,disabled:u}),f=g.isFetching,p=g.bottomEdgeRef,N=g.handleFetchMore;return t.createElement(o.Provider,{value:{isFetching:f}},t.createElement("div",null,n,f&&v,u&&i&&!f&&t.createElement(l.a,{display:"flex",justifyContent:"center",marginBottom:"48px"},t.createElement(d.$n,{onClick:N},k)),t.createElement("div",{ref:p})))}},28993:(e,n,i)=>{i.d(n,{P:()=>c});var a=i(58168),t=i(64467),o=i(96540),l=i(44402);function d(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}var r=function(e){return function(n){var i="function"==typeof e?e(n):e;return function(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?d(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}({color:"inherit",fill:n.colorTokens.foreground.neutral.secondary.base,fontSize:"inherit",border:"inherit",fontFamily:"inherit",letterSpacing:"inherit",fontWeight:"inherit",padding:0,margin:0,cursor:"pointer",":disabled":{cursor:"not-allowed",opacity:.3}},i)}},c=o.forwardRef((function(e,n){var i=e.ariaControls,t=e.ariaExpanded,d=e.ariaLabel,c=void 0===d?"":d,m=e.children,u=e.onClick,s=e.onTouchStart,k=e.onTouchEnd,v=e.rules,g=void 0===v?{}:v,f=e.disabled,p=e.testId,N=(0,l.l)(),b={onClick:u,onTouchEnd:k,onTouchStart:s};return i&&(b["aria-controls"]=i),t&&(b["aria-expanded"]=t),c&&(b["aria-label"]=c),p&&(b["data-testid"]=p),o.createElement("button",(0,a.A)({},b,{className:N(r(g)),ref:n,disabled:f}),m)}))},20036:(e,n,i)=>{i.d(n,{u:()=>p});var a=i(58168),t=i(80045),o=i(64467),l=i(96540),d=i(28993),r=i(85050),c=i(36557),m=i(18721),u=i(46963),s=i(27049),k=i(5600),v=["icon","text","tooltipText","rules"];function g(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}var f=function(e){return{border:"1px solid ".concat(e.colorTokens.border.neutral.primary.base),borderRadius:"99em",padding:"0px 16px 0px 12px",height:"38px",display:"flex",alignItems:"center",":hover":{borderColor:e.colorTokens.border.neutral.tertiary.base},"& svg":{marginRight:"8px"}}},p=function(e){var n,i,p=e.icon,N=e.text,b=e.tooltipText,y=void 0===b?"":b,S=e.rules,C=(0,t.A)(e,v),F=(0,u.U)(),h=F===s.i.xs||F===s.i.sm;return l.createElement(k.G,{tooltipText:y,targetDistance:10,isVisible:!N||!!N&&!h},l.createElement(d.P,(0,a.A)({rules:(n=!!N,i=S,function(e){var a;return function(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?g(Object(i),!0).forEach((function(n){(0,o.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}((a={padding:"8px 2px","& svg":{color:e.colorTokens.foreground.neutral.secondary.base},":hover svg":{color:e.colorTokens.foreground.neutral.primary.hover},":hover p":{color:e.colorTokens.foreground.neutral.primary.hover},":focus svg":{color:e.colorTokens.foreground.neutral.primary.hover}},(0,o.A)(a,m.xs(e),n?f(e):void 0),(0,o.A)(a,m.sm(e),n?f(e):void 0),a),i)})},C),p,N&&l.createElement(r.V,{xs:!0,sm:!0},l.createElement(c.kZ,{scale:"M"},N))))}},53424:(e,n,i)=>{i.d(n,{S:()=>f,D:()=>v});var a,t=i(64467),o=i(96540),l=i(52290),d=i(36557),r=i(44402);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},c.apply(null,arguments)}const m=function(e){return o.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:11,height:11,viewBox:"0 0 11 11"},e),a||(a=o.createElement("path",{d:"m0 6.313 3.704 3.705.904.904.66-1.095 5.296-8.795L8.85 0 3.554 8.795l1.563-.191-3.704-3.705z"})))};function u(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var k={"-webkit-appearance":"none","-moz-appearance":"none",appearance:"none",position:"absolute",opacity:0,":focus + span:before":{border:"3px solid #E4EFF7",borderRadius:"2px",content:"''",display:"block",position:"absolute",height:"23px",width:"23px"}},v=function(e,n,i,a){var t="OBVIOUS"===i?a.colorTokens.background.accent.primary.hover:a.colorTokens.foreground.neutral.primary.hover,o=n?t:a.backgroundColor,l=n?t:a.colorTokens.border.neutral.secondary.base;return e&&(o=a.colorTokens.background.neutral.secondary.base,l=a.colorTokens.border.neutral.primary.base),{background:o,borderColor:l}},g=function(e,n,i){return function(a){var t="OBVIOUS"===i?a.colorTokens.background.accent.primary.base:a.colorTokens.foreground.neutral.primary.base,o={alignItems:"center",background:n?t:a.backgroundColor,borderColor:n?t:a.colorTokens.border.neutral.tertiary.base,borderWidth:"1px",borderStyle:"solid",borderRadius:"2px",boxSizing:"border-box",color:a.backgroundColor,cursor:"pointer",display:"flex",fill:a.backgroundColor,flexGrow:1,justifyContent:"center"},l={background:a.colorTokens.background.neutral.secondary.base,borderColor:a.colorTokens.border.neutral.primary.base,cursor:"inherit"};return s(s(s({},o),e&&l),{},{"&:hover":s({},v(e,n,i,a))})}},f=function(e){var n,i,a=e.children,t=e.checked,c=e.disabled,u=void 0!==c&&c,s=e.onChange,v=e.textColor,f=void 0===v?"DARKER":v,p=e.textScale,N=void 0===p?"M":p,b=e.checkboxStyle,y=void 0===b?"OBVIOUS":b,S=e.marginRight,C=void 0===S?"10px":S,F=e.clampText,h=e.width,I=e.alignItems,O=void 0===I?"center":I,T=e.hasCustomLabelContainer,w=e.testId,D=(0,r.l)(),_=o.useCallback((function(e){u||s&&s(e)}),[u,s]);return o.createElement(l.a,{tag:"label",display:"flex",alignItems:O},o.createElement(l.a,{marginRight:C,height:"17px",width:"17px",display:"flex",alignItems:"stretch",position:"relative",flexShrink:"0"},o.createElement("input",{className:D(k),type:"checkbox",checked:t,disabled:u,onChange:_,"data-testid":w}),o.createElement("span",{className:D(g(u,t,y)),"data-checkbox":!0},o.createElement(m,{className:D((n=u,i=t,function(e){var a={fill:e.backgroundColor};return n&&(a["> path"]={fill:i?e.colorTokens.border.neutral.tertiary.base:e.colorTokens.background.neutral.secondary.base}),a}))}))),o.createElement(l.a,{sm:{width:h}},T?a:o.createElement(d.kZ,{color:u?"LIGHTER":f,scale:N,clamp:F},a)))}},46445:(e,n,i)=>{i.d(n,{T:()=>u});var a=i(58168),t=i(80045),o=i(96540),l=i(52290),d=i(56942),r=i(36557),c=i(64314),m=["children","titleText"],u=function(e){var n,i=e.children,u=e.titleText,s=(0,t.A)(e,m),k="confirmDialogTitle",v=null!==(n=s.testId)&&void 0!==n?n:void 0;return o.createElement(c.m,(0,a.A)({},s,{ariaLabelledBy:k}),o.createElement(d.DZ,{ariaLabelledById:k,scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},testId:v},u),o.createElement(l.a,{paddingTop:"6px",paddingBottom:"36px"},o.createElement(r.kZ,{scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},tag:"div"},i)))}}}]);
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/5250.9f9e01d2.chunk.js.map