PageSourceSearch

https://shop.paulwatsonfoundation.org/assets/TmlAddressForm.7dd98db2.js

js paulwatsonfoundation.org collected 2026-09-24 20:39:20 UTC 4,128 bytes, 2 lines download raw bytes

1import{_ as V,af as P,bB as v}from"./index.a4e8ca65.js";import w from"./TmlInput.423f2b0b.js";import q from"./TmlCountryPicker.1e650a47.js";import C from"./TmlStatePicker.a1befa12.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.6013c7d0.js";import"./sentry.09480738.js";import"./faCheck.5cb02f80.js";import"./faTimes.60f1bfb8.js";import"./faPlus.48ec4d33.js";import"./faMinus.c707a7ef.js";import"./faArrowRight.93bd812c.js";import"./faUndo.98c1a68e.js";import"./TmlNewSelect.95ec32e2.js";import"./faTimes.ad061359.js";import"./faSearch.250ef055.js";import"./form-field.2fa65598.js";import"./debounce.5129c224.js";import"./scrollToElement.2aea5813.js";import"./isEqual.e839bc13.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.7dd98db2.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.