PageSourceSearch

https://www.lamodern.com/build/assets/ConsignModal-3c68665b.js

js lamodern.com collected 2026-10-02 11:04:50 UTC 13,265 bytes, 1 lines download raw bytes

1import{n as h,d as v,y as g,v as f}from"./app-85945816.js";import{L as _}from"./load-cdn-js-c3a527cf.js";/* empty css             */const w={mixins:[v],data(){return{prevHeight:0,upload_in_progress:!1,consignment_dz:null,showTips:!1,baseUrl:"/ajax/forms/consignment",inputs:{name:"",email:"",email_confirmation:"",phone:"",location:"",comments:"",images:""},saved_file_names:[]}},methods:{beforeLeave(s){this.prevHeight=getComputedStyle(s).height,s.style.height=0},enter(s){const{height:e}=getComputedStyle(s);s.style.height=this.prevHeight,setTimeout(()=>{s.style.height=e})},afterEnter(s){s.style.height="auto"},setDropzoneUrlToMockSuccess(){this.consignment_dz.options.url=g("/ajax/mock-upload-success")},toggleTips(){this.showTips=!this.showTips},initDropzone(){if(this.consignment_dz)return;let s='<svg viewBox="0 0 801 595" xmlns="http://www.w3.org/2000/svg" class="camera-icon svg">\n                                        <g>\n                                            <path d="M155.2 64.6c0-14.3-11.6-25.8-25.8-25.8H77.7c-14.3 0-25.8 11.6-25.8 25.8v12.9h103.4V64.6h-.1z"/>\n                                            <path d="M749.6 116.3H631.5c-12.7 0-24.5-6.2-31.8-16.5l-29.9-61.2C552.9 14.4 525.2 0 495.7 0H305.6c-29.5 0-57.2 14.4-74.1 38.6l-29.9 61.2c-7.3 10.4-19.1 16.5-31.8 16.5H51.7C23.2 116.3 0 139.4 0 168v374.8c0 28.5 23.1 51.7 51.7 51.7h697.8c28.5 0 51.7-23.1 51.7-51.7V168c.1-28.6-23-51.7-51.6-51.7zm-348.9 420c-103.5 0-187.4-83.9-187.4-187.4s83.9-187.4 187.4-187.4 187.4 83.9 187.4 187.4-83.9 187.4-187.4 187.4zM620.4 210c-16.1 0-29.1-13-29.1-29.1s13-29.1 29.1-29.1 29.1 13 29.1 29.1-13.1 29.1-29.1 29.1z" />\n                                            <circle r="142.1" cy="348.9" cx="400.7" />\n                                        </g>\n                                    </svg>',e='<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" class="upload-img svg">\n                                        <path d="M86.871 90.189c.156.148.336.271.534.353a1.518 1.518 0 0 1-.534-.353zM89.195 90.189a1.509 1.509 0 0 1-.534.353c.197-.082.377-.205.534-.353z"/>\n                                        <g>\n                                            <path d="M94.514 82.538L82.718 70.735l8.759-4.252c.599-.287.96-.911.919-1.576a1.645 1.645 0 0 0-1.108-1.453l-14.283-4.917v-47.56c0-.911-.739-1.642-1.642-1.642H6.642c-.903 0-1.642.731-1.642 1.642v57.525c0 .911.739 1.642 1.642 1.642H62l5.787 16.819a1.64 1.64 0 0 0 1.453 1.1 1.62 1.62 0 0 0 1.576-.919l4.252-8.758L86.872 90.19c.156.148.336.271.534.353.074.025.148.049.222.066.131.041.263.058.402.058.14 0 .279-.016.41-.058.074-.016.148-.041.222-.066.197-.082.378-.205.534-.353l5.089-5.089a.222.222 0 0 0 .041-.049l.189-.189a1.634 1.634 0 0 0-.001-2.325zM8.283 12.619h65.438v33.359L56.829 29.085c-.616-.616-1.707-.616-2.323 0L31.669 51.929l-7.642-7.642c-.616-.616-1.707-.616-2.323 0L8.283 57.708V12.619zm0 54.241v-4.515l14.578-14.578 7.642 7.642c.616.616 1.707.616 2.323 0L55.67 32.565l18.05 18.05v6.797l-14.948-5.147a1.624 1.624 0 0 0-1.724.427 1.628 1.628 0 0 0-.46 1.748l4.277 12.42H8.283zm79.746 19.848l-12.272-12.28a1.641 1.641 0 0 0-1.428-.452 1.621 1.621 0 0 0-1.207.895l-3.53 7.264-4.859-14.119c-.016-.057-.033-.107-.049-.156l-3.94-11.451 25.725 8.857-7.265 3.521a1.665 1.665 0 0 0-.903 1.207 1.659 1.659 0 0 0 .46 1.436l12.272 12.272-3.004 3.006z"/>\n                                            <path d="M26.785 37.257c-4.484 0-8.131-3.648-8.131-8.131 0-4.484 3.648-8.132 8.131-8.132s8.131 3.648 8.131 8.132-3.647 8.131-8.131 8.131zm0-12.979a4.854 4.854 0 0 0-4.848 4.848c0 2.673 2.175 4.848 4.848 4.848s4.848-2.175 4.848-4.848a4.854 4.854 0 0 0-4.848-4.848z"/>\n                                        </g>\n                                    </svg>',t=f.mobile?s:e,a=f.mobile?"<strong>Tap here to upload images</strong>":"<strong>Drag &amp; drop images</strong> (or click here)",l="".concat(t,"<br>").concat(a,"<br>we accept up to 10 .jpg .png or .tif images"),i=this,c="/ajax/upload-consignment-item-image";this.consignment_dz=new Dropzone(this.$refs.consignmentDropzone,{url:g(c),thumbnailWidth:240,thumbnailHeight:240,maxFiles:10,maxFilesize:50,acceptedFiles:"image/*,application/pdf",dictDefaultMessage:l,dictRemoveFile:"delete",dictCancelUpload:"uploading",dictMaxFilesExceeded:"10 files maximum. Please delete.",dictFileTooBig:"File is too large, Max 50MB. Please delete.",dictInvalidFileType:"Unsupported file type. Please delete.",addRemoveLinks:!0,init:function(){this.on("addedfile",function(){i.toggleSubmit();let n=document.querySelector("#consignment-item-images .dz-message");n.innerHTML=""}),this.on("success",function(n,r){i.saved_file_names.push(r),i.update_hidden_filename_list(),n.previewElement.setAttribute("data-saved-file-name",r),i.toggleSubmit()}),this.on("sending",function(){i.upload_in_progress=!0,m(),i.toggleSubmit()}),this.on("complete",function(n){this.getUploadingFiles().length===0&&this.getQueuedFiles().length===0&&(i.upload_in_progress=!1),m(),i.toggleSubmit()}),this.on("error",function(n,r,d){confirm("error uploading file. please try again"),this.removeFile(n),i.toggleSubmit()}),this.on("removedfile",function(n){let r=i.saved_file_names.indexOf($(n.previewElement).attr("data-saved-file-name"));r>-1&&i.saved_file_names.splice(r,1),i.toggleSubmit(),$("#consignment-item-images .dz-preview").length||$("#consignment-item-images .dz-message").html(l)});function m(){document.querySelector(".dz-preview").classList.remove("queued"),i.consignment_dz&&i.consignment_dz.getQueuedFiles().forEac
1h((r,d)=>{})}},sending:function(m,n,r){r.append("_token",i.$page.props.CSRF_TOKEN)}})},toggleSubmit(){let s=this,e=this.$refs.consignmentDropzone;setTimeout(function(){let t=s.getCurrentErrorCount(),a=document.querySelector('input[type="submit"]',e);t?(a.classList.add("disabled"),a.setAttribute("disabled")):(a.classList.remove("disabled"),a.removeAttribute("disabled"))},10)},handle_submit_fail(s){this.toggleSubmit()},show_thank_you(){_this.showThankYou=!0,$(".step-1").slideUp("slow"),$(".step-2").slideDown("slow"),$(".consignment-conversion").remove(),$(this.$el).append('<img class="consignment-conversion" height="1" width="1" style="border-style:none; position: absolute;" alt="" src="//www.googleadservices.com/pagead/conversion/976965069/?label=ycDmCJn9mmoQzZvt0QM&amp;guid=ON&amp;script=0"/>'),dataLayer.push({event:"consignment-form-successfully-submitted"});try{typeof __adroll<"u"&&__adroll.record_user({adroll_segments:"0a9347c4"})}catch(s){}},getCurrentErrorCount(){var a,l;let s=this.$refs.consignmentDropzone,e=document.querySelector(".dz-error",s),t=e?e.length:0;return t+=(a=document.querySelector(".dz-preview.queued",s))==null?void 0:a.length,t+=(l=document.querySelector(".parsley-error",s))==null?void 0:l.length,t},reset_consign_widget(){this.saved_file_names=[],$('input:not([type="submit"],[name="_token"],[name="referer_url"],[name="submission_url"],[name="consign_form"],[name="time"]),textarea',".consign_an_item_widget form").val("").trigger("change"),$('input[type="submit"]',".consign_an_item_widget form").removeClass("disabled").attr("disabled",!1),$(".step-1").slideDown(0),$(".step-2").slideUp(0),this.destroy_dz(),this.init_dz(),this.submitted=!1,this.showThankYou=!1},destroy_dz(){this.consignment_dz&&(this.consignment_dz.destroy&&this.consignment_dz.destroy(),this.consignment_dz=null),$("#consignment-item-images").html("")},update_hidden_filename_list(){this.form.images=JSON.stringify(this.saved_file_names)}},mounted(){var s,e;window.Dropzone={},window.Dropzone.autoDiscover=!1,(e=(s=new _().loadDropzoneFromCDN())==null?void 0:s.then(()=>{this.initDropzone()}))==null||e.catch(t=>{}),this.$emit("consign-modal-mounted")},onSuccess(){this.submitting=!1,this.show_thank_you=!0}};var y=function(){var a,l,i,c,m,n,r,d,u,p;var e=this,t=e._self._c;return t("div",[t("h2",{staticClass:"modal-title"},[e._v("Evaluation of Property")]),e._v(" "),t("transition-group",{attrs:{name:"fade",mode:"out-in"},on:{beforeLeave:e.beforeLeave,enter:e.enter,afterEnter:e.afterEnter}},[e.form_success?t("div",{key:"step-2"},[t("section",{staticClass:"step-2"},[t("p",[e._v("Thank you for your consignment request. Our specialists will review your item(s) and get back to you soon.\n          If you have questions or comments please contact us at\n          "),t("a",{attrs:{href:"mailto:consign@"+e.$page.props.house_domain}},[e._v("consign@"+e._s(e.$page.props.house_domain))]),e._v(".")])])]):t("div",{key:"step-1"},[t("section",{staticClass:"step-1"},[t("p",{staticClass:"consign-instructions"},[e._v("Use this form to submit images and details for items that\n          you would like to consign to auction.\n          "),e._v(" "),t("a",{attrs:{href:"javascript:;"},on:{click:e.toggleTips}},[e._v("Need helpful tips?")])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showTips,expression:"showTips"}],staticClass:"consign-tips"},[t("span",{staticClass:"grey_background"},[t("ul",{staticStyle:{margin:"0",padding:"0 0 0 20px"}},[t("li",[e._v("Please be as descriptive as possible including details about an items condition and history.")]),e._v(" "),t("li",[e._v("Where did you get the piece and does it have a special provenance?")]),e._v(" "),t("li",[e._v("Do you know any details regarding the edition, vintage, designer, or other particulars?")])]),e._v(" "),t("span",{staticClass:"hide-tips",on:{click:function(o){e.showTips=!1}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("hide")])])])])]),e._v(" "),t("form",{attrs:{autocomplete:"consignment-form"},on:{submit:function(o){return o.preventDefault(),e.submitForm.apply(null,arguments)}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.images,expression:"form.images"}],attrs:{type:"hidden",name:"images"},domProps:{value:e.form.images},on:{input:function(o){o.target.composing||e.$set(e.form,"images",o.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.name,expression:"form.name"}],class:["one w-full",{"parsley-error":e.form.errors.has("name")}],attrs:{type:"text",name:"name",id:"name",placeholder:"Name*",autocomplete:"cfun"},domProps:{value:e.form.name}
1,on:{input:function(o){o.target.composing||e.$set(e.form,"name",o.target.value)}}}),e._v(" "),t("div",{staticClass:"flex"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.email,expression:"form.email"}],class:["w-1/2 mr-2",{"parsley-error":(l=(a=e.form)==null?void 0:a.errors)==null?void 0:l.has("email")}],attrs:{type:"email",name:"email",id:"email",placeholder:"E-mail Address*",autocomplete:"cfe"},domProps:{value:e.form.email},on:{input:function(o){o.target.composing||e.$set(e.form,"email",o.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.email_confirmation,expression:"form.email_confirmation"}],class:["w-1/2 ml-2","last",{"parsley-error":(c=(i=e.form)==null?void 0:i.errors)==null?void 0:c.has("email_confirmation")}],attrs:{type:"email",name:"email_confirmation",id:"email-confirm",placeholder:"Confirm E-mail Address*",autocomplete:"cfe2"},domProps:{value:e.form.email_confirmation},on:{input:function(o){o.target.composing||e.$set(e.form,"email_confirmation",o.target.value)}}})]),e._v(" "),t("div",{staticClass:"flex"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.phone,expression:"form.phone"}],class:["w-1/2 mr-2",{"parsley-error":(n=(m=e.form)==null?void 0:m.errors)==null?void 0:n.has("phone")}],attrs:{type:"text",name:"phone",id:"phone",placeholder:"Phone Number*",autocomplete:"cfp"},domProps:{value:e.form.phone},on:{input:function(o){o.target.composing||e.$set(e.form,"phone",o.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.location,expression:"form.location"}],class:["w-1/2 ml-2","last",{"parsley-error":(d=(r=e.form)==null?void 0:r.errors)==null?void 0:d.has("location")}],attrs:{type:"text",name:"location",id:"location",placeholder:"Location*",autocomplete:"cfl"},domProps:{value:e.form.location},on:{input:function(o){o.target.composing||e.$set(e.form,"location",o.target.value)}}})]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.comments,expression:"form.comments"}],class:["w-full",{"parsley-error":(p=(u=e.form)==null?void 0:u.errors)==null?void 0:p.has("comments")}],attrs:{name:"comments",id:"comments",cols:"30",rows:"3",placeholder:"Please describe your item(s) including dimensions and provenance details when available.*",autocomplete:"cfd"},domProps:{value:e.form.comments},on:{input:function(o){o.target.composing||e.$set(e.form,"comments",o.target.value)}}}),e._v(" "),t("div",{staticClass:"flex consign-instructions"},[t("p",[e._v("Please upload images of your items. Having clear photos allows us to complete a more accurate valuation.")])]),e._v(" "),t("div",{ref:"consignmentDropzone",staticClass:"dropzone w-full",attrs:{id:"consignment-item-images"}}),e._v(" "),t("div",{staticClass:"submit_buttons w-full"},[t("busy-button",{attrs:{button_classes:"w-btn w-btn-grey-solid !block mx-auto",button_type:"submit",value:"Submit",busy:e.form.processing}},[e._v("Submit\n          ")])],1)])])])],1)},b=[],z=h(w,y,b,!1,null,"f5edc6e8",null,null);const T=z.exports;export{T 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.