UNPKG

pip-webui

Version:

HTML5 UI for LOB applications

1 lines 18.6 kB
!function(){"use strict";angular.module("pipSupport",["pipFeedback","pipAnalytics"])}(),function(t){try{t=angular.module("pipSupport.Templates")}catch(e){t=angular.module("pipSupport.Templates",[])}t.run(["$templateCache",function(t){t.put("feedback/feedback.html",'<md-toolbar class="pip-appbar-ext"></md-toolbar><pip-document width="800"><pip-feedback-panel data="data" pip-created="$panel = $control" show-pictures="showPictures" show-documents="showDocuments" save-callback="saveCallback" type-collection="typeCollection"></pip-feedback-panel><div class="pip-footer"><pip-content-switch class="hide-xs"></pip-content-switch><div class="flex"></div><div class="flex-fixed layout-row"><md-button ng-show="transaction.busy()" ng-click="transaction.abort()" class="md-raised md-warn">{{::\'CANCEL\' | translate}}</md-button><md-button ng-hide="transaction.busy()" ng-click="goBack()">{{::\'CANCEL\' | translate}}</md-button><md-button class="md-accent" ng-hide="transaction.busy()" ng-click="onSave()" ng-disabled="data.content == \'\' && data.title == \'\'">{{::\'SEND\' | translate}}</md-button></div></div></pip-document>')}])}(),function(t){try{t=angular.module("pipSupport.Templates")}catch(e){t=angular.module("pipSupport.Templates",[])}t.run(["$templateCache",function(t){t.put("feedback/feedback_dialog.html",'<md-dialog width="800" class="pip-feedback-dialog"><md-dialog-content class="lp24-flex rp24-flex"><pip-feedback-panel data="data" pip-created="$panel = $control" show-pictures="showPictures" show-documents="showDocuments" save-callback="saveCallback" type-collection="typeCollection"></pip-feedback-panel></md-dialog-content><md-dialog-actions class="layout-row"><pip-content-switch class="show-gt-sm"></pip-content-switch><div class="flex"></div><div class="layout-row flex-fixed"><md-button ng-show="transaction.busy()" ng-click="transaction.abort()" class="md-raised md-warn">{{::\'CANCEL\' | translate}}</md-button><md-button ng-hide="transaction.busy()" ng-click="goBack()">{{::\'CANCEL\' | translate}}</md-button><md-button class="md-accent rm8" ng-hide="transaction.busy()" ng-click="onSave()" ng-disabled="data.content == \'\' && data.title == \'\'">{{::\'SEND\' | translate}}</md-button></div></md-dialog-actions></md-dialog>')}])}(),function(t){try{t=angular.module("pipSupport.Templates")}catch(e){t=angular.module("pipSupport.Templates",[])}t.run(["$templateCache",function(t){t.put("feedback/feedback_panel.html",'<div class="pip-body tp24-flex"><div class="pip-content layout-column"><md-progress-linear ng-show="transaction.busy()" md-mode="indeterminate" class="pip-progress-ontop"></md-progress-linear><form name="form" novalidate=""><md-input-container class="md-block hide-gt-xs"><md-select ng-model="typeIndex" ng-disabled="transaction.busy()" aria-label="DROPDOWN"><md-option ng-repeat="action in typeCollection" value="{{ ::$index }}">{{ (action.title || action.name) | translate }}</md-option></md-select></md-input-container><pip-toggle-buttons ng-model="data.type" pip-buttons="typeCollection" class="bm16 hide-xs"></pip-toggle-buttons><p class="tm0 bm16 text-small text-grey line-height-string" ng-if="data.type==\'feedback\' || data.type==\'support\'">{{::\'FEEDBACK_HINT_FEEDBACK\' | translate}}</p><div ng-if="data.type==\'copyright\'"><p class="tm0 bm16 text-small text-grey line-height-string">{{::\'FEEDBACK_HINT_COPYRIGHT\' | translate}}</p><p class="tm0 bm16 text-small text-grey line-height-string">{{::\'FEEDBACK_HINT_COPYRIGHT2\' | translate }}</p></div><div class="pip-ref-item"><pip-avatar pip-party-id="$party.id" pip-party-name="$party.name" class="pip-pic pip-face"></pip-avatar><div class="pip-content"><p class="pip-title">{{$party.name}}</p><p class="pip-subtitle">{{$party.email}}</p></div></div><div ng-if="data.type!=\'copyright\'"><md-input-container class="md-block" md-no-float=""><input type="text" ng-model="data.title" ng-disabled="transaction.busy()" placeholder="{{:: \'SUBJECT\' | translate}}"></md-input-container><md-input-container class="md-block" md-no-float=""><textarea ng-model="data.content" ng-disabled="transaction.busy()" placeholder="{{::\'FEEDBACK_MESSAGE\'|translate}}">\n </textarea></md-input-container></div><div ng-if="data.type==\'copyright\'"><md-input-container class="md-block"><label>{{::\'FEEDBACK_COMPANY\'|translate}}</label> <input type="text" ng-model="data.company_name" ng-disabled="transaction.busy()" placeholder="Company Name"></md-input-container><md-input-container class="md-block"><label>{{::\'FEEDBACK_ADDRESS\'|translate}}</label> <input type="text" ng-model="data.company_addr" ng-disabled="transaction.busy()"></md-input-container><md-input-container class="md-block"><label>{{::\'FEEDBACK_COPYRIGHT_HOLDER\' | translate}}</label> <input name="data.copyright_holder" ng-model="data.copyright_holder" ng-disabled="transaction.busy()" step="any" type="text" tabindex="0" required=""><div ng-messages="errorsWithHint(form.data.copyright_holder)"><div ng-message="hint">{{::\'FEEDBACK_COPYRIGHT_HOLDER_HINT\' | translate}}</div></div></md-input-container><md-input-container class="md-block flex"><label>{{::\'FEEDBACK_ORIGINAL_LOCATION\'|translate}}</label> <input type="text" ng-model="data.original_loc" ng-disabled="transaction.busy()"></md-input-container><md-input-container class="md-block"><label>{{::\'FEEDBACK_DESCRIBE_COPYRIGHTED\' | translate}}</label> <input name="data.copyrighted_work" ng-model="data.copyrighted_work" ng-disabled="transaction.busy()" step="any" type="text" tabindex="0" required=""><div ng-messages="errorsWithHint(form.data.copyrighted_work)"><div ng-message="hint">{{::\'FEEDBACK_DESCRIBE_COPYRIGHTED_HINT\'| translate}}</div></div></md-input-container><md-input-container class="md-block"><label>{{::\'FEEDBACK_UNAUTHORIZE_LOCATION\' | translate}}</label> <textarea name="data.unauth_loc" ng-model="data.unauth_loc" ng-disabled="transaction.busy()" step="any" type="text" tabindex="0" required=""></textarea><div ng-messages="errorsWithHint(form.data.unauth_loc)"><div ng-message="hint">{{::\'FEEDBACK_UNAUTHORIZE_LOCATION_HINT\' | translate}}</div></div></md-input-container><div class="bm16 layout-row"><md-checkbox ng-model="data.copyright_conc" class="lm0 bm0 flex-fixed" aria-label="FEEDBACK_COPYRIGHT_CONC" style="min-width: 24px; margin-top: -2px"></md-checkbox><p class="m0 text-small text-grey line-height-string">{{::\'FEEDBACK_COPYRIGHT_CONC\'|translate}}</p></div><div class="bm16 layout-row"><md-checkbox ng-model="data.request_conc" class="lm0 bm0 flex-fixed" aria-label="FEEDBACK_REGUEST_CONC" style="min-width: 24px; margin-top: -2px"></md-checkbox><p class="m0 text-small text-grey line-height-string">{{::\'FEEDBACK_REGUEST_CONC\'|translate}}</p></div><md-input-container class="md-block"><label>{{::\'FEEDBACK_SIGNATURE\' | translate}}</label> <input name="data.signature" ng-model="data.signature" ng-disabled="transaction.busy()" step="any" type="text" tabindex="0" required=""><div ng-messages="errorsWithHint(form.data.signature)"><div ng-message="hint">{{::\'FEEDBACK_SIGNATURE_HINT\' | translate}}</div></div></md-input-container></div><pip-picture-list-edit class="bm8" ng-show="showPictures" pip-picture-ids="data.pic_ids" pip-created="pictures = $event.sender" ng-disabled="transaction.busy()"></pip-picture-list-edit><pip-document-list-edit ng-show="showDocuments" pip-documents="data.docs" pip-created="docs = $event.sender" ng-disabled="transaction.busy()"></pip-document-list-edit></form></div></div>')}])}(),function(){"use strict";var t=angular.module("pipAnalytics",[]);t.run(["$rootScope","$location","pipAnalytics",function(t,e,a){t.$on("$stateChangeSuccess",function(n,i,o,s,l){var p=e.url(),r=(t.$user||{}).id,c=t.$language||"en",d=p.indexOf("?");d>0&&(p=p.substring(0,d)),a.pageView(p,r,c)})}]),t.provider("pipAnalytics",function(){function t(t){return t&&(i=t,n=!0,window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=1*new Date,window.ga("create",t)),n}function e(t,e,a){n&&window.ga&&window.ga("send","pageview",{page:t,userId:e,language:a})}function a(t,e,a,i,o){n&&window.ga&&window.ga("send","event",{eventCategory:t,eventAction:e,eventValue:a,userId:i,language:o})}var n=!1,i=null;this.enable=t,this.$get=function(){return{enabled:n,trackingId:i,pageView:e,event:a}}})}(),function(){"use strict";var t=angular.module("pipFeedback",["pipAppBar","pipRest.State","pipTransactions","pipRest","pipDropdown","ngMaterial","pipTranslate","pipFeedbacksData","pipToasts","pipFeedback.Strings","pipFeedbackPanel","pipSupport.Templates"]);t.config(["pipAuthStateProvider",function(t){t.state("feedback",{url:"/feedback",controller:"FeedbackController",templateUrl:"feedback/feedback.html",auth:!0})}]),t.controller("FeedbackController",["$scope","$rootScope","$state","pipUtils","pipAppBar","pipToasts","pipTranslate",function(t,e,a,n,i,o,s){function l(){i.showBackNavIcon(),i.showTitleText("FEEDBACK_TITLE"),i.showLocalActions([{class:"icon-send",hideSmall:!0,callback:p}],[]),i.showShadowSm()}function p(){t.$panel&&t.$panel.onSave()}function r(){t.$panel&&t.$panel.onTypeChange(t.item)}function c(){n.goBack(),o.showNotification(s.translate("FEEDBACK_SUCCESS"),null,null,null)}l(),t.data={},t.contentSwitchOption={picture:!0,document:!0,location:!1,event:!1},t.goBack=n.goBack,t.onSave=p,t.onTypeChange=r,t.saveCallback=c}])}(),function(){"use strict";var t=angular.module("pipFeedbackDialog",["pipAppBar","pipRest.State","pipTransactions","pipRest","pipDropdown","ngMaterial","pipTranslate","pipFeedbacksData","pipToasts","pipFeedback.Strings","pipFeedbackPanel","pipSupport.Templates"]);t.controller("FeedbackDialogController",["$scope","$rootScope","$state","pipUtils","party","$mdDialog","pipToasts","pipTranslate",function(t,e,a,n,i,o,s,l){function p(){t.$panel&&t.$panel.onSave()}function r(){t.$panel&&t.$panel.onTypeChange(t.item)}function c(){o.cancel(),s.showNotification(l.translate("FEEDBACK_SUCCESS"),null,null,null)}e.$party=i,t.data={},t.contentSwitchOption={picture:!0,document:!0,location:!1,event:!1},t.goBack=o.cancel,t.onSave=p,t.onTypeChange=r,t.saveCallback=c}])}(),function(t){"use strict";var e=t.module("pipFeedbackPanel",["pipUtils","pipFocused","pipSupport.Templates"]);e.directive("pipFeedbackPanel",function(){return{restrict:"EA",replace:!0,scope:{data:"=",created:"&pipCreated",showPictures:"=",showDocuments:"=",typeCollection:"=typeCollection",saveCallback:"="},templateUrl:"feedback/feedback_panel.html",controller:"pipFeedbackPanelController"}}),e.controller("pipFeedbackPanelController",["$scope","$rootScope","$state","pipUtils","pipAppBar","pipTranslate","pipFeedbacksData","pipTransaction","pipToasts","pipFormErrors",function(t,e,a,n,i,o,s,l,p,r){function c(){t.form.$setSubmitted(),t.form.$invalid||s.createFeedbackWithFiles({transaction:t.transaction,pictures:t.pictures,documents:t.docs,item:t.data},t.saveCallback)}function d(e){t.data.type=t.typeCollection[t.typeIndex],t.type=e.name}t.$party=e.$party,t.typeCollection=[{id:"support",name:"SUPPORT"},{id:"feedback",name:"FEEDBACK"},{id:"copyright",name:"COPYRIGHT"},{id:"business",name:"BUSINESS"},{id:"advertising",name:"ADVERTISING"}],o.translateObjects(t.typeCollection,"name","name"),t.transaction=l("feedback",t),t.type=o.translate("FEEDBACK"),t.data.sender_id=e.$party.id,t.data.sender_name=e.$party.name,t.data.sender_email=e.$party.email,t.data.pic_ids=[],t.data.docs=[],t.data.type=t.typeCollection[0].id,t.$control={},t.$control.goBack=n.goBack,t.$control.onSave=c,t.$control.onTypeChange=d,t.created&&t.created({$control:t.$control}),t.errorsWithHint=r.errorsWithHint,t.onTypeChange=d}])}(window.angular),function(){"use strict";var t=angular.module("pipFeedback.Strings",["pipTranslate"]);t.config(["pipTranslateProvider",function(t){t.translations("en",{FEEDBACK_TITLE:"Contact us",FEEDBACK_HINT_FEEDBACK:"If you need help or you have some ideas or suggestions to improve Pip.Life just use form below",FEEDBACK_HINT_COPYRIGHT:"If you believe that content available on Pip.Life infringes one or more of your copyrights, you can use the form below to submit a DMCA notice. Upon receipt of a valid notice, we are required by law to respond to it by disabling access to the allegedly infringing content. Your Infringement Notice may be forwarded to the party that made the content available, or to third parties such as ChillingEffects.org.",FEEDBACK_HINT_COPYRIGHT2:"If you choose to request removal of content by submitting an infringement notification, please remember that you are initiating a legal process. Do not make false claims. Please be advised that under 17 U.S.C. § 512(f), you may be liable for damages (including costs and attorneys’ fees) if you knowingly misrepresent that a product or activity is infringing your copyrights. Thus, if you are not sure content located on or linked-to by Dribbble infringes your copyright, you should consider first contacting an attorney.",FEEDBACK_COMPANY:"Company name",FEEDBACK_MESSAGE:"Message",FEEDBACK_ADDRESS:"Address",FEEDBACK_COPYRIGHT_HOLDER:"Copyright holder you represent",FEEDBACK_COPYRIGHT_HOLDER_HINT:"If representing someone other than yourself",FEEDBACK_ORIGINAL_LOCATION:"Location of original copyrighted work",FEEDBACK_DESCRIBE_COPYRIGHTED:"Describe the copyrighted work",FEEDBACK_DESCRIBE_COPYRIGHTED_HINT:"Helps us identify the specific referenced work",FEEDBACK_UNAUTHORIZE_LOCATION:"Location of unauthorized material",FEEDBACK_UNAUTHORIZE_LOCATION_HINT:"Please provide specific page URLs, one per line",FEEDBACK_COPYRIGHT_CONC:"I have a good faith belief that use of the copyrighted materials described above as allegedly infringing is not authorized by the copyright owner, its agent, or the law",FEEDBACK_REGUEST_CONC:"I swear, under penalty of perjury, that the information in the notification is accurate and that I am the copyright owner or am authorized to act on behalf of the owner of an exclusive right that is allegedly infringed.",FEEDBACK_SIGNATURE:"You first and last name",FEEDBACK_SIGNATURE_HINT:"Signature",FEEDBACK_SUBJECT:"Subject",FEEDBACK_SUCCESS:"Your message was sent to Pip.Life support team. They will contact you via personal messaging soon. Thanks for your interest in PipLife!"}),t.translations("ru",{FEEDBACK_TITLE:"Обратная связь",FEEDBACK_HINT_FEEDBACK:"Если Вам нужна помощь или у вас есть идеи или предложения по улучшению Pip.Life используйте рассположенную ниже форму",FEEDBACK_HINT_COPYRIGHT:"Если вы считаете, что контент, доступный на Pip.Life нарушает одно или более ваших авторских прав, вы можете использовать форму ниже, чтобы представить уведомление DMCA. После получения уведомления, мы по закону обязаны ответить на него, отключив доступ к контенту, который предположительно нарушает авторские права. Уведомление может быть направлено со стороны, представившей контент или третьих сторон, таких как ChillingEffects.org.",FEEDBACK_HINT_COPYRIGHT2:"Если вы решите запросить удаление содержания, подав уведомление о нарушении, пожалуйста, помните, что вы инициируете судебный процесс. Пожалуйста, обратите внимание, что исодя из статьи 17 U.S.C. § 512 (F), вы можете нести ответственность за убытки (включая расходы и гонорары адвокатам), если вы сознательно искажаете действительность, что продукт или деятельность нарушает ваши авторские права. Таким образом, если вы не уверены, что содержание, расположенное на PipLife нарушает Ваши авторские права посоветуйтесь с адвокатом.",FEEDBACK_COMPANY:"Название компании",FEEDBACK_MESSAGE:"Сообщение",FEEDBACK_ADDRESS:"Адрес",FEEDBACK_COPYRIGHT_HOLDER:"Владелец авторского права",FEEDBACK_COPYRIGHT_HOLDER_HINT:"Заполните поле, если Вы представляете кого-то кроме себя",FEEDBACK_ORIGINAL_LOCATION:"Расположение оригинальной авторской работы",FEEDBACK_DESCRIBE_COPYRIGHTED:"Опишите авторские права на произведение",FEEDBACK_DESCRIBE_COPYRIGHTED_HINT:"Это поможет нам идентифицировать ссылки на работу",FEEDBACK_UNAUTHORIZE_LOCATION:"Расположение несанкционированного материала",FEEDBACK_UNAUTHORIZE_LOCATION_HINT:"Пожалуйста, укажите конкретную страницу URL, по одной в строке",FEEDBACK_COPYRIGHT_CONC:"У меня есть добросовестное предположение, что использование защищенных авторским правом материалов, описанных выше, в качестве якобы нарушает авторские права, не разрешено владельцем авторского права, его агентом или законом",FEEDBACK_REGUEST_CONC:"Я клянусь под страхом наказания за лжесвидетельство, что содержащаяся в уведомлении информация верна и что я являюсь владельцем авторского права или имею право действовать от имени владельца эксклюзивных прав, которые якобы нарушены.",FEEDBACK_SIGNATURE:"Ваше имя и фамилия",FEEDBACK_SIGNATURE_HINT:"Подпись",FEEDBACK_SUBJECT:"Заголовок",FEEDBACK_SUCCESS:"Ваш запрос передан команде технической поддержки Pip.Life. C вами свяжутся в ближайшее время по электронной почте. Спасибо за ваш интерес и поддержку PipLife."})}])}();