PageSourceSearch

https://www.darkflash.tw/_next/static/chunks/2587.52511e8e203e0de6.js

js darkflash.tw collected 2026-10-06 09:25:26 UTC 8,868 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2587],{35782:function(e,t,n){n.r(t);var r=n(82729),o=n(85893),c=n(67294),i=n(89578),u=n(9473),l=n(68458),a=n(26471),s=n(8772),p=n(37113),d=n(62464),m=n(18127),f=n(81609),b=n(79571),_=n(58445),h=n(837);function _templateObject(){let e=(0,r._)(["\n    color: ",";\n    font-size: 14px;\n    line-height: 22px;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n    display: flex;\n    flex-direction: column;\n    margin: 16px 0 0;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n    display: flex;\n    align-items: center;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n    position: relative;\n    width: 80px;\n    height: 80px;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n    flex: 1;\n    margin: 0 0 0 6px;\n    min-width: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,r._)(["\n    font-weight: 500px;\n    font-size: 16px;\n    line-height: 24px;\n    color: #000;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,r._)(["\n    font-size: 14px;\n    line-height: 22px;\n    color: rgba(0,0,0,.3);\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,r._)(["\n    margin: 16px 0 0;\n    background-color: #FAFAFA;\n    border-radius: 8px;\n    padding: 12px 16px;\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,r._)(["\n    font-size: 13px;\n    line-height: 22px;\n    color: #000;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(["\n    margin: 0;\n    padding: 0 0 0 22px;\n    list-style: outside;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,r._)(["\n    font-size: 13px;\n    line-height: 20px;\n    color: rgba(0,0,0,.6);\n"]);return _templateObject10=function(){return e},e}let x=l.ZP.div.withConfig({componentId:"sc-59353f8c-0"})(_templateObject(),a.w.Main),j=l.ZP.div.withConfig({componentId:"sc-59353f8c-1"})(_templateObject1()),v=l.ZP.div.withConfig({componentId:"sc-59353f8c-2"})(_templateObject2()),g=l.ZP.div.withConfig({componentId:"sc-59353f8c-3"})(_templateObject3()),O=l.ZP.div.withConfig({componentId:"sc-59353f8c-4"})(_templateObject4()),C=l.ZP.div.withConfig({componentId:"sc-59353f8c-5"})(_templateObject5()),P=l.ZP.div.withConfig({componentId:"sc-59353f8c-6"})(_templateObject6()),w=l.ZP.div.withConfig({componentId:"sc-59353f8c-7"})(_templateObject7()),M=l.ZP.div.withConfig({componentId:"sc-59353f8c-8"})(_templateObject8()),N=l.ZP.ul.withConfig({componentId:"sc-59353f8c-9"})(_templateObject9()),y=l.ZP.li.withConfig({componentId:"sc-59353f8c-10"})(_templateObject10());t.default=()=>{let e=(0,u.I0)(),{t}=(0,s.$G)("common"),[n,r]=(0,p.q)(!1),l=(0,u.v9)(e=>e.product.presentProdcutModal.mainpdt_uid_comb),a=(0,u.v9)(e=>e.product.presentProdcutModal.product),F=(0,u.v9)(e=>e.product.presentProdcutModal.presentPdts),Z=(0,c.useCallback)(()=>{r.close(),setTimeout(()=>{e(d.Nw.closePresentProdcutModal())},300)},[e,r]);(0,m.Z)(()=>{r.open()});let S=(0,c.useMemo)(()=>{let e=[],t=a&&a.presents;if(t&&F)for(let n of F){let r=n?(0,f.cs)(n):[];if(r&&r.length>0){let o=l?t.specPresentSpecMap&&t.specPresentSpecMap[l]&&t.specPresentSpecMap[l][n.productid]?t.specPresentSpecMap[l][n.productid]:[]:t.presentSpecMap[n.productid]?t.presentSpecMap[n.productid]:[];for(let c of r)if(-1!==o.indexOf(c.uid_comb)){let r=(0,f.K$)(n,c.uid_comb);if(r&&r.count>0){let r=n.homeCoverURL;n.selectorHomeCoversMap&&n.selectorHomeCoversMap[c.uid_comb]&&(r=n.selectorHomeCoversMap[c.uid_comb]);let o=t.specPresentCountMap&&t.specPresentCountMap[c.uid_comb]&&t.specPresentCountMap[c.uid_comb][n.productid]?t.specPresentCountMap[c.uid_comb][n.productid]:1,{sale_price:i}=(0,f.RQ)({product:n,membertype:h.wO.NORMAL,level:h.Pr.BASE,count:o,uid_comb:c.uid_comb}),u={productname:n.name,uid_comb:c.uid_comb,uid_specnames:c.names,coverURL:r,presentcount:1,price:i};e.push(u)}}}else{let r=(0,f.K$)(n);if(r&&r.count>0){let r=n.homeCoverURL,o=t.presentCountMap&&t.presentCountMap[n.productid]?t.presentCountMap[n.productid]:1,{sale_price:c}=(0,f.RQ)({product:n,membertype:h.wO.NORMAL,level:h.Pr.BASE,count:o,uid_comb:""}),i={productname:n.name,uid_comb:"",uid_specnames:"",coverURL:r,presentcount:1,price:c};e.push(i)}}}return e},[a,l,F]);return 0===S.length?null:(0,o.jsxs)(i.u,{opened:n,centered:!0,onClose:Z,size:"540px",title:t("贈品活動說明"),styles:{header:{height:56,paddingLeft:24,paddingRight:24,borderBottom:"1px solid #F0F0F0"},title:{fontSize:16,fontWeight:600,color:"#262626"},content:{borderRadius:8},body:{padding:"16px 24px 24px"}},children:[(0,o.jsx)(x,{children:t("凡購買《{{productname}}
1》,即贈以下商品擇一",{productname:null==a?void 0:a.name})}),(0,o.jsx)(j,{children:S.map(e=>(0,o.jsxs)(v,{children:[(0,o.jsx)(g,{children:e.coverURL&&(0,o.jsx)(_.Z,{alt:e.productname,src:e.coverURL,fill:!0,style:{objectFit:"contain"},priority:!1,loading:"lazy"})}),(0,o.jsxs)(O,{children:[(0,o.jsxs)(C,{children:[e.productname," ",e.uid_specnames?" - ".concat(e.uid_specnames):null," x",(0,o.jsx)(b.ZP,{number:e.presentcount})]}),(0,o.jsx)(P,{children:e.price>0&&(0,o.jsxs)(o.Fragment,{children:["NT$",(0,o.jsx)(b.ZP,{number:e.price})]})})]})]},"".concat(e.productname,"-").concat(e.uid_comb)))}),(0,o.jsxs)(w,{children:[(0,o.jsx)(M,{children:t("注意事項")}),(0,o.jsxs)(N,{children:[(0,o.jsx)(y,{children:t("參與行銷活動之商品如欲退貨需全數一併退回,恕不接受單一商品辦理退貨。")}),(0,o.jsx)(y,{children:t("此促銷活動的商品非固定,本公司保有隨時異動變更優惠內容之權益。")})]})]})]})}},58445:function(e,t,n){var r=n(85893),o=n(67294),c=n(25675),i=n.n(c),u=n(76146);t.Z=e=>{let{src:t,alt:n,...c}=e,l=(0,o.useMemo)(()=>{if("string"==typeof t){let e=-1!==t.indexOf(u.HU);if(e)return t.replace(u.HU,u.fy)}return t},[t]);return(0,r.jsx)(i(),{...c,alt:n,src:l,unoptimized:!0})}},79571:function(e,t,n){n.d(t,{cc:function(){return baseFormatNumber}});var r,o,c=n(85893);(r=o||(o={})).FILE="file",r.SOCIAL="social";let baseFormatNumber=(e,t)=>{if(isNaN(e))return 0;let n=(e.toFixed(t)+"").split("."),r=n[0],o=n.length>1?"."+n[1]:"",c=/(\d+)(\d{3})/;for(;c.test(r);)r=r.replace(c,"$1,$2");return t&&t>=1&&(o="0"===(o="".concat(parseFloat("0"+o)))?"":o.substring(1)),r+o},formatSocialNumber=e=>e>=1e6?baseFormatNumber(e/1e6,1)+"M":e>=1e3?baseFormatNumber(e/1e3,1)+"k":baseFormatNumber(e,0),formatFileSizeNumber=e=>isNaN(e)?0:e/1073741824>1?baseFormatNumber(e/1073741824,2)+"GB":e/1048576>1?baseFormatNumber(e/1048576,2)+"MB":e>=1024?baseFormatNumber(e/1024,0)+"KB":baseFormatNumber(e,0)+"byte",formatNumber=e=>{let{number:t,decimal:n,format:r}=e;switch(r){case"file":return formatFileSizeNumber(t);case"social":return formatSocialNumber(t);default:return baseFormatNumber(t,n)}};t.ZP=e=>{let{number:t,decimal:n,format:r}=e,o=formatNumber({number:t,decimal:n,format:r});return(0,c.jsx)(c.Fragment,{children:o})}},39151:function(e,t,n){n.d(t,{a:function(){return _}});var r=n(85893),o=n(88565);n(67294);var c=n(27045),i=n(69429),u=n(13637),l=n(57187),a=n(90987),s=n(46976),p=n(33583),d=n(43362),m={root:"m_9814e45f"};let f={zIndex:(0,c.w)("modal")},b=(0,u.Z)((e,{gradient:t,color:n,backgroundOpacity:r,blur:c,radius:u,zIndex:a})=>({root:{"--overlay-bg":t||(void 0!==n||void 0!==r)&&(0,l.m)(n||"#000",r??.6)||void 0,"--overlay-filter":c?`blur(${(0,o.h)(c)})`:void 0,"--overlay-radius":void 0===u?void 0:(0,i.H5)(u),"--overlay-z-index":a?.toString()}})),_=(0,d.b)((e,t)=>{let n=(0,a.w)("Overlay",f,e),{classNames:o,className:c,style:i,styles:u,unstyled:l,vars:d,fixed:_,center:h,children:x,radius:j,zIndex:v,gradient:g,blur:O,color:C,backgroundOpacity:P,mod:w,...M}=n,N=(0,s.y)({name:"Overlay",props:n,classes:m,className:c,style:i,classNames:o,styles:u,unstyled:l,vars:d,varsResolver:b});return(0,r.jsx)(p.x,{ref:t,...N("root"),mod:[{center:h,fixed:_},w],...M,children:x})});_.classes=m,_.displayName="@mantine/core/Overlay"},37113:function(e,t,n){n.d(t,{q:function(){return useDisclosure}});var r=n(67294);function useDisclosure(e=!1,t){let{onOpen:n,onClose:o}=t||{},[c,i]=(0,r.useState)(e),u=(0,r.useCallback)(()=>{i(e=>e||(n?.(),!0))},[n]),l=(0,r.useCallback)(()=>{i(e=>e?(o?.(),!1):e)},[o]),a=(0,r.useCallback)(()=>{c?l():u()},[l,u,c]);return[c,{open:u,close:l,toggle:a}]}},77953:function(e,t,n){n.d(t,{s:function(){return useWindowEvent}});var r=n(67294);function useWindowEvent(e,t,n){(0,r.useEffect)(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}}}]);

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.