-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path1.chunk.js.map
1 lines (1 loc) · 83.2 KB
/
1.chunk.js.map
1
{"version":3,"sources":["/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.html","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.scss","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.module.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.html","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.scss","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.module.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home-routing.module.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.html","/Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.scss","/Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.ts","/Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.module.ts","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-drop.directive.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-item.class.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-like-object.class.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-select.directive.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-type.class.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-upload.module.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-uploader.class.js","/Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/index.js","/Users/apple/Desktop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;;;;;;;;;;;;;;;;;;;ACTe;AACM;AACE;AACS;AACa;AACiB;AACN;AAC/B;AAanD,IAAa,UAAU;IAAvB;IAA0B,CAAC;IAAD,iBAAC;AAAD,CAAC;AAAd,UAAU;IAXtB,8EAAQ,CAAC;QACR,OAAO,EAAE;YACP,6DAAY;YACZ,+EAAiB;YACjB,qFAAU;YACV,iEAAgB;YAChB,sGAAe;YACf,gGAAa;SACd;QACD,YAAY,EAAE,CAAC,sEAAa,CAAC;KAC9B,CAAC;GACW,UAAU,CAAI;AAAJ;;;;;;;;;ACpBvB;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAA0F;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,4BAA4B;AAClD;AACA;AACA;;;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,8BAA8B;AACpD;AACA;AACA;;;;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjKA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,iDAAiD;AACvF;AACA,0CAA0C,6CAA6C;AACvF;AACA;AACA,0CAA0C,6CAA6C;AACvF;AACA;AACA,0CAA0C,6CAA6C;AACvF;AACA,uBAAuB,uBAAuB;AAC9C;AACA;AACA,yCAAyC,uCAAuC;AAChF;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,0BAA0B,EAAE;AACnG;AACA;AACA;AACA,mCAAmC,mCAAmC,EAAE;AACxE;AACA;AACA;AACA;AACA,mCAAmC,sBAAsB,EAAE;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,yBAAyB,EAAE;AAC7E;AACA;AACA;AACA,qCAAqC,4CAA4C,EAAE;AACnF,2CAA2C,kCAAkC,EAAE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,UAAU,EAAE;AACZ;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,UAAU,EAAE;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,gBAAgB;AACvE;AACA;AACA;AACA;AACA;AACA,+CAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,4CAA4C,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,EAAE;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;ACpZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACVA;AACA;AACA;AACA;AACA","file":"1.chunk.js","sourcesContent":["module.exports = \"<div class=\\\"send-que-component\\\">\\n <div class=\\\"send-wrap\\\" [@sendQueStatus]=\\\"status\\\">\\n <div class=\\\"Modal-inner\\\">\\n <h3>我要提问</h3>\\n <div class=\\\"content\\\">\\n <input [(ngModel)]=\\\"title\\\" maxlength=\\\"30\\\" type=\\\"text\\\" placeholder=\\\"我的问题...\\\">\\n <p class=\\\"tip\\\">提示:最多150个字符</p>\\n <textarea [(ngModel)]=\\\"text\\\" maxlength=\\\"150\\\" placeholder=\\\"说点什么......\\\"></textarea>\\n <div (click)=\\\"send();\\\" class=\\\"send\\\">发布</div>\\n </div>\\n <button (click)=\\\"colseShare();\\\" class=\\\"Modal-closeButton\\\" aria-label=\\\"关闭\\\" type=\\\"button\\\"><svg viewBox=\\\"0 0 14 14\\\" class=\\\"Icon Modal-closeIcon Icon--remove\\\" width=\\\"16\\\" height=\\\"16\\\" aria-hidden=\\\"true\\\" style=\\\"height: 16px; width: 16px;\\\"><title></title><g><path d=\\\"M8.486 7l5.208-5.207c.408-.408.405-1.072-.006-1.483-.413-.413-1.074-.413-1.482-.005L7 5.515 1.793.304C1.385-.103.72-.1.31.31-.103.724-.103 1.385.305 1.793L5.515 7l-5.21 5.207c-.407.408-.404 1.072.007 1.483.413.413 1.074.413 1.482.005L7 8.485l5.207 5.21c.408.407 1.072.404 1.483-.007.413-.413.413-1.074.005-1.482L8.485 7z\\\"></path></g></svg></button>\\n </div>\\n </div>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.html\n// module id = ../../../../../src/app/components/home/send-que/send-que.component.html\n// module chunks = 1","exports = module.exports = require(\"../../../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".send-que-component .send-wrap {\\n position: fixed;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n background: rgba(0, 0, 0, 0.47);\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-pack: center;\\n justify-content: center;\\n -ms-flex-direction: column;\\n flex-direction: column;\\n -webkit-box-pack: center;\\n -webkit-box-orient: vertical;\\n -webkit-box-direction: normal;\\n z-index: -2; }\\n .send-que-component .send-wrap .Modal-inner {\\n width: 595px;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n position: relative;\\n background: #fff;\\n margin: 0 auto;\\n -ms-flex-pack: center;\\n justify-content: center;\\n -ms-flex-direction: column;\\n flex-direction: column;\\n -webkit-box-pack: center;\\n -webkit-box-orient: vertical;\\n box-shadow: 0 5px 20px 0 rgba(0, 34, 77, 0.5); }\\n .send-que-component .send-wrap .Modal-inner h3 {\\n text-align: center; }\\n .send-que-component .send-wrap .Modal-inner .content {\\n padding: 24px;\\n background: #fff; }\\n .send-que-component .send-wrap .Modal-inner .content .tip {\\n font-size: 14px;\\n color: #b3b3b3; }\\n .send-que-component .send-wrap .Modal-inner .content .imgs {\\n width: 100%;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n margin-bottom: 30px; }\\n .send-que-component .send-wrap .Modal-inner .content .imgs .file {\\n position: relative;\\n cursor: pointer;\\n display: inline-block;\\n overflow: hidden;\\n text-decoration: none;\\n text-indent: 0;\\n line-height: 20px;\\n background-size: cover !important; }\\n .send-que-component .send-wrap .Modal-inner .content .imgs .file input {\\n position: absolute;\\n font-size: 100px;\\n right: 0;\\n top: 0;\\n opacity: 0; }\\n .send-que-component .send-wrap .Modal-inner .content .imgs .file:hover {\\n text-decoration: none; }\\n .send-que-component .send-wrap .Modal-inner .content .imgs .img-w {\\n width: 80px;\\n height: 80px;\\n margin-right: 6px;\\n background-size: cover !important; }\\n .send-que-component .send-wrap .Modal-inner .content input {\\n outline: none;\\n padding: 2%;\\n margin-bottom: 12px;\\n border: 1px solid #e7eaf1;\\n width: 96%;\\n font-size: 16px;\\n line-height: 25px;\\n height: 25px; }\\n .send-que-component .send-wrap .Modal-inner .content textarea {\\n outline: none;\\n resize: none;\\n padding: 2%;\\n margin-bottom: 12px;\\n border: 1px solid #e7eaf1;\\n width: 96%;\\n font-size: 16px;\\n line-height: 28px;\\n height: 120px; }\\n .send-que-component .send-wrap .Modal-inner .content .send {\\n transition: all .5s;\\n width: 198px;\\n height: 32px;\\n cursor: pointer;\\n background: #0d79d1;\\n color: #fff;\\n border-radius: 2px;\\n text-align: center;\\n margin: 0 auto;\\n line-height: 32px;\\n font-size: 14px; }\\n .send-que-component .send-wrap .Modal-inner .content .send:hover {\\n background: #5da9e6; }\\n .send-que-component .send-wrap .Modal-inner .Modal-closeButton {\\n transition: all .5s;\\n outline: none;\\n position: absolute;\\n top: 8px;\\n right: -60px;\\n padding: 12px;\\n height: auto;\\n line-height: inherit;\\n background: transparent;\\n border: none;\\n border-radius: 0;\\n cursor: pointer; }\\n .send-que-component .send-wrap .Modal-inner .Modal-closeButton svg {\\n fill: #fff; }\\n .send-que-component .send-wrap .Modal-inner .Modal-closeButton:hover {\\n -webkit-transform: rotateZ(180deg);\\n transform: rotateZ(180deg); }\\n\", \"\"]);\n\n// exports\n\n\n/*** EXPORTS FROM exports-loader ***/\nmodule.exports = module.exports.toString();\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.scss\n// module id = ../../../../../src/app/components/home/send-que/send-que.component.scss\n// module chunks = 1","import { Component, OnInit, trigger, state, style, transition, animate } from '@angular/core';\nimport { Headers, Http } from '@angular/http';\nimport { UserService } from '../../../service/user.service';\n\n@Component({\n selector: 'app-send-que',\n templateUrl: './send-que.component.html',\n styleUrls: ['./send-que.component.scss'],\n animations: [\n trigger('sendQueStatus', [\n state('on', style({\n opacity: '0',\n zIndex: -2\n })),\n state('off', style({\n opacity: '1',\n zIndex: 999\n })),\n transition('off => on', animate('250ms ease-in')),\n transition('on => off', animate('250ms ease-out'))\n ])\n ]\n})\nexport class SendQueComponent implements OnInit {\n\n status: string = 'on';\n isLoading = false;\n text = '';\n title = '';\n\n constructor(public http: Http, public userService: UserService) {\n this.userService.show_send_que.subscribe(() => {\n this.status = (this.status === \"on\") ? 'off' : 'on';\n });\n }\n\n colseShare() {\n this.isLoading = false;\n this.text = '';\n this.title = '';\n this.status = 'on';\n }\n\n send() {\n\n if(this.isLoading){\n alert(\"正在发布,请稍后...\");\n return true;\n }\n\n if (this.text.length > 0 && this.title.length > 0) {\n this.isLoading = true;\n let url = \"https://www.devonhello.com/chihu2/send_question\";\n\n var headers = new Headers();\n headers.append('Content-Type', 'application/x-www-form-urlencoded');\n\n this.http.post(url, \"uid=\" + this.userService._user._id + \"&name=\" + this.userService._user.nickname + \"&userimg=\" + this.userService._user.userimg + \"&title=\" + this.title + \"&text=\" + this.text, {\n headers: headers\n })\n .subscribe((res) => {\n this.isLoading = false;\n if (res.json()['result']['ok'] == '1') {\n this.text = '';\n this.title = '';\n } else {\n alert(\"系统错误\");\n }\n this.colseShare();\n });\n } else {\n alert(\"操作有误!\");\n }\n }\n\n ngOnInit() {\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.component.ts","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SendQueComponent } from './send-que.component';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n exports:[SendQueComponent],\n declarations: [SendQueComponent]\n})\nexport class SendQueModule { }\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-que/send-que.module.ts","module.exports = \"<div class=\\\"send-share-component\\\">\\n <div class=\\\"send-wrap\\\" [@sendShareStatus]=\\\"status\\\">\\n <div class=\\\"Modal-inner\\\">\\n <h3>分享你的心情</h3>\\n\\n <div class=\\\"content\\\">\\n <textarea [(ngModel)]=\\\"text\\\" placeholder=\\\"说点什么......\\\"></textarea>\\n <p class=\\\"tip\\\">提示:至少添加一张图片,最多添加四张图片</p>\\n <div class=\\\"imgs\\\">\\n <div *ngFor=\\\"let item of itemArr\\\" class=\\\"img-w\\\" [style.background]=\\\"'url('+ item +')'\\\"></div>\\n <div *ngIf=\\\"itemArr.length < 4\\\" class=\\\"img-w file\\\" [style.background]=\\\"'url(assets/img/addimg.png)'\\\"><input (click)=\\\"sele();\\\" type=\\\"file\\\" accept=\\\"image/png,image/jpeg\\\" ng2FileSelect [uploader]=\\\"uploader\\\" /></div>\\n </div>\\n <div (click)=\\\"send();\\\" class=\\\"send\\\">发布</div>\\n </div>\\n\\n <button (click)=\\\"colseShare();\\\" class=\\\"Modal-closeButton\\\" aria-label=\\\"关闭\\\" type=\\\"button\\\"><svg viewBox=\\\"0 0 14 14\\\" class=\\\"Icon Modal-closeIcon Icon--remove\\\" width=\\\"16\\\" height=\\\"16\\\" aria-hidden=\\\"true\\\" style=\\\"height: 16px; width: 16px;\\\"><title></title><g><path d=\\\"M8.486 7l5.208-5.207c.408-.408.405-1.072-.006-1.483-.413-.413-1.074-.413-1.482-.005L7 5.515 1.793.304C1.385-.103.72-.1.31.31-.103.724-.103 1.385.305 1.793L5.515 7l-5.21 5.207c-.407.408-.404 1.072.007 1.483.413.413 1.074.413 1.482.005L7 8.485l5.207 5.21c.408.407 1.072.404 1.483-.007.413-.413.413-1.074.005-1.482L8.485 7z\\\"></path></g></svg></button>\\n </div>\\n </div>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.html\n// module id = ../../../../../src/app/components/home/send-share/send-share.component.html\n// module chunks = 1","exports = module.exports = require(\"../../../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".send-share-component .send-wrap {\\n position: fixed;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n background: rgba(0, 0, 0, 0.47);\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-pack: center;\\n justify-content: center;\\n -ms-flex-direction: column;\\n flex-direction: column;\\n -webkit-box-pack: center;\\n -webkit-box-orient: vertical;\\n -webkit-box-direction: normal;\\n z-index: -2; }\\n .send-share-component .send-wrap .Modal-inner {\\n width: 595px;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n position: relative;\\n background: #fff;\\n margin: 0 auto;\\n -ms-flex-pack: center;\\n justify-content: center;\\n -ms-flex-direction: column;\\n flex-direction: column;\\n -webkit-box-pack: center;\\n -webkit-box-orient: vertical;\\n box-shadow: 0 5px 20px 0 rgba(0, 34, 77, 0.5); }\\n .send-share-component .send-wrap .Modal-inner h3 {\\n text-align: center; }\\n .send-share-component .send-wrap .Modal-inner .content {\\n padding: 24px;\\n background: #fff; }\\n .send-share-component .send-wrap .Modal-inner .content .tip {\\n font-size: 14px;\\n color: #b3b3b3; }\\n .send-share-component .send-wrap .Modal-inner .content .imgs {\\n width: 100%;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n margin-bottom: 30px; }\\n .send-share-component .send-wrap .Modal-inner .content .imgs .file {\\n position: relative;\\n cursor: pointer;\\n display: inline-block;\\n overflow: hidden;\\n text-decoration: none;\\n text-indent: 0;\\n line-height: 20px;\\n background-size: cover !important; }\\n .send-share-component .send-wrap .Modal-inner .content .imgs .file input {\\n position: absolute;\\n font-size: 100px;\\n right: 0;\\n top: 0;\\n opacity: 0; }\\n .send-share-component .send-wrap .Modal-inner .content .imgs .file:hover {\\n text-decoration: none; }\\n .send-share-component .send-wrap .Modal-inner .content .imgs .img-w {\\n width: 80px;\\n height: 80px;\\n margin-right: 6px;\\n background-size: cover !important; }\\n .send-share-component .send-wrap .Modal-inner .content textarea {\\n outline: none;\\n resize: none;\\n padding: 2%;\\n margin-bottom: 12px;\\n border: 1px solid #e7eaf1;\\n width: 96%;\\n font-size: 16px;\\n line-height: 28px;\\n height: 120px; }\\n .send-share-component .send-wrap .Modal-inner .content .send {\\n transition: all .5s;\\n width: 198px;\\n height: 32px;\\n cursor: pointer;\\n background: #0d79d1;\\n color: #fff;\\n border-radius: 2px;\\n text-align: center;\\n margin: 0 auto;\\n line-height: 32px;\\n font-size: 14px; }\\n .send-share-component .send-wrap .Modal-inner .content .send:hover {\\n background: #5da9e6; }\\n .send-share-component .send-wrap .Modal-inner .Modal-closeButton {\\n transition: all .5s;\\n outline: none;\\n position: absolute;\\n top: 8px;\\n right: -60px;\\n padding: 12px;\\n height: auto;\\n line-height: inherit;\\n background: transparent;\\n border: none;\\n border-radius: 0;\\n cursor: pointer; }\\n .send-share-component .send-wrap .Modal-inner .Modal-closeButton svg {\\n fill: #fff; }\\n .send-share-component .send-wrap .Modal-inner .Modal-closeButton:hover {\\n -webkit-transform: rotateZ(180deg);\\n transform: rotateZ(180deg); }\\n\", \"\"]);\n\n// exports\n\n\n/*** EXPORTS FROM exports-loader ***/\nmodule.exports = module.exports.toString();\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.scss\n// module id = ../../../../../src/app/components/home/send-share/send-share.component.scss\n// module chunks = 1","import { Component, OnInit, trigger, state, style, transition, animate } from '@angular/core';\nimport { Headers, Http } from '@angular/http';\nimport { UserService } from '../../../service/user.service';\nimport { FileUploader } from 'ng2-file-upload/ng2-file-upload';\n\n@Component({\n selector: 'app-send-share',\n templateUrl: './send-share.component.html',\n styleUrls: ['./send-share.component.scss'],\n animations: [\n trigger('sendShareStatus', [\n state('on', style({\n opacity: '0',\n zIndex: -2\n })),\n state('off', style({\n opacity: '1',\n zIndex: 999\n })),\n transition('off => on', animate('250ms ease-in')),\n transition('on => off', animate('250ms ease-out'))\n ])\n ]\n})\nexport class SendShareComponent implements OnInit {\n\n status: string = 'on';\n text = '';\n isLoading = false;\n ishide = true;\n\n URL = 'https://www.devonhello.com/chihu2/upload';\n public uploader: FileUploader = new FileUploader({ url: this.URL });\n public hasBaseDropZoneOver: boolean = false;\n public hasAnotherDropZoneOver: boolean = false;\n uploaderArr = [];\n itemArr = [];\n\n constructor(public http: Http, public userService: UserService) {\n\n this.userService.show_send_share.subscribe(() => {\n this.status = (this.status === \"on\") ? 'off' : 'on';\n });\n this.uploader.onAfterAddingFile = (fileItems: any) => {\n\n this.uploader.queue[0].upload(); // 开始上传\n this.isLoading = true;\n this.uploader.queue[0].onSuccess = (response, status, headers) => {\n // 上传文件成功 \n if (status == 200) {\n // 上传文件后获取服务器返回的数据\n var iurlObj = JSON.parse(response);\n console.log(iurlObj);\n this.uploaderArr.push(iurlObj);\n this.itemArr.push(iurlObj['src']);\n this.isLoading = false;\n } else {\n // 上传文件后获取服务器返回的数据错误\n this.isLoading = false;\n alert('上传失败!');\n }\n };\n }\n }\n\n sele() {\n\n if (this.isLoading) {\n alert(\"请稍后在操作\");\n return false;\n }\n }\n\n colseShare() {\n this.isLoading = false;\n this.uploader.clearQueue();\n this.uploader.cancelAll();\n this.text = '';\n this.uploaderArr = [];\n this.itemArr = [];\n this.status = 'on';\n }\n\n send() {\n if (!this.isLoading && this.text.length > 0 && this.itemArr.length > 0) {\n this.isLoading = true;\n let url = \"https://www.devonhello.com/chihu2/send_share\";\n\n var headers = new Headers();\n headers.append('Content-Type', 'application/x-www-form-urlencoded');\n\n this.http.post(url, \"uid=\" + this.userService._user._id + \"&name=\" + this.userService._user.nickname + \"&userimg=\" + this.userService._user.userimg + \"&img=\" + JSON.stringify(this.uploaderArr) + \"&text=\" + this.text, {\n headers: headers\n })\n .subscribe((res) => {\n this.isLoading = false;\n if (res.json()['result']['ok'] == '1') {\n \n this.uploader.clearQueue();\n this.uploaderArr = [];\n this.itemArr = [];\n this.text = '';\n }else{\n alert(\"系统错误\");\n }\n this.colseShare();\n });\n } else {\n alert(\"操作有误!\");\n }\n\n }\n\n ngOnInit() {\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.component.ts","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SendShareComponent } from './send-share.component';\nimport { FileUploadModule } from 'ng2-file-upload';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n imports: [\n CommonModule,\n FileUploadModule,\n FormsModule\n ],\n exports:[SendShareComponent],\n declarations: [SendShareComponent]\n})\nexport class SendShareModule { }\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/components/home/send-share/send-share.module.ts","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { HomeComponent } from './home.component';\n\nconst routes: Routes = [\n {\n path:'',\n component: HomeComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class HomeRoutingModule { }\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home-routing.module.ts","module.exports = \"<div #home class=\\\"index-home-page\\\">\\n <div class=\\\"TopstoryHeader\\\">\\n <div class=\\\"TopstoryHeader-nav\\\">\\n <a (click)=\\\"sendShare();\\\">\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 17 18\\\" xmlns=\\\"https://www.w3.org/2000/svg\\\" class=\\\"Icon Icon--paper\\\" aria-hidden=\\\"true\\\" style=\\\"height: 16px; width: 16px;\\\"><title></title><g><g fill=\\\"#8590A6\\\" fill-rule=\\\"evenodd\\\"> <path d=\\\"M.833 4.35c0-2.21 1.79-4 4.01-4h7.315c2.214 0 4.01 1.79 4.01 4v8.743c0 2.21-1.79 4-4.01 4H4.842c-2.214 0-4.01-1.792-4.01-4V4.35zm1.643-.32v9.383c0 1.106.897 2.006 2.003 2.006h8.04c1.118 0 2.004-.9 2.004-2.007V4.03c0-1.107-.897-2.007-2.003-2.007H4.48c-1.118 0-2.004.898-2.004 2.006z\\\"></path><path d=\\\"M4.667 4.814h7.666v1.674H4.667V4.814zm0 2.79h7.666V9.28H4.667V7.604zm0 2.79h4.928v1.676H4.667v-1.675z\\\"></path> </g></g></svg> 分享\\n </a>\\n <a (click)=\\\"sendQue();\\\">\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 17 17\\\" xmlns=\\\"https://www.w3.org/2000/svg\\\" class=\\\"Icon Icon--question\\\" aria-hidden=\\\"true\\\" style=\\\"height: 16px; width: 16px;\\\"><title></title><g><g transform=\\\"translate(-3 -3)\\\" fill=\\\"#8590A6\\\" fill-rule=\\\"evenodd\\\"> <path d=\\\"M3.833 6.356c0-1.66 1.334-3.007 2.993-3.007h9.348c1.653 0 2.993 1.338 2.993 3.006v8.498c0 1.66-1.266 3.467-2.812 4.03l-1.09.396c-2.08.757-5.447.76-7.53 0l-1.09-.396c-1.553-.565-2.812-2.363-2.812-4.03V6.356zm1.643.67v7.492c0 1.1.84 2.314 1.873 2.697l2.277.844c1.035.383 2.712.383 3.746 0l2.278-.845c1.036-.384 1.874-1.59 1.874-2.697V7.026c0-1.1-.897-2.003-2.003-2.003H7.48c-1.118 0-2.004.897-2.004 2.003z\\\"></path> <path d=\\\"M13.012 11.46l-.422.29c-.232.177-.433.53-.433.53s-.08.134-.11.398v.16h-1.63v-.24c.02-.555.11-.86.343-1.13.364-.422 1.168-.935 1.202-.956.114-.086.212-.184.284-.288.17-.23.244-.412.244-.59 0-.25-.074-.478-.22-.682-.143-.197-.41-.296-.798-.296-.385 0-.648.12-.806.368-.162.254-.243.523-.243.796l-.005.23-1.656-.003.003-.23c.043-1.007.406-1.732 1.078-2.155.424-.27 1.113-.396 1.657-.406.873.01 1.39.193 1.923.575.54.387.815.965.815 1.72 0 .422-.135.82-.4 1.18-.14.193-.442.434-.826.73z\\\"></path> <ellipse cx=\\\"11.226\\\" cy=\\\"14.791\\\" rx=\\\"1.095\\\" ry=\\\"1.116\\\"></ellipse> </g></g></svg> 提问\\n </a>\\n <a [routerLink]=\\\"['/send-work']\\\">\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 18 18\\\" xmlns=\\\"https://www.w3.org/2000/svg\\\" class=\\\"Icon Icon--write\\\" aria-hidden=\\\"true\\\" style=\\\"height: 16px; width: 16px;\\\"><title></title><g><g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"> <path d=\\\"M9.595 2.023H4.842c-2.22 0-4.01 1.793-4.01 4.005v7.62c0 2.21 1.796 4.003 4.01 4.003h7.316c2.22 0 4.01-1.792 4.01-4.003v-7.11.51L14.523 8.72v4.253c0 1.66-1.336 3.004-3.01 3.004h-6.03c-1.66 0-3.008-1.338-3.008-3.004V6.7c0-1.657 1.336-3.002 3.01-3.002h2.467L9.595 2.03v-.007z\\\" fill=\\\"#8590A6\\\"></path> <path d=\\\"M6.372 11.08c-.185-.915.2-2.238.85-2.888l6.616-6.616c.565-.565 1.472-.567 2.038 0 .56.56.56 1.477 0 2.038L9.258 10.23c-.652.65-1.975 1.034-2.888.85z\\\" stroke=\\\"#8590A6\\\" stroke-width=\\\"1.5\\\"></path> <path fill=\\\"#8590A6\\\" d=\\\"M13.04 2.088l2.324 2.324-.987.986-2.323-2.324z\\\"></path> </g></g></svg> 写作品\\n </a>\\n </div>\\n </div>\\n\\n <app-card [datas]=\\\"datas\\\"></app-card>\\n\\n <!--发布框 -->\\n <app-send-share></app-send-share>\\n <!--发布框 -->\\n <app-send-que></app-send-que>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.html\n// module id = ../../../../../src/app/home/index/home/home.component.html\n// module chunks = 1","exports = module.exports = require(\"../../../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".index-home-page .TopstoryHeader {\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n line-height: 58px;\\n padding: 0 20px;\\n background: #fff;\\n margin-bottom: 10px;\\n border: 1px solid #e7eaf1;\\n box-shadow: 0 1px 3px rgba(0, 37, 55, 0.05);\\n border-radius: 2px;\\n box-sizing: border-box; }\\n .index-home-page .TopstoryHeader a {\\n text-decoration: none;\\n margin-right: 40px;\\n font-size: 16px;\\n display: inline-block; }\\n .index-home-page .TopstoryHeader .TopstoryHeader-nav a {\\n cursor: pointer;\\n outline: none; }\\n .index-home-page .TopstoryHeader .TopstoryHeader-nav svg {\\n width: 16px;\\n height: 16px;\\n margin-right: 8px;\\n vertical-align: text-bottom; }\\n\", \"\"]);\n\n// exports\n\n\n/*** EXPORTS FROM exports-loader ***/\nmodule.exports = module.exports.toString();\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.scss\n// module id = ../../../../../src/app/home/index/home/home.component.scss\n// module chunks = 1","import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Headers, Http } from '@angular/http';\nimport { UserService } from '../../../service/user.service';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss']\n})\nexport class HomeComponent implements OnInit, OnDestroy {\n\n datas = [];\n iswork = false;\n eventSub;\n\n constructor(public http: Http, public userService: UserService) {\n this.getdata();\n this.eventSub = this.userService.home_get_data.subscribe(() => {\n this.getdata();\n });\n \n }\n\n ngOnDestroy() {\n this.eventSub.unsubscribe();\n }\n\n\n ngOnInit() {\n }\n\n //获取数据\n getdata() {\n if (this.iswork) {\n return;\n }\n this.iswork = true;\n let url = \"https://www.devonhello.com/chihu2/home\";\n\n var headers = new Headers();\n headers.append('Content-Type', 'application/x-www-form-urlencoded');\n\n this.http.post(url, \"len=\" + this.datas.length, {\n headers: headers\n })\n .subscribe((res) => {\n this.iswork = false;\n this.datas = this.datas.concat(res.json());\n \n });\n }\n\n sendShare(){\n this.userService.show_send_share.emit();\n }\n\n sendQue(){\n this.userService.show_send_que.emit();\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.component.ts","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { HomeComponent } from './home.component';\nimport { HomeRoutingModule } from './home-routing.module';\nimport { CardModule } from '../../../components/home/card/card.module';\nimport { SendShareModule } from '../../../components/home/send-share/send-share.module';\nimport { SendQueModule } from '../../../components/home/send-que/send-que.module';\nimport { FileUploadModule } from 'ng2-file-upload';\n\n@NgModule({\n imports: [\n CommonModule,\n HomeRoutingModule,\n CardModule,\n FileUploadModule,\n SendShareModule,\n SendQueModule\n ],\n declarations: [HomeComponent]\n})\nexport class HomeModule { }\n\n\n\n// WEBPACK FOOTER //\n// /Users/apple/Desktop/github/chihu-web-angular/src/app/home/index/home/home.module.ts","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require(\"@angular/core\");\nvar file_uploader_class_1 = require(\"./file-uploader.class\");\nvar FileDropDirective = (function () {\n function FileDropDirective(element) {\n this.fileOver = new core_1.EventEmitter();\n this.onFileDrop = new core_1.EventEmitter();\n this.element = element;\n }\n FileDropDirective.prototype.getOptions = function () {\n return this.uploader.options;\n };\n FileDropDirective.prototype.getFilters = function () {\n return {};\n };\n FileDropDirective.prototype.onDrop = function (event) {\n var transfer = this._getTransfer(event);\n if (!transfer) {\n return;\n }\n var options = this.getOptions();\n var filters = this.getFilters();\n this._preventAndStop(event);\n this.uploader.addToQueue(transfer.files, options, filters);\n this.fileOver.emit(false);\n this.onFileDrop.emit(transfer.files);\n };\n FileDropDirective.prototype.onDragOver = function (event) {\n var transfer = this._getTransfer(event);\n if (!this._haveFiles(transfer.types)) {\n return;\n }\n transfer.dropEffect = 'copy';\n this._preventAndStop(event);\n this.fileOver.emit(true);\n };\n FileDropDirective.prototype.onDragLeave = function (event) {\n if (this.element) {\n if (event.currentTarget === this.element[0]) {\n return;\n }\n }\n this._preventAndStop(event);\n this.fileOver.emit(false);\n };\n FileDropDirective.prototype._getTransfer = function (event) {\n return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; // jQuery fix;\n };\n FileDropDirective.prototype._preventAndStop = function (event) {\n event.preventDefault();\n event.stopPropagation();\n };\n FileDropDirective.prototype._haveFiles = function (types) {\n if (!types) {\n return false;\n }\n if (types.indexOf) {\n return types.indexOf('Files') !== -1;\n }\n else if (types.contains) {\n return types.contains('Files');\n }\n else {\n return false;\n }\n };\n return FileDropDirective;\n}());\n__decorate([\n core_1.Input(),\n __metadata(\"design:type\", file_uploader_class_1.FileUploader)\n], FileDropDirective.prototype, \"uploader\", void 0);\n__decorate([\n core_1.Output(),\n __metadata(\"design:type\", core_1.EventEmitter)\n], FileDropDirective.prototype, \"fileOver\", void 0);\n__decorate([\n core_1.Output(),\n __metadata(\"design:type\", core_1.EventEmitter)\n], FileDropDirective.prototype, \"onFileDrop\", void 0);\n__decorate([\n core_1.HostListener('drop', ['$event']),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", void 0)\n], FileDropDirective.prototype, \"onDrop\", null);\n__decorate([\n core_1.HostListener('dragover', ['$event']),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", void 0)\n], FileDropDirective.prototype, \"onDragOver\", null);\n__decorate([\n core_1.HostListener('dragleave', ['$event']),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Object)\n], FileDropDirective.prototype, \"onDragLeave\", null);\nFileDropDirective = __decorate([\n core_1.Directive({ selector: '[ng2FileDrop]' }),\n __metadata(\"design:paramtypes\", [core_1.ElementRef])\n], FileDropDirective);\nexports.FileDropDirective = FileDropDirective;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-drop.directive.js\n// module id = ../../../../ng2-file-upload/file-upload/file-drop.directive.js\n// module chunks = 1","\"use strict\";\nvar file_like_object_class_1 = require(\"./file-like-object.class\");\nvar FileItem = (function () {\n function FileItem(uploader, some, options) {\n this.url = '/';\n this.headers = [];\n this.withCredentials = true;\n this.formData = [];\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = false;\n this.progress = 0;\n this.index = void 0;\n this.uploader = uploader;\n this.some = some;\n this.options = options;\n this.file = new file_like_object_class_1.FileLikeObject(some);\n this._file = some;\n if (uploader.options) {\n this.method = uploader.options.method || 'POST';\n this.alias = uploader.options.itemAlias || 'file';\n }\n this.url = uploader.options.url;\n }\n FileItem.prototype.upload = function () {\n try {\n this.uploader.uploadItem(this);\n }\n catch (e) {\n this.uploader._onCompleteItem(this, '', 0, {});\n this.uploader._onErrorItem(this, '', 0, {});\n }\n };\n FileItem.prototype.cancel = function () {\n this.uploader.cancelItem(this);\n };\n FileItem.prototype.remove = function () {\n this.uploader.removeFromQueue(this);\n };\n FileItem.prototype.onBeforeUpload = function () {\n return void 0;\n };\n FileItem.prototype.onBuildForm = function (form) {\n return { form: form };\n };\n FileItem.prototype.onProgress = function (progress) {\n return { progress: progress };\n };\n FileItem.prototype.onSuccess = function (response, status, headers) {\n return { response: response, status: status, headers: headers };\n };\n FileItem.prototype.onError = function (response, status, headers) {\n return { response: response, status: status, headers: headers };\n };\n FileItem.prototype.onCancel = function (response, status, headers) {\n return { response: response, status: status, headers: headers };\n };\n FileItem.prototype.onComplete = function (response, status, headers) {\n return { response: response, status: status, headers: headers };\n };\n FileItem.prototype._onBeforeUpload = function () {\n this.isReady = true;\n this.isUploading = true;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = false;\n this.progress = 0;\n this.onBeforeUpload();\n };\n FileItem.prototype._onBuildForm = function (form) {\n this.onBuildForm(form);\n };\n FileItem.prototype._onProgress = function (progress) {\n this.progress = progress;\n this.onProgress(progress);\n };\n FileItem.prototype._onSuccess = function (response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = true;\n this.isCancel = false;\n this.isError = false;\n this.progress = 100;\n this.index = void 0;\n this.onSuccess(response, status, headers);\n };\n FileItem.prototype._onError = function (response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = true;\n this.progress = 0;\n this.index = void 0;\n this.onError(response, status, headers);\n };\n FileItem.prototype._onCancel = function (response, status, headers) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = true;\n this.isError = false;\n this.progress = 0;\n this.index = void 0;\n this.onCancel(response, status, headers);\n };\n FileItem.prototype._onComplete = function (response, status, headers) {\n this.onComplete(response, status, headers);\n if (this.uploader.options.removeAfterUpload) {\n this.remove();\n }\n };\n FileItem.prototype._prepareToUploading = function () {\n this.index = this.index || ++this.uploader._nextIndex;\n this.isReady = true;\n };\n return FileItem;\n}());\nexports.FileItem = FileItem;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-item.class.js\n// module id = ../../../../ng2-file-upload/file-upload/file-item.class.js\n// module chunks = 1","\"use strict\";\nfunction isElement(node) {\n return !!(node && (node.nodeName || node.prop && node.attr && node.find));\n}\nvar FileLikeObject = (function () {\n function FileLikeObject(fileOrInput) {\n var isInput = isElement(fileOrInput);\n var fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;\n var postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';\n var method = '_createFrom' + postfix;\n this[method](fakePathOrObject);\n }\n FileLikeObject.prototype._createFromFakePath = function (path) {\n this.lastModifiedDate = void 0;\n this.size = void 0;\n this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();\n this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\\\') + 2);\n };\n FileLikeObject.prototype._createFromObject = function (object) {\n // this.lastModifiedDate = copy(object.lastModifiedDate);\n this.size = object.size;\n this.type = object.type;\n this.name = object.name;\n };\n return FileLikeObject;\n}());\nexports.FileLikeObject = FileLikeObject;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-like-object.class.js\n// module id = ../../../../ng2-file-upload/file-upload/file-like-object.class.js\n// module chunks = 1","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar core_1 = require(\"@angular/core\");\nvar file_uploader_class_1 = require(\"./file-uploader.class\");\n// todo: filters\nvar FileSelectDirective = (function () {\n function FileSelectDirective(element) {\n this.element = element;\n }\n FileSelectDirective.prototype.getOptions = function () {\n return this.uploader.options;\n };\n FileSelectDirective.prototype.getFilters = function () {\n return void 0;\n };\n FileSelectDirective.prototype.isEmptyAfterSelection = function () {\n return !!this.element.nativeElement.attributes.multiple;\n };\n FileSelectDirective.prototype.onChange = function () {\n // let files = this.uploader.isHTML5 ? this.element.nativeElement[0].files : this.element.nativeElement[0];\n var files = this.element.nativeElement.files;\n var options = this.getOptions();\n var filters = this.getFilters();\n // if(!this.uploader.isHTML5) this.destroy();\n this.uploader.addToQueue(files, options, filters);\n if (this.isEmptyAfterSelection()) {\n // todo\n this.element.nativeElement.value = '';\n }\n };\n return FileSelectDirective;\n}());\n__decorate([\n core_1.Input(),\n __metadata(\"design:type\", file_uploader_class_1.FileUploader)\n], FileSelectDirective.prototype, \"uploader\", void 0);\n__decorate([\n core_1.HostListener('change'),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", []),\n __metadata(\"design:returntype\", Object)\n], FileSelectDirective.prototype, \"onChange\", null);\nFileSelectDirective = __decorate([\n core_1.Directive({ selector: '[ng2FileSelect]' }),\n __metadata(\"design:paramtypes\", [core_1.ElementRef])\n], FileSelectDirective);\nexports.FileSelectDirective = FileSelectDirective;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-select.directive.js\n// module id = ../../../../ng2-file-upload/file-upload/file-select.directive.js\n// module chunks = 1","\"use strict\";\nvar FileType = (function () {\n function FileType() {\n }\n FileType.getMimeClass = function (file) {\n var mimeClass = 'application';\n if (this.mime_psd.indexOf(file.type) !== -1) {\n mimeClass = 'image';\n }\n else if (file.type.match('image.*')) {\n mimeClass = 'image';\n }\n else if (file.type.match('video.*')) {\n mimeClass = 'video';\n }\n else if (file.type.match('audio.*')) {\n mimeClass = 'audio';\n }\n else if (file.type === 'application/pdf') {\n mimeClass = 'pdf';\n }\n else if (this.mime_compress.indexOf(file.type) !== -1) {\n mimeClass = 'compress';\n }\n else if (this.mime_doc.indexOf(file.type) !== -1) {\n mimeClass = 'doc';\n }\n else if (this.mime_xsl.indexOf(file.type) !== -1) {\n mimeClass = 'xls';\n }\n else if (this.mime_ppt.indexOf(file.type) !== -1) {\n mimeClass = 'ppt';\n }\n if (mimeClass === 'application') {\n mimeClass = this.fileTypeDetection(file.name);\n }\n return mimeClass;\n };\n FileType.fileTypeDetection = function (inputFilename) {\n var types = {\n 'jpg': 'image',\n 'jpeg': 'image',\n 'tif': 'image',\n 'psd': 'image',\n 'bmp': 'image',\n 'png': 'image',\n 'nef': 'image',\n 'tiff': 'image',\n 'cr2': 'image',\n 'dwg': 'image',\n 'cdr': 'image',\n 'ai': 'image',\n 'indd': 'image',\n 'pin': 'image',\n 'cdp': 'image',\n 'skp': 'image',\n 'stp': 'image',\n '3dm': 'image',\n 'mp3': 'audio',\n 'wav': 'audio',\n 'wma': 'audio',\n 'mod': 'audio',\n 'm4a': 'audio',\n 'compress': 'compress',\n 'rar': 'compress',\n '7z': 'compress',\n 'lz': 'compress',\n 'z01': 'compress',\n 'pdf': 'pdf',\n 'xls': 'xls',\n 'xlsx': 'xls',\n 'ods': 'xls',\n 'mp4': 'video',\n 'avi': 'video',\n 'wmv': 'video',\n 'mpg': 'video',\n 'mts': 'video',\n 'flv': 'video',\n '3gp': 'video',\n 'vob': 'video',\n 'm4v': 'video',\n 'mpeg': 'video',\n 'm2ts': 'video',\n 'mov': 'video',\n 'doc': 'doc',\n 'docx': 'doc',\n 'eps': 'doc',\n 'txt': 'doc',\n 'odt': 'doc',\n 'rtf': 'doc',\n 'ppt': 'ppt',\n 'pptx': 'ppt',\n 'pps': 'ppt',\n 'ppsx': 'ppt',\n 'odp': 'ppt'\n };\n var chunks = inputFilename.split('.');\n if (chunks.length < 2) {\n return 'application';\n }\n var extension = chunks[chunks.length - 1].toLowerCase();\n if (types[extension] === undefined) {\n return 'application';\n }\n else {\n return types[extension];\n }\n };\n return FileType;\n}());\n/* MS office */\nFileType.mime_doc = [\n 'application/msword',\n 'application/msword',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',\n 'application/vnd.ms-word.document.macroEnabled.12',\n 'application/vnd.ms-word.template.macroEnabled.12'\n];\nFileType.mime_xsl = [\n 'application/vnd.ms-excel',\n 'application/vnd.ms-excel',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',\n 'application/vnd.ms-excel.sheet.macroEnabled.12',\n 'application/vnd.ms-excel.template.macroEnabled.12',\n 'application/vnd.ms-excel.addin.macroEnabled.12',\n 'application/vnd.ms-excel.sheet.binary.macroEnabled.12'\n];\nFileType.mime_ppt = [\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.ms-powerpoint',\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'application/vnd.openxmlformats-officedocument.presentationml.template',\n 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',\n 'application/vnd.ms-powerpoint.addin.macroEnabled.12',\n 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12'\n];\n/* PSD */\nFileType.mime_psd = [\n 'image/photoshop',\n 'image/x-photoshop',\n 'image/psd',\n 'application/photoshop',\n 'application/psd',\n 'zz-application/zz-winassoc-psd'\n];\n/* Compressed files */\nFileType.mime_compress = [\n 'application/x-gtar',\n 'application/x-gcompress',\n 'application/compress',\n 'application/x-tar',\n 'application/x-rar-compressed',\n 'application/octet-stream'\n];\nexports.FileType = FileType;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-type.class.js\n// module id = ../../../../ng2-file-upload/file-upload/file-type.class.js\n// module chunks = 1","\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar common_1 = require(\"@angular/common\");\nvar core_1 = require(\"@angular/core\");\nvar file_drop_directive_1 = require(\"./file-drop.directive\");\nvar file_select_directive_1 = require(\"./file-select.directive\");\nvar FileUploadModule = (function () {\n function FileUploadModule() {\n }\n return FileUploadModule;\n}());\nFileUploadModule = __decorate([\n core_1.NgModule({\n imports: [common_1.CommonModule],\n declarations: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective],\n exports: [file_drop_directive_1.FileDropDirective, file_select_directive_1.FileSelectDirective]\n })\n], FileUploadModule);\nexports.FileUploadModule = FileUploadModule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-upload.module.js\n// module id = ../../../../ng2-file-upload/file-upload/file-upload.module.js\n// module chunks = 1","\"use strict\";\nvar file_like_object_class_1 = require(\"./file-like-object.class\");\nvar file_item_class_1 = require(\"./file-item.class\");\nvar file_type_class_1 = require(\"./file-type.class\");\nfunction isFile(value) {\n return (File && value instanceof File);\n}\nvar FileUploader = (function () {\n function FileUploader(options) {\n this.isUploading = false;\n this.queue = [];\n this.progress = 0;\n this._nextIndex = 0;\n this.options = {\n autoUpload: false,\n isHTML5: true,\n filters: [],\n removeAfterUpload: false,\n disableMultipart: false\n };\n this.setOptions(options);\n }\n FileUploader.prototype.setOptions = function (options) {\n this.options = Object.assign(this.options, options);\n this.authToken = options.authToken;\n this.authTokenHeader = options.authTokenHeader || 'Authorization';\n this.autoUpload = options.autoUpload;\n this.options.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });\n if (this.options.maxFileSize) {\n this.options.filters.unshift({ name: 'fileSize', fn: this._fileSizeFilter });\n }\n if (this.options.allowedFileType) {\n this.options.filters.unshift({ name: 'fileType', fn: this._fileTypeFilter });\n }\n if (this.options.allowedMimeType) {\n this.options.filters.unshift({ name: 'mimeType', fn: this._mimeTypeFilter });\n }\n for (var i = 0; i < this.queue.length; i++) {\n this.queue[i].url = this.options.url;\n }\n // this.options.filters.unshift({name: 'folder', fn: this._folderFilter});\n };\n FileUploader.prototype.addToQueue = function (files, options, filters) {\n var _this = this;\n var list = [];\n for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {\n var file = files_1[_i];\n list.push(file);\n }\n var arrayOfFilters = this._getFilters(filters);\n var count = this.queue.length;\n var addedFileItems = [];\n list.map(function (some) {\n if (!options) {\n options = _this.options;\n }\n var temp = new file_like_object_class_1.FileLikeObject(some);\n if (_this._isValidFile(temp, arrayOfFilters, options)) {\n var fileItem = new file_item_class_1.FileItem(_this, some, options);\n addedFileItems.push(fileItem);\n _this.queue.push(fileItem);\n _this._onAfterAddingFile(fileItem);\n }\n else {\n var filter = arrayOfFilters[_this._failFilterIndex];\n _this._onWhenAddingFileFailed(temp, filter, options);\n }\n });\n if (this.queue.length !== count) {\n this._onAfterAddingAll(addedFileItems);\n this.progress = this._getTotalProgress();\n }\n this._render();\n if (this.options.autoUpload) {\n this.uploadAll();\n }\n };\n FileUploader.prototype.removeFromQueue = function (value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n if (item.isUploading) {\n item.cancel();\n }\n this.queue.splice(index, 1);\n this.progress = this._getTotalProgress();\n };\n FileUploader.prototype.clearQueue = function () {\n while (this.queue.length) {\n this.queue[0].remove();\n }\n this.progress = 0;\n };\n FileUploader.prototype.uploadItem = function (value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n var transport = this.options.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n item._prepareToUploading();\n if (this.isUploading) {\n return;\n }\n this.isUploading = true;\n this[transport](item);\n };\n FileUploader.prototype.cancelItem = function (value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n var prop = this.options.isHTML5 ? item._xhr : item._form;\n if (item && item.isUploading) {\n prop.abort();\n }\n };\n FileUploader.prototype.uploadAll = function () {\n var items = this.getNotUploadedItems().filter(function (item) { return !item.isUploading; });\n if (!items.length) {\n return;\n }\n items.map(function (item) { return item._prepareToUploading(); });\n items[0].upload();\n };\n FileUploader.prototype.cancelAll = function () {\n var items = this.getNotUploadedItems();\n items.map(function (item) { return item.cancel(); });\n };\n FileUploader.prototype.isFile = function (value) {\n return isFile(value);\n };\n FileUploader.prototype.isFileLikeObject = function (value) {\n return value instanceof file_like_object_class_1.FileLikeObject;\n };\n FileUploader.prototype.getIndexOfItem = function (value) {\n return typeof value === 'number' ? value : this.queue.indexOf(value);\n };\n FileUploader.prototype.getNotUploadedItems = function () {\n return this.queue.filter(function (item) { return !item.isUploaded; });\n };\n FileUploader.prototype.getReadyItems = function () {\n return this.queue\n .filter(function (item) { return (item.isReady && !item.isUploading); })\n .sort(function (item1, item2) { return item1.index - item2.index; });\n };\n FileUploader.prototype.destroy = function () {\n return void 0;\n /*forEach(this._directives, (key) => {\n forEach(this._directives[key], (object) => {\n object.destroy();\n });\n });*/\n };\n FileUploader.prototype.onAfterAddingAll = function (fileItems) {\n return { fileItems: fileItems };\n };\n FileUploader.prototype.onBuildItemForm = function (fileItem, form) {\n return { fileItem: fileItem, form: form };\n };\n FileUploader.prototype.onAfterAddingFile = function (fileItem) {\n return { fileItem: fileItem };\n };\n FileUploader.prototype.onWhenAddingFileFailed = function (item, filter, options) {\n return { item: item, filter: filter, options: options };\n };\n FileUploader.prototype.onBeforeUploadItem = function (fileItem) {\n return { fileItem: fileItem };\n };\n FileUploader.prototype.onProgressItem = function (fileItem, progress) {\n return { fileItem: fileItem, progress: progress };\n };\n FileUploader.prototype.onProgressAll = function (progress) {\n return { progress: progress };\n };\n FileUploader.prototype.onSuccessItem = function (item, response, status, headers) {\n return { item: item, response: response, status: status, headers: headers };\n };\n FileUploader.prototype.onErrorItem = function (item, response, status, headers) {\n return { item: item, response: response, status: status, headers: headers };\n };\n FileUploader.prototype.onCancelItem = function (item, response, status, headers) {\n return { item: item, response: response, status: status, headers: headers };\n };\n FileUploader.prototype.onCompleteItem = function (item, response, status, headers) {\n return { item: item, response: response, status: status, headers: headers };\n };\n FileUploader.prototype.onCompleteAll = function () {\n return void 0;\n };\n FileUploader.prototype._mimeTypeFilter = function (item) {\n return !(this.options.allowedMimeType && this.options.allowedMimeType.indexOf(item.type) === -1);\n };\n FileUploader.prototype._fileSizeFilter = function (item) {\n return !(this.options.maxFileSize && item.size > this.options.maxFileSize);\n };\n FileUploader.prototype._fileTypeFilter = function (item) {\n return !(this.options.allowedFileType &&\n this.options.allowedFileType.indexOf(file_type_class_1.FileType.getMimeClass(item)) === -1);\n };\n FileUploader.prototype._onErrorItem = function (item, response, status, headers) {\n item._onError(response, status, headers);\n this.onErrorItem(item, response, status, headers);\n };\n FileUploader.prototype._onCompleteItem = function (item, response, status, headers) {\n item._onComplete(response, status, headers);\n this.onCompleteItem(item, response, status, headers);\n var nextItem = this.getReadyItems()[0];\n this.isUploading = false;\n if (nextItem) {\n nextItem.upload();\n return;\n }\n this.onCompleteAll();\n this.progress = this._getTotalProgress();\n this._render();\n };\n FileUploader.prototype._headersGetter = function (parsedHeaders) {\n return function (name) {\n if (name) {\n return parsedHeaders[name.toLowerCase()] || void 0;\n }\n return parsedHeaders;\n };\n };\n FileUploader.prototype._xhrTransport = function (item) {\n var _this = this;\n var xhr = item._xhr = new XMLHttpRequest();\n var sendable;\n this._onBeforeUploadItem(item);\n // todo\n /*item.formData.map(obj => {\n obj.map((value, key) => {\n form.append(key, value);\n });\n });*/\n if (typeof item._file.size !== 'number') {\n throw new TypeError('The file specified is no longer valid');\n }\n if (!this.options.disableMultipart) {\n sendable = new FormData();\n this._onBuildItemForm(item, sendable);\n sendable.append(item.alias, item._file, item.file.name);\n if (this.options.additionalParameter !== undefined) {\n Object.keys(this.options.additionalParameter).forEach(function (key) {\n sendable.append(key, _this.options.additionalParameter[key]);\n });\n }\n }\n else {\n sendable = item._file;\n }\n xhr.upload.onprogress = function (event) {\n var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n _this._onProgressItem(item, progress);\n };\n xhr.onload = function () {\n var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n var response = _this._transformResponse(xhr.response, headers);\n var gist = _this._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n var method = '_on' + gist + 'Item';\n _this[method](item, response, xhr.status, headers);\n _this._onCompleteItem(item, response, xhr.status, headers);\n };\n xhr.onerror = function () {\n var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n var response = _this._transformResponse(xhr.response, headers);\n _this._onErrorItem(item, response, xhr.status, headers);\n _this._onCompleteItem(item, response, xhr.status, headers);\n };\n xhr.onabort = function () {\n var headers = _this._parseHeaders(xhr.getAllResponseHeaders());\n var response = _this._transformResponse(xhr.response, headers);\n _this._onCancelItem(item, response, xhr.status, headers);\n _this._onCompleteItem(item, response, xhr.status, headers);\n };\n xhr.open(item.method, item.url, true);\n xhr.withCredentials = item.withCredentials;\n if (this.options.headers) {\n for (var _i = 0, _a = this.options.headers; _i < _a.length; _i++) {\n var header = _a[_i];\n xhr.setRequestHeader(header.name, header.value);\n }\n }\n if (item.headers.length) {\n for (var _b = 0, _c = item.headers; _b < _c.length; _b++) {\n var header = _c[_b];\n xhr.setRequestHeader(header.name, header.value);\n }\n }\n if (this.authToken) {\n xhr.setRequestHeader(this.authTokenHeader, this.authToken);\n }\n xhr.send(sendable);\n this._render();\n };\n FileUploader.prototype._getTotalProgress = function (value) {\n if (value === void 0) { value = 0; }\n if (this.options.removeAfterUpload) {\n return value;\n }\n var notUploaded = this.getNotUploadedItems().length;\n var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n var ratio = 100 / this.queue.length;\n var current = value * ratio / 100;\n return Math.round(uploaded * ratio + current);\n };\n FileUploader.prototype._getFilters = function (filters) {\n if (!filters) {\n return this.options.filters;\n }\n if (Array.isArray(filters)) {\n return filters;\n }\n if (typeof filters === 'string') {\n var names_1 = filters.match(/[^\\s,]+/g);\n return this.options.filters\n .filter(function (filter) { return names_1.indexOf(filter.name) !== -1; });\n }\n return this.options.filters;\n };\n FileUploader.prototype._render = function () {\n return void 0;\n // todo: ?\n };\n // protected _folderFilter(item:FileItem):boolean {\n // return !!(item.size || item.type);\n // }\n FileUploader.prototype._queueLimitFilter = function () {\n return this.options.queueLimit === undefined || this.queue.length < this.options.queueLimit;\n };\n FileUploader.prototype._isValidFile = function (file, filters, options) {\n var _this = this;\n this._failFilterIndex = -1;\n return !filters.length ? true : filters.every(function (filter) {\n _this._failFilterIndex++;\n return filter.fn.call(_this, file, options);\n });\n };\n FileUploader.prototype._isSuccessCode = function (status) {\n return (status >= 200 && status < 300) || status === 304;\n };\n /* tslint:disable */\n FileUploader.prototype._transformResponse = function (response, headers) {\n // todo: ?\n /*var headersGetter = this._headersGetter(headers);\n forEach($http.defaults.transformResponse, (transformFn) => {\n response = transformFn(response, headersGetter);\n });*/\n return response;\n };\n /* tslint:enable */\n FileUploader.prototype._parseHeaders = function (headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n if (!headers) {\n return parsed;\n }\n headers.split('\\n').map(function (line) {\n i = line.indexOf(':');\n key = line.slice(0, i).trim().toLowerCase();\n val = line.slice(i + 1).trim();\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n return parsed;\n };\n /*protected _iframeTransport(item:FileItem) {\n // todo: implement it later\n }*/\n FileUploader.prototype._onWhenAddingFileFailed = function (item, filter, options) {\n this.onWhenAddingFileFailed(item, filter, options);\n };\n FileUploader.prototype._onAfterAddingFile = function (item) {\n this.onAfterAddingFile(item);\n };\n FileUploader.prototype._onAfterAddingAll = function (items) {\n this.onAfterAddingAll(items);\n };\n FileUploader.prototype._onBeforeUploadItem = function (item) {\n item._onBeforeUpload();\n this.onBeforeUploadItem(item);\n };\n FileUploader.prototype._onBuildItemForm = function (item, form) {\n item._onBuildForm(form);\n this.onBuildItemForm(item, form);\n };\n FileUploader.prototype._onProgressItem = function (item, progress) {\n var total = this._getTotalProgress(progress);\n this.progress = total;\n item._onProgress(progress);\n this.onProgressItem(item, progress);\n this.onProgressAll(total);\n this._render();\n };\n /* tslint:disable */\n FileUploader.prototype._onSuccessItem = function (item, response, status, headers) {\n item._onSuccess(response, status, headers);\n this.onSuccessItem(item, response, status, headers);\n };\n /* tslint:enable */\n FileUploader.prototype._onCancelItem = function (item, response, status, headers) {\n item._onCancel(response, status, headers);\n this.onCancelItem(item, response, status, headers);\n };\n return FileUploader;\n}());\nexports.FileUploader = FileUploader;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/file-upload/file-uploader.class.js\n// module id = ../../../../ng2-file-upload/file-upload/file-uploader.class.js\n// module chunks = 1","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require(\"./file-upload/file-select.directive\"));\n__export(require(\"./file-upload/file-drop.directive\"));\n__export(require(\"./file-upload/file-uploader.class\"));\n__export(require(\"./file-upload/file-item.class\"));\n__export(require(\"./file-upload/file-like-object.class\"));\nvar file_upload_module_1 = require(\"./file-upload/file-upload.module\");\nexports.FileUploadModule = file_upload_module_1.FileUploadModule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/index.js\n// module id = ../../../../ng2-file-upload/index.js\n// module chunks = 1","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\n__export(require(\"./index\"));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/apple/Desktop/github/chihu-web-angular/~/ng2-file-upload/ng2-file-upload.js\n// module id = ../../../../ng2-file-upload/ng2-file-upload.js\n// module chunks = 1"],"sourceRoot":"webpack:///"}