(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5168],{68302:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"addBookshelfItem"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"contentNrn"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBookshelfItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"contentNrn"},value:{kind:"Variable",name:{kind:"Name",value:"contentNrn"}}},{kind:"Argument",name:{kind:"Name",value:"relationship"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"subscribed"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user_id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:128}};n.loc.source={body:"mutation addBookshelfItem($contentNrn:String!){addBookshelfItem(contentNrn:$contentNrn relationship:{type:subscribed}){user_id}}",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var i=0;i0;){var l=d;d=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var i=t(e,n);i&&o.definitions.push(i)}),o}(n,"addBookshelfItem")},33356:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"removeBookshelfItem"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"contentNrn"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"itemId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteBookshelfItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"contentNrn"},value:{kind:"Variable",name:{kind:"Name",value:"contentNrn"}}},{kind:"Argument",name:{kind:"Name",value:"itemId"},value:{kind:"Variable",name:{kind:"Name",value:"itemId"}}}],directives:[]}]}}],loc:{start:0,end:151}};n.loc.source={body:"mutation removeBookshelfItem($userId:String$contentNrn:String$itemId:String){deleteBookshelfItem(userId:$userId contentNrn:$contentNrn itemId:$itemId)}",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var i=0;i0;){var l=d;d=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var i=t(e,n);i&&o.definitions.push(i)}),o}(n,"removeBookshelfItem")},99378:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getBookshelfItemsForUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"bookshelfItems"},name:{kind:"Name",value:"getBookshelfItemsForUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content_nrn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relationship"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:139}};n.loc.source={body:"query getBookshelfItemsForUser($userId:String){bookshelfItems:getBookshelfItemsForUser(userId:$userId){_id content_nrn relationship{type}}}",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var i=0;i0;){var l=d;d=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var i=t(e,n);i&&o.definitions.push(i)}),o}(n,"getBookshelfItemsForUser")},87984:function(e,n,i){"use strict";i.d(n,{y:function(){return a}});var t=i(87379),o=(0,t.iv)(["opacity:0.5;background:",";"],function(e){return e.theme.transparentHover}),a=t.ZP.button.withConfig({displayName:"StyledAddToBookshelfButton",componentId:"sc-x1jszb-0"})(["background:transparent;border:0rem solid ",";height:4rem;width:4rem;cursor:pointer;display:flex;justify-content:center;align-items:center;",";&:hover{background:",";}"],function(e){return e.borderColor},function(e){return e.disabled?o:""},function(e){return e.theme.transparentHover})},24859:function(e,n,i){"use strict";i.d(n,{R:function(){return L},m:function(){return v}});var t,o=i(67294),a=i(4648),r=i(21642),d=i(87379),l=d.ZP.div.withConfig({displayName:"StyledModalWrapper",componentId:"sc-dni3v-0"})([".cohesion-modal{max-height:100vh;max-width:100vw;overflow:auto;width:fit-content;#cohesion-modal-title{color:",";font-family:",";font-size:3.2rem;font-weight:600;letter-spacing:0.05px;line-height:40px;}@media (max-width:","){padding:0;}}"],function(e){return e.theme.colors.primary},function(e){return e.theme.fonts.fontFamily},function(e){return e.theme.breakpoints.mediaMobileMax}),s=d.ZP.div.withConfig({displayName:"StyledSubTitle",componentId:"sc-dni3v-1"})(["margin-top:1rem;color:",";font-family:",";font-size:1.8rem;font-weight:100;letter-spacing:0.03px;line-height:23px;"],function(e){return e.theme.colors.primary},function(e){return e.theme.fonts.fontFamily}),c=d.ZP.div.withConfig({displayName:"StyledModalContent",componentId:"sc-dni3v-2"})(["margin:0 4rem;@media (max-width:","){margin:0 2rem;}"],function(e){return e.theme.breakpoints.mediaMobileMax}),u=d.ZP.div.withConfig({displayName:"StyledModalButtonGroup",componentId:"sc-dni3v-3"})(["display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-top:2rem;button{margin:1rem 1.5rem auto 1rem;height:5rem;}@media (max-width:","){justify-content:center;button{width:25rem;}}@media (max-width:","){margin-bottom:5rem;}"],function(e){return e.theme.breakpoints.phone590},function(e){return e.theme.breakpoints.phone}),m=i(85893),f=function(e){var n=e.height,i=e.width,t=e.title,o=e.visible,r=e.onClose,d=e.animationType,u=e.subTitle,f=e.children;return(0,m.jsx)(l,{children:(0,m.jsx)(a.Z,{visible:void 0!==o&&o,animationType:void 0===d?"zoom":d,animationDurationInMs:400,onClose:r,className:"cohesion-modal",style:{height:void 0===n?"fit-content":n,width:void 0===i?"80rem":i},children:(0,m.jsxs)(c,{children:[(0,m.jsx)(a.Z.CloseButton,{}),(0,m.jsxs)(a.Z.Title,{id:"cohesion-modal-title",children:[void 0===t?"":t,u&&(0,m.jsx)(s,{children:u})]}),f]})})})},v=function(e){var n=e.visible,i=e.onCancel,t=e.onConfirm,o=e.width,a=e.height,d=e.title,l=e.message,s=e.confirmText;return(0,m.jsxs)(f,{title:d,visible:void 0!==n&&n,onClose:i,width:o,height:a,children:[(0,m.jsx)("p",{children:l}),(0,m.jsx)("br",{}),(0,m.jsxs)(u,{children:[(0,m.jsx)(r.Z.SecondaryDarkLarge,{onClick:i,children:"Cancel"}),(0,m.jsx)(r.Z.PrimaryDarkLarge,{onClick:t,children:s})]})]})},h=i(59499),k=i(50029),p=i(16835),b=i(64687),g=i.n(b),y=i(87984),S=i(50319),N=i(68302),x=i.n(N),w=i(33356),I=i.n(w),j=function(e){var n=e.color;return(0,m.jsxs)("svg",{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1","aria-labelledby":"bookmarkOutlined",children:[(0,m.jsx)("title",{id:"bookmarkOutlined",children:"outlined bookmark icon"}),(0,m.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,m.jsx)("g",{transform:"translate(-81.000000, -195.000000)",fill:n,children:(0,m.jsx)("g",{transform:"translate(76.000000, 192.000000)",children:(0,m.jsx)("path",{d:"M17,18 L12,15.82 L7,18 L7,5 L17,5 M17,3 L7,3 C5.8954305,3 5,3.8954305 5,5 L5,21 L12,18 L19,21 L19,5 C19,3.89 18.1,3 17,3 Z",id:"Shape"})})})})]})},B=function(e){var n=e.color;return(0,m.jsxs)("svg",{width:"14px",height:"18px",viewBox:"0 0 14 18",version:"1.1","aria-labelledby":"bookmarkFilled",children:[(0,m.jsx)("title",{id:"bookmarkFilled",children:"filled in bookmark icon"}),(0,m.jsx)("g",{id:"R5-LoggedOut",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,m.jsx)("g",{id:"Cloud-tech-Azure-Copy-14",transform:"translate(-81.000000, -389.000000)",fill:n,children:(0,m.jsx)("g",{id:"bookmark-24px",transform:"translate(76.000000, 386.000000)",children:(0,m.jsx)("path",{d:"M17,3 L7,3 C5.9,3 5.01,3.9 5.01,5 L5,21 L12,18 L19,21 L19,5 C19,3.9 18.1,3 17,3 Z",id:"Path"})})})})]})},E=i(22651);function C(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,t)}return i}function D(e){for(var n=1;n