Files

33 lines
6.0 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüTy{€Êhttps://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/5575.afd1bb80c1ce35f8.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["5575"],{843498:function(e,a,r){r.r(a),r(153998),r(111675);var t=r(491188),n=r(100113),i=r.n(n),c=r(404794),s=r(549445),l=r(728359),d=r(914528),o=r(151685),u=r(320760),f=r(292100),h=r(39075),m=r(737183),p=r(108480),g=r(487902),b=r(352890),j=r(493840),v=r(74190),A=r(594656);function C(e,a){(null==a||a>e.length)&&(a=e.length);for(var r=0,t=Array(a);r<a;r++)t[r]=e[r];return t}function y(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var r,t,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],c=!0,s=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!a||i.length!==a);c=!0);}catch(e){s=!0,t=e}finally{try{c||null==n.return||n.return()}finally{if(s)throw t}}return i}}(e,a)||function(e,a){if(e){if("string"==typeof e)return C(e,a);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 C(e,a)}}(e,a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}a.default=function(e){var a=e.nodeKey,r=e.src,n=e.caption,C=e.hasCaption,R=e.width,F=e.height,x=e.params,E=e.isSearchReplace,N=e.hasToolbar,S=(0,l.useRef)(null),k=(0,l.useMemo)(()=>{try{return JSON.parse(decodeURIComponent(x||"{}")).is_legal}catch(e){return!1}},[x]),w=(0,c.useAtomValue)(b.jz),J=w.imageDescriptionLength,I=w.imagePlaceholder,T=(0,v.t)("image","moduleType"),M=y((0,f.DF)(),1)[0],_=(0,l.useRef)(null),q=(0,l.useRef)(null),z=(0,l.useRef)(!1),K=y((0,u.Y)(a),3),P=K[0],L=K[1],O=K[2],D=(0,g.S)(a,e=>(0,h.EE)(e)).setCaption,U=(0,l.useCallback)(()=>{M.update(()=>{var e=(0,s.nsf)(a);if(e){var r=e.getNextSibling();null==r||r.selectEnd(),e.remove()}})},[M,a]),Q=(0,l.useCallback)(e=>{var r=e.width,t=e.height;M.update(()=>{var e=(0,s.nsf)(a);(0,h.EE)(e)&&e.setSize(r,t)},{tag:[s.T40]})},[M,a]);(0,l.useEffect)(()=>{M.read(()=>{var e=(0,s.nsf)(a);!(0,h.EE)(e)||e.__width&&e.__height||(0,m.A)(r).then(Q).catch(e=>{})})},[M,a,r,Q]);var V=(0,l.useCallback)(()=>{var e=(0,s.vJq)();if(P&&(0,s.RTZ)(e)&&1===e.getNodes().length){z.current=!0;var r=(0,s.nsf)(a),t=(0,s.lJ7)();return null==r||r.insertAfter(t),t.selectEnd(),!0}return!1},[P,a]),X=(0,l.useCallback)(e=>e.target===q.current&&(e.shiftKey?L(!P):(O(),L(!0)),!0),[P,L,O]);(0,l.useEffect)(()=>(0,d.Sd)(M.registerCommand(s.d8p,X,s.AcJ),M.registerCommand(s.RTo,V,s.AcJ),M.registerCommand(s.MvL,(e,a)=>(_.current=a,!1),s.AcJ),M.registerCommand(s.viC,()=>{var e=(0,s.vJq)();return!!(0,s.I2P)(e)&&(e.getNodes().forEach(e=>{e.remove()}),!0)},s.AcJ),M.registerCommand(s.XKQ,()=>{var e=(0,s.vJq)();return!!(0,s.I2P)(e)&&!!z.current&&(z.current=!1,!0)},s.AcJ)),[M,X,V]);var Y=(0,o.useMemoizedFn)(()=>{k||M.dispatchCommand(j.qF,{nodeKey:a,src:r,width:R,height:F})}),Z=(0,o.useMemoizedFn)(()=>{M.dispatchCommand(j.ci,{nodeKey:a,src:r})}),$=C&&"bjhStoryPublish"!==T;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:i()(A["bjh-image-component"],{[A.hasCaption]:$}),children:(0,t.jsxs)("div",{className:i()(A["bjh-image-container"],{[A["bjh-image-container-selected"]]:P}),children:[(0,t.jsx)("img",{src:r,id:a,alt:n||"",draggable:"false",ref:q}),(0,t.jsx)("div",{className:A["bjh-image-func-delete"],onClick:U}),N&&(0,t.jsx)("div",{className:A["bjh-image-helper"],children:(0,t.jsxs)("div",{className:A["bjh-image-func-wrapper"],children:[!E&&(0,t.jsx)("div",{className:i()(A["bjh-image-func-crop"],{[A.disabled]:k}),onClick:Y,children:"\u7F16\u8F91"}),(0,t.jsx)("div",{className:A["bjh-image-func-search"],onClick:Z,children:"\u641C\u56FE"})]})})]})}),$?(0,t.jsx)(p.y,{value:n,targetNodeKey:a,onChange:D,placeholder:I,maxLength:J,ref:S}):null]})}},594656:function(e,a,r){e.exports={"bjh-image-component":"FeReac
//# sourceMappingURL=5575.afd1bb80c1ce35f8.js.mapØA
—EoúôeDÛ¢
GET (Ü È"
accept-rangesbytes"(
access-control-allow-credentialstrue"
access-control-allow-origin*"
age3645"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5eABCTueCbtBxdCwHHl4PAg=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:34 GMT"*
etag""7800424ee7826ed071742c071e5e0f02""(
expiresSun, 08 Nov 2026 07:55:26 GMT".
last-modifiedThu, 05 Nov 2026 06:18:38 GMT")
ohc-cache-hitcz7cm63 [2], czix119 [2]"
ohc-file-size2071"6
ohc-global-saved-timeThu, 05 Nov 2026 07:55:27 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
2732278885""
x-bce-content-crc32c
2867529166".
x-bce-content-crc64ecma6595343427672326091"j