PageSourceSearch

https://tshirt-boy.com/assets/TmlAddressForm.7a878156.js

js tshirt-boy.com collected 2026-09-28 02:21:52 UTC 4,128 bytes, 2 lines download raw bytes

1import{_ as V,af as P,bB as v}from"./index.b39fe1b1.js";import w from"./TmlInput.c5c24787.js";import q from"./TmlCountryPicker.1bdf6034.js";import C from"./TmlStatePicker.3a9d5fb5.js";import{N as m,D as n,W as o,U as i,f as d,G as h,Q as u}from"./vue.00f7c436.js";import{A as f}from"./address.37051e5c.js";import"./sentry.09480738.js";import"./faCheck.dd6ba410.js";import"./faTimes.9e2515d7.js";import"./faPlus.b7ccafa3.js";import"./faMinus.5dd9ea58.js";import"./faArrowRight.97fd3c4b.js";import"./faUndo.a98f3c90.js";import"./TmlNewSelect.8a3926cc.js";import"./faTimes.9da037f7.js";import"./faSearch.e965d023.js";import"./form-field.da56e5af.js";import"./debounce.41ca9a8b.js";import"./scrollToElement.a6113a43.js";import"./isEqual.7a4a4211.js";const F={name:"TmlAddressForm",components:{TmlItemTray:P,TmlInput:w,TmlCountryPicker:q,TmlStatePicker:C},props:{fieldNamePrefix:{type:String,required:!0},address:{type:f,default:new f},showNameFields:{type:Boolean,default:!1},showCompanyField:{type:Boolean,default:!1}},data(){return{isStateRequired:!1}},computed:{stateLabel(){const l="County/State";return this.isStateRequired?l+"*":l}},methods:{onCountryChange(l,t){this.address.country=l,this.isStateRequired=!!(t!=null&&t.strictStates),this.address.state=null},async validate(){const l=await this.$refs.addressForm.validateAll(),t=await v.validate(`${this.fieldNamePrefix}_new_form`,"form");return l&&t}},expose:["validate"]};function k(l,t,e,S,_,s){const r=m("tml-input"),y=m("tml-item-tray"),x=m("tml-country-picker"),p=m("tml-state-picker"),c=m("tml-new-form"),N=m("tml-form");return n(),o(N,{ref:"addressForm","form-name":`${e.fieldNamePrefix}_form`},{default:i(()=>[d(c,{ref:"addressNewForm",name:`${e.fieldNamePrefix}_new_form`},{default:i(()=>[h(l.$slots,"extra-fields-before",{fieldNamePrefix:e.fieldNamePrefix}),e.showNameFields?(n(),o(y,{key:0},{primary:i(()=>[d(r,{modelValue:e.address.firstName,"onUpdate:modelValue":t[0]||(t[0]=a=>e.address.firstName=a),"field-name":`${e.fieldNamePrefix}_first_name_input`,placeholder:"First Name*",type:"text","validation-rules":{required:!0,max_length:25}},null,8,["modelValue","field-name"])]),secondary:i(()=>[d(r,{modelValue:e.address.lastName,"onUpdate:modelValue":t[1]||(t[1]=a=>e.address.lastName=a),"field-name":`${e.fieldNamePrefix}_last_name_input`,placeholder:"Surname*",type:"text","validation-rules":{required:!0,max_length:25}},null,8,["modelValue","field-name"])]),_:1})):u("",!0),e.showCompanyField?(n(),o(r,{key:1,modelValue:e.address.company,"onUpdate:modelValue":t[2]||(t[2]=a=>e.address.company=a),"field-name":`${e.fieldNamePrefix}_company_input`,placeholder:"Company*",type:"text","validation-rules":{required:!0,max_length:100}},null,8,["modelValue","field-name"])):u("",!0),d(r,{modelValue:e.address.streetAddress,"onUpdate:modelValue":t[3]||(t[3]=a=>e.address.streetAddress=a),"field-name":`${e.fieldNamePrefix}_street_address_input`,placeholder:"Address*",type:"text","validation-rules":{required:!0,max_length:105}},null,8,["modelValue","field-name"]),d(r,{modelValue:e.address.city,"onUpdate:modelValue":t[4]||(t[4]=a=>e.address.city=a),"field-name":`${e.fieldNamePrefix}_city_input`,placeholder:"Town/City*",type:"text","validation-rules":{required:!0,max_length:30}},null,8,["modelValue","field-name"]),d(r,{modelValue:e.address.zip,"onUpdate:modelValue":t[5]||(t[5]=a=>e.address.zip=a),"field-name":`${e.fieldNamePrefix}_zip_input`,placeholder:"Postcode*",type:"text","validation-rules":{required:!0,max_length:10}},null,8,["modelValue","field-name"]),d(x,{value:e.address.country,"field-name-prefix":e.fieldNamePrefix,label:"Country*","validation-rules":{required:!0},onInput:s.onCountryChange},null,8,["value","field-name-prefix","onInput"]),d(p,{value:e.address.state,"field-name-prefix":e.fieldNamePrefix,label:s.stateLabel,"country-code":e.address.country,required:_.isStateRequired,onInput:t[6]||(t[6]=a=>e.address.state=a)},null,8,["value","field-name-prefix","label","country-code","required"])]),_:3},8,["name"])]),_:3},8,["form-name"])}const O=V(F,[["render",k]]);export{O as default};
2//# sourceMappingURL=TmlAddressForm.7a878156.js.map

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.