PageSourceSearch

https://www.gungoren.bel.tr/chunk-23LTJHJD.js

js gungoren.bel.tr collected 2026-10-02 16:46:23 UTC 14,853 bytes, 1 lines download raw bytes

1import{a as fe,b as E,c as ye,d as _e}from"./chunk-2DC6XIWP.js";import{a as ce}from"./chunk-ULICCVAB.js";import{j as ge}from"./chunk-44C4XYTB.js";import{a as O}from"./chunk-EHO4I4GO.js";import"./chunk-HUQZ3VEG.js";import{Q as de,R as pe,S as ue,V as me,d as re,u as se,v as le}from"./chunk-JY5TSAAW.js";import"./chunk-3WI74MCJ.js";import{d as $,e as ee}from"./chunk-YNYT3S7A.js";import"./chunk-N4O2A3YU.js";import"./chunk-46H6MEXM.js";import"./chunk-TGFVF5X5.js";import"./chunk-E7TMAZQF.js";import"./chunk-XLQ7CZTK.js";import"./chunk-RBAGZUJP.js";import"./chunk-3KGJY2ZJ.js";import"./chunk-RWWBNVY6.js";import"./chunk-RMXKUXWR.js";import"./chunk-N426IARN.js";import"./chunk-3JRAEIYY.js";import"./chunk-WVNYSZW3.js";import"./chunk-7PXMCU6W.js";import"./chunk-36BHHMA7.js";import"./chunk-O6XML77H.js";import"./chunk-UAN55DTN.js";import{d as Z}from"./chunk-FMVMSE3N.js";import"./chunk-M4EDQLQT.js";import"./chunk-4U6SG2DW.js";import"./chunk-LAZPVPFV.js";import"./chunk-P2RPU6DO.js";import"./chunk-SO4FE4DN.js";import"./chunk-RJ3VRYNX.js";import{D as te,M as ie,N as ne,P as ae}from"./chunk-M7MUAZAB.js";import"./chunk-EZP3FQ6P.js";import"./chunk-IHTJUQEE.js";import"./chunk-GHMKFVO3.js";import"./chunk-L2LJS4KB.js";import"./chunk-YC3E6TOV.js";import"./chunk-FUJQM5ZA.js";import"./chunk-TMJFLP2A.js";import"./chunk-DUYII3AV.js";import{a as oe}from"./chunk-PCJKS5NM.js";import"./chunk-YKUH2L4F.js";import"./chunk-UOMVO7CQ.js";import"./chunk-KSYJRRNV.js";import"./chunk-4K4CBFXG.js";import"./chunk-RCIZ7YWW.js";import"./chunk-YZHC7MKB.js";import{j as X}from"./chunk-2PAKQ4OI.js";import"./chunk-O4P646W3.js";import{n as I}from"./chunk-FKK5KKI6.js";import{E as J,I as U,ia as R,j as H,o as Q,v as G}from"./chunk-NQ62KS5R.js";import"./chunk-S3LULIGZ.js";import"./chunk-N5GPIPLD.js";import{$b as b,$c as x,Cb as s,Cd as q,Da as C,Ec as y,Gc as u,Ja as k,Ka as h,Pc as B,Qc as V,Rc as z,Ta as m,Uc as l,Vb as L,Vc as w,Wc as D,Xc as W,Zc as M,_c as P,ca as T,gd as F,hc as g,ic as c,nc as f,oc as r,pc as n,qc as S,td as j,yc as K,yd as d,zd as Y}from"./chunk-523GHJMT.js";import"./chunk-B4NGUIOI.js";import"./chunk-6NKBJIKA.js";import"./chunk-MNTLUMQB.js";function be(o,e){o&1&&S(0,"tui-calendar")}function Se(o,e){o&1&&(r(0,"p",5),l(1,"Sorgu i\xE7in 11 haneli TC kimlik numaras\u0131 ve do\u011Fum tarihi gerekli."),n())}function De(o,e){if(o&1&&(r(0,"div",9)(1,"p",10),l(2),n(),r(3,"p",11),l(4),n(),r(5,"pre"),l(6),n()()),o&2){let t=e,i=u();z("success",t.success)("error",t.success===!1),s(2),D(" ",t.success?"KPS kayd\u0131 bulundu":"KPS sorgusu ba\u015Far\u0131s\u0131z"," "),s(2),w(t.message||"-"),s(2),w(i.kpsLookupResultText())}}var _=class _{constructor(){this.appStudioService=C(O);this.close=q();this.kpsIdentityNumber=m("");this.kpsBirthdate=m("");this.kpsLookupLoading=m(!1);this.kpsLookupResult=m(null);this.kpsLookupResultText=d(()=>{let e=this.kpsLookupResult();return e?JSON.stringify(e,null,2):null});this.canRunKpsLookup=d(()=>/^\d{11}$/.test(this.kpsIdentityNumber())&&!!this.kpsBirthdate())}onClose(){this.close.emit()}runKpsLookup(){if(!this.canRunKpsLookup())return;let e=this.kpsIdentityNumber(),t=this.kpsBirthdate();this.kpsLookupLoading.set(!0),this.kpsLookupResult.set(null),this.appStudioService.testKpsIntegrationSetting$({identityNumber:e,birthdate:t}).pipe(T(()=>this.kpsLookupLoading.set(!1))).subscribe({next:i=>{this.kpsLookupResult.set(i||{success:!1,message:"KPS sorgusundan bo\u015F cevap d\xF6nd\xFC",providerKey:"kps",identityNumber:e,birthdate:t,timestamp:new Date().toISOString(),citizen:null,rateLimit:{used:0,limit:0,remaining:0}})},error:i=>{this.kpsLookupResult.set({success:!1,message:this.resolveErrorMessage(i),providerKey:"kps",identityNumber:e,birthdate:t,timestamp:new Date().toISOString(),citizen:null,rateLimit:{used:0,limit:0,remaining:0}})}})}resolveErrorMessage(e){var t,i;if(typeof e=="object"&&e){let a=(i=(t=e.graphQLErrors)==null?void 0:t[0])==null?void 0:i.message;if(a)return a;let p=e.message;if(p)return p}return typeof e=="string"?e:"Bilinmeyen bir hata olu\u015Ftu"}};_.\u0275fac=function(t){return new(t||_)},_.\u0275cmp=L({type:_,selectors:[["admin-app-studio-kps-test-dialog"]],outputs:{close:"close"},decls:17,vars:6,consts:[[1,"dialog-body"],["tuiLabel",""],["tuiTextfield","","type","text","inputmode","numeric","maxlength","11",3,"ngModelChange","ngModel"],["tuiInputDate","",3,"ngModelChange","ngModel"],[4,"tuiTextfieldDropdown"],[1,"kps-hint"],[1,"kps-result",3,"success","error"],["tuiButton","","type","button","appearance","flat","size","s",3,"click"],["tuiButton","","type","button","size","s","appearance","primary",3,"click","loading","disabled"],[1,"kps-result"],[1,"kps-result-title"],[1,"kps-result-message"]],template:function(t,i){if(t&1&&(r(0,"div",0)(1,"tui-textfield")(2,"label",1),l(3,"TC Kimlik No"),n(),r(4,"input",2),x("ngModelChange",function(p){return P(i.kpsIdentityNumber,p)||(i.kpsIdentityNumber=p),p}),n()(),r(5,"tui-textfield")(6,"label",1),l(7,"Do\u011Fum Tarihi"),n(),r(8,"
1input",3),x("ngModelChange",function(p){return P(i.kpsBirthdate,p)||(i.kpsBirthdate=p),p}),n(),b(9,be,1,0,"tui-calendar",4),n(),g(10,Se,2,0,"p",5),g(11,De,7,7,"div",6),n(),r(12,"yoka-dialog-footer")(13,"button",7),y("click",function(){return i.onClose()}),l(14,"Kapat"),n(),r(15,"button",8),y("click",function(){return i.runKpsLookup()}),l(16," KPS'de Kontrol Et "),n()()),t&2){let a;s(4),M("ngModel",i.kpsIdentityNumber),s(4),M("ngModel",i.kpsBirthdate),s(2),c(i.canRunKpsLookup()?-1:10),s(),c((a=i.kpsLookupResult())?11:-1,a),s(4),f("loading",i.kpsLookupLoading())("disabled",!i.canRunKpsLookup()||i.kpsLookupLoading())}},dependencies:[U,H,Q,J,G,I,oe,te,ne,ae,ie,se,Z,pe],styles:[".dialog-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.kps-hint[_ngcontent-%COMP%]{margin:0;color:var(--tui-text-secondary);font:var(--tui-font-text-s)}.kps-result[_ngcontent-%COMP%]{padding:1rem;border-radius:.75rem;border:1px solid var(--tui-border-normal);background:var(--tui-background-base-alt)}.kps-result.success[_ngcontent-%COMP%]{border-color:var(--tui-status-positive)}.kps-result.error[_ngcontent-%COMP%]{border-color:var(--tui-status-negative)}.kps-result[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{margin:0;max-height:18rem;overflow:auto;padding:.75rem;border-radius:.5rem;background:var(--tui-background-neutral-1);font-size:.75rem;line-height:1.4;white-space:pre-wrap;word-break:break-word}.kps-result-title[_ngcontent-%COMP%], .kps-result-message[_ngcontent-%COMP%]{margin:0 0 .5rem}"],changeDetection:0});var N=_;var Me=()=>({size:"m",closeable:!0}),Pe=()=>["identification-card","fingerprint","shield-check","hash-straight","users","baby","book"];function xe(o,e){if(o&1){let t=K();r(0,"button",7),y("click",function(){k(t);let a=u(2);return h(a.openCredentialsDialog())}),l(1," Bilgileri Gir "),n()}}function Te(o,e){if(o&1&&(S(0,"yoka-empty-state",6),b(1,xe,2,0,"ng-template",null,0,j)),o&2){let t=B(2);f("icons",F(2,Pe))("actions",t)}}function Le(o,e){if(o&1&&(r(0,"yoka-card",11)(1,"div",13)(2,"div",14)(3,"span"),l(4,"G\xFCnl\xFCk limit"),n(),r(5,"strong"),l(6),n()(),r(7,"div",15)(8,"strong"),l(9),n(),r(10,"small"),l(11),n()()(),S(12,"progress",16),n()),o&2){let t=e,i=u(2);s(6),W("",i.formatNumber(t.used)," / ",i.formatNumber(t.limit)),s(2),V("color",i.rateLimitColor()),s(),D("",i.rateLimitPercent(),"%"),s(2),D("Kalan: ",i.formatNumber(t.remaining)),s(),f("max",t.limit||100)("value",t.used)("color",i.rateLimitColor())}}function Ke(o,e){if(o&1){let t=K();r(0,"div",12)(1,"admin-integration-provider-summary-card",17),y("primaryAction",function(){k(t);let a=u(2);return h(a.kpsTestDialogOpen.set(!0))})("secondaryAction",function(){k(t);let a=u(2);return h(a.openCredentialsDialog())}),n()()}if(o&2){let t=e,i=u(2);s(),f("providerIcon",t.icon)("providerName",t.name)("providerDescription",t.description)("items",i.summaryItems())("primaryActionLabel","KPS Sorgula")("secondaryActionLabel",i.hasAnyCredentials()?"Bilgileri De\u011Fi\u015Ftir":"Bilgileri Gir")("saving",i.saving())}}function Ie(o,e){if(o&1&&(r(0,"div",4)(1,"div",8)(2,"div")(3,"h2",9),l(4,"KPS Entegrasyonu"),n(),r(5,"p",10),l(6," KPS ayarlar\u0131n\u0131z\u0131 buradan y\xF6netin, ba\u011Flant\u0131y\u0131 test edin ve g\xFCnl\xFCk kullan\u0131m durumunu takip edin. "),n()()(),g(7,Le,13,9,"yoka-card",11),g(8,Ke,2,7,"div",12),n()),o&2){let t,i,a=u();s(7),c((t=a.effectiveRateLimit())?7:-1,t),s(),c((i=a.provider())?8:-1,i)}}function Oe(o,e){if(o&1){let t=K();r(0,"yoka-dialog")(1,"yoka-dialog-header")(2,"span",18),l(3,"KPS Sorgula"),n(),r(4,"span",19),l(5," Kaydolamayan vatanda\u015F\u0131n TC kimlik numaras\u0131 ve do\u011Fum tarihini girerek KPS taraf\u0131nda e\u015Fle\u015Fme var m\u0131 kontrol edin. "),n()(),r(6,"admin-app-studio-kps-test-dialog",20),y("close",function(){k(t);let a=u();return h(a.kpsTestDialogOpen.set(!1))}),n()()}}var v=class v{constructor(){this.dialogs=C($);this.appStudioService=C(O);this.lastHydratedSignature=null;this.settings=R(this.appStudioService.integrationSettings$(),{initialValue:[]});this.rateLimitStatus=R(this.appStudioService.kpsIntegrationRateLimitStatus$(),{initialValue:null});this.draftCredentials=m({});this.saving=m(!1);this.kpsTestDialogOpen=m(!1);this.provider=d(()=>ge("Kps","kps"));this.currentSetting=d(()=>this.settings().find(e=>e.type==="Kps")||null);this.hasSetting=d(()=>!!this.currentSetting());this.credentialFields=d(()=>{var e;return((e=this.provider())==null?void 0:e.credentialFields)||[]});this.visibleCredentialFields=d(()=>this.credentialFields().filter(e=>!e.secret));this.secretCredentialFields=d(()=>this.credentialFields().filter(e=>e.secret));this.existingProviderKey=d(()=>{var e;return((e=this.currentSetting())==null?void 0:e.providerKey)||"kps"});this.configuredRateLimit=d(()=>{let e=E(this.draftCredentials(),"rateLimitMaxRequests"),t=typeof e=="string"?Number(e):e;return typeof t=="number"&&Number.isFinite(t)&&t>0?t:null});this.effectiveRateLimit=d(()=>{let e=this.rateLimitStatus(),t=this.configuredRateLimit();if(!e&&!t)return null;let i=(e==null?void 0:e.used)||0,a=t||(e==null?void 0:e.limit)||0;return{used:i,limit:a,remaining:Math.max(a-i,0)}});this.rateLimitPercent=d(()=>{let e=this.effectiveRateLimit();return e!=null&&e.limit?Math.min(100,Math.round(e.used/e.limit*100)):0});this.rateLimitColor=d(()=>{let e=this.rateLimitPercent();return e<=60?"var(--tui-status-positive)":e<=80?"var(--tui-status-warning)":"var(--tui-status-negative)"});this.summaryItems=d(()=>[...this.visibleCredentialFields().map(e=>({label:e.label,value:this.getCredentialDisplayValue(e)})),...this.secretCredentialFields().map(e=>({label:e.label,value:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",secret:!0}))]);Y(()=>{let e=this.currentSetting(),t=JSON.stringify({providerKey:(e==null?void 0:e.providerKey)||"kps",updatedAt:(e==null?void 0:e.updatedAt)||null});t!==this.lastHydratedSignature&&(this.lastHydratedSignature=t,this.draftCredentials.set(ye("Kps","kps",(e==null?void 0:e.credentials)||null)))})}openCredentialsDialog(){let e=this.provider();if(!e)return;let t={provider:e,currentCredentials:this.draftCredentials(),title:"KPS Ayarlar\u0131",subtitle:"KPS ba\u011Flant\u0131 bilgilerini g\xFCncellemek i\xE7in gerekli alanlar\u0131 doldurun",showProviderSelection:!1};this.dialogs.open(new X(ce),{label:"",size:"m",data:t}).subscribe(i=>{i&&(this.draftCredentials.set(i.credentials),this.saveSetting(i.credentials))})}saveSetting(e){let t=e||this.draftCredentials();this.hasRequiredCredentials(t)&&(this.saving.set(!0),this.appStudioService.upsertIntegrationSetting$({type:"Kps",providerKey:"kps",credentials:t}).pipe(T(()=>this.saving.set(!1))).subscribe())}hasAnyCredentials(){return Object.keys(this.draftCredentials()||{}).length>0}getCredentialDisplayValue(e){let t=E(this.draftCredentials(),e.key);if(e.type==="select"&&e.options){let i=e.options.find(a=>a.value===t);return(i==null?void 0:i.label)||t||"-"}return t||"-"}formatNumber(e){return new Intl.NumberFormat("tr-TR").format(e||0)}hasRequiredCredentials(e){return _e(this.credentialFields(),e,this.existingProviderKey(),"kps")}};v.\u0275fac=function(t){return new(t||v)},v.\u0275cmp=L({type:v,selectors:[["admin-kps-integration-page"]],decls:6,vars:4,consts:[["emptyActions",""],[1,"container-fluid"],[1,"d-flex","justify-content-center"],[1,"content"],[1,"page-shell"],[3,"tuiDialogChange","tuiDialogOptions","tuiDialog"],["title","KPS ayarlar\u0131 hen\xFCz eklenmemi\u015F","subtitle","KPS ba\u011Flant\u0131 bilgilerini girerek do\u011Frulama ve sorgulama ak\u0131\u015F\u0131n\u0131 haz\u0131rlayabilirsiniz.",3,"icons","actions"],["tuiButton","","type","button","size","s","appearance","primary",3,"click"],[1,"page-head"],[1,"tui-form__header","mb-0"],[1,"page-copy"],[1,"rate-limit-card"],[1,"form-section"],[1,"rate-limit-header"],[1,"rate-limit-copy"],[1,"rate-limit-meta"],["tuiProgressBar","",1,"rate-limit-progress",3,"max","value","color"],[3,"primaryAction","secondaryAction","providerIcon","providerName","providerDescription","items","primaryActionLabel","secondaryActionLabel","saving"],["yokaDialogTitle",""],["y
1okaDialogSubtitle",""],[3,"close"]],template:function(t,i){t&1&&(r(0,"div",1)(1,"div",2)(2,"div",3),g(3,Te,3,3)(4,Ie,9,2,"div",4),n()(),b(5,Oe,7,0,"ng-template",5),x("tuiDialogChange",function(p){return P(i.kpsTestDialogOpen,p)||(i.kpsTestDialogOpen=p),p}),n()),t&2&&(s(3),c(i.hasSetting()?4:3),s(2),f("tuiDialogOptions",F(3,Me)),M("tuiDialog",i.kpsTestDialogOpen))},dependencies:[I,ee,le,re,de,ue,me,N,fe],styles:["[_nghost-%COMP%]{display:block;padding-bottom:5rem}.content[_ngcontent-%COMP%]{padding-top:.5rem;max-width:600px;width:100%}.form-section[_ngcontent-%COMP%]{margin-bottom:1.5rem}.page-shell[_ngcontent-%COMP%]{display:grid;gap:1.5rem}.page-head[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .rate-limit-card[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .rate-limit-card[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], .rate-limit-card[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{margin:0}.page-copy[_ngcontent-%COMP%]{margin-top:.75rem;max-width:44rem;color:var(--tui-text-secondary)}.rate-limit-card[_ngcontent-%COMP%]{gap:1rem}.rate-limit-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem}.rate-limit-copy[_ngcontent-%COMP%]{display:grid;gap:.25rem}.rate-limit-meta[_ngcontent-%COMP%]{display:grid;gap:.25rem;justify-items:end}.rate-limit-copy[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .rate-limit-card[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:var(--tui-text-secondary)}.rate-limit-copy[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:1rem}.rate-limit-progress[_ngcontent-%COMP%]{width:100%}@media (max-width: 768px){.rate-limit-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.rate-limit-meta[_ngcontent-%COMP%]{justify-items:start}}"],changeDetection:0});var A=v;export{A as default};

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.