1"use strict";(self.webpackChunkauctionsplus_web=self.webpackChunkauctionsplus_web||[]).push([[4907],{4907(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(16407),i={key:0},o={key:1};var a=n(14095),s=n(62194),l=n(19115),c=n(90064);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d={name:"EmailCatalogueButton",props:["title","auctionId","pageUrl","pageDescription","pageName","isDeliveryAgent","recipientsEmail","recipientsName","senderEmail","senderMobile","senderName"],data:function(){return{eventName:"EmailCatalogue_Submitted"}},computed:m(m({},(0,l.L8)(["getRequestVerificationToken","isLoggedIn"])),{},{hasSlot:function(){return this.$slots.default&&this.$slots.default[0]},userLoggedIn:function(){return this.isLoggedIn}}),directives:{modalToggle:c.A},mounted:function(){s.A.$on(this.eventName,this.emailSubmitHandler)},beforeUnmount:function(){s.A.$off(this.eventName,this.emailSubmitHandler)},methods:{clickHandler:function(){this.isLoggedIn?this.$root.openModal({component:"EmailFormType1",params:{title:this.title,senderEmail:this.senderEmail,senderMobile:this.senderMobile,senderName:this.senderName,eventName:this.eventName}}):this.$root.openModal({component:"Login",params:{title:"Log in to access this feature",icon:"lock"}})},emailSubmitHandler:function(e){var t={auctionId:this.auctionId||null,recipientsEmail:e.recipientsEmail,recipientsName:e.recipientsName,comments:e.comments},n=this.getRequestVerificationToken,r=this;this.axios({method:"POST",url:"/api/email/sharecatalogue",headers:{"Content-Type":"application/json;charset=utf-8",RequestVerificationToken:n},data:JSON.stringify(t)}).then(function(){s.A.$emit("EMAIL_SENT"),r.$toasted.success("Email has been sent")}).catch(function(e){s.A.$emit("EMAIL_SENDING_FAILED");var t=e.response;t.status>=500?r.$toasted.error("Server error. Please try again later."):t.status>=400&&(t.data?r.$toasted.error(t.data):r.$toasted.error("Something went wrong. Please try again later."))})}}};const p=(0,n(21535).A)(d,[["render",function(e,t,n,a,s,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["flex items-center rounded-t border-b hover:bg-brand-primary-100 cursor-pointer",{"py-4 px-5":!l.hasSlot}]),onClick:t[0]||(t[0]=(0,r.withModifiers)(function(){return l.clickHandler&&l.clickHandler.apply(l,arguments)},["stop","prevent"]))},[l.hasSlot?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"default")])):((0,r.openBlock)(),(0,r.createElementBlock)("span",o,[t[1]||(t[1]=(0,r.createElementVNode)("i",{class:"material-symbols-outlined text-[1.55rem] mr-4 text-brand-primary"},"mail",-1)),(0,r.createTextVNode)((0,r.toDisplayString)(n.title),1)]))],2)}]]),h=p}}]);
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.