(window.webpackJsonp=window.webpackJsonp||[]).push([["fad1"],{l9Vy:function(t,n,o){"use strict";o.r(n);o("tlwP");angular.module("footyroom").controller("TipController",["$uibModal","dateFormat",function(t,n){n($(".btip")),this.editTip=function(n){t.open({template:'')})}}])},tlwP:function(t,n){angular.module("footyroom").component("tipEditor",{template:'\n
\n \n \n
\n ',bindings:{id:"@",dismiss:"&"},controller:["$http",function(t){var n=this;n.$onInit=function(){n.id?(n.isLoading=!0,t.get("/tips/".concat(this.id,".json")).then(function(t){n.tip=t.data,n.isLoading=!1})):n.tip={status:"pending"}},n.save=function(){n.isSaving=!0,(n.tip.id?t.put("/tips/".concat(n.tip.id),n.tip):t.post("/tips",n.tip)).then(function(){window.location.reload()}).catch(function(){n.isSaving=!1})},n.remove=function(){n.isSaving=!0,t.delete("/tips/".concat(this.id)).then(function(){window.location.reload()}).catch(function(){n.isSaving=!1})}}]})}},[["l9Vy","d41d"]]]);