PageSourceSearch

https://app.slipmate.ai/common.32cd170c91d7d801.js

js slipmate.ai collected 2026-10-05 15:05:32 UTC 10,275 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkslipmate_web_app=self.webpackChunkslipmate_web_app||[]).push([[76],{4781:(C,h,s)=>{s.d(h,{l:()=>p});var e=s(6264),d=s(7254),o=s(4250),f=s(8976);const r=(n,u,t)=>({"border-secondary":n,"border-primary":u,"opacity-50 pe-none":t}),c=(n,u)=>({"text-primary":n,"text-secondary":u});function m(n,u){if(1&n&&(e.j41(0,"div",12)(1,"i",13),e.nrm(2,"span",7)(3,"span",8)(4,"span",14),e.k0s(),e.EFF(5),e.k0s()),2&n){const t=e.XpG(2);e.R7$(5),e.SpI("",t.allowedFileError," ")}}function _(n,u){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",3),e.bIt("dragover",function(l){e.eBV(t);const g=e.XpG();return e.Njj(g.onDragOver(l))})("dragleave",function(l){e.eBV(t);const g=e.XpG();return e.Njj(g.onDragLeave(l))})("drop",function(l){e.eBV(t);const g=e.XpG();return e.Njj(g.onDrop(l))}),e.j41(2,"input",4,1),e.bIt("change",function(l){e.eBV(t);const g=e.XpG();return e.Njj(g.handleChange(l))}),e.k0s(),e.j41(4,"div",5),e.bIt("click",function(){e.eBV(t);const l=e.sdS(3);return e.Njj(l.click())}),e.j41(5,"i",6),e.nrm(6,"span",7)(7,"span",8),e.k0s(),e.j41(8,"div",9)(9,"span",10),e.EFF(10),e.k0s(),e.j41(11,"span",10),e.EFF(12),e.k0s()()()(),e.DNE(13,m,6,1,"div",11),e.bVm()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",e.sMw(7,r,t.isDragging,!t.isDragging,t.isDisabled)),e.R7$(),e.Y8G("accept",t.allowedFileTypes)("disabled",t.isDisabled),e.R7$(3),e.Y8G("ngClass",e.l_i(11,c,!t.isDragging,t.isDragging)),e.R7$(5),e.JRh(t.hint),e.R7$(2),e.SpI("\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14: ",t.maxFileSizeMB,"MB"),e.R7$(),e.Y8G("ngIf",t.allowedFileError)}}function a(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){e.eBV(t);const l=e.XpG();return e.Njj(l.openPreviewInNewTab())}),e.nrm(1,"app-fileicon",16),e.j41(2,"span",17),e.EFF(3),e.k0s(),e.j41(4,"span",18),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.j41(7,"button",19),e.bIt("click",function(l){e.eBV(t);const g=e.XpG();return e.Njj(g.clearFile(l))}),e.j41(8,"i",20),e.nrm(9,"span",7)(10,"span",8),e.k0s()()()}if(2&n){let t;const i=e.XpG();e.R7$(),e.Y8G("fileName",null==i.selectedFile?null:i.selectedFile.name)("size",36)("className","theme-light-show"),e.R7$(2),e.JRh(null==i.selectedFile?null:i.selectedFile.name),e.R7$(2),e.SpI("",e.i5U(6,5,(null!==(t=null==i.selectedFile?null:i.selectedFile.size)&&void 0!==t?t:0)/1024/1024,"1.2-2")," MB")}}let p=(()=>{class n{cdr;allowedFileTypes="image/png,image/jpeg,image/jpg";hint="Only *.png, *.jpg and *.jpeg image files are accepted.";maxFileSizeMB=5;fileError=new e.bkB;fileChange=new e.bkB;isDragging=!1;selectedFile=null;allowedFileError=null;isDisabled=!1;fileUrl=null;modalConfig={modalDialogClass:"modal-dialog modal-dialog-centered mw-550px"};_onChange=()=>{};_onTouched=()=>{};constructor(t){this.cdr=t}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!0}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.isDragging=!1}onDrop(t){if(t.preventDefault(),t.stopPropagation(),this.isDragging=!1,this.isDisabled)return;const i=t.dataTransfer?.files?.[0]??null;i&&this._setFile(i)}handleChange(t){const i=t.target.files?.[0]??null;i&&this._setFile(i),t.target.value=""}clearFile(t){t.stopPropagation(),this.selectedFile=null,this.allowedFileError=null,this._onChange(null),this._onTouched(),this.fileChange.emit(null),this.cdr.markForCheck()}openPreviewInNewTab(){if(!this.selectedFile)return;const t=URL.createObjectURL(this.selectedFile);window.open(t,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(t),6e4)}_setFile(t){return this.allowedFileTypes.includes(t.type)?t.size>1024*this.maxFileSizeMB*1024?(this.allowedFileError=`\u0e02\u0e19\u0e32\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e01\u0e34\u0e19 ${this.maxFileSizeMB}MB`,this.fileError.emit(this.allowedFileError),void this.cdr.markForCheck()):(this.allowedFileError=null,this.selectedFile=t,this._onChange(t),this._onTouched(),this.fileChange.emit(t),void this.cdr.markForCheck()):(this.allowedFileError="\u0e44\u0e21\u0e48\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e44\u0e1f\u0e25\u0e4c\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e19\u0e35\u0e49",this.fileError.emit(this.allowedFileError),void this.cdr.markForCheck())}writeValue(t){t||(this.selectedFile=null),this.cdr.markForCheck()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.isDisabled=t,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||n)(e.rXU(e.gRc))};static \u0275cmp=e.VBU({type:n,selectors:[["app-file-drop"]],inputs:{allowedFileTypes:"allowedFileTypes",hint:"hint",maxFileSizeMB:"maxFileSizeMB"},outputs:{fileError:"fileError",fileChange:"fileChange"},features:[e.Jv_([{provide:d.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}])],decls:3,vars:2,consts:[["preview",""],["fileInput",""],[4,"ngIf","ngIfElse"],[1,"dropzone","position-relative","border","border-dashed","rounded-2","p-0",3,"dragover","dragleave","drop","ngClass"],["type","file",1,"position-absolute","w-100","h-100","cursor-pointer","opacity-0","top-0","start-0",3,"change","accept","disabled"],[1,"dz-message","needsclick","d-flex","align-items-center","p-6",3,"click"],[1,"ki-duotone","ki-file-up","fs-3x",3,"ngClass"],[1,"path1"],[1,"path2"],[1,"ms-4","d-flex","flex-column"],[1,"fs-7","fw-semibold","text-gray-500"],["class","text-danger fs-7 mt-2 d-flex align-items-center",4,"ngIf"],[1,"text-danger","fs-7","mt-2","d-flex","align-items-center"],[1,"ki-duotone","ki-information-5","fs-6","text-danger","me-1"],[1,"path3"],["role","button","title","\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e43\u0e19\u0e41\u0e17\u0e47\u0e1a\u0e43\u0e2b\u0e21\u0e48",1,"d-flex","align-items-center","gap-3","p-3","border","border-dashed","rounded-2","cursor-pointer",3,"click"],[3,"fileName","size","className"],[1,"fs-6","fw-semibold","text-gray-700","flex-grow-1","text-truncate"],[1,"text-muted","fs-7"],["type","button","title","\u0e25\u0e1a\u0e44\u0e1f\u0e25\u0e4c",1,"btn","btn-icon","btn-sm","btn-light-danger",3,"click"],[1,"ki-duotone","ki-cross","fs-4"]],template:function(i,l){if(1&i&&e.DNE(0,_,14,14,"ng-container",2)(1,a,11,8,"ng-template",null,0,e.C5r),2&i){const g=e.sdS(2);e.Y8G("ngIf",!l.selectedFile)("ngIfElse",g)}},dependencies:[o.YU,o.bT,f.R,o.QX],styles:["[_nghost-%COMP%]{display:block}.dropzone[_ngcontent-%COMP%]{cursor:pointer;transition:border-color .2s ease}.dropzone[_ngcontent-%COMP%]:hover{border-color:var(--bs-primary)!important}"],changeDetection:0})}return n})()},5965:(C,h,s)=>{s.d(h,{E:()=>r});var e=s(4250),d=s(7254),o=s(1359),f=s(6264);let r=(()=>{class c{static \u0275fac=function(a){return new(a||c)};static \u0275mod=f.$C({type:c});static \u0275inj=f.G2t({imports:[e.MD,d.YN,d.X1,o.G]})}return c})()},2153:(C,h,s)=>{s.d(h,{J:()=>f});var e=s(4250),d=s(7254),o=s(6264);let f=(()=>{class r{static \u0275fac=function(_){return new(_||r)};static \u0275mod=o.$C({type:r});static \u0275inj=o.G2t({imports:[e.MD,d.YN,d.X1]})}return r})()},5825:(C,h,s)=>{s.d(h,{U:()=>d});var e=s(6264);let d=(()=>{class o{onInputChange(r){const c=r.target;c.value=c.value.replace(/\D/g,"")}onKeyPress(r){/[0-9]/.test(r.key)||r.preventDefault()}static \u0275fac=function(c){return new(c||o)};static \u0275dir=e.FsC({type:o,selectors:[["","appDigitsOnly",""]],hostBindings:function(c,m){1&c&&e.bIt("input",function(a){return m.onInputChange(a)})("keypress",function(a){return m.onKeyPress(a)})}})}return o}
1)()},8976:(C,h,s)=>{s.d(h,{R:()=>d});var e=s(6264);let d=(()=>{class o{fileName;size=36;className="";fileIconByExtension={pdf:"pdf",png:"png",jpg:"jpg",jpeg:"jpg",webp:"webp"};get iconPath(){const r=this.fileName?.split(".").pop()?.toLowerCase()??"";return`/assets/media/svg/files/${this.fileIconByExtension[r]??"doc"}.svg`}static \u0275fac=function(c){return new(c||o)};static \u0275cmp=e.VBU({type:o,selectors:[["app-fileicon"]],inputs:{fileName:"fileName",size:"size",className:"className"},decls:1,vars:5,consts:[["alt","",3,"src"]],template:function(c,m){1&c&&e.nrm(0,"img",0),2&c&&(e.HbH(m.className),e.Y8G("src",m.iconPath,e.B4B),e.BMQ("width",m.size)("height",m.size))}})}return o})()},4379:(C,h,s)=>{s.d(h,{O:()=>p});var e=s(3807),d=s(1550),o=s(4176),f=s(4669),r=s(1641),c=s(477),m=s(6264),_=s(385);const a=`${c.c.apiUrl}/api-keys`;let p=(()=>{class n{_httpClient;_apiKeys=new e.t({items:[],nextToken:null});constructor(t){this._httpClient=t}get apiKeys$(){return this._apiKeys.asObservable()}getApiKeys(){return this._httpClient.get(`${a}/v1/list`).pipe((0,d.M)(t=>{this._apiKeys.next(t)}))}createApiKey(t){return this.apiKeys$.pipe((0,o.s)(1),(0,f.n)(i=>this._httpClient.post(`${a}/v1/create`,{name:t}).pipe((0,r.T)(l=>(this._apiKeys.next({...i,items:[...i.items,l.data]}),l.data)))))}linkBot(t,i){return this.apiKeys$.pipe((0,o.s)(1),(0,f.n)(l=>this._httpClient.post(`${a}/v1/link-bot`,{apiKey:t,otp:i}).pipe((0,r.T)(g=>{const E=l.items.map(D=>D.apiKey===t?g.data:D);return this._apiKeys.next({...l,items:E}),g.data}))))}toggleStatus(t){return this.apiKeys$.pipe((0,o.s)(1),(0,f.n)(i=>this._httpClient.post(`${a}/v1/toggle-status`,{apiKey:t}).pipe((0,r.T)(l=>{const g=i.items.map(E=>E.apiKey===t?l.data:E);return this._apiKeys.next({...i,items:g}),l.data}))))}static \u0275fac=function(i){return new(i||n)(m.KVO(_.Qq))};static \u0275prov=m.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},6074:(C,h,s)=>{s.d(h,{B0:()=>f});var e=s(4250),d=s(6264);class o{constructor(a,p){this._document=p;const n=this._textarea=this._document.createElement("textarea"),u=n.style;u.position="fixed",u.top=u.opacity="0",u.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){const a=this._textarea;let p=!1;try{if(a){const n=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),p=this._document.execCommand("copy"),n&&n.focus()}}catch{}return p}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let f=(()=>{class _{constructor(p){this._document=p}copy(p){const n=this.beginCopy(p),u=n.copy();return n.destroy(),u}beginCopy(p){return new o(p,this._document)}static{this.\u0275fac=function(n){return new(n||_)(d.KVO(e.qQ))}}static{this.\u0275prov=d.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()}}]);

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.