Files

33 lines
46 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüXšos https://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/calendar.24a7f2ecf5873164.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["1070"],{955644:function(e,r,t){t.d(r,{A:function(){return m}}),t(695856),t(201405),t(428995);var a=t(491188),n=t(728359),i=t(730681),c=t(100113),l=t.n(c),s=t(696157),o=t(945091);function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,a,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return p(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,r)}}(e,r)||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 m=e=>{var r=e||{},t=r.data,c=t.url,p=t.course_id,m=t.cover,f=t.type,h=t.level,v=t.title,g=t.view_count,b=t.duration,y=t.iscollected,j=r.needExposure,x=r.onClickCallback,w=void 0===x?()=>{}:x,A=r.onCollectCallback,k=void 0===A?()=>{}:A,S=r.itemExposeCb,N=void 0===S?()=>{}:S,M=r.completeCourseAPI,O=void 0===M?"/activity/bjhcollege/completeCourse":M,_=r.needCollect,C=r.className,F=u((0,n.useState)("0px"),2),R=F[0],D=F[1],I=u((0,n.useState)(null),2),Y=I[0];I[1];var P=(0,n.useRef)(null),E=()=>{p&&s.request.get(O,{course_id:p}),w&&w()};(0,n.useEffect)(()=>{var e;e=0,h&&Y&&(e=Y.clientWidth+4),D("".concat(e,"px")),j&&((e,r)=>{if(window.IntersectionObserver){var t=(null==r?void 0:r.observerOptions)||{threshold:[0,.5,1]},a=null;(a=new IntersectionObserver(n=>{var i=(function(e){if(Array.isArray(e))return e}(n)||function(e,r){var t,a,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),1!==i.length);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return i}}(n,1)||function(e,r){if(e){if("string"==typeof e)return d(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,1)}}(n,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];i.isIntersecting?i.intersectionRatio>=t.threshold[1]&&("expose"!==e.expose&&r.onExpose(e),e.expose="expose",!r.always&&"function"!=typeof r.onHide&&a&&a.unobserve(e)):"function"==typeof r.onHide&&"expose"===e.expose&&(r.onHide(e),e.expose=void 0,!r.always&&a&&a.unobserve(e))},t)).observe(e)}})(P.current,{onExpose(){N&&N(p)},onHide(){}})},[]);var L=(0,n.useCallback)(()=>{window.open(c,"_blank"),E()},[c,E]),T=(0,n.useCallback)(()=>{var e=y?o.kV.cancelcollection:o.kV.collection;s.request.get(e,{course_id:p}).then(e=>{0===e.errno?k():i.message.error(e.errmsg)}).catch()},[y,p]);return(0,a.jsx)("div",{className:l()("client_components_courseItem component-course-item",void 0===C?"":C),ref:P,children:(0,a.jsxs)("div",{className:"course-item",children:[(0,a.jsxs)("div",{className:"wrap-cover",onClick:L,children:[(0,a.jsx)("div",{className:"img-div",style:{backgroundImage:'url("'.concat(m,'")')}}),(0,a.jsx)("div",{className:"tip",children:(()=>{switch(f){case"video":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"video",src:"https://
//# sourceMappingURL=calendar.24a7f2ecf5873164.js.mapØA
—EoúôA‡J
GET (á È"
accept-rangesbytes"(
access-control-allow-credentialstrue"
access-control-allow-origin*"
age3641"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5WAVuZi/BuDVaPAno3/24Ow=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:37 GMT"*
etag""58056e662fc1b8355a3c09e8dffdb83b""(
expiresSun, 08 Nov 2026 07:55:53 GMT".
last-modifiedThu, 05 Nov 2026 06:18:38 GMT")
ohc-cache-hitcz7cm54 [2], sz2ix50 [2]"
ohc-file-size11065"6
ohc-global-saved-timeThu, 05 Nov 2026 07:55:52 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
1242924865""
x-bce-content-crc32c
1443236812".
x-bce-content-crc64ecma5764871573314108155"j