1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[3065],{91968(e,t,i){i.r(t),i.d(t,{default:()=>S});var a=i(74848),n=i(96540),r=i(78692);let s="list-pkJg0W";var o=i(79874);let d="amountContainer-sTFQQw";var c=i(80736);function l(e){let{giftCard:t,isStencil:i}=e,n=`${t.businessCDnUrl}GiftCertificate/TextOnImage/${t.giftCertificateImg}`;return(0,a.jsxs)("div",{className:"cardBg card-cdfDjQ stenciled",children:[(0,a.jsx)("div",{style:i?{height:"256px"}:{},className:(0,o.A)("imageContainer-jiQ5bH",i&&"stencil-item"),children:!i&&(0,a.jsx)("img",{className:"gift-card lazypager quickFlipCta vagaro-border-color","data-original":n,width:"100%",alt:"",title:"",src:n,role:"link","aria-labelledby":"lblSenderNameU2FsdGVkX1_AxZnfNqGN0Y_B35LlNtkiwruoSQyNwIg",style:{display:"block"}})}),(0,a.jsxs)("div",{className:"infoContainer-jTQhI8",children:[(0,a.jsxs)("div",{className:"textContent-VlhyqH",children:[(0,a.jsx)("div",{className:(0,o.A)("vg-subheading-font web-subheading-font web-builder-font-color",i&&"stencil-item w-1/4"),style:i?{marginBottom:"4px"}:{},children:(0,a.jsxs)("span",{children:["From: ",t.senderName]})}),(0,a.jsx)("p",{className:(0,o.A)("vg-body-font web-body-font web-builder-font-color",i&&"stencil-item w-1/2"),children:t.businessName})]}),t.serviceID?(0,a.jsx)("div",{className:(0,o.A)(d),children:(0,a.jsx)("div",{className:(0,o.A)("vg-body-font web-body-font web-display-small-green",i&&"stencil-item w-1/12"),children:(0,a.jsx)("span",{className:(0,o.A)(i&&"stencil-item"),children:`${t.quantity} Visit(s)`})})}):(0,a.jsx)("div",{className:d,children:(0,a.jsxs)("div",{className:(0,o.A)("vg-body-font web-body-font web-display-small-green",i&&"stencil-item"),children:[t.currencySymbol,(0,c.zJ)(t.currentBalance)]})})]})]})}var m=i(28271),g=i(94079),p=i(55541),u=i(89347);function f(e){let{onGiftCardClick:t}=e,{items:i,hasMore:o,initialFetchDone:d,loadMore:c,isError:f}=(0,m.F)(),b=d?i:Array(12).fill({...g.k});(0,n.useEffect)(()=>{window.scrollTo(0,0)},[]);let h=0!==i.length||o?(0,a.jsx)("p",{style:{textAlign:"center"},children:(0,a.jsx)(p.A,{})}):(0,a.jsx)(u.A,{customElement:(0,a.jsx)("i",{className:"fa-light fa-gift web-builder-font-color iconSize-Hf1qwN"}),icon:"gift_card",title:"No Gift Cards",message:"You don't have any gift cards. Maybe you'll get a gift soon."});return window.scrollEventBack=function(e){o&&c()},(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"pageTitle-SAxXfp vg-display-large web-display-large web-builder-font-color",children:"Gift Cards"}),(0,a.jsx)(r.A,{dataLength:b.length,next:c,hasMore:o,loader:!f&&(0,a.jsx)("ul",{className:s,children:(0,a.jsx)("li",{children:(0,a.jsx)(l,{isStencil:!0,giftCard:g.k})},"giftcard-item-stencil-loader")}),endMessage:h,children:(0,a.jsx)("ul",{className:s,children:b.map((e,i)=>(0,a.jsx)("li",{onClick:()=>{d&&t(e)},children:(0,a.jsx)(l,{isStencil:!d,giftCard:e})},"item-"+e.giftCertificateID+"-"+i))})})]})}let b="giftCardDetailsListSpace-W23SE0";function h(e){let{giftCardHistoryItem:t,isStencil:i}=e;return(0,a.jsxs)("div",{className:`cardBg ${(0,o.A)("card-SqleaY","CardborderBottom-u76QKk",i&&"stenciled")}`,children:[(0,a.jsxs)("div",{className:"textContent-dMniiS",children:[(0,a.jsx)("div",{className:(0,o.A)("vg-subheading-font web-subheading-font web-builder-font-color",i&&"stencil-item w-1/4"),children:(e=>{let t=e.toUpperCase(),i=e;switch(t){case"REDEEM":i="Redeemed";break;case"INCREASE BALANCE":i="Increased Balance";break;case"DECREASE BALANCE":i="Decreased Balance";break;case"REFUND":i="Refunded";break;case"VOIDED":i="Voided";break;case"INITIAL VALUE":i="Issued";break;case"CONVERT TO PRICE-BASED GC":i="Convert to Price-Based GC"}return i})(t.type)}),(0,a.jsx)("div",{className:(0,o.A)("vg-body-font web-body-font web-builder-font-color",i&&"stencil-item w-1/2"),children:t.createdDateFormat})]}),(0,a.jsx)("div",{className:(0,o.A)("amountContainer-EsOPK5","vg-display-medium web-display-medium",i&&"stencil-item w-1/12"),children:t.serviceBalance?(0,a.jsx)("span",{className:["REDEEM","DECREASE BALANCE","VOIDED"].includes(t.type.toUpperCase())?"web-display-small-alert":(t.serviceBalance>0&&t.type.toUpperCase(),"web-display-small-green"),style:{color:["REDEEM","DECREASE BALANCE","VOIDED"].includes(t.type.toUpperCase())?"var(--bkg_alert_default)":t.serviceBalance>0&&"INCREASE BALANCE"===t.type.toUpperCase()?"var(--bkg_green_default)":""},children:["REDEEM","DECREASE BALANCE","VOIDED"].includes(t.type.toUpperCase())?`${"REDEEM"===t.type.toUpperCase()?"-":""}${(0,c.zJ)(t.serviceBalance)} Visit(s)`:`${t.serviceBalance>0&&"INCREASE BALANCE"===t.type.toUpperCase()?"+":""}${(0,c.zJ)(t.serviceBalance)} Visit(s)`}):(0,a.jsx)("span",{className:" VOIDED"===t.type.toUpperCase()||t.changedAmt<0?"web-display-small-alert":(t.changedAmt>0&&t.type.toUpperCase(),"web-display-small-green"),style:{color:"VOIDED"===t.type.toUpperCase()||t.changedAmt<0?"var(--bkg_alert_default)":t.changedAmt>0&&"INCREASE BALANCE"===t.type.toUpperCase()?"var(--bkg_green_default)":""},children:t.changedAmt<0||"VOIDED"===t.type.toUpperCase()?"VOIDED"===t.type.toUpperCase()?`${t.currencySymbol} 2 ${(0,c.zJ)(-1*t.changedAmt)}`:`-${t.currencySymbol}${(0,c.zJ)(-1*t.changedAmt)}`:"CONVERT TO PRICE-BASED GC"===t.type.toUpperCase()?`${t.currencySymbol}${(0,c.zJ)(t.currentBalance)}`:`${t.changedAmt>0&&"INCREASE BALANCE"===t.type.toUpperCase()?"+":""}${t.currencySymbol}${(0,c.zJ)(t.changedAmt)}`})})]})}var y=i(98767);let C={card:"card-W601HF",contentContainer:"contentContainer-IS8LIk",imageContainer:"imageContainer-MbyjFw",businessNameAndAmountContainer:"businessNameAndAmountContainer-F1BVnW",imageAndBusinessInfoContainer:"imageAndBusinessInfoContainer-veAfkA",amountContainer:"amountContainer-_mtDzG",recipientAndExpirationContainer:"recipientAndExpirationContainer-Tou0u3",barcodeContainer:"barcodeContainer-XAUkHz",recipientAndBarcodeContainer:"recipientAndBarcodeContainer-wW5AnA","gift-barcode":"gift-barcode-jSseeZ",giftBarcode:"gift-barcode-jSseeZ"};var x=i(11542),v=i(7292),N=i.n(v),w=i(75538);function A(e){let{giftCard:t}=e,i=`${t.businessCDnUrl}GiftCertificate/TextOnImage/${t.giftCertificateImg}
2`,r=(0,n.useRef)(null),[s,o]=(0,n.useState)(!1),d=(0,w.op)();return(0,a.jsx)(n.Suspense,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:(0,a.jsx)("div",{ref:r,id:"giftCardPrintSection",className:`cardBg ${C.card} ${C.printContent} printContent`,children:(0,a.jsxs)("div",{className:C.contentContainer,children:[(0,a.jsxs)("div",{className:C.imageAndBusinessInfoContainer,children:[(0,a.jsx)("div",{className:C.imageContainer,children:(0,a.jsx)("img",{className:"gift-card lazypager quickFlipCta vagaro-border-color","data-original":i,width:"100%",alt:"",title:"",src:i,role:"link","aria-labelledby":"lblSenderNameU2FsdGVkX1_AxZnfNqGN0Y_B35LlNtkiwruoSQyNwIg",onLoad:()=>o(!0),style:{display:s?"block":"none"}})}),(0,a.jsxs)("div",{className:C.businessNameAndAmountContainer,children:[(0,a.jsx)("div",{className:C.businessName,children:(0,a.jsx)("div",{className:"vg-subheading-font web-subheading-font web-builder-font-color",children:t.businessName})}),(0,a.jsx)("div",{className:`${C.amountContainer}`,children:(0,a.jsx)("div",{className:"vg-subheading-font web-subheading-font web-display-small-green",children:t.serviceID?(0,a.jsx)("span",{className:`widgetSpace ${C.amountContainer}`,children:`${t.quantity} Visit(s) remaining`}):(0,a.jsxs)("span",{className:`widgetSpace ${C.amountContainer}`,children:[t.currencySymbol,(0,c.zJ)(t.currentBalance)," remaining"]})})})]})]}),(0,a.jsx)("div",{className:`PrintRightSection ${C.recipientAndBarcodeContainer}`,children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:C.recipientAndExpirationContainer,children:[(0,a.jsxs)("div",{className:"vg-body-font web-body-font web-builder-font-color",children:["From: ",t.senderName]}),(0,a.jsxs)("div",{className:"vg-body-font web-body-font web-builder-font-color",children:["Expires: ",t.expiresOn||"Never"]})]}),(0,a.jsx)("div",{className:C.barcodeContainer,children:(0,a.jsx)(x.g,{value:t.giftCertificateNo})}),(0,a.jsx)("div",{className:`PrintButtonCust ${C.printButtonContainer}`,children:(0,a.jsx)(y.YU,{ButtonVariant:"secondary",ButtononClick:()=>{r.current&&(d?(0,c.iX)(0,0,"","","0","action:31|~|<html><head><style type='text/css' media='print'> @media print {header, .horizontal-menu-div, .back-link-block, .nav-bar, .btnprintgc, footer, .gift-issue-detail, #pushdiv, .custombannercontainer, button { display: none !important; }.gift-card-content { padding-top: 0; padding-bottom: 0; }.gift-div-block {width: 100%;}.gift-card-box {width: 100%;margin: 0;padding: 10px 15px;}.gcImage-block { width: 100% !important; display: block !important; }.gift-img { width: 100% !important; margin-bottom: 5px; border-radius: 10px; border: 0 none; }.gift-name { width: calc(100% - 160px) !important; font-weight: 500; display: inline-block; font-size: 15px; }.gift-price { float: right; color: #50bb58; font-size: 17px; font-weight: 400; }.gcImage-detail { display: block !important; padding-left: 0 !important; width: 100% !important; text-align: left !important; }.gift-card-detail { list-style: none; padding: 0; margin: 0 0 10px 0; }.gift-card-detail li { font-weight: 300; font-size: 15px; }.print-button, button.vg-btn-secondary, .PrintRightSection button {display: none !important;}.PrintButtonCust{display: none !important;}.gift-barcode { margin-left: auto !important; margin-right: auto !important; display: block !important; width: 100% !important; margin-bottom: 0 !important; text-align: center;} *, *:after, *:before{ box-sizing: border-box; }.print-button, button {display: none !important;}.PrintRightSection button, button.vg-btn-secondary, .print-button, [type='button'] {display: none !important;}.PrintRightSection{display: flex !important; flex-direction: column !important; justify-content: space-between !important; margin-top: 10px !important; font-size: 16px !important; font-weight: 400 !important;}@page { size:auto!important; margin: 0px; }html, body, .wrap-page {background-color:#fff; height: auto; font-family:'proxima-nova', sans-serif, Arial; }</style></head><body><div class=\"gift-card-content\">"+r.current.innerHTML+"</div></body></html>",!0):N()({printable:r.current.id,type:"html",targetStyles:["*"],scanStyles:!0,style:` 3 @page { size: auto; margin: 0mm; } 4 @media print { 5 html, body { 6 margin: 2px !important; 7 padding: 2px !important; 8 height: auto !important; 9 } 10 11 .printContent { 12 page-break-inside: avoid; 13 break-inside: avoid; 14 } 15 16 .contentContainer { 17 gap: 10px!important; 18 } 19 20 .print-button,button, [type="button"] { 21 display: none !important; 22 } 23 24 /* Ensure gift card takes full width */ 25 .printContent { 26 width: 100% !important; 27 max-width: 100% !important; 28 page-break-inside: avoid!important; 29 } 30 31 .printContent img { 32 max-width: 100% !important; 33 height: auto !important; 34 } 35 } 36 @media print and (orientation: portrait) { 37 .PrintRightSection > div > div { 38 margin-left: 8px !important; 39 } 40 41 } 42 43 /* Landscape mode */ 44 @media print and (orientation: landscape) { 45 .PrintRightSection > div > div { 46 margin-left: 100px !important; 47 } 48 49 } 50 `}))},children:"Print"})})]})})]})})})}var j=i(54454);function E(e){let{giftCard:t,onBack:i}=e,{items:s,initialFetchDone:o,hasMore:d,loadMore:c,isError:l}=(0,m.O)(t.giftCertificateID,t.merchantId,t.sGroup),u=o?s:Array(12).fill({...g.y});return(0,n.useEffect)(()=>{window.handleOperation="GCBack",window.scrollTo(0,0)},[]),window.scrollEventBack=function(e){d&&c()},(0,a.jsxs)("div",{children:[(0,a.jsx)(j.A,{onClick:i,children:"Back"}),(0,a.jsx)(A,{giftCard:t}),(0,a.jsx)(r.A,{dataLength:u.length,next:c,hasMore:d,loader:!l&&(0,a.jsx)("ul",{className:b,children:(0,a.jsx)("li",{children:(0,a.jsx)(h,{isStencil:!0,giftCardHistoryItem:g.y})},"gift-card-detail-item-stencil-loader")}),endMessage:(0,a.jsx)("p",{style:{textAlign:"center"},children:(0,a.jsx)(p.A,{})}),children:(0,a.jsx)("ul",{className:b,children:u.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(h,{isStencil:!o,giftCardHistoryItem:e})}
50,"giftcard-history-item-"+t))})})]})}let I={};var B=i(51850),k=i(99060);let S=()=>{let e=(0,k.zy)(),t=(0,k.Zp)(),[i,r]=(0,n.useState)("giftcards"),[s,o]=(0,n.useState)();(0,B.A)({onReset:()=>{r("giftcards"),o(void 0)}});let d=()=>{t("/myaccount/gift"+(0,c.X_)()),window.handleOperation="",r("giftcards")};return window.handleEventBack=d,(0,n.useEffect)(()=>{let t=e.pathname.replace("/myaccount/gift","").split("/").filter(Boolean);if(0===t.length){r("giftcards"),o(void 0);return}let i=t[0],a=t[1],[n,s,d,c,l,m,g,p,u,f,b,h,y,C,x,v,N,w,A,j,E]=a?decodeURIComponent(a).split("|$|"):[];"details"===i&&r("giftcarddetail"),o({giftCertificateNo:n??"",giftCertificateAmt:s?Number(s):0,giftCertificateImg:d??"",assignedToName:c??"",currentBalance:l?Number(l):0,senderName:m??"",businessName:g??"",currencySymbol:p??"",businessCDnUrl:u??"",businessContainerName:f??"",quantity:b?Number(b):0,initialQuantity:h?Number(h):0,totalPage:y?Number(y):0,sGroup:C??"",strQuantity:x??"",giftCertificateID:v??"",isUserIdMatched:"true"===N,expiresOn:w??"",serviceID:A??"",serviceName:j??"",merchantId:E??""})},[e]),(0,a.jsxs)("div",{className:`vg-body-font web-body-font web-builder-font-color MyaccountWrapper ${I.giftCardsPage}`,children:["giftcards"===i&&(0,a.jsx)(f,{onGiftCardClick:e=>{t("/myaccount/gift/details"+(e=>{let{GiftCardDetails:t}=e,i=[t.giftCertificateNo,t.giftCertificateAmt,t.giftCertificateImg,t.assignedToName,t.currentBalance,t.senderName,t.businessName,t.currencySymbol,t.businessCDnUrl,t.businessContainerName,t.quantity,t.initialQuantity,t.totalPage,t.sGroup,t.strQuantity,t.giftCertificateID,t.isUserIdMatched,t.expiresOn,t.serviceID,t.serviceName,t.merchantId].map(e=>encodeURIComponent(String(e??""))).join("|$|");return`/${i}`})({GiftCardDetails:e})+(0,c.X_)()),r("giftcarddetail")}}),"giftcarddetail"===i&&s&&(0,a.jsx)(E,{giftCard:s,onBack:d})]})}},28271(e,t,i){i.d(t,{O:()=>p,F:()=>g});var a=i(27291),n=i(72834),r=i(67359),s=i(8221),o=i(28733);class d{static async getGiftCards(e){return(await s.Ay.post(o.rp.getGiftCards(),e)).data.data}static async getGiftCardHistory(e){return(await s.Ay.post(o.rp.getGiftCardHistory(),e)).data.data.giftCertificateHistoryResponse}}var c=i(58011),l=i(80736),m=i(75538);let g=()=>{let{device:e,module:t}=(0,n.J)();return(0,r.X)({queryKey:{resource:a.N.giftCards,params:{brandedApp:(0,m.IN)()??!1,device:e,module:t,pageNumber:1,pageSize:12,merchantId:(0,m.IN)()?"QX9p3jq6~mMP6js9ReeSqw==":(0,l.db)(),appNo:(0,m.IN)()?window.BrandedAppBID:null,multiLocation:!!(0,m.gK)()}},fetcher:(e,t)=>d.getGiftCards({...t,pageNumber:e}),initialPage:1,pageSize:12,onError:()=>c.oR.error("Error getting gift cards.")})},p=(e,t,i)=>{let{device:s,module:o}=(0,n.J)();return(0,r.X)({queryKey:{resource:a.N.giftCardHistory,params:{gcOrPackageId:e,device:s,module:o,pageNumber:1,pageSize:10,merchantId:t,groupId:i}},fetcher:(e,t)=>d.getGiftCardHistory({...t,pageNumber:e}),initialPage:1,pageSize:10,enableFirstPageCache:!0})}},94079(e,t,i){i.d(t,{k:()=>a,y:()=>n});let a={giftCertificateNo:"",giftCertificateAmt:0,giftCertificateImg:"",assignedToName:"",currentBalance:0,senderName:"",businessName:"",currencySymbol:"",businessCDnUrl:"",businessContainerName:"",quantity:0,initialQuantity:0,totalPage:0,sGroup:"",strQuantity:"",giftCertificateID:"",isUserIdMatched:!1,expiresOn:"",serviceID:"",serviceName:"",merchantId:""},n={createdDate:"",changedAmt:0,currencySymbol:"",currentBalance:0,type:"",createdDateFormat:"",businessName:"",serviceDesc:"",visitRemaining:0,typeId:0,totalPage:0,transactionBy:"",redeemTo:"",relationshipWithUser:"",usedByCustomer:"",serviceTitle:"",serviceBalance:0,expiresOn:"",visitRemainingText:""}},54454(e,t,i){i.d(t,{A:()=>d});var a=i(74848),n=i(98767),r=i(60458),s=i(96540),o=i(75538);function d(e){let{children:t,onClick:i}=e,d=(0,r.G)(),c=(0,o.op)(),l={width:d?7.5:18.75,height:d?20:30};if((0,s.useEffect)(()=>{let e=document.getElementById("main");return e&&e.classList.add("innerPage"),()=>{e&&e.classList.remove("innerPage")}},[]),!1==c)return(0,a.jsx)("div",{className:"backButtonContainer-K0G0fy",children:(0,a.jsxs)("div",{onClick:i,className:"container-XhJun4",children:[(0,a.jsx)(n.qy,{name:"chevronLeft",width:l.width,height:l.height}),(0,a.jsx)("span",{children:t})]})})}},60458(e,t,i){i.d(t,{G:()=>n});var a=i(96540);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,i]=(0,a.useState)(window.innerWidth>=e);return(0,a.useEffect)(()=>{let t=()=>{i(window.innerWidth>=e)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[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.