Files

33 lines
33 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûü[{„#Yhttps://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/searchShare.520057dc8b6e0266.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["3141"],{955644:function(e,t,r){r.d(t,{A:function(){return p}}),r(695856),r(201405),r(428995);var a=r(491188),s=r(728359),n=r(730681),i=r(100113),l=r.n(i),c=r(696157),o=r(945091);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,a,s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var n=[],i=!0,l=!1;try{for(s=s.call(e);!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(l)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=e=>{var t=e||{},r=t.data,i=r.url,u=r.course_id,p=r.cover,h=r.type,v=r.level,y=r.title,x=r.view_count,b=r.duration,g=r.iscollected,f=t.needExposure,j=t.onClickCallback,N=void 0===j?()=>{}:j,w=t.onCollectCallback,k=void 0===w?()=>{}:w,S=t.itemExposeCb,_=void 0===S?()=>{}:S,A=t.completeCourseAPI,C=void 0===A?"/activity/bjhcollege/completeCourse":A,O=t.needCollect,P=t.className,I=m((0,s.useState)("0px"),2),D=I[0],T=I[1],E=m((0,s.useState)(null),2),F=E[0];E[1];var L=(0,s.useRef)(null),z=()=>{u&&c.request.get(C,{course_id:u}),N&&N()};(0,s.useEffect)(()=>{var e;e=0,v&&F&&(e=F.clientWidth+4),T("".concat(e,"px")),f&&((e,t)=>{if(window.IntersectionObserver){var r=(null==t?void 0:t.observerOptions)||{threshold:[0,.5,1]},a=null;(a=new IntersectionObserver(s=>{var n=(function(e){if(Array.isArray(e))return e}(s)||function(e,t){var r,a,s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var n=[],i=!0,l=!1;try{for(s=s.call(e);!(i=(r=s.next()).done)&&(n.push(r.value),1!==n.length);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(l)throw a}}return n}}(s,1)||function(e,t){if(e){if("string"==typeof e)return d(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,1)}}(s,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];n.isIntersecting?n.intersectionRatio>=r.threshold[1]&&("expose"!==e.expose&&t.onExpose(e),e.expose="expose",!t.always&&"function"!=typeof t.onHide&&a&&a.unobserve(e)):"function"==typeof t.onHide&&"expose"===e.expose&&(t.onHide(e),e.expose=void 0,!t.always&&a&&a.unobserve(e))},r)).observe(e)}})(L.current,{onExpose(){_&&_(u)},onHide(){}})},[]);var M=(0,s.useCallback)(()=>{window.open(i,"_blank"),z()},[i,z]),q=(0,s.useCallback)(()=>{var e=g?o.kV.cancelcollection:o.kV.collection;c.request.get(e,{course_id:u}).then(e=>{0===e.errno?k():n.message.error(e.errmsg)}).catch()},[g,u]);return(0,a.jsx)("div",{className:l()("client_components_courseItem component-course-item",void 0===P?"":P),ref:L,children:(0,a.jsxs)("div",{className:"course-item",children:[(0,a.jsxs)("div",{className:"wrap-cover",onClick:M,children:[(0,a.jsx)("div",{className:"img-div",style:{backgroundImage:'url("'.concat(p,'")')}}),(0,a.jsx)("div",{className:"tip",children:(()=>{switch(h){case"video":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"video",src:"https
//# sourceMappingURL=searchShare.520057dc8b6e0266.js.mapØA
—EoúôLëã
GET (ã È"
accept-rangesbytes"(
access-control-allow-credentialstrue"
access-control-allow-origin*"
age3637"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5QfYLvIKUUPAKIgUMh5ykhg=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:40 GMT"*
etag""41f60bbc829450f00a22050c879ca486""(
expiresSun, 08 Nov 2026 07:56:23 GMT".
last-modifiedThu, 05 Nov 2026 06:18:39 GMT"(
ohc-cache-hitcz7cm60 [2], wzix93 [2]"
ohc-file-size9325"6
ohc-global-saved-timeThu, 05 Nov 2026 07:56:23 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
3823848452""
x-bce-content-crc32c
2180888523"/
x-bce-content-crc64ecma13225602875735847620"j