PageSourceSearch

https://danble.co.kr/_next/static/chunks/pages/order_receipts-6a9ab7a7d558fd70.js

js danble.co.kr collected 2026-09-24 13:43:20 UTC 9,031 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8659,1741],{40240:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order_receipts",function(){return i(89860)}])},89860:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return b}});var l=i(85893),o=i(11163),n=i(67294),r=i(51741),a=i(21235),d=i(66660),s=i(38512),c=i(7506),u=i(72406);let v={OLD_PG:"이전 결제 시스템 주문은 고객센터(1:1문의)로 요청해 주세요.",NO_PAYMENT:"쿠폰\xb7포인트 전액 사용 주문은 증빙서류가 발급되지 않아요.",NOT_PAID:"결제가 완료되지 않은 주문이에요."};function p(e){let{label:t,value:i}=e;return(0,l.jsxs)("div",{className:"flex items-start justify-between gap-sp-l py-[3px]",children:[(0,l.jsx)("span",{className:"shrink-0 text-body-4 text-neutral-gray-500",children:t}),(0,l.jsx)("span",{className:"break-all text-right text-body-4 text-black",children:i})]})}function b(){let e=(0,o.useRouter)(),[t,i]=(0,n.useState)([]),[b,f]=(0,n.useState)(),[_,m]=(0,n.useState)(!0),[h,x]=(0,n.useState)(null),g=async e=>{let t=await (0,u.AH2)({page:e,limit:10});i(i=>1===e?(null==t?void 0:t.items)||[]:[...i,...(null==t?void 0:t.items)||[]]),f(null==t?void 0:t.pagination),m(!1)};(0,n.useEffect)(()=>{g(1)},[]);let y=async e=>{if(h)return;x(e.order_id);let t=await (0,u.AR7)(e.order_id);x(null);let i=(null==t?void 0:t.receipt_url)||(null==t?void 0:t.cash_receipt_url);i?window.open(i,"_blank"):alert("증빙서류를 불러오지 못했어요. 잠시 후 다시 시도해 주세요.")},w=(null==b?void 0:b.total_page)>0&&(null==b?void 0:b.page)<(null==b?void 0:b.total_page);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{isAppBannerShow:!0,text:"증빙서류발급",showList:["home","cart"],backAction:()=>{(0,c.a5)(e,"/mypage")}}),(0,l.jsx)(s.Z,{type:"page",children:(0,l.jsxs)("div",{className:"min-h-screen w-full bg-white pb-sp-ml",children:[_?(0,l.jsx)("div",{className:"flex w-full items-center justify-center py-[160px]",children:(0,l.jsx)(a.Z,{size:32,color:"#191919",borderColor:"#eeeeee"})}):0===t.length?(0,l.jsx)("div",{className:"flex w-full items-center justify-center py-[160px] text-body-3 text-neutral-gray-500",children:"발급 가능한 주문이 없어요."}):(0,l.jsx)("ul",{children:t.map(e=>(0,l.jsxs)("li",{className:"border-b border-neutral-gray-100 px-sp-l py-sp-l",children:[(0,l.jsx)(p,{label:"주문번호",value:e.order_number}),(0,l.jsx)(p,{label:"주문일자",value:e.ordered_at}),(0,l.jsx)(p,{label:"상품명",value:e.product_name}),(0,l.jsx)(p,{label:"총주문금액",value:"".concat((e.total_price||0).toLocaleString(),"원")}),(0,l.jsx)(p,{label:"배송상태",value:e.shipping_status}),(0,l.jsx)("div",{className:"mt-sp-m",children:e.is_receipt_available?(0,l.jsx)(r.default,{shape:"Outlined",type:"Secondary",size:"small",isLoading:h===e.order_id,onClick:()=>y(e),children:"증빙서류출력"}):(0,l.jsx)("p",{className:"text-body-4 text-neutral-gray-500",children:v[e.unavailable_reason]||"증빙서류를 발급할 수 없는 주문이에요."})})]},e.order_id))}),w&&(0,l.jsx)("div",{className:"px-sp-l pt-sp-l",children:(0,l.jsx)(r.default,{shape:"Outlined",type:"Secondary",size:"medium",onClick:()=>g(((null==b?void 0:b.page)||1)+1),children:"더보기"})})]})})]})}},51741:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return x}});var l=i(85893),o=i(88986),n=i(16583),r=i(42414),a=i(3624),d=i(96347);let s={common:{0:"#191919",100:"#ffffff"},neutralGray:{50:"#f4f4f4",100:"#eeeeee",200:"#dcdcdc",300:"#c4c4c4",400:"#b0b0b0",500:"#9b9b9b",600:"#737373",700:"#595959",800:"#3d3d3d"}},c={SOLID:"Solid",SOLID_ROUND:"SolidRound",SOLID_NO_RADIUS:"SolidNoRadius",OUTLINED_PILL:"OutlinedPill",TEXT:"Text"},u=()=>{},v=n.U0.solid.primary.nonDisabled,p=(e,t,i,l)=>{var o,r,a,d;let s=i?"disabled":"nonDisabled",c=(null===n.U0||void 0===n.U0?void 0:null===(r=n.U0[null==e?void 0:e.toLowerCase()])||void 0===r?void 0:null===(o=r[null==t?void 0:t.toLowerCase()])||void 0===o?void 0:o[s])||(null===n.U0||void 0===n.U0?void 0:null===(d=n.U0.solid)||void 0===d?void 0:null===(a=d[null==t?void 0:t.toLowerCase()])||void 0===a?void 0:a[s])||(i?n.U0.solid.primary.disabled:v);return{backgroundColor:(0,n.zn)(l,c.bg),color:(0,n.zn)(l,c.text),borderColor:(0,n.zn)(l,c.border),_borderMatchesBg:c.bg===c.border}},b=e=>{if(!e)return null;if(null==e?void 0:e.arrow){let{direction:t,isSmall:i,size:o,...n}=e.arrow;return(0,l.jsx)(r.Z,{direction:t,arrowSize:i||"small"===o?"small":void 0,...n})}return e},f=e=>{if(!e||"object"!=typeof e)return{};let t={};for(let[i,l]of Object.entries(e))l&&(t[i]=l);return t},_=(e,t,i,l)=>e?u:t?i||u:l,m=(e,t)=>
1{var i;let l=(null==t?void 0:t.toLowerCase())==="text"?n.Xk[null==e?void 0:e.toLowerCase()]||n.Xk.medium:n.ap[null==e?void 0:e.toLowerCase()]||n.ap.large,o=t===c.SOLID_ROUND&&(null==e?void 0:e.toLowerCase())==="xsmall"?"1.0rem":null!==(i=l.paddingX)&&void 0!==i?i:0;return{height:l.height,padding:"0 ".concat(o),gap:l.gap,...(0,d.p)(l.fontKey),_iconHeight:l.iconHeight}},h=e=>{switch(e){case c.SOLID_NO_RADIUS:return{borderRadius:0,width:"100%",height:"6.4rem"};case c.SOLID_ROUND:return{borderRadius:"4rem"};case c.OUTLINED_PILL:return{borderRadius:"3rem"};case c.TEXT:return{borderRadius:0,padding:0};default:return{borderRadius:"0.4rem"}}};var x=e=>{var t,i,n,r;let{shape:d=c.SOLID,type:u="Primary",size:v="Large",disabled:x=!1,leftIcon:g,rightIcon:y,isWide:w=!1,isCenter:j=!1,isLoading:N=!1,keepIconColor:k=!1,color:C={},colorOverride:L={},style:O,onClick:S,onDisabledClick:T,children:D,trackingData:I,...U}=e,R=p(d,u,x,s),E=_(N,x,T,S),P=b(g),X=b(y),A=f(C),z=f(L),Z={...A,...z},{_borderMatchesBg:B,...H}=R,F=B?{...Z.backgroundColor&&!Z.borderColor?{borderColor:Z.backgroundColor}:{},...Z.borderColor&&!Z.backgroundColor?{backgroundColor:Z.borderColor}:{}}:{},{_iconHeight:G,...K}=m(v,d),M=h(d),W={display:"flex",alignItems:"center",justifyContent:"center",borderWidth:"0.1rem",borderStyle:"solid",...K,...M,...H,...F,...A,...z,...O,...N&&d!==c.TEXT?{backgroundColor:"#eeeeee",borderColor:"#eeeeee"}:{}},Y=N&&d===c.TEXT,$="string"==typeof D?D:"string"==typeof(null==D?void 0:null===(t=D.props)||void 0===t?void 0:t.children)?null==D?void 0:null===(i=D.props)||void 0===i?void 0:i.children:(null==D?void 0:null===(r=D.props)||void 0===r?void 0:null===(n=r.children)||void 0===n?void 0:n.filter(e=>"string"==typeof e).join("_"))||"",q={margin:"auto 0",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",minWidth:"fit-content",height:G};return(0,l.jsxs)("button",{className:"relative box-border flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border-[0.1rem] border-solid leading-normal disabled:cursor-not-allowed [&>*]:pointer-events-none ".concat(w?"w-full":"w-fit min-w-fit"," ").concat(j?"mx-auto":""," ").concat(k?"":"[&_.btn-icon_svg]:text-inherit [&_.btn-icon_svg_[fill]:not([fill='none']):not([fill='transparent'])]:!fill-current [&_.btn-icon_svg_[stroke]:not([stroke='none']):not([stroke='transparent'])]:!stroke-current"),disabled:!T&&x,"aria-disabled":x||void 0,type:"button",style:W,onClick:E,title:$||void 0,"aria-label":"button_".concat(d,"_").concat(u).concat($?"_"+$:""),"data-track":"item","data-skip-attribution":I?void 0:"","data-item-id":(null==I?void 0:I.itemId)||void 0,"data-item-type":(null==I?void 0:I.itemType)||o.Z$.BUTTON,"data-item-label":(null==I?void 0:I.itemLabel)||$||void 0,"data-item-position":(null==I?void 0:I.itemPosition)||void 0,"data-section-key":null==I?void 0:I.sectionKey,"data-section-type":null==I?void 0:I.sectionType,"data-section-id":null==I?void 0:I.sectionId,"data-section-position":null==I?void 0:I.sectionPosition,...U,children:[P&&(0,l.jsx)("span",{className:"btn-icon btn-icon--left [&_div]:flex [&_div]:h-full [&_div]:w-full [&_div]:items-center [&_div]:justify-center [&_i]:flex [&_i]:h-full [&_i]:w-full [&_i]:items-center [&_i]:justify-center [&_svg]:w-auto [&_svg]:h-full".concat(Y?"invisible":""),style:q,children:P}),Y?(0,l.jsx)("span",{className:"invisible",children:D}):D,X&&(0,l.jsx)("span",{className:"btn-icon btn-icon--right [&_div]:flex [&_div]:h-full [&_div]:w-full [&_div]:items-center [&_div]:justify-center [&_i]:flex [&_i]:h-full [&_i]:w-full [&_i]:items-center [&_i]:justify-center [&_svg]:w-auto [&_svg]:h-full".concat(Y?"invisible":""),style:q,children:X}),N&&(0,l.jsx)(a.Z,{style:{width:"101%",height:"101%",position:"absolute",left:0,right:0,top:0,bottom:0}})]})}},21235:function(e,t,i){"use strict";var l=i(85893);i(67294),t.Z=function(e){let{size:t=40,color:i,borderColor:o,strokeWidth:n,...r}=e;return(0,l.jsx)("div",{className:"inline-block animate-spin rounded-full",style:{width:"".concat(t,"px"),height:"".concat(t,"px"),border:"".concat(n||3.6,"px s
1olid ").concat(o||"rgba(0, 0, 0, 0.1)"),borderTopColor:i||"#333",animationDuration:"1s",animationTimingFunction:"ease-in-out"},role:"progressbar","aria-label":"로딩 중",...r})}}},function(e){e.O(0,[5675,210,4609,707,6660,2888,9774,179],function(){return e(e.s=40240)}),_N_E=e.O()}]);

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.