PageSourceSearch

https://museeingresbourdelle.com/appstatic/js/4182.b72a022dc0dbc5a57177.chunk.js

js museeingresbourdelle.com collected 2026-10-01 12:26:04 UTC 19,082 bytes, 1 lines download raw bytes

1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[4182],{504182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PrintDialogContainer:()=>ne,default:()=>re});var r=n(667294),i=n.n(r),o=n(837424),a=n(966711),l=n(954618),s=n(45697),c=n.n(s),u=n(825387),f=n(556261),p=n(203022),d=n(511186),m=n(860323),g=n(387591),h=n(108330),y=n(933084),b=n(22693),C=n(248304),P=n(230866),v=n(483638),E=n(497144);const L="bB4OMtmO+ufFwvxqOiDL4w==";var w,D,N,O=n(232316),F=n(991629),S=n(9887),x=n(907554),M=n(360869),k=n(531126),B=n(885461),j=n(711970),A=n(254846),I=n(710632),R=n(793962);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var i=z(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var H=n(65470),K=(w=(0,O.withStyles)((function(e){return{iconStyle:{margin:"10px 12px",":before":{fontSize:"3rem"}},icon:{color:e.palette.primary1Color},loader:{textAlign:"center"},linearProgress:{width:"100%"},chipContainer:{marginBottom:"20px"},chip:{margin:"4px 0px"}}})),(0,f.XN)(D=w(D=(0,M.Z)((N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,n,r,o=W(a);function a(){var e;T(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={nextAction:null,branchFilter:["ALL"],noticeBranchList:[],isDisplayingBranchFilter:!1,isConfirmedBranchFilter:!1,isDisplayingConfirmation:!1,isConfirmedConfirmation:!1,isLoadingNoticeBranchList:!1},e.handleCancel=function(){(0,e.props.onCancel)()},e.handleFile=function(){var t=e.props.jobId;H.gecko?window.location.href="/in/rest/annotationSVC/getExportFile/".concat(t):window.open("/in/rest/annotationSVC/getExportFile/".concat(t))},e.handlePrintNotice=function(){var t=e.props,n=t.ids,r=t.token,i=t.queryId,o=t.onPrint,a=t.onExport,l=t.aspect,s=t.imagesOnly,c=t.imagesOriginal,u=t.displayConfirmationPopup,f=t.isBranchFilterActive,p=e.state,d=p.branchFilter,m=p.isConfirmedConfirmation,g=p.isDisplayingConfirmation,h=p.isConfirmedBranchFilter;l?a(l,"pdf"):s?o({type:c?"imageAttachmentOriginal":"imageAttachment",display:"export",ids:n,queryId:i}):f&&!h?n&&1===n.length?e.setState({isDisplayingBranchFilter:!0,isLoadingNoticeBranchList:!0,nextAction:e.handlePrintNotice},(function(){R.h.noticeLocations(r,n[0]).then((function(t){e.setState({noticeBranchList:t||[],isLoadingNoticeBranchList:!1})})).catch((function(t){e.setState({noticeBranchList:[],isLoadingNoticeBranchList:!1})}))})):e.setState({isDisplayingBranchFilter:!0,nextAction:e.handlePrintNotice}):!u||g||m?o({type:"pdf",display:"export",ids:n,queryId:i,branchFilter:d.join(",")}):e.setState({isDisplayingConfirmation:!0,nextAction:e.handlePrintNotice})},e.handlePrintCallNumber=function(t){var n=e.props,r=n.queryId,i=n.ids,o=n.onPrintCallNumber,a=n.displayPrintCallNumber,l=n.displayConfirmationPopup,s=e.state,c=s.isConfirmedConfirmation,u=s.isDisplayingConfirmation;!l||u||c?(a&&o({mode:t,ids:i,queryId:r}),e.setState({printCallNumber:!0,mode:t})):e.setState({isDisplayingConfirmation:!0,nextAction:function(){return e.handlePrintCallNumber(t)}})},e.handleIEPrint=function(){H.chrome?e.handlePrint():e.iframe&&(e.iframe.contentWindow.focus(),e.iframe.contentWindow.setTimeout((function(){e.iframe.contentWindow.document.execCommand("print",!1,null)}),1))},e.handlePrint=function(){e.iframe&&(e.iframe.contentWindow.focus(),e.iframe.contentWindow.print())},e.renderChromeAutoPrint=function(){var t="/in/rest/annotationSVC/getExportFile/".concat(e.props.jobId,"?notAttachment=true");return window.setTimeout((function(){e.props.onTriggerPrint(t)}),1),i().createElement("div",null)},e.renderPrintPreview=function(){var t=e.props,n=t.intl,r=t.open,o=n.formatMessage;return i().createElement(h.default,{open:r,onClose:e.handleCancel,TransitionComponent:F.Z},i().createElement(b.default,{style:{maxWidth:"320px"}},i().createElement(p.default,null,i().createElement("iframe",{frameBorder:0,ref:function(t){e.iframe=t},src:"/in/rest/annotationSVC/getExportFile/".concat(e.props.jobId,"?notAttachment=true"),width:320,height:480,scrolling:"yes"}))),i().createElement(y.default,null,i().createElement(v.default,{color:"primary",onClick:e.handleCancel},o({id:"PrintDialog.cancel",defaultMessage:"Cancel"})),i().createElement(v.default,{color:"primary",onClick:e.handleIEPrint},o({id:"PrintDialog.print",defaultMessage:"Print"}))))},e.renderAutoPrint=function(){return H.gecko?(window.location.href="/in/rest/annotationSVC/getExportFile/".concat(e.props.jobId,"?notAttachment=true"),null):H.msie?e.renderPrintPreview():e.renderChromeAutoPrint()},e.isPrintCallNumber=function(){return!!e.state&&e.state.printCallNumber},e.needToUseDownload=function(){return!e.isPrintCallNumber()&&H.msie},e.renderResults=function(){return e.needToUseDownload()?i().createElement(h.default,{open:!0,onClose:e.handleCancel,TransitionComponent:F.Z},i().createElement(b.default,{style:{maxWidth:"320px"}},i().createElement(p.default,null,e.renderDownloadButton()))):e.renderAutoPrint()},e.renderDownloadButton=function(){var t=e.props,n=t.intl,r=t.classes,o=n.formatMessage;return i().createElement(m.default,{key:"notice",button:!0,onClick:e.handleFile},i().createElement(d.Z,null,i().createElement(C.Z,{color:"primary",className:"".concat(L," ").concat(r.iconStyle)})),i().createElement(g.Z,{primary:o({id:"PrintDialog.downloadFile",defaultMessage:"Download your file"})}))},e.renderPrintButtons=function(){var t=e.props,n=t.displayPrintCallNumber,r=t.onPrintMarcNotice,o=t.aspect,a=t.classes,l=t.queryId,s=t.params,c=i().createElement(C.Z,{className:a.icon},"local_printshop"),u=[i().createElement(m.default,{key:"notice",button:!0,onClick:e.handlePrintNotice},i().createElement(d.Z,null,c),i().createElement(g.Z,{primary:e.getLabel("notice",{id:"PrintDialog.printNotice",defaultMessage:"Entry"})}))];return n&&!o&&(u.push(i().createElement(m.default,{key:"callNumberShort",button:!0,onClick:function(){return e.handlePrintCallNumber("short")}},i().createElement(d.Z,null,c),i().createElement(g.Z,{primary:e.getLabel("callNumberShort",{id:"PrintDialog.printCallNumberShort",defaultMessage:"Call number (short)"})}))),u.push(i().createElement(m.default,{key:"callNumberLong",button:!0,onClick:function(){return e.handlePrintCallNumber("long")}},i().createElement(d.Z,null,c),i().createElement(g.Z,{primary:e.getLabel("callNumberLong",{id:"PrintDialog.printCallNumberLong",defaultMessage:"Call number (long)"})}
1)))),l&&l.includes("MarcNoticePdf")&&(u=[]).push(i().createElement(m.default,{key:"marcNoticePdf",button:!0,onClick:function(){(0,E.PF)((function(){var e=l.split("_")[0],t=l.split("_")[1];r(s.ids[0],e,t)}))()}},i().createElement(d.Z,null,c),i().createElement(g.Z,{primary:e.getLabel("printMarcNoticePdf",{id:"MetaFieldsBlock.printMarcNotice",defaultMessage:"Print marc notice"})}))),u},e.renderMessageCount=function(){var t=e.props,n=t.ids,r=t.queryId,o=t.resultsCount,a=t.displayMessage,l=t.exportResultListLimit,s=t.processing,c=t.rights,f=t.intl.formatMessage;if(!a||s)return null;var p=l,d=parseInt(c.get("exportResultListLimit"),10);!isNaN(d)&&d<p&&(p=d);var h=null;return n.length&&n.length<=p&&(h=n.length),r&&o<=p&&(h=o),h&&h<=p?i().createElement(m.default,null,i().createElement(g.Z,{secondary:i().createElement(u._H,{id:"PrintDialog.selectionCount",defaultMessage:"{count, number} {count, plural, one {{singular}} other {{plural}}}",values:{count:h,singular:f({id:"PrintDialog.selectedItem",defaultMessage:"selected item."}),plural:f({id:"PrintDialog.selectedElements",defaultMessage:"selected items."})}})})):i().createElement(m.default,null,i().createElement(g.Z,{secondary:i().createElement(u._H,{id:"PrintDialog.resultsCount",defaultMessage:"{resultFirst} {count, number} {count, plural, other {{plural}}}",values:{resultFirst:f({id:"PrintDialog.resultFirst",defaultMessage:"The first"}),count:p,plural:f({id:"PrintDialog.resultElements",defaultMessage:"results will be displayed"})}})}))},e.handleDeleteBranchFilter=function(t){var n=e.state.branchFilter;0===(n=n.filter((function(e){return t!==e}))).length&&(n=["ALL"]),e.setState({branchFilter:n})},e.handleChangeBranchFilter=function(t){var n=e.state.branchFilter,r=t.target.value;n="ALL"===n[0]||"ALL"===r?[r]:n.concat([r]),e.setState({branchFilter:n})},e}return t=a,n=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.isBranchFilterActive,r=t.branchFilterListId,i=t.onLoadListData,o=t.processing,a=t.jobId,l=t.aspect,s=t.displayPrintCallNumber,c=t.imagesOnly,u=t.queryId,f=t.ids;if(n&&r&&i(r),"true"===(0,E.ej)("opac"))!o&&!a&&s&&(u||f.length>0)&&window.setTimeout((function(){e.handlePrintCallNumber("short")}),1);else if(!o&&!a){var p=c&&(!u||f.length>0),d=!s&&!u&&f.length>0;(p||d||l)&&window.setTimeout((function(){e.handlePrintNotice()}),1)}}},{key:"getLabelByKey",value:function(e){var t=this.props.labels,n=t?t.toJS():void 0;if(e&&n&&n[e])return n[e]}},{key:"getLabel",value:function(e,t){var n=this.props.intl,r=this.props.localized,i=this.getLabelByKey(e);return void 0===i||""===r(i)?n.formatMessage(t):r(i)}},{key:"renderLoader",value:function(){var e=this.props.classes;return i().createElement("div",{className:e.linearProgress},i().createElement(P.Z,null))}},{key:"renderDialogConfirmation",value:function(){var e=this,t=this.props,n=t.open,r=t.intl,o=this.state.nextAction,a=r.formatMessage;return i().createElement(h.default,{open:n,TransitionComponent:F.Z},i().createElement(S.Z,null,a({id:"PrintDialog.confirmDialogTitle",defaultMessage:"Printing confirmation"})),i().createElement(x.Z,null),i().createElement(b.default,{style:{paddingTop:"24px"}},a({id:"PrintDialog.confirmDialogDescription",defaultMessage:"Are you sure you want to print?"})),i().createElement(x.Z,null),i().createElement(y.default,null,i().createElement(v.default,{color:"primary",onClick:function(){return e.setState({isConfirmedConfirmation:!0},o)}},a({id:"PrintDialog.print",defaultMessage:"Print"})),i().createElement(v.default,{color:"primary",onClick:this.handleCancel},a({id:"PrintDialog.cancel",defaultMessage:"Cancel"}))))}},{key:"renderBranchFilterDialog",value:function(){var e=this,t=this.props,n=t.open,r=t.intl,o=t.classes,a=t.localized,l=t.branchOptions,s=t.isLoadingOptions,c=this.state,u=c.nextAction,f=c.branchFilter,p=c.noticeBranchList,d=c.isLoadingNoticeBranchList,m=r.formatMessage;return i().createElement(h.default,{open:n,TransitionComponent:F.Z,fullWidth:!0,maxWidth:"sm"},i().createElement(S.Z,null,m({id:"PrintDialog.branchFilterTitle",defaultMessage:"Libraries displayed"})),i().createElement(x.Z,null),i().createElement(b.default,{style:{paddingTop:"24px",textAlign:"center"}},s||d?i().createElement(P.Z,null):i().createElement(B.default,null,i().createElement("div",{className:o.chipContainer},"ALL"!==f[0]&&f.map((function(t){return i().createElement("div",null,i().createElement(I.Z,{key:t,label:a(l.filter((function(e){return e.value===t}))[0].text),classes:{root:o.chip},onDelete:function(){return e.handleDeleteBranchFilter(t)}}))}))),i().createElement(j.default,{value:f,onChange:this.handleChangeBranchFilter,input:i().createElement(A.default,{id:"select-multiple-chip"}),renderValue:function(e){return 1===e.length&&"ALL"===e[0]?m({id:"PrintDialog.allLibraries",defaultMessage:"All libraries"}):"..."}},i().createElement(k.default,{key:"ALL",value:"ALL",selected:f.includes("ALL")},m({id:"PrintDialog.allLibraries",defaultMessage:"All libraries"})),l.filter((function(e){return!f.includes(e.value)})).filter((function(e){return 0===p.length||p.includes(e.value)})).sort((function(e,t){var n=a(e.text)||"",r=a(t.text)||"";return n<r?-1:n>r?1:0})).map((function(e){return i().createElement(k.default,{key:e.value,value:e.value},a(e.text))}))))),i().createElement(x.Z,null),i().createElement(y.default,null,i().createElement(v.default,{color:"primary",disabled:s,onClick:function(){return e.setState({branchFilter:f,isConfirmedBranchFilter:!0},u)}},m({id:"PrintDialog.print",defaultMessage:"Print"})),i().createElement(v.default,{color:"primary",onClick:this.handleCancel},m({id:"PrintDialog.cancel",defaultMessage:"Cancel"}))))}},{key:"renderDialogContent",value:function(){return this.props.processing?this.renderLoader():i().createElement(p.default,null,this.renderMessageCount(),this.renderPrintButtons())}},{key:"render",value:function(){var e=this.props,t=e.open,n=e.jobId,r=e.progress,o=e.processing,a=e.displayConfirmationPopup,l=this.state,s=l.isDisplayingBranchFilter,c=l.isConfirmedBranchFilter,u=l.isDisplayingConfirmation,f=l.isConfirmedConfirmation;return s&&!c?this.renderBranchFilterDialog():a&&u&&!f?this.renderDialogConfirmation():n&&100===r?this.renderResults():i().createElement(h.default,{open:t,onClose:this.handleCancel,TransitionComponent:F.Z},i().createElement(b.default,{style:o?{}:{minWidth:"300px",padding:0}},this.renderDialogContent()))}}],n&&q(t.prototype,n),r&&q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(i().Component),N.propTypes={classes:c().object.isRequired,token:c().string,locale:c().string,intl:f.gm.isRequired,ids:c().array.isRequired,queryId:c().string,resultsCount:c().number,aspect:c().string,displayMessage:c().bool,imagesOnly:c().bool,imagesOriginal:c().bool,hostName:c().string.isRequired,exportResultListLimit:c().number.isRequired,displayPrintCallNumber:c().bool.isRequired,displayConfirmationPopup:c().bool.isRequired,processing:c().bool,isBranchFilterActive:c().bool,branchFilterListId:c().string,branchOptions:c().array,isLoadingOptions:c().bool,rights:c().object.isRequired,progress:c().number,progressTotal:c().number,progressCount:c().number,jobId:c().string,url:c().string,open:c().bool,onCancel:c().func.isRequired,onPrint:c().func.isRequired,onExport:c().func.isRequired,onLoadListData:c().func.isRequired,onTriggerPrint:c().func.isRequired,onPrintCallNumber:c().func.isRequired,onPrintMarcNotice:c().func.isRequired,labels:c().object,localized:c().func},N.defaultProps={displayConfirmationPopup:!1},D=N))||D)||D)||D),Q=n(97845),U=n(615400);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(a,e);var t,n,r,o=$(a);function a(){return J(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return i().createElement(K,this.props)}}])&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(i().Component);const re=(0,o.connect)((function(e,t){var n="true"===(0,Q.jQ)(e).isBranchFilterActive,r=(0,Q.jQ)(e).branchFilterListId,i=null,o=!1;return n&&(i=(0,Q.VX)(e,r),o=(0,Q.FI)(e,r)),{isBranchFilterActive:n,branchFilterListId:r,branchOptions:i&&i.properties&&i.properties.values,isLoadingOptions:o,token:e.getIn(["account","token"]),locale:e.getIn(["language","locale"]),ids:a.dm(e),url:a.Ss(e,"url",null),queryId:a.Ss(e,"queryId",null),aspect:a.Ss(e,"aspect",null),resultsCount:a.Ss(e,"resultsCount",null),imagesOnly:a.Ss(e,"imagesOnly",null),imagesOriginal:a.Ss(e,"imagesOriginal",null),jobId:a.Ss(e,"jobId",""),hostName:e.getIn(["settings","hostName"]),exportResultListLimit:e.getIn(["settings","exportResultListLimit"]),rights:e.getIn(["account","rights"]),displayPrintCallNumber:e.getIn(["settings","buttonPrintClassmark"]),displayConfirmationPopup:t.params&&void 0===t.params.displayConfirmationPopup?e.getIn(["settings","displayConfirmationPopup"]):t.params&&t.params.displayConfirmationPopup,processing:a.Ss(e,"processing",!1),progress:a.Ss(e,"progress",0),progressCount:a._7(e,"progressCount",0),progressTotal:a._7(e,"progressTotal",0),displayMessage:a.Ss(e,"displayMessage",!1),labels:a.Ss(e,"labels")}}),(function(e){return{onLoadListData:function(t){return e((0,U.Zz)(t))},onPrint:function(t){return e(l.Sr(t))},onPrintMarcNotice:function(t,n,r){return e(l.bR(t,n,r))},onExport:function(t,n){e(l.rp(t,n))},onPrintCallNumber:function(t){return e(l.IP(t))},onCancel:function(){return e(l.Ah())},onTriggerPrint:function(t){e(l.i6(t))}}}))(ne)}}]);

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.