PageSourceSearch

https://cryptovoucher.io/_nuxt/DvOMTagL.js

js cryptovoucher.io collected 2026-10-02 04:45:03 UTC 12,144 bytes, 1 lines download raw bytes

1import{dk as se,bo as ne,bD as oe,eA as le,eB as ae,cA as ue,be as c,bf as m,bj as f,bz as R,bA as W,b_ as $,bk as M,bT as T,bu as G,bI as he,bJ as de}from"./Dus7iMKz.js";import{g as ce}from"./B1FKCHGX.js";import{_ as me}from"./B92Nzzxm.js";import{_ as fe}from"./B1ONuXg0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a9f404d-bb9a-4340-9a1b-fe690db70430",e._sentryDebugIdIdentifier="sentry-dbid-0a9f404d-bb9a-4340-9a1b-fe690db70430")}catch{}})();var V,z;function be(){if(z)return V;z=1;var e="Expected a function",t=NaN,r="[object Symbol]",l=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,g=/^0o[0-7]+$/i,n=parseInt,w=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,S=typeof self=="object"&&self&&self.Object===Object&&self,q=w||S||Function("return this")(),X=Object.prototype,Z=X.toString,H=Math.max,J=Math.min,F=function(){return q.Date.now()};function K(i,a,d){var C,k,x,p,h,y,v=0,B=!1,N=!1,E=!0;if(typeof i!="function")throw new TypeError(e);a=O(a)||0,D(d)&&(B=!!d.leading,N="maxWait"in d,x=N?H(O(d.maxWait)||0,a):x,E="trailing"in d?!!d.trailing:E);function I(o){var b=C,P=k;return C=k=void 0,v=o,p=i.apply(P,b),p}function ee(o){return v=o,h=setTimeout(_,a),B?I(o):p}function te(o){var b=o-y,P=o-v,U=a-b;return N?J(U,x-P):U}function j(o){var b=o-y,P=o-v;return y===void 0||b>=a||b<0||N&&P>=x}function _(){var o=F();if(j(o))return A(o);h=setTimeout(_,te(o))}function A(o){return h=void 0,E&&C?I(o):(C=k=void 0,p)}function ie(){h!==void 0&&clearTimeout(h),v=0,C=y=k=h=void 0}function re(){return h===void 0?p:A(F())}function L(){var o=F(),b=j(o);if(C=arguments,k=this,y=o,b){if(h===void 0)return ee(y);if(N)return h=setTimeout(_,a),I(y)}return h===void 0&&(h=setTimeout(_,a)),p}return L.cancel=ie,L.flush=re,L}function D(i){var a=typeof i;return!!i&&(a=="object"||a=="function")}function Q(i){return!!i&&typeof i=="object"}function Y(i){return typeof i=="symbol"||Q(i)&&Z.call(i)==r}function O(i){if(typeof i=="number")return i;if(Y(i))return t;if(D(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=D(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=i.replace(l,"");var d=u.test(i);return d||g.test(i)?n(i.slice(2),d?2:8):s.test(i)?t:+i}return V=K,V}var ye=be();const ge=se(ye),Ce="data:image/svg+xml,%3csvg%20id='unknown'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='16'%20viewBox='0%200%2020%2016'%3e%3crect%20id='Rectangle_1517'%20data-name='Rectangle%201517'%20width='20'%20height='8'%20fill='rgba(236,236,236,0.58)'/%3e%3crect%20id='Rectangle_1518'%20data-name='Rectangle%201518'%20width='20'%20height='8'%20transform='translate(0%208)'%20fill='%23e8e8e8'/%3e%3cpath%20id='Path_1361'%20data-name='Path%201361'%20d='M9.245,7.78a.12.12,0,0,1-.12-.12V7.34a1.214,1.214,0,0,1,.255-.805,3.894,3.894,0,0,1,.735-.645,3.44,3.44,0,0,0,.58-.48.733.733,0,0,0,.19-.51.631.631,0,0,0-.24-.515.968.968,0,0,0-.63-.2,1.028,1.028,0,0,0-.675.21.668.668,0,0,0-.255.54V5.1q0,.11-.12.11L7.8,5.16a.12.12,0,0,1-.12-.12v-.1a1.921,1.921,0,0,1,.3-1.065,1.983,1.983,0,0,1,.835-.72A2.839,2.839,0,0,1,10.045,2.9a2.752,2.752,0,0,1,1.195.245,1.807,1.807,0,0,1,1.075,1.7,1.662,1.662,0,0,1-.53,1.27,5.905,5.905,0,0,1-.56.44,3.5,3.5,0,0,0-.53.43.617.617,0,0,0-.17.44v.23a.12.12,0,0,1-.12.12Zm.54,2.24a.769.769,0,0,1-.79-.79.759.759,0,0,1,.22-.56A.8.8,0,0,1,10.345,9.8.75.75,0,0,1,9.785,
110.02Z'%20transform='translate(0%202)'%20fill='%23949494'/%3e%3c/svg%3e",pe={name:"AwesomePhoneInput",props:{modelValue:[String,Number],showCountryMismatchMessage:{type:Boolean,default:!1},value:{type:String,default:null},inputStyle:{type:String},disabled:{type:Boolean,default:!1},selectedCountry:{type:String,default:""},initPhone:{type:String,default:""},externalError:{type:String,default:null}},emits:["update:modelValue","setError","set-mismatch-message-visibility"],data(){return{allCountries:ce(),manuallyChoosedCountryPrefix:null,baseSrc:"https://flagcdn.com/",country:null,availableFlags:[],flagUrl:null,phoneNumber:this.modelValue?this.modelValue.toString().replace(/\D/g,""):null,maskedPhoneNumber:this.modelValue||null,inputSelectedCountry:null,showDialList:!1,dialCodeFilter:null,numberToken:{"#":{pattern:/\d/,transform:e=>e}},showPhoneNumberError:!1,phoneNumberError:"",debouncedCheckDial:null}},computed:{clientCountryPrefixFromIp:{get(){return this.$store.$state.clientCountryPrefixFromIp},set(e){this.$store.setClientCountryPrefixFromIp(e)}},inputMask(){return this.phoneNumber&&this.phoneNumber.slice(0,3)==="234"?"+### ### #######":this.phoneNumber&&this.phoneNumber.slice(0,2)==="63"?"+## #### ### #####":this.inputSelectedCountry&&this.inputSelectedCountry.format?`${this.inputSelectedCountry.format.replace(/\./g,"#")}##`:"+###############"},dialCodes(){return this.allCountries.map(e=>({dial:e.dialCode,name:e.name,format:e.format,country:e.iso2}))},filteredDialCodes(){return this.dialCodeFilter?this.dialCodes.filter(e=>e.name.toLowerCase().includes(this.dialCodeFilter?.toLowerCase())||e.dial.includes(this.dialCodeFilter)):this.dialCodes},defaultPrefix(){return this.dialCodes.find(e=>e.country==="de")}},watch:{showDialList(e){e?(this.$nextTick(()=>this.$refs.phoneInputDialFilter.focus()),setTimeout(()=>window.addEventListener("click",this.handleGlobalClick,!0),0)):window.removeEventListener("click",this.handleGlobalClick,!0)},inputSelectedCountry({dial:e},t){if(t){const r=t.dial,l=this.phoneNumber?this.phoneNumber.toString().replace(/\D/g,""):"";let s=l;l.startsWith(r)?s=l.slice(r.length):l.startsWith(e)&&(s=l.slice(e.length)),this.maskedPhoneNumber=`${e}${s}`}else this.phoneNumber=e,this.maskedPhoneNumber=e},country(){const e=this.dialCodes.find(t=>t.country===this.country);e&&(this.inputSelectedCountry=e)},maskedPhoneNumber(){this.$emit("update:modelValue",this.maskedPhoneNumber)},phoneNumber(e){if(e){if(e.length>=2){const t=this.dialCodes.filter(r=>{const l=r.dial,s=l.length,u=e.slice(0,s);return l.startsWith(u)});this.similarCodes=t.map(r=>r.country),this.manuallyChoosedCountryPrefix&&(this.similarCodes=this.similarCodes.filter(r=>r===this.manuallyChoosedCountryPrefix)),this.sortByDialCodes()}e.startsWith(this.inputSelectedCountry.dial)||this.checkDial(),this.manuallyChoosedCountryPrefix!==this.country&&this.setCountryMismatchMessageVisibility(!0)}},modelValue(e){this.maskedPhoneNumber=e;const t=e?e.toString().replace(/\D/g,""):null;this.phoneNumber!==t&&(this.phoneNumber=t,this.phoneNumber&&this.debouncedCheckDial())},externalError(e){e?(this.phoneNumberError=e,this.showPhoneNumberError=!0):this.checkDial()}},created(){this.inputSelectedCountry=this.dialCodes[0],this.debouncedCheckDial=ge(this.checkDial,400)},beforeUnmount(){window.removeEventListener("click",this.handleGlobalClick,!0)},async mounted(){await this.setClientPrefixFromIp(),await this.saveAvailableFlags(),this.initPhone?this.phoneNumber=this.initPhone.replace("+",""):(await this.setSelectedCountryByCookieOrProps(),this.checkDial())},methods:{async setClientPrefixFromIp(){try{if(this.clientCountryPrefixFromIp){this.inputSelectedCountry=this.clientCountryPrefixFromIp;return}const e=await ae();if(e&&e.c){const t=this.dialCodes.find(r=>r.country===e.c.toLowerCase());this.inputSelectedCountry=t||this.defaultPrefix,this.clientCountryPrefixFromIp=t||this.defaultPrefix}}catch{this.inputSelectedCountry=this.defaultPrefix}},setCountryMismatchMessageVisibility(e){this.$emit("set-mismatch-message-visibility",e)},manualCountrySelect(e){this.manuallyChoosedCountryPrefix=e,this.setCountryMismatchMessageVisibility(!1),this.formatNumber(e)},formatNumber(e){this.checkIfFlagExist({countryCode:e})?(this.country=e,this.flagUrl=`${this.baseSrc+this.country}.svg`):this.setError()},handleGlobalClick(e){const t=this.$refs.countryContainer,r=this.$refs.countryButtonRef;t&&t.contains(e.target)||r&&r.contains(e.target)||(this.showDialList=!1)},getFlagUrlByCode(e){return`${this.baseSrc+e.code}.svg`},checkIfFlagExist({countryCode:e}){for(const t of Object.keys(this.availableFlags))if(t.includes(e))return!0;return!1},async saveAvailableFlags(){this.availableFlags=await le()},checkDial(){try{for(const e of this.dialCodes){const{country:t,dial:r,format:l}=e;let s=0,u=0;if(l){const n=r.length,w=l.slice(0,n),S=l.slice(n);u=w.replaceAll("+","").length,s=(S.match(/\./g)||[]).length}const g=r.length;if(this.phoneNumber.length>=g){const n=this.phoneNumber.slice(0,g);
1if(r===n){if(this.formatNumber(t),this.manuallyChoosedCountryPrefix!==t&&this.setCountryMismatchMessageVisibility(!0),u<this.phoneNumber.length&&s&&this.phoneNumber.length-u<s){this.setError(this.$t("base-components.dial-code")),this.$emit("setError",!0),this.setCountryMismatchMessageVisibility(!1);return}this.showPhoneNumberError=!1,this.phoneNumberError=null,this.$emit("setError",r===this.phoneNumber),this.setCountryMismatchMessageVisibility(!1);return}else this.setError(),this.setCountryMismatchMessageVisibility(!1)}else this.country=null,this.flagUrl="../assets/img/unknown.svg"}}catch{}},setError(e){if(this.showPhoneNumberError=!0,this.$emit("setError",!0),e){this.phoneNumberError=e;return}this.country=null,this.flagUrl="../assets/img/unknown.svg",this.phoneNumberError=this.$t("base-components.dial-code")},async setSelectedCountryByCookieOrProps(){if(this.selectedCountry)this.inputSelectedCountry=this.filteredDialCodes.find(e=>e.country===this.selectedCountry.toLowerCase());else{const{data:e}=await oe("/CV_COUCODE","$UGfXer25-7");e?.value?.cookieValue&&(this.inputSelectedCountry=this.filteredDialCodes.find(t=>t.country===e?.value?.cookieValue?.toLowerCase()))}},selectCountry(e){this.inputSelectedCountry=e,this.showDialList=!1,this.manualCountrySelect(e.country),this.dialCodeFilter=null},handlePhoneNumberChange(e){this.phoneNumber=e.target.value.replace(/\D/g,""),this.showPhoneNumberError=!1,this.phoneNumberError=null,this.$emit("setError",!0),this.debouncedCheckDial()},sortByDialCodes(){this.dialCodes.sort((e,t)=>{const r=this.similarCodes.indexOf(e.country),l=this.similarCodes.indexOf(t.country);return(r===-1?1/0:r)-(l===-1?1/0:l)})}}},ke=["data-maska","disabled"],ve=["src"],Ne={key:1,src:Ce,alt:"Unknown"},Pe={key:0,ref:"countryContainer",class:"country-container"},we={class:"dial-filter"},xe=["placeholder","disabled"],_e=["onClick"],Se=["src"];function Fe(e,t,r,l,s,u){const g=ue("maska");return c(),m("div",{class:T(["awesome-phone-input",{disabled:r.disabled}])},[f("div",{class:T(["awesome-phone-input",{"has-error":s.showPhoneNumberError}])},[R(f("input",{"onUpdate:modelValue":t[0]||(t[0]=n=>s.maskedPhoneNumber=n),"data-maska":u.inputMask,type:"text",class:"phone",name:"Phone Number",style:$(r.inputStyle),inputmode:"numeric",disabled:r.disabled,onInput:t[1]||(t[1]=(...n)=>u.handlePhoneNumberChange&&u.handlePhoneNumberChange(...n))},null,44,ke),[[W,s.maskedPhoneNumber],[g]]),f("span",{class:"Input__error",style:$(r.showCountryMismatchMessage&&"margin-top:18px")},M(s.phoneNumberError),5)],2),(c(),m("div",{key:s.country,ref:"countryButtonRef",class:"country",style:{"z-index":"1"},onClick:t[2]||(t[2]=n=>r.disabled?null:s.showDialList=!s.showDialList)},[s.country?(c(),m("img",{key:0,src:s.flagUrl,alt:"Flag"},null,8,ve)):(c(),m("img",Ne))])),s.showDialList?(c(),m("div",Pe,[f("div",we,[t[5]||(t[5]=f("img",{src:me,alt:"Search"},null,-1)),R(f("input",{ref:"phoneInputDialFilter","onUpdate:modelValue":t[3]||(t[3]=n=>s.dialCodeFilter=n),type:"text",placeholder:e.$t("market.create-offer.search-for-country"),disabled:r.disabled},null,8,xe),[[W,s.dialCodeFilter]]),s.dialCodeFilter?(c(),m("img",{key:0,src:fe,alt:"Clear",onClick:t[4]||(t[4]=n=>s.dialCodeFilter=null)})):G("",!0)]),(c(),m("ul",{key:s.dialCodeFilter},[(c(!0),m(he,null,de(u.filteredDialCodes,n=>(c(),m("li",{key:n.name,class:T({active:!1}),onClick:w=>u.selectCountry(n)},[f("img",{src:u.getFlagUrlByCode({code:n.country.toLowerCase()}),alt:"Flag"},null,8,Se),f("span",null,M(n.name),1),f("span",null,"+ "+M(n.dial),1)],8,_e))),128))]))],512)):G("",!0)],2)}const Me=Object.assign(ne(pe,[["render",Fe]]),{__name:"AwesomePhoneInput"});export{Me as _};

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.