Files

33 lines
51 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüXàý~https://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/vitality.10be6b3c4677cefc.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["7862"],{955644:function(e,t,r){r.d(t,{A:function(){return f}}),r(695856),r(201405),r(428995);var a=r(491188),n=r(728359),c=r(730681),i=r(100113),l=r.n(i),s=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 p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,a,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return c}}(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 f=e=>{var t=e||{},r=t.data,i=r.url,u=r.course_id,f=r.cover,b=r.type,m=r.level,v=r.title,y=r.view_count,h=r.duration,g=r.iscollected,x=t.needExposure,j=t.onClickCallback,A=void 0===j?()=>{}:j,_=t.onCollectCallback,w=void 0===_?()=>{}:_,O=t.itemExposeCb,F=void 0===O?()=>{}:O,R=t.completeCourseAPI,S=void 0===R?"/activity/bjhcollege/completeCourse":R,N=t.needCollect,k=t.className,D=p((0,n.useState)("0px"),2),C=D[0],M=D[1],T=p((0,n.useState)(null),2),P=T[0];T[1];var E=(0,n.useRef)(null),I=()=>{u&&s.request.get(S,{course_id:u}),A&&A()};(0,n.useEffect)(()=>{var e;e=0,m&&P&&(e=P.clientWidth+4),M("".concat(e,"px")),x&&((e,t)=>{if(window.IntersectionObserver){var r=(null==t?void 0:t.observerOptions)||{threshold:[0,.5,1]},a=null;(a=new IntersectionObserver(n=>{var c=(function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r,a,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(c.push(r.value),1!==c.length);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return c}}(n,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)}}(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];c.isIntersecting?c.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)}})(E.current,{onExpose(){F&&F(u)},onHide(){}})},[]);var L=(0,n.useCallback)(()=>{window.open(i,"_blank"),I()},[i,I]),U=(0,n.useCallback)(()=>{var e=g?o.kV.cancelcollection:o.kV.collection;s.request.get(e,{course_id:u}).then(e=>{0===e.errno?w():c.message.error(e.errmsg)}).catch()},[g,u]);return(0,a.jsx)("div",{className:l()("client_components_courseItem component-course-item",void 0===k?"":k),ref:E,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(f,'")')}}),(0,a.jsx)("div",{className:"tip",children:(()=>{switch(b){case"video":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"video",src:"https://
//# sourceMappingURL=vitality.10be6b3c4677cefc.js.mapØA
—Eoúô»ÉÛÐ
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-md5EHA+uhe6jgFXEcDRjXUDnw=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:41 GMT"*
etag""10703eba17ba8e015711c0d18d75039f""(
expiresSun, 08 Nov 2026 07:56:28 GMT".
last-modifiedThu, 05 Nov 2026 06:18:39 GMT")
ohc-cache-hitcz7cm68 [2], fsix133 [2]"
ohc-file-size13511"6
ohc-global-saved-timeThu, 05 Nov 2026 07:56:28 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
3504064955""
x-bce-content-crc32c
4137844029"/
x-bce-content-crc64ecma10885866971018317286"j