1import{$t as c,At as d,K as C,S as y,St as m,b as r,d as x,f as w,st as b,ut as l,y as p}from"./2.12.0-uk-runtime-core.esm-bundler-CM7kzQMe.js";import{r as D}from"./2.12.0-uk-vue-i18n-D96Pgh8y.js";import{t as v}from"./2.12.0-uk-DefaultButton-EYOFBtUM.js";import{t as M}from"./2.12.0-uk-BaseModal-BCq2UuuP.js";import{t as h}from"./2.12.0-uk-GiftCardDeliveryForm-xYIcDh8S.js";var B={class:"flex flex-col-reverse sm:flex-row justify-end gap-3 w-full"},V=y({__name:"EditGiftCardModal",props:{showing:{type:Boolean},initialData:{}},emits:["close","save"],setup(s,{emit:g}){const n=s,a=g,{t:o}=D(),f=m(null),e=m({...n.initialData});b(()=>n.initialData,u=>{e.value={...u}});async function _(){await f.value?.validateAll()&&(a("save",{...e.value}),a("close"))}return(u,t)=>(C(),w(M,{showing:s.showing,"modal-title":d(o)("product.giftCard.editTitle"),"modal-size":"xs","modal-content-class":"p-6 text-start text-blue font-gilroy","fullscreen-on-mobile":"","center-modal":"",onClose:t[2]||(t[2]=i=>a("close"))},{"modal-footer":l(()=>[x("div",B,[r(v,{id:"edit-gift-card-cancel-btn","data-testid":"edit-gift-card-cancel-btn",variant:"secondary",appearance:"standard",size:"small",onClick:t[1]||(t[1]=i=>a("close"))},{default:l(()=>[p(c(d(o)("product.giftCard.cancel")),1)]),_:1}),r(v,{id:"edit-gift-card-save-btn","data-testid":"edit-gift-card-save-btn",variant:"primary",appearance:"standard",size:"small",onClick:_},{default:l(()=>[p(c(d(o)("product.giftCard.update")),1)]),_:1})])]),default:l(()=>[r(h,{ref_key:"formRef",ref:f,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=i=>e.value=i),"hide-method-toggle":"","hide-title":"",class:"w-full mx-auto"},null,8,["modelValue"])]),_:1},8,["showing","modal-title"]))}}),N=Object.assign(V,{__name:"UIModalsTrolleyModalEditGiftCardModal"});export{N as default};
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.