PageSourceSearch

https://iris.bams.com/js/react/chunks/7421.js?v=fa23821f80abd0d7

js bams.com collected 2026-09-28 06:39:08 UTC 9,418 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkiris=self.webpackChunkiris||[]).push([[7421],{97421(e,t,n){n.r(t),n.d(t,{default:()=>x});var r,o=n(96540),i=n(25395),l=n(92027),a=n(5556),u=n.n(a),c=n(86825),s=n(2543),p=n(21303),d=n(91266),h=n(2135),f=n(56042),m=n(5293);function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var b=function(e,t,n){var r={slide:e,url:t,type:n},o=(0,m.b1)(r);return f.A.post("/ajax/logviewclickeventonslide",o)},y=(0,h.J1)(r||(r=v(["\n    query PopupSlideshow {\n        popupBanner {\n            id\n            title\n            popup\n            active\n            expire\n            slides {\n                id\n                title\n                link\n                filePath\n                duration\n                open_new_tab\n                active\n                coordinates {\n                    link\n                    x1\n                    x2\n                    y1\n                    y2\n                    open_new_tab\n                }\n            }\n            show {\n                loop\n                slideHeight: height\n                slideWidth: width\n                popup_width\n                popup_height\n            }\n        }\n    }\n"])));function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=function(e){var t=e.groups,n=e.slideshow,r=e.isPopup,i=g((0,o.useState)(0),2),l=i[0],a=i[1],u=g((0,o.useState)([]),2),h=u[0],f=u[1],m=g((0,o.useState)([]),2),v=m[0],y=m[1],w=g((0,o.useState)(null),2),O=w[0],S=w[1],j=g((0,o.useState)(r),2),E=j[0],P=j[1],A=g((0,o.useState)(!1),2),k=A[0],_=A[1];(0,o.useEffect)((function(){var e=[],n=[];(0,s.forEach)(t,(function(t){t.active&&(0,s.forEach)(t.slides,(function(t){t.active&&(n.push(parseInt(t.id)),e.push(1e3*t.duration))}))})),f(e),y(n),S(e[0]),n[0]&&b(n[0],"",0),r||setTimeout((function(){P(!0)}),500)}),[t]);var x=function(e,t){var r=null==t?void 0:t.target.nodeName,o=null==t?void 0:t.target.className,i=v[e];S("LI"===r||"B"===r||"SPAN"===r?null:h[e]),!1===n.loop&&(0===e&&("carousel-control-next-icon"===o||void 0===o)||e===h.length-1&&"carousel-control-prev-icon"===o)?S(null):(v.length>1&&l!==e&&b(i,"",0),a(e))},N=function(e,t){if(e){var n=v[l];t?window.open(e,"_blank"):window.location=e,b(n,e,1)}},I=function(){return t.map((function(e){return e.active?e.slides.map((function(e){return e.active?function(e){var t,r,i,l,a,u,s,h,f,m=e.title,v=e.filePath,b=!(null===(t=e.coordinates[0])||void 0===t||!t.x1),y=b?null===(r=e.coordinates[0])||void 0===r?void 0:r.link:e.link,g=b?null===(i=e.coordinates[0])||void 0===i?void 0:i.open_new_tab:e.open_new_tab,w="".concat(null===(l=e.coordinates[0])||void 0===l?void 0:l.x1,",").concat(null===(a=e.coordinates[0])||void 0===a?void 0:a.y1,",").concat(null===(u=e.coordinates[0])||void 0===u?void 0:u.x2,",").concat(null===(s=e.coordinates[0])||void 0===s?void 0:s.y2),O=(0,p.A)();return"swf"===v.split(".").pop()?o.createElement(c.A.Item,{className:"h-100"},o.createElement("div",{className:"d-flex align-items-center justify-content-center h-100"},o.createElement("object",{type:"application/x-shockwave-flash",data:v,width:"100%",height:"100%"},o.createElement("param",{name:"movie",value:v}),o.createElement("param",{name:"quality",value:"high"})))):o.createElement(c.A.Item,{className:"h-100"},o.createElement("div",{className:"".concat(k?"d-flex align-items-center justify-content-center":"","  h-100")},k?null:o.createElement(d.A,{count:1,height:300,className:"skeleton-loader"}),o.createElement("img",{className:"".concat(!1===b&&y?"pointer":""," ").concat(k?""
1:"hidden"),style:{width:null!==(h=n.slideWidth)&&void 0!==h?h:n.width,height:null!==(f=n.slideHeight)&&void 0!==f?f:n.height},src:v,alt:m,useMap:"#map-".concat(O),onLoad:function(){return _(!0)},onClick:function(){return b?null:N(y,g)}}),o.createElement("map",{name:"#map-".concat(O)},o.createElement("area",{className:"pointer",shape:"rect",alt:m,coords:b?w:"",onClick:function(){return b?N(y,g):null}}))))}(e):null})):null}))};return v.length>0?E?o.createElement(c.A,{className:"custom-carousel ".concat(1===v.length?"no-indicators":""),controls:1!==v.length,indicators:1!==v.length,pause:!1,activeIndex:l,onSelect:x,interval:O,style:{width:n.width>0?n.width:null,height:n.height>0?n.height:null}},I()):o.createElement("div",{className:"d-inline-block",style:{width:n.width}},o.createElement(d.A,{count:Math.floor(n.height/48),height:38,style:{marginBottom:"10px"}})):null};O.defaultProps={groups:[],slideshow:{},isPopup:!1},O.propTypes={groups:u().arrayOf(u().shape({active:u().bool,expire:u().bool,id:u().string,popup:u().bool,slides:u().arrayOf(u().shape({active:u().bool,coordinates:u().arrayOf(u().shape({link:u().string,open_new_tab:u().bool,x1:u().number,x2:u().number,y1:u().number,y2:u().number})),duration:u().number,filePath:u().string,id:u().string,link:u().string,open_new_tab:u().bool,title:u().string}))})),slideshow:u().shape({active:u().bool,align:u().string,height:u().number,id:u().string,loop:u().bool,slideHeight:u().number,slideWidth:u().number,title:u().string,width:u().number}),isPopup:u().bool};const S=O;var j=n(61979);function E(e){return E="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},E(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const x=function(){var e=k((0,o.useState)({loop:!1,width:0,height:0,slideWidth:0,slideHeight:0}),2),t=e[0],n=e[1],r=k((0,o.useState)([]),2),a=r[0],u=r[1],c=k((0,o.useState)(!1),2),s=c[0],p=c[1],d=(0,l.A)(),h=(0,i.I)(y,{skip:d}),f=h.loading,m=h.error,v=h.data;return(0,o.useEffect)((function(){if(!f&&!d){var e,r=[],o=0;null==v||null===(e=v.popupBanner)||void 0===e||e.forEach((function(e){var i;if(o+=null==e||null===(i=e.slides)||void 0===i?void 0:i.length,r.push(e),null!=e&&e.show){var l,a,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),c=!1;null!==(l=e.show)&&void 0!==l&&l.loop&&!u.loop&&(u.loop=!0,c=!0),null!==(a=e.show)&&void 0!==a&&a.popup_width&&e.show.popup_width>u.width&&(u.width=e.show.popup_width,u.height=e.show.popup_height,u.slideWidth=e.show.slideWidth,u.slideHeight=e.show.slideHeight,c=!0),c&&n(u)}})),r.length>0&&o>0&&(u(r),p(!0))}}),[f,v,d]),m||f||d?null:o.createElement(j.default,{open:s,setOpen:p,title:null,className:"modal-popup",isDraggable:!1,padding:[16,16,16,16],closeOnClickOutside:!0},o.createElement(S,{groups:a,slideshow:t,isPopup:!0}))}}}]);

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.