1import{r as v,U,i as g,cE as W,aJ as X,cF as ee,E as f,cG as te,cH as oe,ag as K,Y as ae,V as se,am as ne,bi as re,aQ as le,d as ie,h as L,B as H,ak as j,A as G,al as ce,a3 as ue,a6 as de,S as R,a5 as Z,$ as Y,a0 as me,cI as pe,o as ve,g as fe,x as N,y as A,K as F,F as ge,G as ye,v as h,J as be,H as T,I as xe}from"./BMN2TF57.js";import{A as V,B as S,C as P}from"./BuQqU13I.js";import{u as we,l as Ce}from"./CotSOnMl.js";import{S as _e,e as he}from"./BlzAy68V.js";import B from"./CgIEsjqi.js";import{_ as ke}from"./DlAUqK2U.js";import"./CeDwM2hj.js";import"./Ey3daYPi.js";import"./DF6aTVEx.js";import"./DuDR17aD.js";import"./UcyWtAG9.js";import"./CrVsEIBd.js";/* empty css */import"./DsiuoShw.js";/* empty css */import"./CWshvhv0.js";import"./57IUC3do.js";import"./CdEM8tEw.js";import"./nJQD0QXO.js";import"./DZCLD4Li.js";import"./BCdEk_S_.js";import"./B29_NL7h.js";import"./B0klqrfc.js";import"./C1M8Jtr-.js";/* empty css */import"./COIvKc0C.js";import"./7c5yrH83.js";import"./CliejQFc.js";import"./DIr1-WXu.js";import"./CQVM4fOa.js";import"./D-fNHCiE.js";import"./Zeit32ub.js";import"./DG0dY-IG.js";import"./C1tzYp1w.js";import"./Dda3XuDG.js";import"./CLhZXtOu.js";import"./SjK_CeKf.js";import"./DfpUz8sh.js";import"./4WCB4Ht3.js";import"./B_TQCpXG.js";/* empty css */import"./ByNXVM0h.js";/* empty css */import"./DyfFX9QY.js";import"./CqFghx3A.js";import"./D7WvOf6g.js";/* empty css */import"./Uc4FRmSM.js";import"./DWfBNwm3.js";import"./D9HEegYQ.js";import"./B3sy0-0H.js";import"./DX5AOaLX.js";import"./CHzsiNrU.js";import"./Dvz-EoXG.js";import"./CFBb2L6C.js";import"./CUaX_T7M.js";import"./L76Z4Ea0.js";import"./DTbsHhY4.js";import"./BBoQ7eeJ.js";import"./CLBAHPrO.js";const $=t=>Object.keys(t),q=Symbol(),O=v();function Q(t,e=void 0){return K()?ae(q,O):O}function Ie(t,e){const o=Q(),a=U(t,g(()=>{var r;return((r=o.value)==null?void 0:r.namespace)||W})),i=we(g(()=>{var r;return(r=o.value)==null?void 0:r.locale})),l=X(g(()=>{var r;return((r=o.value)==null?void 0:r.zIndex)||ee})),c=g(()=>{var r;return f(e)||((r=o.value)==null?void 0:r.size)||""});return Le(g(()=>f(o)||{})),{ns:a,locale:i,zIndex:l,size:c}}const Le=(t,e,o=!1)=>{var a;const i=!!K(),l=i?Q():void 0,c=(a=void 0)!=null?a:i?se:void 0;if(!c)return;const r=g(()=>{const m=f(t);return l!=null&&l.value?Se(l.value,m):m});return c(q,r),c(Ce,g(()=>r.value.locale)),c(te,g(()=>r.value.namespace)),c(oe,g(()=>r.value.zIndex)),c(_e,{size:g(()=>r.value.size||"")}),c(he,g(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(o||!O.value)&&(O.value=r.value),r},Se=(t,e)=>{const o=[...new Set([...$(t),...$(e)])],a={};for(const i of o)a[i]=e[i]!==void 0?e[i]:t[i];return a};function Ne(t){let e;const o=v(!1),a=ne({...t,originalPosition:"",originalOverflow:"",visible:!1});function i(s){a.text=s}function l(){const s=a.parent,u=p.ns;if(!s.vLoadingAddClassList){let n=s.getAttribute("loading-number");n=Number.parseInt(n)-1,n?s.setAttribute("loading-number",n.toString()):(V(s,u.bm("parent","relative")),s.removeAttribute("loading-number")),V(s,u.bm("parent","hidden"))}c(),w.unmount()}function c(){var s,u;(u=(s=p.$el)==null?void 0:s.parentNode)==null||u.removeChild(p.$el)}function r(){var s;t.beforeClose&&!t.beforeClose()||(o.value=!0,clearTimeout(e),e=setTimeout(m,400),a.visible=!1,(s=t.closed)==null||s.call(t))}function m(){if(!o.value)return;const s=a.parent;o.value=!1,s.vLoadingAddClassList=void 0,l()}const y=ie({name:"ElLoading",setup(s,{expose:u}){const{ns:n,zIndex:b}=Ie("loading");return u({ns:n,zIndex:b}),()=>{const C=a.spinner||a.svg,x=L("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...C?{innerHTML:C}:{}},[L("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_=a.text?L("p",{class:n.b("text")},[a.text]):void 0;return L(ue,{name:n.b("fade"),onAfterLeave:m},{default:H(()=>[j(G("div",{style:{backgroundColor:a.background||""},class:[n.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[L("div",{class:n.b("spinner")},[x,_])]),[[ce,a.visible]])])})}}}),w=re(y),p=w.mount(document.createElement("div"));
1return{...le(a),setText:i,removeElLoadingChild:c,close:r,handleAfterLeave:m,vm:p,get $el(){return p.$el}}}let E;const Te=function(t={}){if(!de)return;const e=Be(t);if(e.fullscreen&&E)return E;const o=Ne({...e,closed:()=>{var i;(i=e.closed)==null||i.call(e),e.fullscreen&&(E=void 0)}});Ee(e,e.parent,o),M(e,e.parent,o),e.parent.vLoadingAddClassList=()=>M(e,e.parent,o);let a=e.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",e.parent.setAttribute("loading-number",a),e.parent.appendChild(o.$el),R(()=>o.visible.value=e.visible),e.fullscreen&&(E=o),o},Be=t=>{var e,o,a,i;let l;return Z(t.target)?l=(e=document.querySelector(t.target))!=null?e:document.body:l=t.target||document.body,{parent:l===document.body||t.body?document.body:l,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:l===document.body&&((o=t.fullscreen)!=null?o:!0),lock:(a=t.lock)!=null?a:!1,customClass:t.customClass||"",visible:(i=t.visible)!=null?i:!0,beforeClose:t.beforeClose,closed:t.closed,target:l}},Ee=async(t,e,o)=>{const{nextZIndex:a}=o.vm.zIndex||o.vm._.exposed.zIndex,i={};if(t.fullscreen)o.originalPosition.value=S(document.body,"position"),o.originalOverflow.value=S(document.body,"overflow"),i.zIndex=a();else if(t.parent===document.body){o.originalPosition.value=S(document.body,"position"),await R();
1for(const l of["top","left"]){const c=l==="top"?"scrollTop":"scrollLeft";i[l]=`${t.target.getBoundingClientRect()[l]+document.body[c]+document.documentElement[c]-Number.parseInt(S(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])i[l]=`${t.target.getBoundingClientRect()[l]}px`}else o.originalPosition.value=S(e,"position");for(const[l,c]of Object.entries(i))o.$el.style[l]=c},M=(t,e,o)=>{const a=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?V(e,a.bm("parent","relative")):P(e,a.bm("parent","relative")),t.fullscreen&&t.lock?P(e,a.bm("parent","hidden")):V(e,a.bm("parent","hidden"))},D=Symbol("ElLoading"),J=(t,e)=>{var o,a,i,l;const c=e.instance,r=s=>Y(e.value)?e.value[s]:void 0,m=s=>{const u=Z(s)&&(c==null?void 0:c[s])||s;return u&&v(u)},y=s=>m(r(s)||t.getAttribute(`element-loading-${pe(s)}`)),w=(o=r("fullscreen"))!=null?o:e.modifiers.fullscreen,p={text:y("text"),svg:y("svg"),svgViewBox:y("svgViewBox"),spinner:y("spinner"),background:y("background"),customClass:y("customClass"),fullscreen:w,target:(a=r("target"))!=null?a:w?void 0:t,body:(i=r("body"))!=null?i:e.modifiers.body,lock:(l=r("lock"))!=null?l:e.modifiers.lock};t[D]={options:p,instance:Te(p)}},De=(t,e)=>{for(const o of Object.keys(e))me(e[o])&&(e[o].value=t[o])},Ve={mounted(t,e){e.value&&J(t,e)},updated(t,e){const o=t[D];e.oldValue!==e.value&&(e.value&&!e.oldValue?J(t,e):e.value&&e.oldValue?Y(e.value)&&De(e.value,o.options):o==null||o.instance.close())},unmounted(t){var e;(e=t[D])==null||e.instance.close(),t[D]=null}},Oe={class:"addModuleItemDom"},Ae={key:1},ze={__name:"index",setup(t){const e=v();let o=v([]),a=v(),i=v(""),l=v(!1),c=v("");v([]);let r=v(!0);window.addEventListener("message",p,!1),console.log("æ¶æ¯çå¬å¨å·²ç»å®");const m=(s,u=3,n=500)=>new Promise((b,C)=>{let x=0;const _=()=>{try{if(!window.parent||window.parent===window){if(console.warn("没æç¶çªå£æç¶çªå£ä¸å½åçªå£ç¸å"),x<u){x++,setTimeout(_,n);return}C(new Error("æ æ³è®¿é®ç¶çªå£"));return}const k=typeof s=="string"?s:JSON.stringify(s);window.parent.postMessage(k,"*"),console.log("æ¶æ¯åéæå:",s),b(!0)}catch(k){console.error("åéæ¶æ¯å¤±è´¥:",k),x<u?(x++,setTimeout(_,n)):C(k)}};_()}),y=s=>{try{return JSON.parse(s)}catch(u){return console.error("JSONè§£æå¤±è´¥:",u,"åå§å符串:",s),null}};ve(async()=>{const s=document.getElementsByTagName("html")[0].style,u=document.body.style;s.height="100%",u.margin="0",u.height="100%",console.log("iframeé¡µé¢æè½½å®æ",window.location.host),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{w()}):w(),window.addEventListener("message",p,!1)});const w=async()=>{try{const s={type:"initial",status:"ready",timestamp:Date.now(),source:"preview-iframe"};await m(s),setTimeout(()=>{m({type:"confirm",status:"loaded",timestamp:Date.now()})},1e3)}catch(s){console.error("åå§åæ¶æ¯åé失败:",s)}};function p(s){var u;try{console.log("ä»ç¶çº§çªå£æ¥æ¶å°çæ¶æ¯:",s.data,"æ¥æº:",s.origin),r.value=!1;const n=y(s.data);if(!n){console.warn("æ¥æ¶å°çæ¶æ¯æ ¼å¼æ æ");return}if(console.log("è§£æåçæ¶æ¯æ°æ®:",n),n.timestamp&&((u=a.value)==null?void 0:u.timestamp)===n.timestamp){console.log("忽ç¥é夿¶æ¯");return}if(a.value=n,window.location.host.indexOf("localhost:")>=0?c.value="//app.testnewmedia.xinhuaapp.com":c.value=n.imgHostName?"//"+n.imgHostName:"",sessionStorage.setItem("imgHostName",c.value),i.value=n.bgImg?c.value+"/content"+n.bgImg:"",n.moduleList){const b=JSON.parse(JSON.stringify(n.moduleList));o.value=b,console.log("䏻颿°æ®å è½½å®æ:",b),m({type:"data_loaded",status:"success",timestamp:Date.now(),dataLength:b.length,receivedTimestamp:n.timestamp})}n.fun&&n.fun=="chooseModShow"&&(console.log("æ¾ç¤ºæ¨¡åéæ©çé¢"),l.value=!0),m({type:"message_received",status:"acknowledged",timestamp:Date.now(),originalTimestamp:n.timestamp})}catch(n){console.error("å¤çç¶çªå£æ¶æ¯æ¶åºé:",n),m({type:"error",status:"failed",error:n.message,timestamp:Date.now()})}}return(s,u)=>{var C,x,_,k;const n=fe("a-affix"),b=Ve;return j((h(),N("div",{class:"pageDom",style:F({"background-color":(C=f(a))!=null&&C.bgColor?(x=f(a))==null?void 0:x.bgColor:"#F6F7F9"})},[A("div",{class:"bgImage",style:F({"background-image":"linear-gradient(180deg,transparent,"+((_=f
1(a))!=null&&_.bgColor?(k=f(a))==null?void 0:k.bgColor:"#F6F7F9")+"), url("+f(i)+")"})},null,4),A("div",{ref_key:"moduleListRef",ref:e,class:"addModuleListDom"},[A("div",Oe,[(h(!0),N(ge,null,ye(f(o),(d,I)=>{var z;return h(),N("div",{class:be(["moduleDom centerDom",[d.type==="navigation"?"fullScreen":""]]),style:{"margin-bottom":"30px"},key:I},[d.type==="newsList"&&(d.style===1||d.style===2||d.style===3||d.style===4)?(h(),T(B,{key:0,pageType:"preview",data:d.firstData,subData:d.secData,index:I,subIndex:I+1},null,8,["data","subData","index","subIndex"])):xe("",!0),d.type==="navigation"?(h(),N("div",Ae,[((z=d==null?void 0:d.data)==null?void 0:z.navFixed)==1?(h(),T(n,{key:0,target:()=>f(e)},{default:H(()=>[G(B,{pageType:"preview",data:d,index:I},null,8,["data","index"])]),_:2},1032,["target"])):(h(),T(B,{key:1,pageType:"preview",data:d,index:I},null,8,["data","index"]))])):(h(),T(B,{key:2,pageType:"preview",data:d,index:I},null,8,["data","index"]))],2)}),128))])],512)],4)),[[b,f(r),void 0,{fullscreen:!0,lock:!0}]])}}},Ht=ke(ze,[["__scopeId","data-v-c23081bb"]]);export{Ht as default};
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.