1import{a,J as i,n as c}from"./app-6d16514d.js";import{R as u}from"./ReserveIncrementSelector-3c4eebcc.js";/* empty css */const f={props:["modalProps"],components:{ReserveIncrementSelector:u},data(){return{item:this.modalProps.item,submitted:!1,reserveIncrements:[],selectedReserve:0,error:!1}},methods:{...a("modals",["closeModalContainer"]),reofferLot(){let s=this.item.fd_key,e=this.$page.props.globals.BASE_URL,t=this,r=window.location.search.substring(1),n=new URLSearchParams(r);i.post("/account/my-consignments/reoffer-lot",{item_fd_key:s,reserve:this.selectedReserve,url:e,qa:n.get("qa")||!1}).then(()=>{t.submitted=!0}).catch(function(o){var l;o.response?t.error=(l=o.response.data)==null?void 0:l.message:o.request})},closeModal(){this.closeModalContainer(),location.reload()},closeModalNoRefresh(){this.closeModalContainer()},srcSet(s){return createSrcSet(s,{sizes:["110","220","520"],replace:"220"})},formatNumber(s){return s&&"".concat(s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))}},created(){if(this.item.reserve_amount>0){let s=this.$page.props.globals.BID_INCREMENTS[this.item.bid_increment_version-1];const e=this.item.reserve_amount*.7;let t=s.findIndex(r=>r>e);this.reserveIncrements=s.slice(0,t),this.selectedReserve=this.reserveIncrements[this.reserveIncrements.length-1]}else this.selectedReserve=0},mounted(){this.$root.$on("reserve-updated",s=>this.selectedReserve=s)}};var m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lower-reserve-modal"},[e.submitted?t("div",{staticClass:"flex flex-col gap-6 success"},[t("h2",{staticClass:"modal-title"},[e._v("Thank You")]),e._v(" "),t("p",[e._v("Our team will be in touch shortly with a plan for selling this work in a future auction.")]),e._v(" "),t("button",{staticClass:"button button-solid single self-center",on:{click:function(r){return r.preventDefault(),e.closeModal.apply(null,arguments)}}},[e._v("close")])]):t("div",{staticClass:"flex flex-col gap-6"},[t("h2",{staticClass:"modal-title !m-0"},[e._v("Reoffer Lot")]),e._v(" "),e.item.show_reoffer_notice?t("div",{staticClass:"flex flex-col gap-6"},[t("p",[e._v("We are actively attempting to find buyers for all unsold lots. If after 10 days the lot remains unsold, you\n can select reoffer lot to let us know that you would like us to move this item into a future auction. If you\n have any questions, please contact your client representative or email "),t("a",{attrs:{href:"mailto:consign@".concat(e.$page.props.house_domain)}},[e._v("consign@"+e._s(e.$page.props.house_domain))]),e._v(".")]),e._v(" "),t("button",{staticClass:"button button-solid single self-center",on:{click:function(r){return r.preventDefault(),e.closeModalNoRefresh.apply(null,arguments)}}},[e._v("close")])]):t("div",{staticClass:"flex flex-col gap-10"},[e.item.reserve_amount>0?t("div",{staticClass:"flex flex-col gap-10"},[t("p",[e._v("Once confirmed we will be in touch about your options for reoffering this work. To increase success, we\n recommend lowering your reserve.")]),e._v(" "),t("form",{staticClass:"lower-reserve-modal_bottom w-full max-w-full flex flex-col gap-6",attrs:{action:""}},[t("label",{staticClass:"uppercase font-medium text-center",attrs:{for:"reserve-selector"}},[e._v("Enter your new reserve")]),e._v(" "),t("div",{staticClass:"flex flex-row"},[t("div",{staticClass:"flex-1"},[t("reserve-increment-selector",{attrs:{bid_increment_version:e.item.bid_increment_version,percentage:.7,current_reserve:e.item.reserve_amount}})],1),e._v(" "),t("button",{staticClass:"button button-solid flex-initial",on:{click:function(r){return r.preventDefault(),e.reofferLot.apply(null,arguments)}}},[e._v("confirm\n ")])]),e._v(" "),t("p",{staticClass:"!mt-6 text-center"},[e._v("Increase your chances of selling by lowering your reserve.")])])]):t("div",{staticClass:"flex flex-col gap-10"},[t("p",[e._v("Once confirmed, we will be in touch about your options for reoffering this work.")]),e._v(" "),t("button",{staticClass:"button button-solid flex-initial self-center",on:{click:function(r){return r.preventDefault(),e.reofferLot.apply(null,arguments)}}}
1,[e._v("confirm\n ")])]),e._v(" "),e.error?t("div",{staticClass:"w-full mt-6 modal-lg:mt-12"},[t("div",{staticClass:"flex flex-col note-box danger"},[t("div",{staticClass:"text-center"},[e._v("Error. Please try again or contact "),t("a",{attrs:{href:"mailto:bids@".concat(e.$page.props.house_domain)}},[e._v("bids@"+e._s(e.$page.props.house_domain))])])])]):e._e()])])])},d=[],v=c(f,m,d,!1,null,null,null,null);const g=v.exports;export{g 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.