/** Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 2 0 ĠJetBrains Ġs . r . o . Ċ Ġ* Ċ Ġ* ĠAll Ġrights Ġreserved . Ċ Ġ* Ċ Ġ* ĠMIT ĠLicense Ċ Ġ* Ċ Ġ* ĠPermission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ġof Ġthis Ġsoftware Ġand Ġassociated Ċ Ġ* Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ċ Ġ* Ġthe Ġrights Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ġcopies Ġof Ġthe ĠSoftware , Ġand Ċ Ġ* Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ġ* Ċ Ġ* ĠThe Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ġall Ġcopies Ġor Ġsubstantial Ġportions Ġof Ċ Ġ* Ġthe ĠSoftware . Ċ Ġ* Ċ Ġ* ĠTHE ĠSOFTWARE ĠIS ĠPROVIDED Ġ* AS ĠIS *, ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO Ċ Ġ* ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE Ċ Ġ* ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER ĠLIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , Ċ Ġ* ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , ĠOUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN ĠTHE Ċ Ġ* ĠSOFTWARE . Ċ Ġ*/ Ċ Ċ package Ġcom . microsoft . intellij . ui . forms . app service . function app Ċ Ċ import Ġcom . jetbrains . rd . util . lifetime . Lifetime Ċ import Ġcom . jetbrains . rd . util . reactive . Signal Ċ import Ġcom . microsoft . azure . management . storage . Storage Account Ċ import Ġcom . microsoft . azure . management . storage . Storage Account Sku Type Ċ import Ġcom . microsoft . azure tools . core . mvp . model . storage . Azure Storage Account M vp Model Ċ import Ġcom . microsoft . intellij . ui . forms . app service . base . Create App View Presenter Ċ import Ġorg . jetbrains . plugins . azure . R ider Azure Bundle . message Ċ Ċ class ĠCreate Function App View Presenter < V Ġ: ĠCreate Function App M vp View > Ġ: ĠCreate App View Presenter < V >() Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġstorage Account Signal Ġ= ĠSignal < List < Storage Account >>() ĊĠĠĠ Ġprivate Ġval Ġstorage Account Type Signal Ġ= ĠSignal < List < Storage Account Sku Type >>() ĊĊĠĠĠ Ġfun ĠonLoad Storage Accounts ( lifetime : ĠL ifetime , Ġsubscription Id : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsubscribe ( lifetime , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġstorage Account Signal , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage (" progress . publish . storage _ account . collect "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage (" run _ config . publish . storage _ account . collect _ error "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠAzure Storage Account M vp Model . list Storage Account sBy Subscription Id ( subscriptionId , Ġtrue ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ{ Ġstorage Accounts Ġ-> Ġm vp View . fill Storage Account ( storage Accounts ) Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠonLoad Storage Account Types ( lifetime : ĠL ifetime ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsubscribe ( lifetime , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġstorage Account Type Signal , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage (" progress . publish . storage _ account _ type . collect "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage (" run _ config . publish . storage _ account _ type . collect _ error "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠAzure Storage Account M vp Model . list Storage Account Type () Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ{ Ġtypes Ġ-> Ġm vp View . fill Storage Account Type ( types ) Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ