PageSourceSearch

https://search.worldcat.org/_next/static/chunks/9043-6f3898f6c0d4323e.js

js worldcat.org collected 2026-09-24 07:40:38 UTC 35,025 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9043],{3032:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(37876);function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"OFF",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"OFF",s=arguments.length>2?arguments[2]:void 0;return"ON"===t&&"ON"===e?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function(t,e,s,o){var n,a,c;t.SMCX=t.SMCX||[],e.getElementById(o)||(n=e.getElementsByTagName(s),a=n[n.length-1],c=e.createElement(s),c.type="text/javascript",c.async=!0,c.id=o,c.async=!0,c.id=o,c.src='${s}',a.parentNode.insertBefore(c,a))})(window,document,"script","smcx-sdk");`}})}):null}},19130:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(33092);let a=()=>{let[t]=(0,i.lT)(["wc_inst_privileges"]);return{hasInstitutionReadManagePrivileges:()=>{let e=t?.wc_inst_privileges;return e?.includes("lists-worldcat-org:read_lists")&&e?.includes("lists-worldcat-org:manage_lists")},hasInsightAnalyticsPrivileges:()=>{let e=t?.wc_inst_privileges;return e?.includes("worldcatOrgAnalytics")}}}},48171:(t,e,s)=>{s.d(e,{A:()=>d});var i=s(47175),a=s(69202);s(14232);var o=s(80632),n=s(99220),l=s(37876);function r(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}let c=(0,n.n9)()(t=>({radio:{color:t.palette.gray.primary,"&.Mui-checked":{color:t.palette.primary.main},"& .MuiSvgIcon-root":{fontSize:20},"& ~ .MuiFormControlLabel-label":{fontSize:t.typography.body2.fontSize},"&.Mui-checked ~ .MuiFormControlLabel-label":{fontWeight:"bold"}}})),d=t=>{let e=Object.assign({},((0,a.A)(t),t)),{classes:s}=c();return(0,l.jsx)(o.A,function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?r(Object(s),!0).forEach(function(e){(0,i.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}({size:"small",className:s.radio},e))}},54825:(t,e,s)=>{s.d(e,{A:()=>N});var i=s(47175),a=s(1433),o=s(14232),n=s(86698),l=s(41381),r=s(24480),c=s(45516),d=s(85316),m=s(69856),g=s(58794),p=s(9111),u=s(99220),f=s(46940),h=s(54587),C=s.n(h),b=s(37876);let w=["listSharedCollection"];function M(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}function y(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?M(Object(s),!0).forEach(function(e){(0,i.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}let x=(0,u.n9)()(t=>({icon:{width:16,height:16,color:t.palette.primary.main},item:{fontSize:t.typography.body2.fontSize,paddingLeft:t.spacing(1)},svgIcon:{filter:"brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(937%) hue-rotate(179deg) brightness(78%) contrast(95%)"}})),N=t=>{let{collectEvent:e}=(0,f.$)(),s=(0,g.tz)(),{classes:i}=x(),{listSharedCollection:u}=t,h=(0,a.A)(t,w),M="email",N="Copy Link";function j(t,s,i){var a,o;a=t,(o=s)?(o.share_format=a,e(f.s.user_list_shared,o)):e(f.s.share_item_click,{share_option:a}),t!==N&&function(t,e){e.onClose&&e.onClose();let s={facebook:`https://www.facebook.com/sharer/sharer.php?u=${e.url}&quote=${e.body}`,threads:`https://threads.net/intent/post?url=${e.url}&text=${e.body}`,email:`mailto:?body=${e.body}: ${e.url}&subject=${e.subject}`}[t];if(t===M){window.location.href=s;return}let i=window.outerWidth/2+(window.screenX||window.screenLeft||0)-275,a=window.outerHeight/2+(window.screenY||window.screenTop||0)-200;window.open(s,"_blank",`left=${i},top=${a},width=550,height=400`)}(t,i)}let{0:D,1:A}=(0,o.useState)(null);return(0,b.jsxs)(n.A,y(y({},h),{},{keepMounted:!0,children:[(0,b.jsx)(l.A,{onClick:()=>j("facebook",u,h),children:(0,b.jsxs)(r.A,{"data-testid":"share-on-facebook",sx:{dis
1play:"flex",alignItems:"center"},children:[(0,b.jsx)(c.A,{className:i.icon}),(0,b.jsx)(r.A,{className:i.item,children:s.formatMessage({defaultMessage:"Share on Facebook",id:"components.shared.organisms.ShareMenu.3688309942",id:"components.shared.organisms.ShareMenu.3688309942",id:"components.shared.organisms.ShareMenu.3688309942",id:"components.shared.organisms.ShareMenu.3688309942",id:"components.shared.organisms.ShareMenu.3688309942"})})]})}),(0,b.jsx)(l.A,{onClick:()=>j("threads",u,h),children:(0,b.jsxs)(r.A,{"data-testid":"share-on-threads",sx:{display:"flex",alignItems:"center"},children:[(0,b.jsx)(C(),{src:"/icons/threads-logo-white.svg",className:i.svgIcon,alt:s.formatMessage({defaultMessage:"Threads Image",id:"components.shared.organisms.ShareMenu.4125254437",id:"components.shared.organisms.ShareMenu.4125254437",id:"components.shared.organisms.ShareMenu.4125254437",id:"components.shared.organisms.ShareMenu.4125254437",id:"components.shared.organisms.ShareMenu.4125254437"}),width:0,height:0,style:{width:"1rem",height:"auto"}}),(0,b.jsx)(r.A,{className:i.item,children:s.formatMessage({defaultMessage:"Share on Threads",i
1d:"components.shared.organisms.ShareMenu.865086093",id:"components.shared.organisms.ShareMenu.865086093",id:"components.shared.organisms.ShareMenu.865086093",id:"components.shared.organisms.ShareMenu.865086093",id:"components.shared.organisms.ShareMenu.865086093"})})]})}),(0,b.jsx)(l.A,{onClick:()=>j(M,u,h),children:(0,b.jsxs)(r.A,{"data-testid":"share-via-email",sx:{display:"flex",alignItems:"center"},children:[(0,b.jsx)(d.A,{className:i.icon}),(0,b.jsx)(r.A,{className:i.item,children:s.formatMessage({defaultMessage:"Share via Email",id:"components.shared.organisms.ShareMenu.2397951345",id:"components.shared.organisms.ShareMenu.2397951345",id:"components.shared.organisms.ShareMenu.2397951345",id:"components.shared.organisms.ShareMenu.2397951345",id:"components.shared.organisms.ShareMenu.2397951345"})})]})}),(0,b.jsx)(l.A,{onClick:()=>{navigator.clipboard.writeText(h.url).then(()=>{h.onClose&&h.onClose(),A(s.formatMessage({defaultMessage:"Copied",id:"components.shared.organisms.ShareMenu.2864204643",id:"components.shared.organisms.ShareMenu.2864204643",id:"components.shared.organisms.ShareMenu.2864204643"}))}).catch(t=>{console.error("Failed to copy: ",t)}),j(N,u,h)},children:(0,b.jsxs)(r.A,{"data-testid":"copy-link",sx:{display:"flex",alignItems:"center"},children:[(0,b.jsx)(m.A,{className:i.icon}),(0,b.jsx)(r.A,{className:i.item,children:s.formatMessage({defaultMessage:"Copy link",id:"components.shared.organisms.ShareMenu.2781470033",id:"components.shared.organisms.ShareMenu.2781470033",id:"components.shared.organisms.ShareMenu.2781470033",id:"components.shared.organisms.ShareMenu.2781470033",id:"components.shared.organisms.ShareMenu.2781470033"})})]})}),(0,b.jsx)(p.A,{id:"copied-message",message:D,onClose:()=>A(null)})]}))}},60315:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(73832),a=s(85209),o=s(19265);let n=function(){let{setSessionExpired:t}=(0,i.w)(),{isAuthenticated:e}=(0,a.x)();return{fetchWrapper:async function(s,i,a){if(!(0,o.c)(s))return new Response(JSON.stringify({message:"Invalid URL"}),{status:400,headers:{"Content-Type":"application/json"}});{let o=await fetch(s,{method:i,body:a});if(!e||o?.status!==401)return o;t(!0)}}}}},63631:(t,e,s)=>{s.d(e,{A:()=>S});var i=s(14232),a=s(58794),o=s(59620),n=s(44455),l=s(5788),r=s(48171),c=s(40014),d=s(99220),m=s(5015),g=s(31279),p=s(83551),u=s(91341),f=s(31462),h=s(59828),C=s(36605),b=s(66260),w=s(45015),M=s(84324),y=s(24480),x=s(9111),N=s(89099),j=s(60315),D=s(61484),A=s(46940),L=s(37876);let v=(0,d.n9)()(t=>({label:{display:"block",marginBottom:t.spacing(1)},radioSubtitle:{marginLeft:t.spacing(3.25),"&:first-of-type":{marginBottom:t.spacing(2)}},divider:{borderColor:t.palette.gray.D1D9E2,marginBottom:t.spacing(2)},root:{"& .MuiFormHelperText-contained":{marginLeft:0},"& .MuiOutlinedInput-root":{height:40}},radioGroup:{"& .MuiRadio-root":{paddingTop:t.spacing(.5),paddingBottom:t.spacing(.5)}},buttonProgress:{position:"absolute",top:"25%",left:"36%"},wrapper:{position:"relative",marginBottom:0,"& + .MuiButton-root":{marginLeft:t.spacing(1)}},deleteLink:{position:"absolute",left:t.spacing(3),color:t.palette.error.main,cursor:"pointer",textTransform:"initial"}})),S=t=>{let{pageName:e="",descriptionInitialValue:s="",isPublic:d=!1,open:S,onClose:O,item:P={},isEmptyList:I=!1,editList:k=!1,listIdForUpdateList:R="",handleListData:_,openDeleteListDialog:$}=t,E=(0,a.tz)(),{classes:T}=v(),{actions:F,state:U}=(0,b.u)({actions:{updateAction:w.E}}),{0:B,1:V}=(0,i.useState)(null),{0:z,1:q}=(0,i.useState)(null),{0:W,1:Y}=(0,i.useState)(null),{0:H,1:X}=(0,i.useState)(!1),G=(0,N.useRouter)(),J=d?"public":"private",{fetchWrapper:K}=(0,j.A)(),[Z]=(0,D.M)("wc_isInstitutionalUser"),{collectEvent:Q}=(0,A.$)(),tt=k?E.formatMessage({defaultMessage:"Update list details",id:"components.lists.CreateNewListDialog.3650199219"}):E.formatMessage({defaultMessage:"Create new list",id:"components.lists.CreateNewListDialog.678259782"}),te=k?"update-list-details-form":"create-new-list-form",ts=(t,e)=>({required:E.formatMessage({defaultMessage:"Required field",id:"components.lists.CreateNewListDialog.2369435044"}),maxLength:{value:e,message:E.formatMessage({defaultMessage:"{ fieldName } must not exceed { maxLength }
1 characters",id:"components.lists.CreateNewListDialog.3880181859"},{fieldName:t,maxLength:e})},validate:{badWordsError:e=>!(0,M.A)(e)||E.formatMessage({defaultMessage:"Use of the abusive { fieldName } is not allowed. Kindly enter a different { fieldName }.",id:"components.lists.CreateNewListDialog.2115716907"},{fieldName:t})}}),ti=[{name:"listName",options:ts(E.formatMessage({defaultMessage:"List name",id:"components.lists.CreateNewListDialog.2235257640"}),70)},{name:"listDescription",options:ts(E.formatMessage({defaultMessage:"List description",id:"components.lists.CreateNewListDialog.1495439996"}),500)}],ta={listName:e,listDescription:s,listVisibility:J},{handleSubmit:to,errors:tn,fields:tl,setError:tr,clearErrors:tc,setValue:td,reset:tm}=(0,C.n)({defaultValues:ta},ti),{listName:tg,listDescription:tp}=tl;(0,i.useEffect)(()=>{F.updateAction({listName:e,listDescription:s,listVisibility:J}),td("listName",e),td("listDescription",s),td("listVisibility",J)},[e,s,d]);let tu=()=>{F.updateAction(ta),tm(ta),tf()},tf=()=>{V(null),O()},th=(0,L.jsx)(l.A,{open:!0,variant:"info",role:"alert",style:{alignItems:"flex-start",fontSize:12},children:E.formatMessage({defaultMessage:"You do not have any lists yet. Please create a list to add this item.",id:"components.lists.CreateNewListDialog.3582397643",id:"components.lists.CreateNewListDialog.3582397643"})}),tC=(0,i.useCallback)(async()=>{X(!0);let t="public"===U.listVisibility,e=encodeURIComponent(U.listName),s=encodeURIComponent(U.listDescription),i=`/api/lists?listName=${e}&description=${s}&listVisibility=${t}&isInstitutionalUser=${Z}`,a=await K(i,"POST");a?.status===201?await a.json().then(function(t){Y(t.listId),tw(t.listId,t.listName),X(!1)}):a?.status===400?(X(!1),tr(tg.name,{type:"manual",message:E.formatMessage({defaultMessage:"List name already exists. Enter a different list name.",id:"components.lists.CreateNewListDialog.3537729563"})})):(X(!1),V(E.formatMessage({defaultMessage:"Unable to create a list at the moment. Please try again.",id:"components.lists.CreateNewListDialog.2339304134"})))}),tb=(0,i.useCallback)(async()=>{let t="public"===U.listVisibility,e=encodeURIComponent(U.listName),s=encodeURIComponent(U.listDescription),i=`/api/lists?listId=${R}&listName=${e}&description=${s}&listVisibility=${t}&listById=true&isInstitutionalUser=${Z}`,a=await K(i,"PATCH");a?.status===200?(q(E.formatMessage({defaultMessage:"Your list has been updated",id:"components.lists.CreateNewListDialog.1419937442"})),d!==t&&Q(A.s.list_status_changed,{list_access:U.listVisibility}),_(U.listName,U.listDescription,t),tf()):a?.status===400?tr(tg.name,{type:"manual",message:E.formatMessage({defaultMessage:"List name already exists. Enter a different list name.",id:"components.lists.CreateNewListDialog.3537729563"})}):V(E.formatMessage({defaultMessage:"Unable to process your request. Please try again.",id:"components.lists.CreateNewListDialog.91912734"}))}),tw=(0,i.useCallback)(async(t,e)=>{let s=await K(`/api/lists/${t}?listId=${t}&itemId=${P.oclcNumber}&isInstitutionalUser=${Z}`,"POST");s?.status!==200?V(E.formatMessage({defaultMessage:"Unable to add item to the list. Please try again.",id:"components.lists.CreateNewListDialog.360239402"})):(q(E.formatMessage({defaultMessage:"Your item has been added to the {listName}",id:"components.lists.CreateNewListDialog.3698813850"},{listName:e})),Q(A.s.user_list_created,{list_name:e,list_id:t,list_access:U.listVisibility,import:!1}),Q(A.s.add_item_to_list,{list_name:e,list_id:t,list_access:U.listVisibility}),tu())}),tM=(t,e,s)=>{t.target.value?.trim()?(td(s,t.target?.value?.trim()),F.updateAction({[s]:t.target?.value?.trim()})):tr(s,{type:"manual",message:E.formatMessage({defaultMessage:"Required field",id:"components.lists.CreateNewListDialog.2369435044"})})},ty=function(t,e,s,i,a){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>{};tx(t,s,o),t.target.value.length>i?tr(s,{type:"manual",message:E.formatMessage({defaultMessage:"{ label } must not exceed { maxLength } characters",id:"components.lists.CreateNewListDialog.3537434729"},{label:a,maxLength:i})}):tc(s)},tx=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};s(t);let i=t.target.value;F.updateAction({[e]:i})},tN=(0,L.jsxs)(L.Fragment,{children:[k?(0,L.jsx)(u.A,{"data-testid":"delete-list-link",className:T.deleteLink,onClick:()=>{tf(),$()},children:E.formatMessage({defaultMessage:"Delete List",id:"components.lists.
1CreateNewListDialog.3887659994",id:"components.lists.CreateNewListDialog.3887659994",id:"components.lists.CreateNewListDialog.3887659994"})}):"",(0,L.jsxs)(y.A,{className:T.wrapper,sx:{mb:4},children:[(0,L.jsx)(h.A,{"data-testid":"create-list-dialog-create-button",color:"primary",variant:"contained",type:"submit",disabled:H,children:k?E.formatMessage({defaultMessage:"Update",id:"components.lists.CreateNewListDialog.1458938618",id:"components.lists.CreateNewListDialog.1458938618",id:"components.lists.CreateNewListDialog.1458938618",id:"components.lists.CreateNewListDialog.1458938618"}):E.formatMessage({defaultMessage:"Create",id:"components.lists.CreateNewListDialog.4120989039",id:"components.lists.CreateNewListDialog.4120989039",id:"components.lists.CreateNewListDialog.4120989039",id:"components.lists.CreateNewListDialog.4120989039"})}),H&&(0,L.jsx)(m.A,{size:24,className:T.buttonProgress,"data-testid":"circular-progress"})]}),(0,L.jsx)(h.A,{"data-testid":"create-list-dialog-cancel-button",color:"primary",variant:"outlined",onClick:tu,children:E.formatMessage({defaultMessage:"Cancel",id:"components.lists.CreateNewListDialog.3528672691",id:"components.lists.CreateNewListDialog.3528672691",id:"components.lists.CreateNewListDialog.3528672691"})})]});return S?(0,L.jsxs)(o.A,{hideOnSessionExpire:!0,title:tt,actions:tN,open:!0,onClose:tu,hasForm:!0,id:te,"data-testid":te,onSubmit:to(k?tb:tC),children:[I&&(0,L.jsx)(y.A,{sx:{mb:2},children:th}),B&&(0,L.jsx)(y.A,{sx:{mb:2},children:(0,L.jsx)(l.A,{open:!0,style:{width:"100%"},level:"page",variant:"error",role:"alert","aria-label":B,scrollIntoView:!0,children:B})}),(0,L.jsxs)(y.A,{children:[(0,L.jsx)(n.A,{required:!0,className:T.root,label:E.formatMessage({defaultMessage:"List name",id:"components.lists.CreateNewListDialog.2235257640",id:"components.lists.CreateNewListDialog.2235257640",id:"components.lists.CreateNewListDialog.2235257640",id:"components.lists.CreateNewListDialog.2235257640"}),id:"list-name",slotProps:{htmlInput:{"data-testid":"list-name"}},maxLength:"70",name:tg.name,error:!!tn.listName,value:U?.listName||"",inputRef:tg.ref,autoFocus:!0,onChange:t=>ty(t,!0,tg.name,70,"List name",tg.onChange),onBlur:t=>tM(t,70,tg.name),helperText:tn?.listName?.message}),(0,L.jsx)(n.A,{required:!0,maxLength:"500",multiline:!0,id:"list-description",slotProps:{htmlInput:{"data-testid":"list-description"}},label:E.formatMessage({defaultMessage:"List description",id:"components.lists.CreateNewListDialog.1495439996",id:"components.lists.CreateNewListDialog.1495439996",id:"components.lists.CreateNewListDialog.1495439996",id:"components.lists.CreateNewListDialog.1495439996"}),name:tp.name,error:!!tn.listDescription,value:U?.listDescription||"",onChange:t=>ty(t,!1,tp.name,500,"List description",tp.onChange),onBlur:t=>tM(t,70,tp.name),inputRef:tp.ref,helperText:tn?.listDescription?.message})]}),(0,L.jsx)(f.A,{className:T.divider}),(0,L.jsxs)(y.A,{className:T.radioGroup,sx:{mb:3.5},children:[(0,L.jsx)(c.A,{component:"label",variant:"body2",htmlFor:"list-radio-group",className:T.label,children:(0,L.jsx)("strong",{children:E.formatMessage({defaultMessage:"List privacy",id:"components.lists.CreateNewListDialog.1325206744",id:"components.lists.CreateNewListDialog.1325206744",id:"components.lists.CreateNewListDialog.1325206744",id:"components.lists.CreateNewListDialog.1325206744",id:"components.lists.CreateNewListDialog.1325206744"})})}),(0,L.jsxs)(p.A,{onChange:t=>tx(t,"listVisibility"),value:U?.listVisibility||"private",children:[(0,L.jsx)(g.A,{"data-testid":"list-private",value:"private",control:(0,L.jsx)(r.A,{}),label:E.formatMessage({defaultMessage:"Private",id:"components.lists.CreateNewListDialog.479536455",id:"components.lists.CreateNewListDialog.479536455",id:"components.lists.CreateNewListDialog.479536455",id:"components.lists.CreateNewListDialog.479536455",id:"components.lists.CreateNewListDialog.479536455"}),"aria-label":E.formatMessage({defaultMessage:"Private. Only you can view this list.",id:"components.lists.CreateNewListDialog.3858888477",id:"components.lists.CreateNewListDialog.3858888477",id:"components.lists.
1CreateNewListDialog.3858888477",id:"components.lists.CreateNewListDialog.3858888477",id:"components.lists.CreateNewListDialog.3858888477"})}),(0,L.jsx)(c.A,{variant:"body2",className:T.radioSubtitle,children:E.formatMessage({defaultMessage:"Only you can view this list.",id:"components.lists.CreateNewListDialog.3786408260",id:"components.lists.CreateNewListDialog.3786408260",id:"components.lists.CreateNewListDialog.3786408260",id:"components.lists.CreateNewListDialog.3786408260",id:"components.lists.CreateNewListDialog.3786408260"})}),(0,L.jsx)(g.A,{"data-testid":"list-public",value:"public",control:(0,L.jsx)(r.A,{}),label:E.formatMessage({defaultMessage:"Public",id:"components.lists.CreateNewListDialog.3135366329",id:"components.lists.CreateNewListDialog.3135366329",id:"components.lists.CreateNewListDialog.3135366329",id:"components.lists.CreateNewListDialog.3135366329",id:"components.lists.CreateNewListDialog.3135366329"}),"aria-label":E.formatMessage({defaultMessage:"Public. Anyone on WorldCat.org will be able to view, cite, share this list.",id:"components.lists.CreateNewListDialog.631346210",id:"components.lists.CreateNewListDialog.631346210",id:"components.lists.CreateNewListDialog.631346210",id:"components.lists.CreateNewListDialog.631346210",id:"components.lists.CreateNewListDialog.631346210"})}),(0,L.jsx)(c.A,{variant:"body2",className:T.radioSubtitle,children:E.formatMessage({defaultMessage:"Anyone on WorldCat.org will be able to view, cite, share this list.",id:"components.lists.CreateNewListDialog.2130409648",id:"components.lists.CreateNewListDialog.2130409648",id:"components.lists.CreateNewListDialog.2130409648",id:"components.lists.CreateNewListDialog.2130409648",id:"components.lists.CreateNewListDialog.2130409648"})})]})]})]}):z?(0,L.jsx)(x.A,{id:"create-list-and-add-item-success",message:z,customAction:!k,actionLabel:!k&&E.formatMessage({defaultMessage:"View list",id:"components.lists.CreateNewListDialog.3262240689",id:"components.lists.CreateNewListDialog.3262240689"}),onClick:()=>{G.push(`/lists/${W}`),q(null)},onClose:()=>q(null)}):null}},87487:(t,e,s)=>{s.d(e,{A:()=>V});var i=s(47175),a=s(1433),o=s(24480),n=s(40014),l=s(14232),r=s(22997),c=s(41381),d=s(59534),m=s(59828),g=s(94933),p=s(2267),u=s(58794),f=s(5788),h=s(99220),C=s(9111),b=s(47404),w=s(6707),M=s(46940),y=s(61484),x=s(69364),N=s(49473),j=s(60315),D=s(85124),A=s(31462),L=s(5015),v=s(23378),S=s(85209),O=s(89099),P=s(37876);let I=(0,h.n9)()(t=>({text:{height:"10em",border:`1px solid ${t.palette.gray.secondary}`,padding:t.spacing(1),borderRadius:4,overflowY:"auto","& .csl-left-margin, & .csl-right-inline":{display:"inline"}},button:{marginRight:t.spacing(2)},buttonProgress:{position:"absolute",top:"2%",left:"45%"},notification:{marginTop:t.spacing(1),marginBottom:t.spacing(2)},menuItem:{whiteSpace:"pre-wrap"}})),k=t=>{var e,s,i;let a,n,h=(0,u.tz)(),k=new Intl.NumberFormat((0,x.EM)()),{classes:R}=I(),_=(0,d.A)(),$=(0,l.useRef)(null),{collectEvent:E}=(0,M.$)(),[T,F]=(0,y.M)("wc_citationStyle"),{0:U,1:B}=(0,l.useState)(!1),{0:V,1:z}=(0,l.useState)(!1),[q]=(0,y.M)("wc_isInstitutionalUser"),W=t.listId&&"listsPage"===t.fromPage?`/api/lists/${t.listId}?bulkCitations=true&isInstitutionalUser=${q}&isPublicList=${t.isPublic}`:null,{data:Y}=(0,r.u)(D.o&&W?W:null),H="u">typeof location?encodeURIComponent(`${location.pathname}${location.search}`):"",X=`/user/sign-in/email?returnUrl=${H}?openDialog=bulkCitations`,G=`/create-account?returnUrl=${H}?openDialog=bulkCitations`,{isAuthenticated:J}=(0,S.x)(),K=(0,O.useRouter)(),{openDialog:Z}=K.query;J&&"bulkCitations"===Z&&K.replace(location.pathname);let{0:Q,1:tt}=(0,l.useState)(()=>T||{key:null,title:h.formatMessage({defaultMessage:"Select",id:"components.citations.Citations.4070151372"})}),{0:te,1:ts}=(0,l.useState)(null),{0:ti,1:ta}=(0,l.useState)(null),{0:to,1:tn}=(0,l.useState)(!1),tl=t=>t?.citationsResponse?.hasProblems&&t.citationsResponse.oclcNumbersNotCited?.length||0,tr=h.formatMessage({defaultMessage:"Citation is ready",id:"components.citations.Citations.3057637209"}),{data:tc,error:td}=(0,r.u)("/api/citations/styles"),tm=void 0!==Y&&Y?.itemIds?.length>0,tg=tm?Y?.itemIds:t.oclcNumber,{data:tp,error:tu}=(0,r.u)(Q.key?`/api/citations/${tg}?citationStyle=${Q.key}`:null);(0,l.useEffect)(()=>
1{if(tp){tn(!0);let e=tl(tp);if(e>0?B(!0):B(!1),"listsPage"===t.fromPage&&Q.key){let s=e?t.itemCount-k.format(e):t.itemCount;E(M.s.user_list_cited,{citation_style:Q.key,total_items:t.totalRecords,number_of_items_cited:s})}else Q.key&&E(M.s.item_cited,{citation_style:Q.key})}},[tp]);let tf="ON"===t.citationsRisExportToggle,{fetchWrapper:th}=(0,j.A)(),tC=async()=>{try{z(!0),(await th(`/api/citations/export?oclcNumbers=${tg}`)).json().then(e=>{z(!1);let{citationText:s}=e||{};if(s){let e=new Blob([s],{type:"text/plain;charset=utf-8"});(0,N.saveAs)(e,`${t.citationTitle}.ris`)}let i=s?h.formatMessage({defaultMessage:"RIS file has been downloaded",id:"components.citations.Citations.3418473797"}):h.formatMessage({defaultMessage:"Failed to download RIS file",id:"components.citations.Citations.1657530099"});ta(i)})}catch{z(!1),ta(h.formatMessage({defaultMessage:"Failed to download RIS file",id:"components.citations.Citations.1657530099"}))}};if(!tc||td)return null;let tb=k.format(t.totalRecords),tw=h.formatMessage({defaultMessage:"Login or create an account to cite all {count} results",id:"components.citations.Citations.848832253"},{count:tb});return(0,P.jsxs)(P.Fragment,{children:["listsPage"===t.fromPage&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o.A,{sx:{fontStyle:"italic"},children:tm?(0,P.jsx)(P.Fragment,{children:1===t.numRecords?h.formatMessage({defaultMessage:"Citing {0}-{2} of {2} Result",id:"components.citations.Citations.1514230741",id:"components.citations.Citations.1514230741"},{0:k.format(t.offset),2:k.format(t.totalRecords)}):h.formatMessage({defaultMessage:"Citing {0}-{2} of {2} Results",id:"components.citations.Citations.1820627930",id:"components.citations.Citations.1820627930"},{0:k.format(t.offset),2:k.format(t.totalRecords)})}):t.ListItemsCount()}),!J&&tb>25&&(0,P.jsx)(o.A,{className:R.notification,children:(0,P.jsxs)(f.A,{ariaLabel:tw,open:!0,style:{width:"100%"},level:"section",variant:"info","data-testid":"bulk-citations-notification",children:[(0,P.jsx)(v.A,{"data-testid":"citations-sign-in-link-lists",href:X,children:h.formatMessage({defaultMessage:"Log-in",id:"components.citations.Citations.112016981",id:"components.citations.Citations.112016981",id:"components.citations.Citations.112016981",id:"components.citations.Citations.112016981",id:"components.citations.Citations.112016981",id:"components.citations.Citations.112016981"})}),"\xa0",h.formatMessage({defaultMessage:"or",id:"components.citations.Citations.117848935",id:"components.citations.Citations.117848935",id:"components.citations.Citations.117848935",id:"components.citations.Citations.117848935",id:"components.citations.Citations.117848935"}),"\xa0",(0,P.jsx)(v.A,{"data-testid":"citations-create-account-link-lists",href:G,children:h.formatMessage({defaultMessage:"create an account",id:"components.citations.Citations.2132450234",id:"components.citations.Citations.2132450234",id:"components.citations.Citations.2132450234",id:"components.citations.Citations.2132450234",id:"components.citations.Citations.2132450234",id:"components.citations.Citations.2132450234"})}),"\xa0 ",h.formatMessage({defaultMessage:"to cite all {count} results",id:"components.citations.Citations.3848435374",id:"components.citations.Citations.3848435374",id:"components.citations.Citations.3848435374",id:"components.citations.Citations.3848435374",id:"components.citations.Citations.3848435374"},{count:tb})]})})]}),(0,P.jsx)(o.A,{sx:{mt:1.5},children:(0,P.jsx)(A.A,{})}),(0,P.jsxs)(o.A,{sx:{mt:1.5,display:"flex",flexDirection:"column"},children:[(0,P.jsx)(w.A,{htmlFor:"citationsSelect",children:h.formatMessage({defaultMessage:"Select a citation style:",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788"})}),tc&&(0,P.jsx)(b.A,{"data-testid":"citations-select",variant:"normal",style:{width:"100%"},id:"citationsSelect",value:Q.key||"",labelInfo:h.formatMessage({defaultMessage:"Select a citation style:",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788",id:"components.citations.Citations.127669788"}),renderValue:()=>Q.title,onChange:(t,e)=>{let s={key:t.target.value,title:e.props.children};tt(s),F(s),B(!1)},children:tc.styles.map((t,e)=>(0,P.jsx)(c.A,{"data-testid":"citations-select-item",className:R.menuItem,value:t.key,children:t.title},t.key))}),"listsPage"===t.fromPage&&(n=tl(tp),U?(0,P.jsx)(o.A,{sx:{mt:2*!!to},children:(0,P.jsxs)(f.A,{showClose:!0,variant:"warning","data-testid":"citations-warning-notification",open:U,onClose:()=>{B(!1)},children:[1===n&&h.formatMessage({defaultMessage:"Unable to generate citations for {0}
1 item due to unsupported format.",id:"components.citations.Citations.4192344298",id:"components.citations.Citations.4192344298",id:"components.citations.Citations.4192344298"},{0:k.format(n)}),n>1&&h.formatMessage({defaultMessage:"Unable to generate citations for {0} items due to unsupported format.",id:"components.citations.Citations.3195062956",id:"components.citations.Citations.3195062956",id:"components.citations.Citations.3195062956"},{0:k.format(n)})]})}):null),(0,P.jsxs)(o.A,{sx:{mt:2},children:[(0,P.jsx)("div",{contentEditable:"false",className:R.text,ref:$,dangerouslySetInnerHTML:{__html:(e=tp,s=tu,i=Q,a=s||e&&!e.citationsResponse?h.formatMessage({defaultMessage:"No citations available",id:"components.citations.Citations.2500648962"}):e?.citationsResponse?.citationText||e?.citationsResponse?.data?'<div style="margin-bottom:16px">'+(e.citationsResponse.citationText||e.citationsResponse.data)+'</div> <div aria-live="polite" role="region" aria-label="'+tr+'" />':i.key?tm?h.formatMessage({defaultMessage:"Loading citations for {count} items...",id:"components.citations.Citations.377434478"},{count:t.totalRecords}):t.itemCount>1?h.formatMessage({defaultMessage:"Loading citations for {count} items...",id:"components.citations.Citations.377434478"},{count:t.itemCount}):h.formatMessage({defaultMessage:"Loading citations for {count} item...",id:"components.citations.Citations.3140175948"},{count:1}):"")}}),tp&&(0,P.jsx)("div",{role:"region","aria-label":h.formatMessage({defaultMessage:"Citation ready for copying and downloading",id:"components.citations.Citations.2759591537",id:"components.citations.Citations.2759591537",id:"components.citations.Citations.2759591537",id:"components.citations.Citations.2759591537",id:"components.citations.Citations.2759591537"})})]}),(0,P.jsx)(o.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",my:2},children:(0,P.jsxs)(o.A,{sx:{ml:"auto"},children:[tf&&(0,P.jsxs)(o.A,{sx:{position:"relative",display:"inline"},children:[(0,P.jsx)(m.A,{"data-testid":"citations-download-button",disabled:V,dense:!0,variant:"outlined",color:"primary",textColor:_.palette.misc["0D1A2D"],onClick:tC,startIcon:(0,P.jsx)(p.A,{}),className:R.button,title:h.formatMessage({defaultMessage:"Download a RIS file for use in EasyBib, Mendeley, Zotero, and more.",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870",id:"components.citations.Citations.3848003870"}),children:h.formatMessage({defaultMessage:"Download RIS",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425",id:"components.citations.Citations.3525845425"})}),V&&(0,P.jsx)(L.A,{size:20,className:R.buttonProgress,"data-testid":"circular-progress"})]}),(0,P.jsx)(m.A,{"data-testid":"citations-copy-citation-button",dense:!0,variant:"outlined",color:"primary",textColor:_.palette.misc["0D1A2D"],onClick:function(){if(!document.createRange||!window.getSelection||!document.execCommand)return void ts(h.formatMessage({defaultMessage:"Error copying citation to clipboard",id:"components.citations.Citations.4098512670"}));let t=$.current,e=document.createRange();e.selectNodeContents(t);let s=window.getSelection();s.removeAllRanges(),s.addRange(e),document.execCommand("copy"),ts(h.formatMessage({defaultMessage:"Citation copied to clipboard",id:"components.citations.Citations.428075147"}))},disabled:!(Q.key&&tp&&tp.citationsResponse),startIcon:(0,P.jsx)(g.A,{}),children:h.formatMessage({defaultMessage:"Copy Citation",id:"components.citations.Citations.2704925689",id:"components.citations.Citations.2704925689",id:"components.citations.Citations.2704925689",id:"components.citations.Citations.2704925689",id:"components.citations.Citations.2704925689",id:"components.citations.Citations.2704925689"})})]})}),(0,P.jsx)(C.A,{id:"citations-copied-message",message:te,onClose:()=>ts(null)}),(0,P.jsx)(C.A,{id:"citations-download-message",message:ti,onClose:()=>ta(null)})]})]})};var R=s(24191),_=s(63060),$=s(68428),E=s(99027),T=s(59620);let F=["listId","isPublic","item","fromPage","listName","owner","offset","numRecords","totalRecords","coverArtUrl","citationsRisExportToggle"];function U(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}function B(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};
1e%2?U(Object(s),!0).forEach(function(e){(0,i.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):U(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}let V=t=>{let e=(0,u.tz)(),{0:s,1:i}=(0,l.useState)(!1),r=new Intl.NumberFormat((0,x.EM)()),{listId:c,isPublic:d,item:m,fromPage:g,listName:p="",owner:f="",offset:h,numRecords:C,totalRecords:b,coverArtUrl:w,citationsRisExportToggle:M}=t,y=(0,a.A)(t,F),N=h+C-1,j=[];(0,l.useEffect)(()=>{i(m?.publisherName?.romanizedText?.length>0)},[]);let D=Array.isArray(m)?(m?.forEach(function(t){j.push(t.oclcNumber)}),j):m.oclcNumber,A="listsPage"!==g?e.formatMessage({defaultMessage:"Cite a Record",id:"components.citations.CitationsDialog.2806783272"}):e.formatMessage({defaultMessage:"Cite a List",id:"components.citations.CitationsDialog.4028181536"}),L=e.formatMessage({defaultMessage:"You are currently in Citations window, press Esc to close the window",id:"components.citations.CitationsDialog.230073308"}),v="listsPage"!==g?m?.title:p;return(0,P.jsxs)(T.A,B(B({title:A,describedby:L},y),{},{children:["listsPage"!==g?(0,P.jsxs)(o.A,{sx:{display:"flex",alignItems:"start"},children:[(0,P.jsx)(R.A,{item:m,width:70,coverArtUrl:w}),(0,P.jsxs)(o.A,{sx:{ml:2,display:"flex",flexDirection:"column"},children:[(0,P.jsx)(o.A,{sx:{mb:1},children:(0,P.jsx)($.A,{item:m,showButton:!1})}),(0,P.jsx)(o.A,{children:(0,P.jsx)(_.A,{item:m,numberOfLines:1,showButton:!1})}),(0,P.jsx)(o.A,{children:(0,P.jsx)(E.A,{item:m})}),(0,P.jsxs)(o.A,{children:[m.publisher," ",s?(0,P.jsxs)(P.Fragment,{children:[" / ",m?.publisherName?.romanizedText," "]}):null]})]})]}):(0,P.jsx)(o.A,{children:(0,P.jsxs)(o.A,{sx:{display:"flex",flexDirection:"column"},children:[(0,P.jsx)(o.A,{sx:{mb:.5},children:(0,P.jsx)(n.A,{variant:"h3",component:"h1",sx:{display:"inline"},children:p})}),(0,P.jsxs)(o.A,{sx:{mb:1},children:[e.formatMessage({defaultMessage:"By",id:"components.citations.CitationsDialog.1052794314",id:"components.citations.CitationsDialog.1052794314",id:"components.citations.CitationsDialog.1052794314",id:"components.citations.CitationsDialog.1052794314",id:"components.citations.CitationsDialog.1052794314"})," ",f]})]})}),(0,P.jsx)(o.A,{children:(0,P.jsx)(k,{listId:c,ListItemsCount:()=>(0,P.jsx)(P.Fragment,{children:1===C?e.formatMessage({defaultMessage:"Citing {0}-{1} of {2} Result",id:"components.citations.CitationsDialog.1846380687",id:"components.citations.CitationsDialog.1846380687"},{0:r.format(h),1:r.format(N),2:r.format(b)}):e.formatMessage({defaultMessage:"Citing {0}-{1} of {2} Results",id:"components.citations.CitationsDialog.1803091005",id:"components.citations.CitationsDialog.1803091005"},{0:r.format(h),1:r.format(N),2:r.format(b)})}),offset:h,isPublic:d,oclcNumber:D?.toString(),itemCount:C,fromPage:g,totalRecords:b,citationTitle:v,citationsRisExportToggle:M})})]}))}}}]);

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.