PageSourceSearch

https://www.gungoren.bel.tr/chunk-SECTH53P.js

js gungoren.bel.tr collected 2026-09-25 04:09:24 UTC 7,252 bytes, 1 lines download raw bytes

1import{a as K,b as u,d as X,e as Y,h as J}from"./chunk-VWOLVN65.js";import{A as pe,J as f,K as he,M as de,b as $,c as ee,d as te,e as ie,g as ne,k as oe,m as re,n as se,u as ae,w as ue,z as le}from"./chunk-VFMAFCJT.js";import{A as G,t as q}from"./chunk-TV4OSXCM.js";import{p as B,q as z,s as c,y as Z}from"./chunk-MNLFIMYU.js";import{e as j}from"./chunk-LMA2PCFN.js";import{xa as W}from"./chunk-6XKI7R7X.js";import{$a as v,$c as _,Ba as F,Cb as V,Da as p,Ec as y,Hb as A,Hc as Q,Ic as D,Jc as U,Kc as P,Lb as k,Lc as h,Mc as d,Vb as S,Wb as E,Xb as N,Zb as C,Zc as w,_b as L,_c as O,fd as b,gc as R,nc as g,oc as T,pc as H,s as x,za as M}from"./chunk-74FNDDGM.js";var Ce=["*",[["input"]]],ge=["*","input"],Te={phoneMaskAfterCountryCode:"### ###-##-##",allowText:!1,countryCode:"+7"},ye=new F("",{factory:()=>Te});var ce=o=>o.replaceAll(/\D/g,"").length;function De(o,i){let a=(o+i).replaceAll(/[^#\d]+/g,"").length,e=n=>o==="+7"?n.replace(/^(\+?\s*7?\s?8?)\s?/,""):n.replace(new RegExp(`^(\\+?\\s*${o.replace("+","")}?)\\s?`),"");return({elementState:n,data:t})=>{let{value:s,selection:r}=n;return{elementState:{selection:r,value:ce(s)>a?e(s):s},data:ce(t)>=a||t.startsWith(o)?e(t):t}}}function Pe(o,i){return[...o.split("")," ",...i.replaceAll(/[^#\- ()]+/g,"").split("").map(a=>a==="#"?/\d/:a)]}var fe=/[ \-_()]/g;function m(o){return Number.isNaN(parseInt(o.replaceAll(fe,""),10))}var $e=(()=>{let i=class i extends te{constructor(){super(...arguments),this.textfieldCleaner=p(re),this.options=p(ye),this.textfieldSize=p(ae),this.open=!1,this.phoneMaskAfterCountryCode=this.options.phoneMaskAfterCountryCode,this.allowText=this.options.allowText,this.search="",this.searchChange=new A,this.countryCode=this.options.countryCode}set countryCodeSetter(e){let n=this.countryCode;this.countryCode=e,this.updateValueWithNewCountryCode(n,e)}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var e;return j(this.nativeFocusableElement)||!!((e=this.dropdown)!=null&&e.tuiDropdownOpen)}get nativeValue(){var e;return((e=this.nativeFocusableElement)==null?void 0:e.value)||u(this.value,this.maskOptions)}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}get inputMode(){return this.allowText?"text":"numeric"}onValueChange(e){let n=m(e)?e:e.replaceAll(fe,"").slice(0,this.maxPhoneLength);this.updateSearch(n),this.value=n===this.countryCode||m(n)?"":n,this.open=!0,!this.value&&!this.allowText&&(this.nativeValue=this.nonRemovablePrefix)}handleOption(e){this.focusInput(),this.value=e,this.nativeValue=u(this.value,this.maskOptions),this.updateSearch(""),this.open=!1}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(e){super.writeValue(e),this.nativeValue=u(this.value||"",this.maskOptions),this.updateSearch("")}get canOpen(){return this.interactive&&!!this.datalist}get canClean(){return this.nativeValue!==this.nonRemovablePrefix&&this.textfieldCleaner.cleaner}get maskOptions(){return this.calculateMask(this.countryCode,this.phoneMaskAfterCountryCode,this.nonRemovablePrefix,this.allowText)}onActiveZone(e){if(this.updateFocused(e),e&&!this.nativeValue&&!this.readOnly&&!this.allowText){this.updateSearch(this.nonRemovablePrefix),this.nativeValue=this.nonRemovablePrefix;return}if(this.nativeValue===this.nonRemovablePrefix||this.isTextValue){this.updateSearch(""),this.nativeValue="";return}!e&&!this.allowText&&this.nativeFocusableElement&&(this.nativeValue=this.nativeValue.replace(/\D$/,""))}getFallbackValue(){return""}get nonRemovablePrefix(){return`${this.countryCode} `}get maxPhoneLength(){return this.countryCode.length+this.phoneMaskAfterCountryCode.replaceAll(/[^#]+/g,"").length}get isTextValue(){return!!this.search&&m(this.search)}calculateMask(e,n,t,s){let r=Pe(e,n),I=[De(e,n)];return s?{mask:({value:l})=>m(l)&&l!=="+"?K.mask:r,preprocessors:I}:{mask:r,preprocessors:I,postprocessors:[Y(t)],plugins:[J((l,[me,ve])=>[me===ve?t.length:0,l.length])]}}focusInput(){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:!0})}updateSearch(e){this.search!==e&&(this.search=e,this.searchChange.emit(e))}updateValueWithNewCountryCode(e,n){this.isTextValue||(this.value=this.value.replace(e,n),this.nativeValue=u(this.value,this.maskOptions))}};i.\u0275fac=(()=>{let e;return function(t){return(e||(e=v(i)))(t||i)}})(),i.\u0275cmp=S({type:i,selectors:[["tui-input-phone"]],contentQueries:function(n,t,s){if(n&1&&U(s,G,5,k),n&2){let r;h(r=d())&&(t.datalist=r.first)}},viewQuery:function(n,t){if(n&1&&(P(c,5),P(f,5)),n&2){let s;h(s=d())&&(t.dropdown=s.first),h(s=d())&&(t.textfield=s.first)}},hostVars:1,hostBindings:function(n,t){n&2&&R("data-size",t.size)},inputs:{phoneMaskAfterCountryCode:"phoneMaskAfterCountryCode",allowText:"allowText",search:"search",countryCodeSetter:[0,"countryCode","countryCodeSetter"]},outputs:{searchChange:"searchChange"},standalone:!1,features:[b([$(i),ie(i),q(i)]),L([Z]),C],ngContentSelectors:ge,decls:4,vars:13,consts:[["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiActiveZoneChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","focusable","invali
1d","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldCleaner","value"]],template:function(n,t){n&1&&(Q(Ce),T(0,"div",0),_("tuiDropdownOpenChange",function(r){return O(t.open,r)||(t.open=r),r}),y("tuiActiveZoneChange",function(r){return t.onActiveZone(r)}),T(1,"tui-primitive-textfield",1),_("valueChange",function(r){return O(t.nativeValue,r)||(t.nativeValue=r),r}),y("valueChange",function(r){return t.onValueChange(r)}),D(2),D(3,1,["ngProjectAs","input",5,["input"]]),H()()),n&2&&(g("tuiDropdown",t.datalist||"")("tuiDropdownEnabled",t.canOpen),w("tuiDropdownOpen",t.open),V(),g("disabled",t.computedDisabled)("focusable",t.focusable)("invalid",t.computedInvalid)("maskito",t.maskOptions)("nativeId",t.nativeId)("pseudoFocus",t.computedFocused)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldCleaner",t.canClean),w("value",t.nativeValue))},dependencies:[X,f,he,se,le,oe,B,c],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:start}._disabled[_nghost-%COMP%], [_nghost-%COMP%]   *:disabled[_nghost-%COMP%], *:disabled   [_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0});let o=i;return x([W],o.prototype,"calculateMask",null),o})(),et=(()=>{let i=class i extends ne{get value(){return this.host.nativeValue}onValueChange(e){this.host.onValueChange(e)}process(e){this.input=e}ngDoCheck(){this.input&&(this.input.type="tel",this.input.inputMode=this.host.inputMode)}};i.\u0275fac=(()=>{let e;return function(t){return(e||(e=v(i)))(t||i)}})(),i.\u0275dir=N({type:i,selectors:[["tui-input-phone"]],standalone:!1,features:[b([ee(i)]),C]});let o=i;return o})(),tt=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=E({type:i}),i.\u0275inj=M({imports:[de,ue,pe,z]});let o=i;return o})();export{$e as a,et as b,tt as c};

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.