PageSourceSearch

https://mypage.coopkyosai.coop/6841.306387f7445c0934.js

js coopkyosai.coop collected 2026-10-02 16:33:35 UTC 17,778 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[6841],{2068:(E,m,n)=>{n.d(m,{l:()=>u});var t=n(4438);let u=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275mod=t.$C({type:r})}static{this.\u0275inj=t.G2t({})}}return r})()},7095:(E,m,n)=>{n.d(m,{f:()=>b});var t=n(4438),u=n(1413),r=n(8359),C=n(9119),g=n(177),d=n(9417),O=n(9973);function p(c,f){if(1&c&&t.eu8(0,2),2&c){const l=f.$implicit,h=t.XpG();t.Y8G("field",l)("group",h.form)}}let b=(()=>{class c{get value(){return this.form.value}constructor(l){this.dfs=l,this.fields=[],this.disabled=!1,this.submit=new t.bkB,this.formSubject=new u.B,this.form$=this.formSubject.asObservable(),this.formSubscription=new r.yU,this.valueChangesSubject=new u.B,this.valueChanges$=this.valueChangesSubject.asObservable(),this.valueChangesSubscription=new r.yU}ngOnInit(){this.form=this.dfs.createControl(this.fields),this.formSubject.next(this.form),this.registervalueChanges(),this.disabled&&this.form.disable()}ngOnChanges(l){this.form=this.dfs.createControl(this.fields),this.formSubject.next(this.form),this.registervalueChanges(),this.disabled&&this.form.disable()}onSubmit(l){l.preventDefault(),l.stopPropagation(),this.form.valid?this.submit.emit(this.form.value):this.dfs.validateAllFormFields(this.form)}registervalueChanges(){this.formSubscription.unsubscribe(),this.formSubscription.add(this.form$.subscribe(l=>{this.valueChangesSubscription.add(l.valueChanges.subscribe(h=>{this.valueChangesSubject.next(h)}))}))}ngOnDestroy(){this.formSubscription.unsubscribe(),this.valueChangesSubscription.unsubscribe()}static{this.\u0275fac=function(h){return new(h||c)(t.rXU(C.J))}}static{this.\u0275cmp=t.VBU({type:c,selectors:[["cpm-dynamic-form"]],inputs:{fields:"fields",disabled:"disabled"},outputs:{submit:"submit"},exportAs:["cpm-dynamic-form"],features:[t.OA$],decls:2,vars:2,consts:[[1,"dynamic-form",3,"submit","formGroup"],["cpmDynamicField","",3,"field","group",4,"ngFor","ngForOf"],["cpmDynamicField","",3,"field","group"]],template:function(h,M){1&h&&(t.j41(0,"form",0),t.bIt("submit",function(x){return M.onSubmit(x)}),t.DNE(1,p,1,2,"ng-container",1),t.k0s()),2&h&&(t.Y8G("formGroup",M.form),t.R7$(),t.Y8G("ngForOf",M.fields))},dependencies:[g.Sq,d.qT,d.cb,d.j4,O.p]})}}return c})()},7873:(E,m,n)=>{n.d(m,{R:()=>O});var t=n(4438),u=n(177),r=n(9213);const C=[[["",8,"action"]],"*"],g=[".action","*"];function d(p,b){if(1&p&&t.nrm(0,"mat-icon",7),2&p){const c=t.XpG();t.Y8G("svgIcon",c.svgIcon)}}let O=(()=>{class p{constructor(){}ngOnInit(){}static{this.\u0275fac=function(f){return new(f||p)}}static{this.\u0275cmp=t.VBU({type:p,selectors:[["cpm-page-card"]],inputs:{title:"title",svgIcon:"svgIcon"},ngContentSelectors:g,decls:11,vars:2,consts:[[1,"page-card"],[1,"page-card-border-gradation"],[1,"page-card-header"],[1,"page-card-header-content"],["style","width: 18px; height: 18px; margin-right: 8px;",3,"svgIcon",4,"ngIf"],[1,"page-card-header-content-action"],[1,"page-card-content"],[2,"width","18px","height","18px","margin-right","8px",3,"svgIcon"]],template:function(f,l){1&f&&(t.NAR(C),t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),t.DNE(5,d,1,1,"mat-icon",4),t.EFF(6),t.k0s(),t.j41(7,"div",5),t.SdG(8),t.k0s()()()(),t.j41(9,"div",6),t.SdG(10,1),t.k0s()()),2&f&&(t.R7$(5),t.Y8G("ngIf",l.svgIcon),t.R7$(),t.JRh(l.title))},dependencies:[u.bT,r.An],styles:[".page-card[_ngcontent-%COMP%]{background-color:#fff}.page-card-header[_ngcontent-%COMP%]{padding-left:10px;font-weight:700;font-size:18px;border-width:0 0 2px 0;border-style:solid;border-image:linear-gradient(270deg,#ecf8fa00,#ecf8fa);border-image-slice:1;display:flex}.page-card-header[_ngcontent-%COMP%]     header{display:flex;justify-content:space-between}.page-card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;min-height:42px;flex:1 1 auto}.page-card-content[_ngcontent-%COMP%]{overflow:auto;padding:0 0 24px}.lg[_nghost-%COMP%]   .page-card[_ngcontent-%COMP%], .lg   [_nghost-%COMP%]   .page-card[_ngcontent-%COMP%]{margin:16px}.md[_nghost-%COMP%]   .page-card[_ngcontent-%COMP%], .md   [_nghost-%COMP%]   .page-card[_ngcontent-%COMP%], .sm[_nghost-%COMP%]   .page-card[_ngcontent-%COMP%], .sm   [_nghost-%COMP%]   .page-card[_ngcontent-%COMP%]{margin:32px 0}"]})}}return p})()},4389:(E,m,n)=>{n.d(m,{v:()=>A});var t=n(4438),u=n(1985),r=n(7376),g=n(9417),d=n(5353),O=n(2765),p=n(1973),b=n(177),c=n(7575),f=n(8834),l=n(9062);const h=["fileInput"];function M(i,P){if(1&i){const e=t.RV6();t.j41(0,"button",21),t.bIt("click",function(){t.eBV(e);const a=t.XpG(3).$implicit,o=t.XpG(2);return t.Njj(o.delFile(a))}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(5);t.R7$(),t.SpI(" ",e.deleteButtonLabel," ")}}function D(i,P){if(1&i&&(t.j41(0,"div",19),t.DNE(1,M,2,1,"button",20),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngIf",!e.hideDeleteButton)}}function x(i,P){if(1&i&&t.nrm(0,"mat-progress-bar",24),2&i){const e=t.XpG(3).$implicit;t.Y8G("value",e.progress)}}function F(i,P){if(1&i&&(t.j41(0,"div",22),t.DNE(1,x,1,1,"mat-progress-bar",23),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf","progress"===e.status)}}function B(i,P){if(1&i&&(t.j41(0,"li")(1,"div",12),t.nrm(2,"img",13),t.k0s(),t.j41(3,"div",14)(4,"div",15)(5,"div",16),t.EFF(6),t.k0s(),t.DNE(7,D,2,1,"div",17),t.k0s(),t.DNE(8,F,2,1,"div",18),t.k0s()()),2&i){const e=t.XpG().$implicit,s=t.XpG(2);t.R7$(2),t.FS9("src",e.thumbnail,t.B4B),t.R7$(4),t.SpI(" ",s.getDisplayName(e)," "),t.R7$(),t.Y8G("ngIf",e.fileId),t.R7$(),t.Y8G("ngIf",!s.hideProgressbar)}}function I(i,P){if(1&i&&(t.qex(0),t.DNE(1,B,9,4,"li",11),t.bVm()),2&i){const e=P.$implicit;t.R7$(),t.Y8G("ngIf",!e.isDelete)}}function y(i,P){if(1&i&&(t.j41(0,"ul",9),t.DNE(1,I,2,1,"ng-container",10),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.uploadFiles)}}function R(i,P){if(1&i&&(t.j41(0,"span",25),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.placeholder)}}function T(i,P){if(1&i){const e=t.RV6();t.j41(0,"div",26),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.openFileDialog())}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&i){const e=t.XpG();t.AVh("disabled",e.isDisabledUploadButton),t.R7$(2),t.JRh(e.attachedButtonLabel)}}function U(i,P){if(1&i&&(t.j41(0,"div",27)(1,"div"),t.EFF(2),t.k0s()()),2&i){const e=P.$implicit;t.R7$(2),t.JRh(e)}}let A=(()=>{class i{get value(){return this.val}set value(e){this.val!==e&&(this.val=e,this.onChangeCallback(e))}writeValue(e){this.val!==e&&(this.value=e)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}constructor(e,s,a){this.service=e,this.messageService=s,this.storeService=a,this.formDataValues=null,this.multiple=!1,this.acceptFileType="application/pdf,image/jpeg,image/png,image/gif",this.maxSize=15728640,this.limit=10,this.disabledButton=!1,this.hideButton=!1,this.hideDeleteButton=!1,this.hideProgressbar=!1,this.hideUploadFiles=!1,this.placeholder="",this.attachedButtonLabel="\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e",this.deleteButtonLabel="",this.uploadFiles=[],this.uploadResponses=[],this.thumbnails=[],this.errorMessages=[],this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnInit(){}ngOnChanges(){}get uploadFilesLength(){return this.uploadFiles.filter(e=>!e.isDelete).length}
1get isDisabledUploadButton(){return!!(this.disabledButton||0!=this.limit&&this.uploadFiles.filter(e=>!e.isDelete).length>=this.limit||this.uploadingFileExists())}openFileDialog(){this.fileInput.nativeElement.value="",this.fileInput.nativeElement.click()}onFileChange(e){e.target.files.length>0&&this.readFiles(e.target.files).subscribe(a=>{this.uploadFiles.push(a);const o=this.uploadFiles.indexOf(a),v=new FormData;this.formDataValues&&r.forEach(this.formDataValues,(_,S)=>{v.append(String(S),String(_))}),v.append("file",this.uploadFiles[o].file,this.uploadFiles[o].file.name),this.storeService.scrollPosition=[window.scrollX,window.scrollY],this.service.upload(this.uploadAction,v).subscribe(_=>{_.status&&"progress"==_.status&&(this.uploadFiles[o].status="progress",this.uploadFiles[o].progress=_.message),_.result&&_.result.fileId&&(this.uploadFiles[o].status="completed",this.uploadFiles[o].fileId=_.result.fileId,this.uploadFiles[o].apiResult=_.result,this.value.push(this.uploadFiles[o])),_.errors&&_.errors.length>0&&(this.uploadFiles[o].status="stopped",this.uploadFiles[o].progress=0,this.uploadFiles.splice(o,1),this.service.openToastByErrors(_.errors))},_=>{this.uploadFiles[o].status="stopped",this.uploadFiles[o].progress=0,this.uploadFiles.splice(o,1)})})}readFiles(e){return u.c.create(s=>{for(let a=0;a<e.length;a++){const o=e[a];if(this._isValidateFile(o))if(this._isImage(o)){const v=new FileReader;v.readAsDataURL(o),v.onload=_=>{s.next({file:o,thumbnail:_.target.result,status:"progress",progress:0,isDelete:!1})}}else s.next({file:o,thumbnail:"assets/icons/documents/blue.svg",status:"progress",progress:0,isDelete:!1})}})}_isValidateFile(e){return e.size>this.maxSize?(this.errorMessages=[this.messageService.getMessageById("SEb050612",[String(this.maxSize/1048576)])],!1):(this.errorMessages=[],!0)}_isImage(e){return"image"===e.type.split("/")[0]}delFile(e){const s=this.uploadFiles.find(a=>a.fileId===e.fileId);s&&(s.isDelete=!0)}getDisplayName(e){const s=this.service.convertByteToReadable(e.file.size);return`${e.file.name}(${s})`}reset(){this.uploadFiles=[],this.value=[]}uploadingFileExists(){return this.uploadFiles.filter(e=>!e.isDelete&&!e.fileId).length>0}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(d.B),t.rXU(O.b),t.rXU(p.B))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["cpmc-upload"]],viewQuery:function(s,a){if(1&s&&t.GBs(h,5),2&s){let o;t.mGM(o=t.lsd())&&(a.fileInput=o.first)}},inputs:{uploadAction:"uploadAction",formDataValues:"formDataValues",multiple:"multiple",acceptFileType:"acceptFileType",maxSize:"maxSize",limit:"limit",disabledButton:"disabledButton",hideButton:"hideButton",hideDeleteButton:"hideDeleteButton",hideProgressbar:"hideProgressbar",hideUploadFiles:"hideUploadFiles",placeholder:"placeholder",attachedButtonLabel:"attachedButtonLabel",deleteButtonLabel:"deleteButtonLabel"},features:[t.Jv_([{provide:g.kq,multi:!0,useExisting:(0,t.Rfq)(()=>i)}]),t.OA$],decls:9,vars:6,consts:[["fileInput",""],[1,"upload-area"],["class","upload-files",4,"ngIf"],[1,"upload-btn"],["type","file","hidden","",3,"change","multiple","accept"],["class","placeholder",4,"ngIf"],["class","upload-placeholder",3,"disabled","click",4,"ngIf"],[1,"attachment-error-message-wrapper"],["class","error-message",4,"ngFor","ngForOf"],[1,"upload-files"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"thumbnail"],["alt","",3,"src"],[1,"thumbnail-info"],[1,"file-info"],[1,"name"],["class","action",4,"ngIf"],["class","progress",4,"ngIf"],[1,"action"],["mat-stroked-button","","color","primary","mat-stroked-button","","btn-small","",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","mat-stroked-button","","btn-small","",3,"click"],[1,"progress"],["class","example-margin",3,"value",4,"ngIf"],[1,"example-margin",3,"value"],[1,"placeholder"],[1,"upload-placeholder",3,"click"],[1,"error-message"]],template:function(s,a){if(1&s){const o=t.RV6();t.j41(0,"div",1),t.DNE(1,y,2,1,"ul",2),t.j41(2,"div",3)(3,"input",4,0),t.bIt("change",function(_){return t.eBV(o),t.Njj(a.onFileChange(_))}),t.k0s(),t.DNE(5,R,2,1,"span",5)(6,T,3,3,"div",6),t.k0s(),t.j41(7,"div",7),t.DNE(8,U,3,1,"div",8),t.k0s()()}2&s&&(t.R7$(),t.Y8G("ngIf",!a.hideUploadFiles&&a.uploadFilesLength>0),t.R7$(2),t.Y8G("multiple",a.multiple)("accept",a.acceptFileType),t.R7$(2),t.Y8G("ngIf",a.placeholder),t.R7$(),t.Y8G("ngIf",!a.hideButton),t.R7$(2),t.Y8G("ngForOf",a.errorMessages))}
1,dependencies:[b.Sq,b.bT,c.HM,f.$z,l.D],styles:['.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%]{list-style:none;padding:0}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:8px;display:flex;flex-flow:row;align-items:center}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:85px;height:85px}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:auto;height:auto;max-width:100%;max-height:100%}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-flow:column;padding:0 8px;word-break:break-all}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]{display:flex;flex-flow:row}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{padding:8px 0}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{padding:6px 0 6px 10px;vertical-align:middle}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:19px;height:19px;position:relative;background-color:#666;border-radius:100%;border:none;outline:none;appearance:none;cursor:pointer;min-width:auto;margin:0;padding:0}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:before{position:absolute;top:3px;left:9px;width:1px;height:13px;content:"";background-color:#fff;transform:rotate(45deg);display:block;margin:0;border:0}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .file-info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:after{position:absolute;top:9px;left:3px;width:13px;height:1px;content:"";background-color:#fff;transform:rotate(225deg)}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .thumbnail-info[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{height:4px}.upload-area[_ngcontent-%COMP%]   .upload-files[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{display:flex}.upload-area[_ngcontent-%COMP%]   .upload-btn[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{min-width:122px}.upload-area[_ngcontent-%COMP%]   .upload-btn[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{margin-left:8px}.upload-area[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin:0 8px;color:#e32100}.upload-area[_ngcontent-%COMP%]   .attachment-error-message-wrapper[_ngcontent-%COMP%]:empty{margin-bottom:23px}.upload-placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border:1px dashed #066F8D;border-radius:4px;background:#ecf8fa;color:#066f8d;cursor:pointer;margin:16px 0;font-size:14px;font-weight:700}.upload-placeholder[_ngcontent-%COMP%]:hover{border-color:#045d74;background:#dff2f5}.upload-placeholder.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5;cursor:not-allowed}.attachment-error-message-wrapper[_ngcontent-%COMP%]{margin:0 8px;color:#e40001;font-size:12px}']})}}return i})()},9062:(E,m,n)=>{n.d(m,{D:()=>r});var t=n(4438);const u=["btn-large","btn-middle","btn-small","btn-dashed","font-large"];let r=(()=>{class C{constructor(d){this.elementRef=d;for(const O of u)this._hasHostAttributes(O)&&this.elementRef.nativeElement.classList.add(O)}_hasHostAttributes(...d){return d.some(O=>this._getHostElement().hasAttribute(O))}_getHostElement(){return this.elementRef.nativeElement}static{this.\u0275fac=function(O){return new(O||C)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:C,selectors:[["","cpmCommonBtn",""],["button","btn-large",""],["button","btn-middle",""],["button","btn-small",""],["button","btn-dashed",""]]})}}return C})()},1585:(E,m,n)=>{n.d(m,{E:()=>g});var t=n(4438),u=n(504),r=n(4591),C=n(1265);let g=(()=>{class d{constructor(p,b,c){this.das=p,this.elementRef=b,this.toast=c,this.autoSave=!0,this.autoShowError=!0,this.completed=new t.bkB,this.completedJson=new t.bkB}download(p){p.preventDefault(),p.stopPropagation();const c=this.elementRef.nativeElement.getAttribute("href")||this.cpmcDownloadAble;c&&this.das.download(c).subscribe(f=>{if(this.completed.emit(f),this.autoShowError){const l=f.res,h=new FileReader;h.onload=()=>
1{if(l.body&&l.body.type&&l.body.type.indexOf("application/json")>=0){const M=JSON.parse(h.result);this.completedJson.emit(M),M.errors&&M.errors.length>0&&M.errors.forEach(D=>{this.toast.error(D.msgCode,{msgArgs:D.values})})}else this.autoSave&&(0,u.O)(f.blob,f.fileName)},h.readAsText(l.body)}})}static{this.\u0275fac=function(b){return new(b||d)(t.rXU(r.k),t.rXU(t.aKT),t.rXU(C.f))}}static{this.\u0275dir=t.FsC({type:d,selectors:[["","cpmcDownloadAble",""]],hostBindings:function(b,c){1&b&&t.bIt("click",function(l){return c.download(l)})},inputs:{cpmcDownloadAble:"cpmcDownloadAble",autoSave:"autoSave",autoShowError:"autoShowError"},outputs:{completed:"completed",completedJson:"completedJson"}})}}return d})()},504:(E,m,n)=>{function t(u,r){if(!u||!r)return;const C=window.URL.createObjectURL(u);if(navigator.msSaveBlob)navigator.msSaveBlob(u,r);else{const g=document.createElement("a");g.href=C,g.download=r,g.style.display="none",document.body.appendChild(g),g.click(),g.remove()}}n.d(m,{O:()=>t})}}]);

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.