PageSourceSearch

https://s3.zeelool.com/zeelool-next/_next/static/chunks/43194-f4e425e048b5631b.js

js zeelool.com collected 2026-10-01 13:59:22 UTC 37,709 bytes, 185 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43194],{2810:(e,t,l)=>{l.d(t,{P:()=>n,u:()=>i});let n={minimumPurchase:"minimumPurchase",purchase:"purchase"},i=e=>4===e.activity_type||5===e.activity_type?n.minimumPurchase:2===e.activity_type||3===e.activity_type?n.purchase:"full_gift"===e.activity_type_key||"full_stair_gift"===e.activity_type_key?n.minimumPurchase:"buy_gift"===e.activity_type_key||"buy_stair_gift"===e.activity_type_key?n.purchase:void 0},3247:(e,t,l)=>{l.d(t,{g:()=>c});var n=l(63109),i=l(65665),s=l(10401);let r=(e,t)=>e.split("Klarna").map((e,l,i)=>{let r=l<i.length-1?e.replace(/\s+$/,""):e;return(0,n.jsxs)(s.Fragment,{children:[r,l<i.length-1&&(0,n.jsx)("span",{className:"inline-flex items-center align-middle whitespace-nowrap px-1 mr-[4px]",children:t})]},l)});var a=l(40898),o=l(71823);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,a.P)(e=>e.currency?.name),l=(0,a.P)(e=>e.publicResourceData?.jsonvalues);return(0,s.useMemo)(()=>{let a=l?.klarna_promotion,{enabled:c=!1,list_klarna_banner:x=!1,klarna_text:p="",text_1:d="",text_2:h=""}=(a&&"object"==typeof a?a:null)||{},u=o.ku&&!0===c&&"USD"===t,m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{isWAP:r=!1}=l,a=["Klarna",...t.map(e=>{var t;return"string"==typeof(t=e.match)?t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):t.source})],o=RegExp(`(${a.join("|")})`);return e.split(o).map((e,l)=>{if("Klarna"===e)return(0,n.jsx)(i.default,{src:"/goods-detail/klarna.png",alt:"klarna payment",width:r?58:50,height:r?16:12,style:r?void 0:{height:"max(.8333333333vw, 12px)"},className:r?"inline-block w-auto h-[16px] align-middle mx-[4px]":"inline w-auto align-middle ml-1 mx-[4px]"},l);let a=t.find(t=>"string"==typeof t.match?t.match===e:t.match.test(e));return a?(0,n.jsx)("span",{style:{color:a.color},children:e},l):(0,n.jsx)(s.Fragment,{children:e},l)})}(h,[{match:"$15 off",color:"#E02020"}],{isWAP:e});return{text_1:d,text_2:h,klarna_text:p,red_text_2_with_logo:m,isShowKlarnaPromotion:u,isShowKlarnaListBanner:u&&!0===x,renderTextWithKlarnaLogo:r}},[t,e,l])}},7793:(e,t,l)=>{l.d(t,{f0:()=>c});var n=l(48636),i=l(78568),s=l(40019),r=l(18708),a=l(32656),o=l(71313);let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof document)try{if((0,a.isBrowserAnalytics)()){let l=(0,o.D)(t),r=(0,s.l1)();n.w.getInstance().track({eventName:e,properties:{...l,sensors_event_id:r},eventId:r},[i.c.SENSORS]);return}let l=window.sensors?window.sensors:window.sensorsDataAnalytic201505?window.sensorsDataAnalytic201505:window.parent.sensors?window.parent.sensors:window.parent.sensorsDataAnalytic201505?window.parent.sensorsDataAnalytic201505:{};if(!l.track||"function"!=typeof l.track)return void r.Ay.warn("Sensors track method is not available");let c={};Object.keys(t).forEach(e=>{let l=t[e];""===l||"null"===l||"undefined"===l||null==l||l instanceof Array&&!l.length||(c[e]=l)});let x=(0,s.l1)();c.sensors_event_id=x;let p={...c},d={...c};l.track(e,p);try{n.w.getInstance().track({eventName:e,properties:d,eventId:x},[i.c.SNOWPLOW])}catch(e){r.Ay.error("Sensors Snowplow mirror error:",e)}}catch(e){r.Ay.error("Sensors track error:",e)}}},23267:(e,t,l)=>{l.d(t,{N:()=>a});var n=l(83028),i=l(53494),s=l(3082),r=l(18708);async function a(e){try{let{sceneCode:t,extra:l,page:r,consentTypes:a,status:o,metadata:c,showResponseToast:x}=e,p=(0,s.Pe)(),d=p?.getState().compliancePolicies,h=d?.[t],u=h?.policies||[];if(!u.length)return!0;let m=a&&a.length?u.filter(e=>a.includes(e.consent_type)):u;if(!m.length)return!0;let f=m.map(e=>{let t=e.id??e.policy_id,n={consent_type:e.consent_type,policy_id:t,policy_version:e.policy_version};return void 0!==o&&(n.status=o),c&&(n.metadata=c),3===e.consent_type&&l?.email&&(n.email=l.email),(4===e.consent_type||5===e.consent_type)&&l?.tel_code&&(n.tel_code=l.tel_code),(4===e.consent_type||5===e.consent_type)&&l?.telephone&&(n.telephone=l.telephone),n}),g=await (0,n.z9)({scene_code:t,page:r??"",items:f}),b=g?.data,j=b?.message||g?.msg;if(x&&j?g?.code===200?i.o.success(j):i.o.error(j):b?.success===!1&&j&&(f.length>1&&await p?.getState().getMarketingStatus(),i.o.info(j)),b?.success!==!1)return await p?.getState().getMarketingStatus(),!0;return!1}catch(t){throw r.Ay.error(t,`useComplianceConsent: updateConsentsAfterAuth ${e.sceneCode}`),t}}},52801:(e,t,l)=>{l.d(t,{e:()=>r});var n=l(10401),i=l(85351),s=l(18708);function r(e){let t,l,r,{callback:a,pathname:o,threshold:c=.8,minDuration:x=500}=e,p=(0,n.useRef)((t=!1,l=!1,r=!1,{updateVisibility:e=>(t=e,e)?!l&&!r:(r=!1,!1),handleRouteChange(){l=!1,r=t},canExpose:()=>t&&!l&&!r,markExposed(){l=!0}})),d=(0,n.useRef)(null),h=(0,n.useRef)(a),u=(0,n.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,n.useEffect)(()=>{h.current=a},[a]),(0,n.useEffect)(()=>{u(),p.current.handleRouteChange()},[u,o]);let m=(0,n.useCallback)((e,t)=>{let l=t?.intersectionRatio??0,n=e&&l>=c;if(!p.current.updateVisibility(n))return void u();u(),d.current=setTimeout(()=>{if(!p.current.canExpose()){d.current=null;return}try{h.current(),p.current.markExposed()}catch(e){s.Ay.log("[useSubscribeExposureTracking] Callback error:",e)}finally{d.current=null}},x)},[u,x,c]),f=(0,i.zQ)(m,{threshold:c,triggerOnce:!1});return(0,n.useEffect)(()=>()=>{u()},[u]),(0,n.useEffect)(()=>{let e=()=>{document.hidden&&u()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[u]),{ref:f}}},53212:(e,t,l)=>{l.d(t,{A:()=>n.rf});var n=l(42671)},71370:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(63109),i=l(10401),s=l(61496),r=l(64647),a=l(53494),o=l(23507),c=l(23267),x=l(4944),p=l(40898),d=l(71823),h=l(87636),u=l(7793);let m=e=>{let{open:t,onOpenChange:l,onSuccess:m,title:f="Notice",agreeText:g="Agree",cancelText:b="Cancel"}=e,j=(0,x.TQ)(),{deviceType:w}=(0,i.useContext)(r.u),v=w===h.$.WAP,y=(0,p.P)(e=>e.userInfo.email),N=(0,p.P)(e=>e.compliancePolicies),k=N?.[d.QD.EMAIL_SUB],C=k?.texts?.[0]?.content||"",_=(0,o.K)(),A=(0,i.useRef)(t);(0,i.useEffect)(()=>{var e;e=A.current,t&&!e&&(0,u.f0)("EDMAgreePopUp_Exp",{page_name:j||""}),A.current=t},[t,j]);let P=()=>{l(!1)},G=e=>{(0,u.f0)("EDMAgreePopUp_Click",{page_name:j||"",btn_name:e})},T=()=>{G("Cancel"),P()},$=async()=>{G("Agree");try{if(!await (0,c.N)({sceneCode:d.QD.EMAIL_SUB,extra:{email:y},page:j}))return;await m?.(y),a.o.success("Subscription successful")}finally{P()}};return(0,n.jsx)(s.A,{open:t,title:f,okText:g,cancelText:b,onOk:$,onCancel:T,onClose:T,showCloseIcon:!1,maxWidth:"xs",...v?{disableScrollLock:!0,disableAutoFocus:!0}:{},sx:{"& .MuiDialog-paper":{width:{xs:"calc(100% - 53px)"}}},children:(0,n.jsx)("p",{className:"font-br text-14 leading-[22px] text-primary-black [&_a]:text-primary-black [&_a]:underline",dangerouslySetInnerHTML:{__html:C},onClick:e=>{let t=e.target.closest("a");if(t){let l=t.getAttribute("href");l&&(!l.startsWith("/")&&(l.startsWith("http")||l.startsWith("mailto:"))?l.includes(window.location.origin)?(e.preventDefault(),_({jump_type:3,Jump_target:l.replace(window.location.origin,"")})):window.location.origin.includes("http://127.0.0.1")&&(e.preventDefault(),_({jump_type:3,Jump_target:l.replace("https://test-zeelool.xmslol.cn","")})):(e.preventDefault(),_({jump_type:3,Jump_target:l})))}}})})}},79822:(e,t,l)=>{l.d(t,{hT:()=>X,zO:()=>q});var n=l(63109),i=l(61496),s=l(65665),r=l(37956),a=l(57948),o=l(18050),c=l(84174),x=l(55879),p=l(40898),d=l(2810),h=l(28943),u=l(88233),m=l(92302),f=l(12755),g=l(54753),b=l(49722),j=l(27541),w=l(20422),v=l(71606),y=l(55483),N=l(28029),k=l(10401),C=l(80338);function _(){return{selectedGift:null,preview:null,ruleDialogOpen:!1}}function A(e,t){switch(t.type){case"reset":return _();case"open-single":return{...e,selectedGift:t.gift};case"close-single":return{...e,selectedGift:null};case"open-preview":return{...e,preview:t.preview};case"close-preview":return{...e,preview:null};case"open-rule":return{...e,ruleDialogOpen:!0};case"close-rule":return{...e,ruleDialogOpen:!1}}}function P(e,t){let l=e?.content||t.content;return{title:e?.title||"",content:l,contentType:e?.contentType==="html"||/<\/?[a-z][\s\S]*>/i.test(l)?"html":e?.content?"text":t.contentType}}l(90542);let G=`
2.blog-content p:empty,
3.blog-content p:has(br:only-child) {
4  display: none;
5}
6.blog-content p {
7  font-family: var(--font-instrument);
8}
9.blog-content a {
10  text-decoration: underline;
11  color: var(--color-primary-purple);
12}
13.blog-content h1,
14.blog-content h2,
15.blog-content h3,
16.blog-content h4,
17.blog-content h5,
18.blog-content h6,
19.blog-content b,
20.blog-content strong {
21  font-family: var(--font-bricolage-bold);
22}
23.blog-content p,
24.blog-content ul,
25.blog-content ol,
26.blog-content li {
27  font-size: 13px;
28  line-height: 20px;
29  margin-bottom: 20px;
30}
31.blog-content p *,
32.blog-content ul *,
33.blog-content ol *,
34.blog-content li * {
35  font-size: inherit !important;
36  line-height: inherit !important;
37}
38.blog-content ul {
39  list-style: disc;
40  padding-left: 12px;
41  margin-bottom: 16px;
42}
43.blog-content ul li {
44  margin-bottom: 16px;
45}
46.blog-content ul li:last-child {
47  margin-bottom: 0;
48}
49.blog-content ol {
50  list-style: decimal;
51  padding-left: 12px;
52  margin-bottom: 16px;
53}
54.blog-content ol li {
55  margin-bottom: 16px;
56}
57.blog-content ol li:last-child {
58  margin-bottom: 0;
59}
60.blog-content img {
61  width: 100% !important;
62  height: auto !important;
63  display: block;
64  margin-top: 24px;
65  margin-bottom: 24px;
66}
67.blog-content h1 {
68  font-size: 28px;
69  line-height: 34px;
70  margin: 0 0 28px;
71}
72.blog-content h1:first-child {
73  margin-top: 0;
74}
75.blog-content h1 * {
76  font-size: inherit !important;
77  line-height: inherit !important;
78}
79.blog-content h2 {
80  font-size: 24px;
81  line-height: 29px;
82  margin: 48px 0 28px;
83}
84.blog-content h2:first-child {
85  margin-top: 0;
86}
87.blog-content h2 * {
88  font-size: inherit !important;
89  line-height: inherit !important;
90}
91.blog-content h3 {
92  font-size: 20px;
93  line-height: 24px;
94  margin: 44px 0 24px;
95}
96.blog-content h3:first-child {
97  margin-top: 0;
98}
99.blog-content h3 * {
100  font-size: inherit !important;
101  line-height: inherit !important;
102}
103.blog-content h4 {
104  font-size: 18px;
105  line-height: 22px;
106  margin: 40px 0 24px;
107}
108.blog-content h4:first-child {
109  margin-top: 0;
110}
111.blog-content h4 * {
112  font-size: inherit !important;
113  line-height: inherit !important;
114}
115.blog-content h5 {
116  font-size: 16px;
117  line-height: 20px;
118  margin: 32px 0 16px;
119}
120.blog-content h5:first-child {
121  margin-top: 0;
122}
123.blog-content h5 * {
124  font-size: inherit !important;
125  line-height: inherit !important;
126}
127.blog-content h6 {
128  font-size: 14px;
129  line-height: 17px;
130  margin: 32px 0 16px;
131}
132.blog-content h6:first-child {
133  margin-top: 0;
134}
135.blog-content h6 * {
136  font-size: inherit !important;
137  line-height: inherit !important;
138}
139.blog-content h5 + p,
140.blog-content h6 + p {
141  margin-bottom: 16px;
142}
143.blog-content blockquote {
144  font-size: 12px;
145  line-height: 1.5;
146  margin: 0 0;
147  padding: 8px 24px;
148  border-left: 6px solid #b4d5ff;
149  background-color: #f5f5f5;
150  color: #333;
151  font-family: var(--font-instrument);
152}
153.blog-content video {
154  margin: 16px 0;
155  width: 100%;
156}
157.blog-content .table-container {
158  border-radius: 0;
159  margin-top: 10px;
160  overflow-x: auto;
161  padding: 0;
162  position: relative;
163  width: 100%;
164}
165.blog-content table {
166  border-collapse: collapse;
167  table-layout: fixed;
168}
169.blog-content table td,
170.blog-content table th {
171  border: 1px solid var(--w-e-textarea-border-color, rgba(0, 0, 0, 0.1));
172  line-height: 1.5;
173  min-width: 30px;
174  overflow: hidden;
175  overflow-wrap: break-word;
176  padding: 3px 5px;
177  white-space: pre-wrap;
178  word-break: break-all;
179}
180.blog-content table th {
181  background-color: var(--w-e-textarea-slight-bg-color, rgba(0, 0, 0, 0.03));
182  font-weight: 700;
183  text-align: center;
184}
185`,T=e=>(e||[]).filter(Boolean);function $(e){let{title:t="",onClose:l,onBack:i}=e,s=(0,x.c)("goodsDetail");return(0,n.jsx)("div",{className:"h-[52px] shrink-0 px-[16px]",children:(0,n.jsxs)("div",{className:"relative flex h-full items-center justify-center border-b border-[#e0e0e0]",children:[i&&(0,n.jsx)("button",{type:"button","aria-label":s("freeGift.back"),onClick:i,className:"cursor-pointer absolute left-0 top-[15px] flex h-[22px] w-[22px] items-center justify-center",children:(0,n.jsx)(b.A,{className:"text-[18px] text-[#282828]"})}),(0,n.jsx)("h3",{className:"font-bb text-[18px] font-bold leading-[22px] text-[#282828]",children:t}),l&&(0,n.jsx)(v.A,{"aria-label":s("freeGift.close"),onClick:l,className:"!absolute right-0 top-[10px] !p-[4px]",children:(0,n.jsx)(f.A,{className:"text-[22px] text-[#282828]"})})]})})}function I(e){let{rule:t,onClick:l,className:i}=e;return l?(0,n.jsxs)("button",{type:"button",onClick:l,className:`flex shrink-0 cursor-pointer items-center gap-[4px] text-[12px] leading-[14px] text-[#282828] ${i||""}`,children:[(0,n.jsx)("span",{children:t.terms?.label||t.ruleLabel||""}),(0,n.jsx)(j.A,{className:"text-[16px]"})]}):null}function M(e){let{tier:t,compact:l,onClick:i}=e,r=(0,x.c)("goodsDetail");return(0,n.jsxs)("button",{type:"button",onClick:i,disabled:!i,className:`relative flex shrink-0 rounded-[4px] border ${t.current?"border-[#463ae8]":"border-[#d1d9e0]"} bg-[rgba(255,255,255,0.6)] text-left ${l?"w-[148px] flex-row items-center gap-[6px] p-[5px]":"w-[84px] flex-col items-center gap-[8px]  py-[5px]"} ${i?"cursor-pointer":"cursor-default"}`,children:[(0,n.jsxs)("span",{className:`relative flex shrink-0 items-center justify-center rounded-[4px] bg-[#eeeeee] ${l?"h-[64px] w-[64px]":"h-[72px] w-[72px]"}`,children:[(0,n.jsx)(s.default,{src:t.thumbnail,alt:t.name,width:l?64:72,height:l?64:72,className:"h-full w-full object-contain"}),t.soldOut&&(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center rounded-full bg-[rgba(0,0,0,0.55)] text-center font-br text-[10px] leading-[11px] text-white",children:r("freeGift.soldOut")})]}),(0,n.jsx)("span",{className:`font-br text-[11px] leading-[13px] text-[#0d0e0f] ${l?"min-w-0 flex-1":"line-clamp-2 w-[72px] text-center"}`,children:t.name})]})}function S(e){let{tiers:t,progressPercent:l,className:i}=e,s=(0,x.c)("goodsDetail"),r=(0,N.Ym)(),a=(0,p.P)(e=>e.currency),o=t.map(e=>({id:e.id,state:e.current?"current":e.reached?"reached":"upcoming"})),c=function(e){if(void 0!==e&&Number.isFinite(e))return Math.min(100,Math.max(0,e))}(l),d="de"===r||"fr"===r;return 0===t.length?null:(0,n.jsxs)("div",{className:i,children:[(0,n.jsx)("div",{className:"absolute left-0 right-0 top-[7px] h-[4px] rounded-[12px]",style:{backgroundImage:"linear-gradient(90deg, rgba(224, 224, 224, 0) 0%, #e0e0e0 4.1183%, #e0e0e0 95.608%, rgba(255, 255, 255, 0) 100%)"}}),void 0!==c&&(0,n.jsx)("div",{className:"absolute left-0 top-[7px] h-[4px] rounded-[8px]",style:{width:`${c}%`,backgroundImage:"linear-gradient(90deg, #ffffff 0%, #463ae8 30%)"}}),(0,n.jsx)("div",{className:"absolute top-0 grid z-[1] h-[18px]",style:{insetInline:0,gridTemplateColumns:`repeat(${t.length}, minmax(0, 1fr))`},children:o.map(e=>{let t="current"===e.state;return(0,n.jsx)("span",{className:"flex items-center justify-center",children:(0,n.jsx)("span",{"data-gift-progress-state":e.state,className:`flex items-center justify-center rounded-full ${t?"h-[18px] w-[18px] bg-[#463ae8]":"h-[10px] w-[10px] bg-[#e0e0e0]"}`,children:t&&(0,n.jsx)(u.A,{className:"text-[12px] text-white"})})},`${e.id}-node`)})}),(0,n.jsx)("div",{className:"grid gap-[8px]",style:{gridTemplateColumns:`repeat(${t.length}, minmax(0, 1fr))`},children:t.map(e=>{let t=(0,h.j2)(e.thresholdAmount),l=t?(0,h.IO)(String(e.thresholdAmount),a,d,2,!1):String(e.thresholdAmount),i=d?t?"de"===r?`${l}+ €`:`${l} €+`:`${l}+`:l;return(0,n.jsx)("div",{className:"text-center font-br text-[12px] leading-[16
185px] text-[#0d0e0f]",children:null!=e.thresholdAmount?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:s.rich("freeGift.spendAmount",{amount:i,highlight:e=>(0,n.jsx)("span",{className:"font-bb",children:e})})}),(0,n.jsx)("p",{children:s("freeGift.getFreeGift")})]}):e.thresholdText},e.id)})})]})}function D(e){let{gift:t,onClick:l}=e,i=t.isGlass?"h-auto w-4/5 object-contain mix-blend-multiply":"h-[64px] w-[64px] object-cover";return(0,n.jsxs)("button",{type:"button",onClick:l,disabled:!l,className:`flex w-full items-center gap-[8px] rounded-[4px] border border-[#d1d9e0] bg-[rgba(255,255,255,0.6)] p-[6px] text-left ${l?"cursor-pointer":"cursor-default"}`,children:[(0,n.jsx)("span",{className:"flex h-[64px] w-[64px] shrink-0 items-center justify-center overflow-hidden rounded-[4px] bg-[#f2f2f2]",children:(0,n.jsx)(s.default,{src:t.image,alt:t.name,width:64,height:64,className:i})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate font-bb text-[14px] font-bold leading-[16px] text-[#0d0e0f]",children:t.name}),(t.thresholdText||t.subtitle)&&(0,n.jsx)("span",{className:"mt-[4px] line-clamp-2 block font-br text-[12px] leading-[16px] text-[#808080]",children:t.thresholdText||t.subtitle})]}),l&&(0,n.jsx)(w.A,{className:"shrink-0 text-[16px]"})]})}function z(e){let{activity:t,compactTier:l,progressClassName:i,showPurchaseGiftTitle:r,onRuleClick:a,onTierClick:o,onPurchaseGiftClick:c}=e,p=(0,x.c)("goodsDetail"),h=t.tiers||[],u=h.length>0,f=!!t.purchaseGift,b="single-tier"===t.displayStyle?t.singleGift||t.purchaseGift:void 0,j=t.title;return(0,n.jsxs)("section",{className:"flex flex-col gap-[24px]",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-[12px]",children:[(0,n.jsx)("h4",{className:"font-bb text-[16px] font-bold leading-[20px] text-[#282828]",children:j}),(0,n.jsx)(I,{rule:t,onClick:t.terms?.show===!0?()=>a?.(t):void 0})]}),b?(0,n.jsx)(D,{gift:b,onClick:b.detail?()=>c?.(b,t):void 0}):u?(0,n.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,n.jsx)("div",{className:"grid w-full justify-items-center",style:{gridTemplateColumns:`repeat(${h.length}, minmax(0, 1fr))`},children:h.map(e=>(0,n.jsx)(M,{tier:e,compact:l,onClick:e.largeImage?()=>o?.(e,t):void 0},e.id))}),(0,n.jsx)(S,{tiers:h,progressPercent:t.progressPercent,className:i})]}):null,t.activityType===d.P.minimumPurchase&&h.length>1&&(0,n.jsxs)("div",{className:"flex flex-col gap-[6px] font-hr text-[12px] leading-[16px] text-[#808080]",children:[(0,n.jsxs)("p",{className:"flex items-center gap-[4px] text-[12px] leading-[14px]",children:[(0,n.jsx)(g.A,{className:"h-[16px] w-[16px] !fill-[#ffffff]"}),(0,n.jsx)("span",{children:p("freeGift.comeWithProduct")})]}),t.eventPeriod&&(0,n.jsxs)("p",{className:"flex items-center gap-[4px]",children:[(0,n.jsx)(m.A,{className:"h-[16px] w-[16px] text-[#808080]"}),p("freeGift.eventPeriod",{period:t.eventPeriod})]}),t.descriptionLines?.map(e=>(0,n.jsx)("p",{children:e},e))]})]}),!b&&f&&t.purchaseGift&&(0,n.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[r&&(0,n.jsx)("h4",{className:"font-bb text-[16px] font-bold leading-[20px] text-[#282828]",children:t.purchaseGiftTitle||p("freeGift.purchaseTitle")}),(0,n.jsxs)("button",{type:"button",onClick:()=>c?.(t.purchaseGift,t),className:"flex w-full cursor-pointer items-center gap-[8px] rounded-[4px] border border-[#d1d9e0] bg-[rgba(255,255,255,0.6)] p-[6px] text-left",children:[(0,n.jsx)(s.default,{src:t.purchaseGift.image,alt:t.purchaseGift.name,width:64,height:64,className:"h-[64px] w-[64px] shrink-0 rounded-[4px] object-cover"}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate font-bb text-[14px] font-bold leading-[16px] text-[#0d0e0f]",children:t.purchaseGift.name}),t.purchaseGift.subtitle&&(0,n.jsx)("span",{className:"mt-[4px] line-clamp-2 block font-br text-[12px] leading-[16px] text-[#808080]",children:t.purchaseGift.subtitle})]}),c&&(0,n.jsx)(w.A,{className:"shrink-0 text-[16px]"})]})]})]})}function R(e){return(0,n.jsx)(z,{...e,compactTier:!0,progressClassName:"relative mx-auto mt-[8px] w-full max-w-[552px] pt-[18px]",showPurchaseGiftTitle:!0})}function E(e){return(0,n.jsx)(z,{...e,compactTier:!1,progressClassName:"relative mx-auto mt-[8px] w-full max-w-[351px] pt-[18px]",showPurchaseGiftTitle:!1})}function L(e){let{activities:t,onRuleClick:l,onTierClick:i,onPurchaseGiftClick:s}=e;return(0,n.jsx)("div",{className:"flex min-h-0 flex-1 flex-col bg-white",children:(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsx)("div",{className:"mx-auto flex w-full max-w-[552px] flex-col gap-[24px]",children:t.map(e=>(0,n.jsx)(R,{activity:e,onRuleClick:l,onTierClick:i,onPurchaseGiftClick:s},e.id))})})})}function W(e){let{title:t,activities:l,onClose:i,onRuleClick:s,onTierClick:r,onPurchaseGiftClick:a}=e,o=(0,x.c)("goodsDetail");return(0,n.jsxs)("div",{className:"flex max-h-[calc(100dvh-40px)] flex-col bg-white",children:[(0,n.jsx)($,{title:t||o("freeGift.detailsTitle"),onClose:i}),(0,n.jsx)("div",{className:"flex flex-col gap-[32px] overflow-y-auto px-[12px] pb-[40px] pt-[18px]",children:l.map(e=>(0,n.jsx)(E,{activity:e,onRuleClick:s,onTierClick:r,onPurchaseGiftClick:a},e.id))})]})}function O(e){let{title:t,onClose:l,children:i}=e;return(0,n.jsxs)("div",{className:"flex max-h-[calc(100dvh-40px)] flex-col bg-white",children:[(0,n.jsx)($,{title:t||"",onClose:l}),(0,n.jsx)("div",{className:"overflow-y-auto px-[12px] pb-[40px] pt-[18px]",children:i})]})}function F(e){let{open:t,onClose:l,onRuleClick:s,ruleDialogContent:c}=e,p=(0,x.c)("goodsDetail"),[d,h]=(0,k.useState)(null),u=e=>{s?.(e),h(P(e.terms,{title:"",content:c||"",contentType:"text"}))};return(0,k.useEffect)(()=>{t||h(null)},[t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{children:(0,n.jsx)(i.A,{open:t,title:e.title||p("freeGift.detailsTitle"),showTitleDivider:!0,onClose:l,footer:null,maxWidth:!1,PaperProps:{sx:{width:"min(600px, calc(100vw - 64px))",borderRadius:"12px",boxShadow:"none",overflow:"hidden",maxWidth:"calc(100vw - 64px)",maxHeight:"calc(100dvh - 64px)",display:"flex",flexDirection:"column"}},contentProps:{sx:{flex:1,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"}},children:(0,n.jsx)(L,{...e,onRuleClick:u})})}),(0,n.jsx)(a.A,{children:(0,n.jsx)(r.default,{open:t,onClose:l,position:"bottom",height:"auto",round:!0,borderRadius:16,hideCloseIcon:!0,title:null,bodyClassName:"!p-0",childrenMaxHeight:"none",children:(0,n.jsx)(W,{...e,onRuleClick:u})})}),(0,n.jsx)(J,{open:t&&!!d,title:d?.title,content:d?.content,contentType:d?.contentType,onClose:()=>h(null)})]})}function B(e){let{gift:t,isWeb:l,className:i=""}=e,[r,a]=(0,k.useState)(0),o=T(t.images);return(0,n.jsxs)("div",{className:`relative overflow-hidden ${i}`,children:[(0,n.jsx)(C.RC,{className:"h-full w-full",onSlideChange:e=>a(e.activeIndex),children:o.map((e,i)=>(0,n.jsx)(C.qr,{className:"!flex items-center justify-center bg-auxiliary-light-gray",children:(0,n.jsx)(s.default,{src:e,alt:`${t.name}${i+1}`,width:l?400:375,height:l?400:375,className:`h-auto object-contain ${t.isGlass?"w-4/5 mix-blend-multiply":"w-full"}`})},`${e}-${i}`))}),(0,n.jsxs)("span",{className:`absolute z-2 flex items-center justify-center bg-[#999999] text-white ${l?"bottom-[
18516px] left-[16px] h-[20px] w-[50px] rounded-[14px] text-[12px] leading-[14px]":"bottom-[14px] left-[14px] h-[24px] w-[66px] rounded-[16px] bg-[rgba(0,0,0,0.4)] text-[11px] leading-[13px]"}`,children:[r+1,"/",o.length]})]})}let H=e=>{let t=(0,p.P)(e=>e.currency);return{sellPrice:null!=e.sellPrice?(0,h.IO)(String(e.sellPrice),t):void 0,oldPrice:null!=e.oldPrice&&e.oldPrice!==e.sellPrice?(0,h.IO)(String(e.oldPrice),t):void 0}};function K(e){let{gift:t,onRuleClick:l}=e,i=(0,x.c)("goodsDetail"),{sellPrice:s,oldPrice:r}=H(t);return(0,n.jsxs)("div",{className:"flex h-[400px] max-h-full gap-[32px] overflow-hidden bg-white",children:[(0,n.jsx)("div",{className:"relative shrink-0",children:(0,n.jsx)(B,{gift:t,isWeb:!0,className:"h-[400px] w-[400px]"})}),(0,n.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col text-primary-text",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-[16px]",children:[(0,n.jsx)("h3",{className:"min-w-0 font-bb text-[32px] leading-[39px]",children:t.name}),t.rule&&(0,n.jsx)(I,{rule:t.rule,onClick:t.rule.terms?.show===!0?()=>l?.(t):void 0,className:"mt-[4px]"})]}),t.color&&(0,n.jsxs)("p",{className:"mt-[8px] text-[14px] leading-[17px] text-[#808080]",children:[i("color")," ",t.color]}),(s||r)&&(0,n.jsxs)("div",{className:"mt-[24px] flex items-center gap-[8px]",children:[s&&(0,n.jsx)("span",{className:"font-bb text-[24px] leading-[28px]",children:s}),r&&(0,n.jsx)("span",{className:"text-[14px] leading-[17px] text-[#a9a9a9] line-through",children:r})]}),(0,n.jsxs)("div",{className:"mt-[24px]",children:[t.stockText&&(0,n.jsx)("p",{className:"mb-[8px] text-[12px] leading-[14px]",children:t.stockText}),(0,n.jsx)("p",{className:"text-[12px] leading-[14px]",children:i("freeGift.comeWithProduct")})]})]}),(t.eventPeriod||t.descriptionLines?.length)&&(0,n.jsxs)("div",{className:"mt-[16px] flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)("div",{className:"border-t border-[#dce0e8]"}),(0,n.jsxs)("div",{className:"mt-[16px] min-h-0 flex-1 overflow-auto",children:[t.eventPeriod&&(0,n.jsx)("p",{className:"font-bb text-[16px] leading-[19px]",children:i("freeGift.eventPeriod",{period:t.eventPeriod})}),t.descriptionLines?.map((e,t)=>(0,n.jsx)("p",{className:"mt-[8px] text-[14px] leading-[18px] text-[#808080]",children:e},`${e}-${t}`))]})]})]})]})}function U(e){let{title:t,gift:l,onClose:i,onBack:s,onRuleClick:r}=e,a=(0,x.c)("goodsDetail"),o=t||a("freeGift.detailsTitle"),{sellPrice:c,oldPrice:p}=H(l);return(0,n.jsxs)("div",{className:"flex h-full flex-col bg-white",children:[(0,n.jsx)($,{title:o,onBack:s,onClose:s?void 0:i}),(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-auto",children:[(0,n.jsx)(B,{gift:l,className:"h-[375px] w-full"}),(0,n.jsxs)("div",{className:"px-[14px] pb-34 pt-[15px] text-primary-text",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-[12px]",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-[8px]",children:[(0,n.jsx)("h4",{className:"font-bb text-[14px] leading-[17px]",children:l.name}),l.color&&(0,n.jsx)("span",{className:"text-[14px] leading-[17px]",children:l.color})]}),l.rule&&(0,n.jsx)(I,{rule:l.rule,onClick:l.rule.terms?.show===!0?()=>r?.(l):void 0})]}),(c||p)&&(0,n.jsxs)("div",{className:"mt-[16px] flex items-center gap-[8px]",children:[c&&(0,n.jsx)("span",{className:"font-bb text-[20px] leading-[24px]",children:c}),p&&(0,n.jsx)("span",{className:"text-[14px] leading-[17px] text-[#a9a9a9] line-through",children:p})]}),(0,n.jsxs)("div",{className:"mt-[16px]",children:[l.stockText&&(0,n.jsx)("p",{className:"mb-[6px] text-[12px] leading-[14px]",children:l.stockText}),(0,n.jsx)("p",{className:"text-[12px] leading-[14px]",children:a("freeGift.comeWithProduct")})]}),(l.eventPeriod||l.descriptionLines?.length)&&(0,n.jsxs)("div",{className:"mt-[16px] border-t border-[#dce0e8] border-t-[0.5px] pt-[16px]",children:[l.eventPeriod&&(0,n.jsx)("p",{className:"font-bb text-[14px] leading-[17px]",children:a("freeGift.eventPeriod",{period:l.eventPeriod})}),l.descriptionLines?.map((e,t)=>
185(0,n.jsx)("p",{className:"mt-[8px] text-[12px] leading-[16px] text-[#808080]",children:e},`${e}-${t}`))]})]})]})]})}function Q(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{children:(0,n.jsx)(K,{...e})}),(0,n.jsx)(a.A,{children:(0,n.jsx)(U,{...e})})]})}function q(e){let{open:t,onClose:l}=e,s=(0,x.c)("goodsDetail"),[c,p]=(0,k.useState)(null),d=e.onBack??l,h=e.title||s("freeGift.detailsTitle"),u=t=>{if(e.onRuleClick)return void e.onRuleClick(t);p(P(t.rule?.terms,{title:"",content:"",contentType:"text"}))};(0,k.useEffect)(()=>{t||p(null)},[t]);let m=e.onBack?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{"aria-label":s("freeGift.back"),onClick:e.onBack,sx:{position:"absolute",left:8,top:14,color:"text.primary"},children:(0,n.jsx)(b.A,{className:"text-[24px] text-primary-black"})}),h]}):h;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{children:(0,n.jsx)(i.A,{open:t,title:m,showCloseIcon:!e.onBack&&void 0,showTitleDivider:!0,onClose:d,footer:null,maxWidth:!1,PaperProps:{sx:{width:"864px",maxWidth:"864px",maxHeight:"80vh",borderRadius:"12px",boxShadow:"none",overflow:"hidden"}},children:(0,n.jsx)(Q,{...e,onRuleClick:u})})}),(0,n.jsx)(a.A,{children:(0,n.jsx)(r.default,{open:t,onClose:d,position:"bottom",height:"80%",round:!0,borderRadius:16,hideCloseIcon:!0,title:null,bodyClassName:"!p-0",childrenMaxHeight:"none",children:(0,n.jsx)(Q,{...e,onRuleClick:u})})}),(0,n.jsx)(J,{open:t&&!!c,title:c?.title,content:c?.content,contentType:c?.contentType,onClose:()=>p(null)})]})}function J(e){let{open:t,title:l,content:s="",contentType:a="text",onClose:o}=e,{isMobile:x}=(0,c.A)(),p="html"===a?(0,n.jsx)("div",{className:"blog-content",dangerouslySetInnerHTML:{__html:`<style>${G}</style>${s}`}}):(0,n.jsx)("p",{className:"whitespace-pre-wrap font-br text-[14px] leading-[18px] text-[#282828]",children:s});return x?(0,n.jsx)(r.default,{open:t,onClose:o,position:"bottom",height:"auto",round:!0,borderRadius:16,hideCloseIcon:!0,title:null,bodyClassName:"!p-0",childrenMaxHeight:"none",children:(0,n.jsx)(O,{title:l,onClose:o,children:p})}):(0,n.jsx)(i.A.Info,{open:t,title:l??"",onClose:o,PaperProps:{sx:{width:"800px"}},children:p})}function V(e){let{open:t,images:l,thumbnails:i,initialIndex:s=0,onClose:r}=e,a=(0,k.useMemo)(()=>T(l),[l]),o=Math.min(Math.max(s,0),Math.max(a.length-1,0));return t&&0!==a.length?(0,n.jsx)(y.A,{open:t,fullScreen:!0,onClose:r,PaperProps:{sx:{width:"100vw",height:"100dvh",maxWidth:"none",maxHeight:"none",margin:0,overflow:"hidden",borderRadius:0,backgroundColor:"transparent",boxShadow:"none"}},slotProps:{backdrop:{sx:{backgroundColor:"transparent"}}},children:(0,n.jsx)(Y,{images:a,thumbnails:i,initialIndex:o,onClose:r})}):null}function Y(e){let{images:t,thumbnails:l,initialIndex:i=0,onClose:r}=e,a=(0,x.c)("goodsDetail"),o=(0,k.useMemo)(()=>t.flatMap((e,t)=>e?[{image:e,thumbnail:l?.[t]||e}]:[]),[t,l]),c=Math.min(Math.max(i,0),Math.max(o.length-1,0)),[p,d]=(0,k.useState)(c);if((0,k.useEffect)(()=>{d(c)},[c]),0===o.length)return null;let h=Math.min(p,o.length-1),u=o[h].image,m=h>0,g=h<o.length-1;return(0,n.jsxs)("div",{"data-testid":"gift-preview-root",className:"relative h-[100dvh] w-screen overflow-hidden bg-black",children:[(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.back"),className:"absolute left-0 top-0 z-20 flex h-[48px] w-[48px] cursor-pointer items-center justify-center text-white md:hidden",onClick:r,children:(0,n.jsx)(b.A,{size:22})}),(0,n.jsxs)("div",{className:"gift-preview-desktop-stage absolute inset-0 hidden overflow-hidden md:block",children:[(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.close"),className:"gift-preview-desktop-close absolute right-[40px] top-[24px] z-20 flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full bg-black/40 text-white",onClick:r,children:(0,n.jsx)(f.A,{size:24})}),(0,n.jsxs)("div",{className:"gift-preview-desktop-design absolute left-1/2 top-0 h-[min(900px,100dvh)] w-[1920px] -translate-x-1/2",children:[(0,n.jsxs)("div",{className:"gift-preview-desktop-frame absolute left-1/2 top-0 flex aspect-square w-[min(720px,calc(100dvh_-_180px))] -translate-x-1/2 items-center justify-center bg-[#eeeeee]",children:[(0,n.jsx)(s.default,{src:u,alt:a("freeGift.previewAlt",{count:h+1}),width:720,height:720,className:"h-full w-full object-contain"}),o.length>1&&(0,n.jsxs)("div",{className:"absolute left-1/2 top-1/2 flex w-[calc(100%+118px)] -translate-x-1/2 -translate-y-1/2 items-center justify-between",children:[(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.previousImage"),disabled:!m,className:"flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full bg-black/40 text-white disabled:cursor-default disabled:opacity-40",onClick:()=>d(e=>Math.max(e-1,0)),children:(0,n.jsx)(b.A,{size:20})}),(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.nextImage"),disabled:!g,className:"flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full bg-black/40 text-white disabled:cursor-default disabled:opacity-40",onClick:()=>d(e=>Math.min(e+1,o.length-1)),children:(0,n.jsx)(w.A,{size:20})})]})]}),o.length>1&&(0,n.jsx)("div",{className:"scrollbar-hide absolute left-1/2 top-[min(740px,calc(100dvh_-_160px))] flex -translate-x-1/2 items-center gap-[6px] overflow-x-auto",children:o.map((e,t)=>{let{image:l,thumbnail:i}=e,r=t===h;return(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.previewImage",{count:t+1}),"aria-current":r?"true":void 0,className:`flex shrink-0 cursor-pointer items-center justify-center rounded-[4px] ${r?"h-[144px] w-[144px] border border-white":"h-[140px] w-[140px]"}`,onClick:()=>d(t),children:(0,n.jsx)("span",{className:"flex h-[140px] w-[140px] items-center justify-center rounded-[4px] bg-[#eeeeee]",children:(0,n.jsx)(s.default,{src:i,alt:a("freeGift.thumbnailAlt",{count:t+1}),width:140,height:140,className:"h-full w-full object-contain"})})},`desktop-${l}-${t}`)})})]})]}),(0,n.jsxs)("div",{"data-testid":"gift-preview-canvas",className:"absolute left-1/2 top-1/2 flex h-[100vw] w-[100vw] -translate-x-1/2 -translate-y-1/2 items-center justify-center bg-[#eeeeee] md:hidden",children:[(0,n.jsx)(s.default,{src:u,alt:a("freeGift.previewAlt",{count:h+1}),width:720,height:720,className:"h-full w-full object-contain"}),o.length>1&&(0,n.jsxs)("div",{className:"absolute left-1/2 top-1/2 hidden w-[calc(100%+118px)] -translate-x-1/2 -translate-y-1/2 items-center justify-between md:flex",children:[(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.previousImage"),disabled:!m,className:"flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full bg-black/40 text-white disabled:cursor-default disabled:opacity-40",onClick:()=>d(e=>Math.max(e-1,0)),children:(0,n.jsx)(b.A,{size:20})}),(0,n.jsx)("button",{type:"button","aria-label":a("freeGift.nextImage"),disabled:!g,className:"flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full bg-black/40 text-white disabled:cursor-default disabled:opacity-40",onClick:()=>d(e=>Math.min(e+1,o.length-1)),children:(0,n.jsx)(w.A,{size:20})})]})]}),o.length>
1851&&(0,n.jsx)("div",{className:"scrollbar-hide absolute bottom-[16px] left-1/2 flex max-w-[calc(100vw-24px)] -translate-x-1/2 items-center gap-[6px] overflow-x-auto md:hidden",children:o.map((e,t)=>{let{image:l,thumbnail:i}=e,r=t===h;return(0,n.jsx)("button",{type:"button","data-testid":"gift-preview-thumbnail","aria-label":a("freeGift.previewImage",{count:t+1}),"aria-current":r?"true":void 0,className:`flex shrink-0 cursor-pointer items-center justify-center rounded-[4px] ${r?"h-[76px] w-[76px] border border-white md:h-[144px] md:w-[144px]":"h-[72px] w-[72px] md:h-[140px] md:w-[140px]"}`,onClick:()=>d(t),children:(0,n.jsx)("span",{className:"flex h-[72px] w-[72px] items-center justify-center rounded-[4px] bg-[#eeeeee] md:h-[140px] md:w-[140px]",children:(0,n.jsx)(s.default,{src:i,alt:a("freeGift.thumbnailAlt",{count:t+1}),width:140,height:140,className:"h-full w-full object-contain"})})},`${l}-${t}`)})})]})}function X(e){let{open:t,onClose:l,title:i,singleTitle:s,ruleDialogTitle:r,ruleDialogContent:a,activities:o,onRuleClick:c,onTierClick:p,onPurchaseGiftClick:d,onSingleBack:h,onSingleRuleClick:u,onSingleImageClick:m,onImagePreviewOpen:f}=e,g=(0,x.c)("goodsDetail"),[b,j]=(0,k.useReducer)(A,_()),{selectedGift:w,preview:v}=b,y={details:t,single:t&&null!==b.selectedGift,preview:t&&null!==b.preview,rule:t&&b.ruleDialogOpen};(0,k.useEffect)(()=>{t||j({type:"reset"})},[t]);let N=(e,t,l,n)=>{let i=e.flatMap((e,t)=>e?[{image:e,thumbnail:n?.[t]||e}]:[]);if(0===i.length)return;let s=Math.min(Math.max(t,0),i.length-1);j({type:"open-preview",preview:{images:i.map(e=>e.image),thumbnails:i.map(e=>e.thumbnail),initialIndex:s}}),f?.(i.map(e=>e.image),s,l)},C=w?P(w.rule?.terms,{title:r||"",content:a||"",contentType:"text"}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{open:y.details,title:i,activities:o,onClose:l,ruleDialogTitle:r,ruleDialogContent:a,onRuleClick:c,onTierClick:(e,t)=>{p?.(e,t);let l=(t.tiers||[]).flatMap(e=>e.largeImage?[{image:e.largeImage,thumbnail:e.thumbnail||e.largeImage}]:[]),n=Math.max(l.findIndex(t=>t.image===e.largeImage),0);N(l.map(e=>e.image),n,"tier",l.map(e=>e.thumbnail))},onPurchaseGiftClick:(e,t)=>{d?.(e,t),e.detail&&j({type:"open-single",gift:{...e.detail,rule:{ruleLabel:t.ruleLabel,terms:t.terms}}})}}),w&&(0,n.jsx)(q,{open:y.single,title:s||g("freeGift.detailsTitle"),gift:w,onClose:l,onBack:()=>{w&&h?.(w),j({type:"close-single"})},onRuleClick:e=>{u?.(e),j({type:"open-rule"})},onImageClick:e=>{w&&(m?.(w,e),N(w.images,e,"single"))}}),v&&(0,n.jsx)(V,{open:y.preview,images:v.images,thumbnails:v.thumbnails,initialIndex:v.initialIndex,onClose:()=>{j({type:"close-preview"})}}),(0,n.jsx)(J,{open:y.rule,title:C?C.title:r,content:C?C.content:a,contentType:C?.contentType,onClose:()=>j({type:"close-rule"})})]})}},90542:(e,t,l)=>{l.d(t,{F:()=>s});var n=l(28943);let i=e=>{if(!(0,n.j2)(e))return;let t=Number(e);return Number.isFinite(t)?t:void 0};function s(e,t,l){let n=i(e),s=i(t),r=l.map(i);if(void 0===n||void 0===s||s<0||0===r.length||r.some((e,t)=>void 0===e||e<=0||t>0&&e<=r[t-1]))return;if(0===s)return 100;let a=n+s,o=r.findIndex(e=>1e-4>Math.abs(e-a));if(-1===o)return;let c=0===o?0:r[o-1],x=a-c;if(x<=0)return;let p=Math.min(1,Math.max(0,(n-c)/x)),d=100/r.length,h=0===o?0:(o-.5)*d;return h+p*((o+.5)*d-h)}}}]);

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.