From 5579fc95b2f4eb7926799ec52a5cf9bfcf067c85 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Sun, 19 Apr 2020 08:16:35 -0700 Subject: [PATCH] added bad dialog idea. --- resources/public/finance-font/demo.html | 852 +++++------------- .../public/finance-font/fonts/icomoon.eot | Bin 54052 -> 52464 bytes .../public/finance-font/fonts/icomoon.svg | 10 +- .../public/finance-font/fonts/icomoon.ttf | Bin 53888 -> 52300 bytes .../public/finance-font/fonts/icomoon.woff | Bin 53964 -> 52376 bytes resources/public/finance-font/selection.json | 2 +- resources/public/finance-font/style.css | 37 +- .../views/components/vendor_dialog.cljs | 135 ++- 8 files changed, 329 insertions(+), 707 deletions(-) diff --git a/resources/public/finance-font/demo.html b/resources/public/finance-font/demo.html index 4fc528d3..5849633a 100755 --- a/resources/public/finance-font/demo.html +++ b/resources/public/finance-font/demo.html @@ -9,15 +9,139 @@
-

Font Name: icomoon (Glyphs: 106)

+

Font Name: icomoon (Glyphs: 90)

Grid Size: Unknown

- - - + + icon-subtract +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-add-bold +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-remove-bold +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-remove +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-add +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-add-tab +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-task-list-disable +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-task-list-text-1 +
+
+ + +
+
+ liga: + +
+
+
+
+ + icon-task-list-question +
+
+ + +
+
+ liga: + +
+
+
+
+ icon-list-bullets
@@ -31,9 +155,7 @@
- - - + icon-single-neutral-book
@@ -47,9 +169,7 @@
- - - + icon-cog-play-1
@@ -63,9 +183,7 @@
- - - + icon-receipt
@@ -79,9 +197,7 @@
- - - + icon-performance-decrease-1
@@ -95,9 +211,7 @@
- - - + icon-performance-decrease
@@ -111,9 +225,7 @@
- - - + icon-performance-graph-calculator
@@ -127,9 +239,7 @@
- - - + icon-performance-increase-1
@@ -143,9 +253,7 @@
- - - + icon-performance-increase-2
@@ -159,9 +267,7 @@
- - - + icon-performance-increase-mail
@@ -175,9 +281,7 @@
- - - + icon-performance-increase
@@ -191,9 +295,7 @@
- - - + icon-bin-2
@@ -207,9 +309,7 @@
- - - + icon-skull-2
@@ -223,9 +323,7 @@
- - - + icon-cash-payment-bag-1
@@ -239,9 +337,7 @@
- - - + icon-cash-payment-bag-2
@@ -255,9 +351,7 @@
- - - + icon-cash-payment-bag
@@ -271,9 +365,7 @@
- - - + icon-cash-payment-bill-1
@@ -287,57 +379,7 @@
- - - - icon-cash-payment-bill-2 -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-cash-payment-bill-3 -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-cash-payment-bill-4 -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-cash-payment-bill
@@ -351,9 +393,7 @@
- - - + icon-cash-payment-bills-1
@@ -367,9 +407,7 @@
- - - + icon-cash-payment-bills
@@ -383,9 +421,7 @@
- - - + icon-cash-payment-coin-1
@@ -399,25 +435,7 @@
- - - - icon-cash-payment-coin-stash -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-cash-payment-coin
@@ -431,9 +449,7 @@
- - - + icon-cash-payment-coins
@@ -447,25 +463,7 @@
- - - - icon-cash-payment-person -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-cash-payment-wallet
@@ -479,9 +477,7 @@
- - - + icon-cash-payment-sign-1
@@ -495,9 +491,7 @@
- - - + icon-cash-payment-sign-2
@@ -511,9 +505,7 @@
- - - + icon-check-payment-give
@@ -527,9 +519,7 @@
- - - + icon-check-payment-sign
@@ -543,9 +533,7 @@
- - - + icon-credit-card-1
@@ -559,9 +547,7 @@
- - - + icon-credit-card-amex
@@ -575,89 +561,7 @@
- - - - icon-credit-card-check -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-credit-card-disable -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-credit-card-dollar-1 -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-credit-card-dollar -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-credit-card-flag -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-credit-card-give
@@ -671,25 +575,7 @@
- - - - icon-credit-card-laptop-payment -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-credit-card-lock
@@ -703,9 +589,7 @@
- - - + icon-credit-card-mastercard
@@ -719,9 +603,7 @@
- - - + icon-credit-card-monitor-payment
@@ -735,9 +617,7 @@
- - - + icon-credit-card-online-payment
@@ -751,9 +631,7 @@
- - - + icon-credit-card-payment
@@ -767,25 +645,7 @@
- - - - icon-credit-card-phone-call -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-credit-card-remove
@@ -799,9 +659,7 @@
- - - + icon-credit-card-scan
@@ -815,9 +673,7 @@
- - - + icon-credit-card-shield
@@ -831,9 +687,7 @@
- - - + icon-credit-card-smartphone
@@ -847,9 +701,7 @@
- - - + icon-credit-card-sync
@@ -863,9 +715,7 @@
- - - + icon-credit-card-visa
@@ -879,9 +729,7 @@
- - - + icon-credit-card
@@ -895,25 +743,7 @@
- - - - icon-saving-bag-increase -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-saving-bank-1
@@ -927,9 +757,7 @@
- - - + icon-saving-bank-cash
@@ -943,9 +771,7 @@
- - - + icon-saving-bank-drawer
@@ -959,9 +785,7 @@
- - - + icon-saving-bank-international
@@ -975,9 +799,7 @@
- - - + icon-saving-bank
@@ -991,9 +813,7 @@
- - - + icon-saving-bear
@@ -1007,153 +827,7 @@
- - - - icon-saving-bull-decrease -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-bull-increase -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-bull -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-dog-guard-decrease -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-dog-guard-increase -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-money-egg -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-money-flower -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-money-seedling -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-saving-money-tree -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-saving-piggy-bank
@@ -1167,9 +841,7 @@
- - - + icon-saving-piggy-coins
@@ -1183,9 +855,7 @@
- - - + icon-saving-piggy-dollars
@@ -1199,9 +869,7 @@
- - - + icon-saving-safe-1
@@ -1215,9 +883,7 @@
- - - + icon-saving-safe-open
@@ -1231,9 +897,7 @@
- - - + icon-saving-safe
@@ -1247,9 +911,7 @@
- - - + icon-saving-wallet-international
@@ -1263,9 +925,7 @@
- - - + icon-accounting-bill-stack-1
@@ -1279,9 +939,7 @@
- - - + icon-accounting-bill-stack
@@ -1295,9 +953,7 @@
- - - + icon-accounting-bill
@@ -1311,9 +967,7 @@
- - - + icon-accounting-bills-1
@@ -1327,9 +981,7 @@
- - - + icon-accounting-bills
@@ -1343,9 +995,7 @@
- - - + icon-accounting-coins-bill
@@ -1359,41 +1009,7 @@
- - - - icon-accounting-coins-stack-1 -
-
- - -
-
- liga: - -
-
-
-
- - - - icon-accounting-coins-stack -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-accounting-withdraw
@@ -1407,9 +1023,7 @@
- - - + icon-coin-purse-1
@@ -1423,9 +1037,7 @@
- - - + icon-coin-purse
@@ -1439,9 +1051,7 @@
- - - + icon-money-atm
@@ -1455,9 +1065,7 @@
- - - + icon-money-bag-dollar
@@ -1471,9 +1079,7 @@
- - - + icon-money-bag-euro
@@ -1487,9 +1093,7 @@
- - - + icon-money-bags
@@ -1503,9 +1107,7 @@
- - - + icon-money-wallet-1
@@ -1519,9 +1121,7 @@
- - - + icon-money-wallet-open
@@ -1535,9 +1135,7 @@
- - - + icon-money-wallet
@@ -1551,9 +1149,7 @@
- - - + icon-accounting-abacus
@@ -1567,25 +1163,7 @@
- - - - icon-accounting-calculator-1 -
-
- - -
-
- liga: - -
-
-
-
- - - + icon-accounting-calculator-2
@@ -1599,9 +1177,7 @@
- - - + icon-accounting-calculator
@@ -1615,9 +1191,7 @@
- - - + icon-accounting-coins
@@ -1631,9 +1205,7 @@
- - - + icon-accounting-document
@@ -1647,9 +1219,7 @@
- - - + icon-accounting-invoice-hand
@@ -1663,9 +1233,7 @@
- - - + icon-accounting-invoice-mail
@@ -1679,9 +1247,7 @@
- - - + icon-accounting-invoice
@@ -1695,9 +1261,7 @@
- - - + icon-calculator-app
diff --git a/resources/public/finance-font/fonts/icomoon.eot b/resources/public/finance-font/fonts/icomoon.eot index d0d0b3987309740ed1dbce69fa49fe7643e80fff..ebdd3d12ead6929b1fe90f67563582ce7a6980c4 100755 GIT binary patch delta 1680 zcmZWpYitx%6h3EXcV;g;v)kD>+tTemm}0lI6}DT2magCf5UK%+wUA1K*qZWaLW9*9 zwn;a}5X9n&0b~3H2B^`*{=y$kLx^C5)K?o?`>Q6#rG$`B;)|X2+}W)fnPkqn=R4=z zd(L;y%-K(byJrOP?sb4I*H4NG^QE?)3n!E5)UEirKLD@{0Q$N*5BHKTA$y3lwQK+D zuXNveH%#_vfUnxR_jSJPKil;Vz}36tPjnL?T``vfTw6hQwEI9`|3Q#kWN)FI{{4sc zc8#|R0w`X6?=kj?TM;K&Fvum=OvaJS&`Ja7eA9#QB-uEt09%j@Z zTq8}UCv7PNPkvIE7lt7SUnlw37D)WnW8WplNpn7 zjIZ^i9D4{MFOM_|KPCKRnuiK_47O53VXX-x#u;m|K69|ol`@XyN0ws{y>18Axg&Oz zLTXs_sBZ7-&^m0!M7$Pjurh>6CJ*pq2Y3aGt2~r0UtVhJ@vn4FyIj+#R{L}BGg)S) z9!F5VDM{0|U`g%+^!zW6@6e$PXaSrGXeMXLj5Fb!#uBH=6jQ8vl~qB-c2jhU(>577 zvm|iX3^)mP09TQzB0(OjqF99~E+16kFfWh4BX4?IS;_>EA2Wk622p7Jm+2-fQoR<7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~Jkn zfxSYA1Y0H6qKf&9wPjS3VMNa?=@D{RUE%}P3X%=b8I{sPn2@d#V#sv5EtPz#U^QSR zywAlJX;qdL7OAmtCR|kXmH>SMGrCa-Pk3`)3sqRaS-K3%@Y}*5%66cn?Lmdx)NZIq z(Y~3Px5ZHw?}{Kp-V;D2>KTFYXTU6GhlU_OSo{P(w=r5;=3AP>;h>;bxm{HT9^90y zFd-N08;V;|-3lVD9AT`foN>;u=Sty+idC2}w8B@rrCdhhCz;IWnzBt>#7V&MnIpxX z8Q~3{=`C@x#r<62iLq6`d{=0RO3__1M0*AY2OryvX+w4C!&-&QsBlnK(^T}}fb5YO zru`g~QZ657D$kfJJ%SAt+bJH^$WYA+8E&b#UPd(tnf-?=s|8d-mgex~n5iq)^OT)<7cJ)tyKVSeOQqiSDjs0?U+?doppmz0J1!$~~U)KHF|$pvx~DhTnswt$F$_T)dWs;lllEQ4O#+j=y7ts_Qj{cdzS( zf$L?nBiAb-r+Cy8+7BF8o%8x7SHJsvrtax3ANLM=|831xG*+AmoDH6-{7KdE>PP>7v?=~m`@xDoH~+0Q*!EHTf#k-HiIkkay7FSz`>S}*x!wb- zPxQt5ikY9UDXtB!{rt;+Uw7w);QAvQ?+nU=7l!7)@?cZ@wawq(QvBN8Z1>i&ZHevi ruYdURreSsX(kmNB=*WLYSB~D_8QFPtY;b%%ZVQ7#hG$!DT!H@r@8Q+r diff --git a/resources/public/finance-font/fonts/icomoon.svg b/resources/public/finance-font/fonts/icomoon.svg index 4add76a2..ac029b91 100755 --- a/resources/public/finance-font/fonts/icomoon.svg +++ b/resources/public/finance-font/fonts/icomoon.svg @@ -11,16 +11,17 @@ - - - + + + - + + @@ -28,6 +29,7 @@ + diff --git a/resources/public/finance-font/fonts/icomoon.ttf b/resources/public/finance-font/fonts/icomoon.ttf index 3815bd4f9a0d23afeb273599faaf29e6c612995e..a1b584caa28da6742479d6e52c46b25aa89cf516 100755 GIT binary patch delta 1644 zcmZWpZA@Eb6h5c7y|)b-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3RFE?wa^casuueMM4P zsGhb)!A;>8%j0ZKhg{*46PuH8bBN|E0Yp~bR%@c)zRtc zmqcVs_r#e)e##R-f$G@{V=DkHr-wCuMuhr>ZZuXekt4TNZdD@>>e z`?}&*RJX!GIm1|UC6gqE4H#t+-FPt6V2QOXQ4-+9gTc5@AmB69tSnt*JTJ{Q=bCql zfWi6cGo_ws;U$Ltwg8}XOj4xO=-QurTPTl8aT{ca_6!aVKC~IrhUzn?wJMiU<)Esj zsp!~o?%@p6F$t4W$f&BvEsU zS30OfFB%#xU&5%eQ(pMHAw zi@oli&xunKSCRZt39oa^S7t<R|F$ZO7Bw+K+Vd%*{2|y53kT^<3>ezV1R_yswn~ z@%qw+;D*mO{%zCU&A}~aw%r}%gYOT`KXHG1+uV-t?kqidFW0?mba!e`;;U~zy?t06 kzW&U%y>#z?M%Ik{V}Er2&C$WJEx0$p|M1M&-+lo91&~A3(EtDd diff --git a/resources/public/finance-font/fonts/icomoon.woff b/resources/public/finance-font/fonts/icomoon.woff index 5c9891fa861f033bb428f4714b9d0a6808c28ad1..2fcefa813a98ed03649198f012887b6d855bafc4 100755 GIT binary patch delta 1724 zcmZWpeQXnD7=NE$d)Hg<+Fn1dwS#s2*i}~8=4d;G!Yb$lbi)9{2|8F1nev&i!1NEg zWQ#F;C|EI@F~&b6L1s*}iHZKPG{hJ}mJJrSY}mi%N9;z32_r_OSD*KKRU(%>&vWnZ z`FfwH`u$s=M_S(B{3#J#rx@jbG-;6Mr(zsaNikgdJp&YBQ}ir zXrccI;hcw#?!&n2c8nRLk|WJ$6Nh{HvGMgA2-IqF5+;xI9Nv%E@0j=&m60v{-^Y#~ z#|Gp57w(_g*oA=(VkZnS;Api4xzJQ-D{L>kRw|ZC=)+P4Qm8JhDQqruY8aG$@)$it z{zJYeFJT^JZh|xW3p`~>196w8nMG!l_z5uumADi@6-%rRNT`}+w-i9-VnYGR#Tp1N zs3~3)dB_PoFF=mIt0^J+5Q1JBiOmSP$oyzn#Q7d4?Kn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$5i2 zRRz~^Nb*VypMwHEa;0>NDMH3v;pK!V%dvwJLs?9bJg50NtmS++%~$X^ZK_5_F$kG? z)16g=c!Mv@;$=2V!ekWFP>#Go-X^~!4+{TDt}E<+?&}V2KZb5Oly4f`={mfu@On!* z$?~=KIG6#ee9-xYQ;2MiD6PZ(?}y@sQW)Mmm3u+0kde{Vl2l$Q%ka#NNmGEMOcj~T zn7}nhrAikS=ov$$>Gxcib}%+6K?n zeE8vs2Rl5ypAwCKwGi@0IlTIDUD$a&4ciN6ugBH`_9jqHqVV>nrM8GQez=r%y#B0k zyU+et3(Ia)7h*RSa&w|=lZl>9~eq148X{asS}+KL}`e`lr8 zd%5q>s?+`P{!-@M)ulC|H6K6ox3zcIh1MV6cy~w|dT)4c)BTZ^*Pr{==F;=`vOQbI zwmRDqU%2$*$aZD>m6tZ|pgaCOx?=PnyP~_UjSY?SuRB254!")) - (str "Add " (or (:name data) ""))) - (when error - [:span.icon.has-text-danger - [:i.fa.fa-exclamation-triangle]])] - :status-from ::vendor-form - :warning - (when-let [vendor (partial-matches-vendor? data all-vendors)] - (str "Are you sure you don't mean " vendor "?")) - :action-text "Save" - :save-event [::save] - :can-submit? (s/valid? ::entity/vendor data)} - +(defn form-content [{:keys [data change-event selected-override]}] + (let [chooseable-expense-accounts @(re-frame/subscribe [::subs/chooseable-expense-accounts]) + root-path (cond-> [] selected-override (into [:overrides selected-override]))] + [:div [horizontal-field [:label.label "Name"] [:div.control [bind-field [:input.input {:type "text" :auto-focus true - :field :name + :field (conj root-path :name) :spec ::entity/name :event change-event :subscription data}]]]] @@ -107,7 +106,7 @@ [:div.control [bind-field [:input.input {:type "text" - :field :print-as + :field (conj root-path :print-as) :spec ::entity/print-as :event change-event :subscription data}]]]] @@ -118,7 +117,7 @@ [bind-field [:input.input {:type "number" :step "1" - :field :terms + :field (conj root-path :terms) :spec ::entity/terms :event change-event :subscription data}]]]] @@ -128,10 +127,10 @@ [:div.control [bind-field [:input {:type "checkbox" - :field :hidden - :spec ::entity/hidden - :event change-event - :subscription data}]]]] + :field (conj root-path :hidden) + :spec ::entity/hidden + :event change-event + :subscription data}]]]] [:h2.subtitle "Expense Accounts"] [horizontal-field @@ -141,12 +140,12 @@ [typeahead-entity {:matches chooseable-expense-accounts :match->text (fn [x ] (str (:numeric-code x) " - " (:name x))) :type "typeahead-entity" - :field [:default-account] + :field (conj root-path :default-account) :event change-event :subscription data}]]] [:h2.subtitle "Address"] - [address-field {:field [:address] + [address-field {:field (conj root-path :address) :event change-event :subscription data}] [:h2.subtitle "Contact"] @@ -155,7 +154,7 @@ [:div.control.has-icons-left [bind-field [:input.input.is-expanded {:type "text" - :field [:primary-contact :name] + :field (into root-path [:primary-contact :name]) :spec ::contact/name :event change-event :subscription data}]] @@ -167,7 +166,7 @@ [:i.fa.fa-envelope]] [bind-field [:input.input {:type "email" - :field [:primary-contact :email] + :field (into root-path [:primary-contact :email]) :spec ::contact/email :event change-event :subscription data}]]] @@ -175,7 +174,7 @@ [:div.control.has-icons-left [bind-field [:input.input {:type "phone" - :field [:primary-contact :phone] + :field (into root-path [:primary-contact :phone]) :spec ::contact/phone :event change-event :subscription data}]] @@ -186,7 +185,7 @@ [:div.control.has-icons-left [bind-field [:input.input.is-expanded {:type "text" - :field [:secondary-contact :name] + :field (into root-path [:secondary-contact :name]) :spec ::contact/name :event change-event :subscription data}]] @@ -197,14 +196,14 @@ [:i.fa.fa-envelope]] [bind-field [:input.input {:type "email" - :field [:secondary-contact :email] + :field (into root-path [:secondary-contact :email]) :spec ::contact/email :event change-event :subscription data}]]] [:div.control.has-icons-left [bind-field [:input.input {:type "phone" - :field [:secondary-contact :phone] + :field (into root-path [:secondary-contact :phone]) :spec ::contact/phone :event change-event :subscription data}]] @@ -218,7 +217,7 @@ [:input {:type "radio" :name "schedule" :value "Weekly" - :field :invoice-reminder-schedule + :field (conj root-path :invoice-reminder-schedule) :spec ::entity/invoice-reminder-schedule :event change-event :subscription data}]] @@ -229,9 +228,59 @@ [:input {:type "radio" :name "schedule" :value "Never" - :field :invoice-reminder-schedule + :field (conj root-path :invoice-reminder-schedule) :spec ::entity/invoice-reminder-schedule :event change-event :subscription data}]] - " Never"]]] - (when (:saving? data) [:div.is-overlay {:style {"backgroundColor" "rgba(150,150,150, 0.5)"}}])])) + " Never"]]]])) + +(defn vendor-dialog [{:keys [save-event] }] + (let [clients @(re-frame/subscribe [::subs/clients]) + all-vendors @(re-frame/subscribe [::subs/vendors]) + selected-override @(re-frame/subscribe [::selected-override]) + {:keys [data error ] :as f} @(re-frame/subscribe [::forms/form ::vendor-form]) + change-event [::forms/change ::vendor-form]] + [action-modal {:id ::dialog + :title [:span (if (:id data) + (str "Edit " (or (:name data) "")) + (str "Add " (or (:name data) ""))) + (when error + [:span.icon.has-text-danger + [:i.fa.fa-exclamation-triangle]])] + :status-from ::vendor-form + #_#_:warning + (when-let [vendor (partial-matches-vendor? data all-vendors)] + (str "Are you sure you don't mean " vendor "?")) + :action-text "Save" + :save-event [::save] + :can-submit? (s/valid? ::entity/vendor data)} + [:div + [:div.level + [:div.level-left + [:div.tabs + [:ul + [:li {:class (active-when selected-override = nil)} + [:a {:on-click (dispatch-event [::override-selected nil])} "All"]] + [:li {:class (active-when selected-override = "123")} + [:a {:on-click (dispatch-event [::override-selected "123"])} + [:span "Campbell Brewing Company"]]] + ]]] + [:div.level-right + [drop-down {:id [::add-new-override] + :is-right? true + :header [:a.button.badge {:aria-haspopup true + :on-click (dispatch-event [::events/toggle-menu [::add-new-override]])} + [:span.icon + [:span.icon-add]] + [:span "Override"]]} + [drop-down-contents + [:div + [:div.field + [:label.label "Client"] + [typeahead-entity {:matches clients + :match->text :name + :type "typeahead-entity" + :event [:override-added]}]]]]]]] + [form-content {:data data :change-event change-event + :selected-override selected-override}]]])) +