PageSourceSearch

https://www.chinadailyhk.com/_nuxt/Cl4W6pEa.js

js chinadailyhk.com collected 2026-10-02 02:22:12 UTC 2,626 bytes, 1 lines download raw bytes

1import{af as G,x as j,E as C,aj as R,ae as E,aW as L,X as w,G as M}from"./Dq6yr8be.js";import{j as I,k as P,l as b,Y as T}from"./HrPAxp1u.js";function W(e,n="default",i=[]){const t=e.$slots[n];return t===void 0?i:t()}const A={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},N=()=>A,O={name:"Space",self:N},D=O;let x;const F=()=>{if(!G)return!0;if(x===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const n=e.scrollHeight===1;return document.body.removeChild(e),x=n}return x},H=Object.assign(Object.assign({},C.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),k=I({name:"Space",props:H,setup(e){const{mergedClsPrefixRef:n,mergedRtlRef:i}=j(e),c=C("Space","-space",void 0,D,e,n),t=R("Space",i,n);return{useGap:F(),rtlEnabled:t,mergedClsPrefix:n,margin:P(()=>{const{size:a}=e;if(Array.isArray(a))return{horizontal:a[0],vertical:a[1]};if(typeof a=="number")return{horizontal:a,vertical:a};const{self:{[E("gap",a)]:f}}=c.value,{row:r,col:g}=L(f);return{horizontal:w(g),vertical:w(r)}})}},render(){const{vertical:e,reverse:n,align:i,inline:c,justify:t,itemClass:a,itemStyle:f,margin:r,wrap:g,mergedClsPrefix:h,rtlEnabled:v,useGap:l,wrapItem:$,internalUseGap:B}=this,m=M(W(this),!1);if(!m.length)return null;const S=`${r.horizontal}px`,u=`${r.horizontal/2}px`,z=`${r.vertical}px`,o=`${r.vertical/2}px`,p=m.length-1,d=t.startsWith("space-");return b("div",{role:"none",class:[`${h}-space`,v&&`${h}-space--rtl`],style:{display:c?"inline-flex":"flex",flexDirection:e&&!n?"column":e&&n?"column-reverse":!e&&n?"row-reverse":"row",justifyContent:["start","end"].includes(t)?"flex-"+t:t,flexWrap:!g||e?"nowrap":"wrap",marginTop:l||e?"":`-${o}`,marginBottom:l||e?"":`-${o}`,alignItems:i,gap:l?`${r.vertical}px ${r.horizontal}px`:""}},!$&&(l||B)?m:m.map((y,s)=>y.type===T?y:b("div",{role:"none",class:a,style:[f,{maxWidth:"100%"},l?"":e?{marginBottom:s!==p?z:""}:v?{marginLeft:d?t==="space-between"&&s===p?"":u:s!==p?S:"",marginRight:d?t==="space-between"&&s===0?"":u:"",paddingTop:o,paddingBottom:o}:{marginRight:d?t==="space-between"&&s===p?"":u:s!==p?S:"",marginLeft:d?t==="space-between"&&s===0?"":u:"",paddingTop:o,paddingBottom:o}]},y)))}});export{k as N,W as g};

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.