1export const __webpack_esm_id__=5503;export const __webpack_esm_ids__=[5503];export const __webpack_esm_modules__={43280(e,t,o){o.d(t,{default:()=>K}),o.r(t);var s=o(41425);const a={class:"sender","data-test":"sender-selection"},r={class:"section-title"},l=["innerHTML"],n={class:"section-senderContainer"},i={class:"form-group"},d={class:"form-check pixart-label"},u={class:"form-check-label",for:"pixart"},c={class:"text"},p={key:0,class:"form-check anonymous-label"},m={class:"form-check-label",for:"anonymous"},y={class:"text"},v={key:1,class:"form-check custom-label"},h={class:"form-check-label",for:"custom"},f={class:"text"},g={class:"custom-sender-form"},k={class:"row"},L={class:"col-12 col-sm-4 form-group"},b={for:"senderCountry"},_=["value"],V={for:"senderName"},C={for:"senderStreetName"},x={for:"senderPostalCode"},S={for:"senderCity"},R={for:"senderPhone"},w={class:"row d-flex justify-content-end"},D={class:"col-12 col-md-3"},A={class:"form-group"},B={class:"with-padding"},F={class:"item-sender"},N={class:"senderAddress"},T={class:"row body"},M={class:"col-12 col-md-3 title"},I={class:"company"},z={class:"col-12 col-md-3"},q={key:0},U={class:"col-12 col-md-2"},P={class:"col-xs-6 col-md-4"},X={class:"update-actions d-flex flex-row"};o(98992),o(81454);var E=o(65127),W=o(72273),O=o(82124);const $={name:"SenderCustomization",mixins:[o(62414).A],components:{BSpinner:E._,BFormInput:W.b},emits:["on-sender-type-changed"],props:{countryCodes:{type:Array,required:!0},isUserReseller:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},customerValidationMessages:{type:Object,required:!1},isAllowedToChange:{type:Boolean,required:!1,default:!1},showOnlyPixart:{type:Boolean,required:!1,default:!1}},data:()=>({customerSenderShow:!0,validationMessages:{}}),computed:{name:{get(){return this.senderAddress.name},set(e){this.patch({name:e})}},country:{get(){return this.senderAddress.country},set(e){this.patch({country:e})}},streetName:{get(){return this.senderAddress.streetName},set(e){this.patch({streetName:e})}},city:{get(){return this.senderAddress.city},set(e){this.patch({city:e})}},postalCode:{get(){return this.senderAddress.postalCode},set(e){this.patch({postalCode:e})}},phone:{get(){return this.senderAddress.phone},set(e){this.patch({phone:e})}},mobile:{get(){return this.senderAddress.mobile},set(e){this.patch({mobile:e})}},senderType:{get(){return this.getSenderType},set(e){this.patch({senderType:e})}},customSenderFormattedCountry(){return this.country?this.getDictionaryVoice("countries",`country_${this.country}`):""},translatedCountryList(){return this.countryCodes.map(e=>({value:e,text:this.getDictionaryVoice("countries",`country_${e}`)}))},senderCountryList(){return this.translatedCountryList.slice().sort((e,t)=>e.text.toLowerCase().localeCompare(t.text.toLowerCase()))},customSenderMandatoryFields:()=>["name","streetName","city","postalCode","country","phone"],...(0,O.L8)("dictionary",["getDictionaryVoice"]),...(0,O.L8)("recap/customSender",["isScrolling","senderAddress","getSenderType"])},watch:{customerValidationMessages(e){this.validationMessages={...e}},senderType(e,t){if(e!==t){this.reset();const{customSenderAddress:e,...t}=this.validationMessages;this.validationMessages=t}},isScrolling(e){e&&(this.$nextTick(()=>{this.$refs["alert-custom-sender"].scrollIntoView({behavior:"smooth"})}),this.customerSenderShow=!0)},showOnlyPixart(e){e&&"pixart"!==this.senderType&&(this.senderType="pixart")}},methods:{onSave(){const e=this.$store.getters["recap/customSender/validate"];Object.keys(e).length?this.validationMessages={...e,customSenderAddress:this.getDictionaryVoice("addresses","no_mittente_selected")}:this.customerSenderShow=!1},...(0,O.i0)({patch:"recap/customSender/patch",reset:"recap/customSender/reset"})},mounted(){this.isUserReseller&&(this.senderType="anonymous"),this.showOnlyPixart&&(this.senderType="pixart")}};const K=(0,o(66262).A)($,[["render",function(e,t,o,E,W,O){const $=(0,s.g2)("b-form-input"),K=(0,s.g2)("b-spinner");return(0,s.uX)(),(0,s.CE)("div",null,[(0,s.Lk)("div",a,[(0,s.Lk)("div",r,(0,s.v_)(e.getDictionaryVoice("addresses","mittente")),1),o.isAllowedToChange||o.showOnlyPixart?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",{key:0,class:"section-title-address",innerHTML:e.getDictionaryVoice("addresses","tipo_mittente_only_pixartprinting")},null,8,l)),(0,s.Lk)("div",n,[(0,s.Lk)("fieldset",i,[(0,s.Lk)("div",null,[(0,s.Lk)("div",d,[(0,s.bo)((0,s.Lk)("input",{class:"form-check-input","onUpdate:modelValue":t[0]||(t[0]=e=>O.senderType=e),type:"radio",name:"sender-type",value:"pixart",id:"pixart"},null,512),[[s.XL,O.senderType]]),(0,s.Lk)("label",u,[t[11]||(t[11]=(0,s.Lk)("span",{class:"icon"},null,-1)),(0,s.Lk)("span",c,(0,s.v_)(e.getDictionaryVoice("addresses","pixartprinting")),1)])]),o.showOnlyPixart?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",p,[(0,s.bo)((0,s.Lk)("input",{class:"form-check-input","onUpdate:modelValue":t[1]||(t[1]=e=>O.senderType=e),type:"radio",name:"sender-type",value:"anonymous",id:"anonymous"},null,512),[[s.XL,O.senderType]]),(0,s.Lk)("label",m,[t[12]||(t[12]=(0,s.Lk)("span",{class:"icon"},null,-1)),(0,s.Lk)("span",y,(0,s.v_)(e.getDictionaryVoice("addresses","anonymous")),1)])])),o.showOnlyPixart?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",v,[(0,s.bo)((0,s.Lk)("input",{class:"form-check-input","onUpdate:modelValue":t[2]||(t[2]=e=>O.senderType=e),type:"radio",name:"sender-type",value:"custom",id:"custom"},null,512),[[s.XL,O.senderType]]),(0,s.Lk)("label",h,[t[13]||(t[13]=(0,s.Lk)("span",{class:"icon"},null,-1)),(0,s.Lk)("span",f,(0,s.v_)(e.getDictionaryVoice("addresses","custom")),1)])]))])]),(0,s.bo)((0,s.Lk)("div",g,[(0,s.Lk)("div",k,[(0,s.Lk)("div",L,[(0,s.Lk)("label",b,(0,s.v_)(e.getDictionaryVoice("user","nazione")),1),(0,s.bo)((0,s.Lk)("select",{class:"form-select",id:"senderCountry",ref:"country","onUpdate:modelValue":t[3]||(t[3]=e=>O.country=e)},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(O.senderCountryList,e=>((0,s.uX)(),(0,s.CE)("option",{value:e.value,key:e.value},(0,s.v_)(e.text),9,_))),128))],512),[[s.u1,O.country]])]),(0,s.Lk)("div",{class:(0,s.C4)(["col-12 col-sm-4 form-group",{"form-group-error":e.hasValidationMessage("customSenderField.name")}])},[(0,s.Lk)("label",V,(0,s.v_)(e.getDictionaryVoice("addresses","persona_riferimento")),1),(0,s.bF)($,{id:"senderName",modelValue:O.name,"onUpdate:modelValue":t[4]||(t[4]=e=>O.name=e),placeholder:e.getDictionaryVoice("addresses","persona_riferimento"),ref:"company"},null,8,["modelValue","placeholder"])],2),(0,s.Lk)("div",{class:(0,s.C4)(["col-12 col-sm-4 form-group",{"form-group-error":e.hasValidationMessage("customSenderField.streetName")}])},[(0,s.Lk)("label",C,(0,s.v_)(e.getDictionaryVoice("user","street_name")),1),(0,s.bF)($,{id:"senderStreetName",modelValue:O.streetName,"onUpdate:modelValue":t[5]||(t[5]=e=>O.streetName=e),placeholder:e.getDictionaryVoice("user","street_name")},null,8,["modelValue","placeholder"])],2),(0,s.Lk)("div",{class:(0,s.C4)(["col-12 col-sm-4 form-group",{"form-group-error":e.hasValidationMessage("customSenderField.postalCode")}])},[(0,s.Lk)("label",x,(0,s.v_)(e.getDictionaryVoice("user","postal_code")),1),(0,s.bF)($,{id:"senderPostalCode",modelValue:O.postalCode,"onUpdate:modelValue":t[6]||(t[6]=e=>O.postalCode=e),placeholder:e.getDictionaryVoice("user","postal_code")},null,8,["modelValue","placeholder"])],2),(0,s.Lk)("div",{class:(0,s.C4)(["col-12 col-sm-4 form-group",{"form-group-error":e.hasValidationMessage("customSenderField.city")}])},[(0,s.Lk)("label",S,(0,s.v_)(e.getDictionaryVoice("user","city")),1),(0,s.bF)($,{id:"senderCity",modelValue:O.city,"onUpdate:modelValue":t[7]||(t[7]=e=>O.city=e),placeholder:e.getDictionaryVoice("user","city")},null,8,["modelValue","placeholder"])],2),(0,s.Lk)("div",{class:(0,s.C4)(["col-12 col-sm-4 form-group",{"form-group-error":e.hasValidationMessage("customSenderField.phone")}])},[(0,s.Lk)("label",R,(0,s.v_)(e.getDictionaryVoice("user","telefono")),1),(0,s.bF)($,{id:"senderPhone",modelValue:O.phone,"onUpdate:modelValue":t[8]||(t[8]=e=>O.phone=e),placeholder:e.getDictionaryVoice("user","telefono")},null,8,["modelValue","placeholder"])],2)]),(0,s.Lk)("div",w,[(0,s.Lk)("div",D,[(0,s.Lk)("div",A,[(0,s.Lk)("div",{class:"submit btn green-btn form-control",onClick:t[9]||(t[9]=(...e)=>O.onSave&&O.onSave(...e))},[o.isLoading?((0,s.uX)(),(0,s.Wv)(K,{key:0,small:""})):(0,s.Q3)("",!0),(0,s.eW)(" "+(0,s.v_)(e.getDictionaryVoice("common","submit")),1)])])])])],512),[[s.aG,"custom"===O.senderType&&W.customerSenderShow]])])]),(0,s.Lk)("div",B,[(0,s.bo)((0,s.Lk)("div",{class:"alert alert-danger",ref:"alert-custom-sender"},(0,s.v_)(e.getValidationMessage("customSenderAddress")),513),[[s.aG,e.hasValidationMessage("customSenderAddress")]])]),(0,s.bo)((0,s.Lk)("div",F,[(0,s.Lk)("div",N,(0,s.v_)(e.getDictionaryVoice("addresses","address_sender")),1),(0,s.Lk)("div",T,[(0,s.Lk)("div",M,[(0,s.Lk)("span",I,(0,s.v_)(O.name),1),t[14]||(t[14]=(0,s.Lk)("br",null,null,-1))]),(0,s.Lk)("div",z,[(0,s.eW)((0,s.v_)(O.streetName),1),t[15]||(t[15]=(0,s.Lk)("br",null,null,-1)),(0,s.eW)(" "+(0,s.v_)(O.postalCode)+" "+(0,s.v_)(O.city),1),t[16]||(t[16]=(0,s.Lk)("br",null,null,-1)),O.country?((0,s.uX)(),(0,s.CE)("span",q,(0,s.v_)(O.customSenderFormattedCountry),1)):(0,s.Q3)("",!0)]),(0,s.Lk)("div",U,(0,s.v_)(O.phone),1),(0,s.Lk)("div",P,[(0,s.Lk)("div",X,[(0,s.Lk)("a",{class:"edit-address",onClick:t[10
1]||(t[10]=(0,s.D$)(e=>W.customerSenderShow=!W.customerSenderShow,["prevent"]))},[...t[17]||(t[17]=[(0,s.Lk)("span",{class:"icon icon-edit_32px"},null,-1)])])])])])],512),[[s.aG,"custom"===O.senderType&&!W.customerSenderShow]])])}],["__scopeId","data-v-43c723b2"]])},72273(e,t,o){o.d(t,{b:()=>c});var s=o(41425),a=o(82191),r=o(72759),l=o(42084),n=o(68966),i=o(97068);var d=o(85379);const u=["id","value","name","form","type","disabled","placeholder","required","autocomplete","readonly","min","max","step","list","aria-required","aria-invalid"],c=(0,s.pM)({__name:"BFormInput",props:(0,s.zz)({max:{default:void 0},min:{default:void 0},step:{default:void 0},type:{default:"text"},ariaInvalid:{type:[Boolean,String],default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{default:void 0},formatter:{type:Function,default:void 0},id:{default:void 0},lazyFormatter:{type:Boolean,default:!1},list:{default:void 0},name:{default:void 0},placeholder:{default:void 0},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:void 0},state:{type:[Boolean,null],default:null},debounce:{default:0},debounceMaxWait:{default:NaN}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const o=e,c=(0,a.u)(o,"BFormInput"),[p,m]=(0,s.fn)(e,"modelValue",{set:e=>((e,t)=>{if(null===e)return;let o=e;if(t.number&&"string"==typeof o&&""!==o){const e=Number.parseFloat(o);o=Number.isNaN(e)?o:e}return o})(e,m)}),{input:y,computedId:v,computedAriaInvalid:h,onInput:f,onChange:g,onBlur:k,focus:L,blur:b,forceUpdateKey:_}=((e,t,o)=>{const a=(0,s.KR)(null),d=(0,s.KR)(0),u=(0,l.u)(()=>e.id,"input"),c=(0,i.u)(()=>e.debounce??0),p=(0,i.u)(()=>e.debounceMaxWait??NaN),m=(0,i.l)(e=>{t.value=e},()=>!0===o.lazy?0:c.value,{maxWait:()=>!0===o.lazy?NaN:p.value}),y=(e,t=!1)=>{!0===o.lazy&&!1===t||m(e)},{focused:v}=(0,n.e)(a,{initialValue:e.autofocus}),h=(t,o,s=!1)=>void 0===e.formatter||e.lazyFormatter&&!s?t:e.formatter(t,o);(0,s.sV)(()=>{var e;
1a.value&&(a.value.value=(null==(e=t.value)?void 0:e.toString())??"")}),(0,s.n)(()=>{(0,s.dY)(()=>{e.autofocus&&(v.value=!0)})});const f=(0,r.u)(()=>e.ariaInvalid,()=>e.state);return{input:a,computedId:u,computedAriaInvalid:f,onInput:e=>{const{value:t}=e.target,o=h(t,e);e.defaultPrevented?e.preventDefault():y(o)},onChange:e=>{const{value:o}=e.target,s=h(o,e);if(e.defaultPrevented)return void e.preventDefault();const a=s;t.value!==a&&y(s,!0)},onBlur:s=>{if(!o.lazy&&!e.lazyFormatter&&!o.trim)return;const{value:a}=s.target,r=h(a,s,!0),l=o.trim?r.trim():r,n=l.length!==r.length;t.value!==l&&y(r,!0),o.trim&&n&&(d.value=d.value+1)},focus:()=>{e.disabled||(v.value=!0)},blur:()=>{e.disabled||(v.value=!1)},forceUpdateKey:d}})(c,p,m),V=(0,d.u)(()=>c.state),C=(0,s.EW)(()=>{const e="range"===c.type,t="color"===c.type;return[V.value,{"form-range":e,"form-control":t||!c.plaintext&&!e,"form-control-color":t,"form-control-plaintext":c.plaintext&&!e&&!t,[`form-control-${c.size}`]:!!c.size}]});return t({blur:b,element:y,focus:L}),(e,t)=>((0,s.uX)(),(0,s.CE)("input",{id:(0,s.R1)(v),ref_key:"input",ref:y,key:(0,s.R1)(_),value:(0,s.R1)(p),class:(0,s.C4)(C.value),name:(0,s.R1)(c).name||void 0,form:(0,s.R1)(c).form||void 0,type:(0,s.R1)(c).type,disabled:(0,s.R1)(c).disabled,placeholder:(0,s.R1)(c).placeholder,required:(0,s.R1)(c).required||void 0,autocomplete:(0,s.R1)(c).autocomplete||void 0,readonly:(0,s.R1)(c).readonly||(0,s.R1)(c).plaintext,min:(0,s.R1)(c).min,max:(0,s.R1)(c).max,step:(0,s.R1)(c).step,list:"password"!==(0,s.R1)(c).type?(0,s.R1)(c).list:void 0,"aria-required":(0,s.R1)(c).required||void 0,"aria-invalid":(0,s.R1)(h),onInput:t[0]||(t[0]=(...e)=>(0,s.R1)(f)&&(0,s.R1)(f)(...e)),onChange:t[1]||(t[1]=(...e)=>(0,s.R1)(g)&&(0,s.R1)(g)(...e)),onBlur:t[2]||(t[2]=(...e)=>(0,s.R1)(k)&&(0,s.R1)(k)(...e))},null,42,u))}})},72759(e,t,o){o.d(t,{u:()=>a});var s=o(41425);const a=(e,t)=>(0,s.EW)(()=>{const o=(0,s.BA)(e),a=(0,s.BA)(t);return!0===o?"true":"string"==typeof o?o:!1===a?"true":!1===o?"false":void 0})},85379(e,t,o){o.d(t,{u:()=>a});var s=o(41425);const a=e=>(0,s.EW)(()=>{const t=(0,s.BA)(e);return!0===t?"is-valid":!1===t?"is-invalid":null})}};
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.